张庆宇 3 дней назад
Родитель
Сommit
d6e6e1f1fb
3 измененных файлов: 14 добавлений и 2 удалений
  1. 2
    2
      config/dev.env.js
  2. 1
    0
      config/prod.env.js
  3. 11
    0
      src/components/PopupOut.vue

+ 2
- 2
config/dev.env.js Просмотреть файл

@@ -4,7 +4,7 @@ const prodEnv = require('./prod.env')
4 4
 
5 5
 module.exports = merge(prodEnv, {
6 6
   NODE_ENV: '"development"',
7
-	// BASE_API: '"http://localhost:8080/thware/"'
7
+	 BASE_API: '"http://localhost:8080/thware/"'
8 8
 	// BASE_API: '"http://47.104.245.159:8081/thware/"'
9
-	 BASE_API: '"http://120.224.213.150/thware_zg/"'
9
+	// BASE_API: '"http://120.224.213.150/thware_zg/"'
10 10
 })

+ 1
- 0
config/prod.env.js Просмотреть файл

@@ -2,4 +2,5 @@
2 2
 module.exports = {
3 3
   NODE_ENV: '"production"',
4 4
 	BASE_API: '"http://120.224.213.150/thware_zg/"'
5
+  //BASE_API: '"http://60.205.9.174:8080/thware_zg/"'
5 6
 }

+ 11
- 0
src/components/PopupOut.vue Просмотреть файл

@@ -245,6 +245,17 @@
245 245
 				}
246 246
 				axios.post(url, param).then(response => {
247 247
 					if (response.data.code == 0) {
248
+						if(response.data.payWay == '现金'){
249
+							this.$alert('存在支付方式为现金的材料,价格为'+response.data.InvoicePrice+',请在出库界面确认价格', '警告', {
250
+								confirmButtonText: '确定',
251
+								callback: action => {
252
+									this.$message({
253
+									type: 'info',
254
+									message: `已确认`
255
+									});
256
+								}
257
+							});
258
+						}
248 259
 						this.showCustomerTable()
249 260
 					} else {
250 261
 						this.$message({

Загрузка…
Отмена
Сохранить