浏览代码

提货编辑

zhouhao 2 年之前
父节点
当前提交
9c8735abcc
共有 1 个文件被更改,包括 12 次插入2 次删除
  1. 12 2
      src/views/supply/pickup/components/pickup_form.vue

+ 12 - 2
src/views/supply/pickup/components/pickup_form.vue

@@ -340,7 +340,11 @@ export default {
 
     storeChange(e, row) {
       console.log(e, row);
-
+      this.deliverList.forEach(item => {
+        if (item.invoiceId === row.invoiceId) {
+          this.$set(item,'warehouseFlag',e)
+        }
+      })
       if (e == 0) {
         if (!(row.orderType === 'TRADE' || row.orderType === 'HOME')) {
           if ((row.receivingName && row.phone && row.address)) {
@@ -630,8 +634,14 @@ export default {
       // let correspondName = this.warehouseList.find(o => o.id == this.mainForm.warehouse).name;
 
       let orderList = []
-     
+      for (let i = 0; i <this.tableSelection.length; i++) {
+          if (this.tableSelection[i].warehouseFlag == null || this.tableSelection[i].warehouseFlag == '') {
+            this.$errorMsg('仓库必选')
+            return
+          }        
+      }
       this.tableSelection.forEach(item => {
+       
         if (!(item.orderType === 'TRADE' || item.orderType === 'HOME')) {
        
         } else {