Przeglądaj źródła

客户销售提交生成销售单号

zhouhao 2 lat temu
rodzic
commit
290b35fa92

+ 1 - 0
src/views/sales_control/sales_management/components/customer_sales_form.vue

@@ -322,6 +322,7 @@ export default {
               if (this.isFront ===false){
                 this.$parent.pageType = 0
               }              this.salesId = res.data
+              this.$set(this.$refs.header.screenForm,'id',res.data)
               this.$forceUpdate()
             })
 

+ 13 - 1
src/views/supply/pickup/components/pickup_form.vue

@@ -100,7 +100,7 @@
                 <el-option
                   :label="item.logisticsCompany"
                   :value="item.id"
-                  :disabled="isFront ===false && item.id === '1574563841707114498'"
+                  :disabled="comDisabled(item.id)"
                   v-for="(item, index) in companyList"
                   :key="index"
                 ></el-option>
@@ -353,7 +353,19 @@ export default {
         hideSidebar: !this.sidebar.opened,
         openSidebar: this.sidebar.opened
       }
+    },
+    comDisabled(){
+      return (id)=>{
+        if (this.isFront ===false && id === '1574563841707114498') {
+            return true
+        }
+        if (this.isFront ===true && id !== '1574563841707114498') {
+          return true
+        }
+        return false
+      }
     }
+
   },
 
   created() {