shish 2 lat temu
rodzic
commit
c6b0312d86
2 zmienionych plików z 12 dodań i 5 usunięć
  1. 10 3
      ghs/src/views/order/add.vue
  2. 2 2
      ghs/vue.config.js

+ 10 - 3
ghs/src/views/order/add.vue

@@ -287,7 +287,9 @@ export default {
       currentItem:{},
       classList:[],
       changeType:'add',
-      TT:null
+      TT:null,
+      defaultGetStaffName:'',
+      defaultGetStaffId:0,
     };
   },
 	mixins: [productMins],
@@ -423,6 +425,8 @@ export default {
         that.setSendType(0)
         that.setTransType(4)
         that.form.hasPay = 2
+        that.form.getStaffId = that.defaultGetStaffId
+        that.form.getStaffName = that.defaultGetStaffName
         that.showCommitPop = true
       }
       if(e && e.key=='F8'){
@@ -441,8 +445,9 @@ export default {
           if(!that.$util.isEmpty(that.staffList)){
             for(const ele of that.staffList){
               if(currentStaff.id == ele.id){
-                that.form.getStaffId = ele.id
-                that.form.getStaffName = ele.name
+
+                that.defaultGetStaffName = ele.name
+                that.defaultGetStaffId = ele.id
               }
             }
           }
@@ -601,6 +606,8 @@ export default {
     formReset(){
       this.form.customId = 0
       this.form.customName = ''
+      this.form.getStaffId = 0
+      this.form.getStaffName = ''
       this.$nextTick(() => {
         this.$refs.customref.focus()
       })

+ 2 - 2
ghs/vue.config.js

@@ -3,13 +3,13 @@ const path = require('path');
 const isProduction = process.env.NODE_ENV === 'production';
 
 //http和https切换请修改这里,修改后需要重新运行npm run serve shish 2021.4.12
-const proxyTarget = 'https://api.shop.wixhb.com';
+const proxyTarget = 'http://api.shop.hzghd.com';
 
 function resolve(dir) {
 	return path.join(__dirname, dir);
 }
 
-let hostUrl = 'https://img.wixhb.com/';
+let hostUrl = 'http://img.hzghd.com/';
 
 const cdn = {
 	dev: {