ccj 3 năm trước cách đây
mục cha
commit
ce6e9a94b4

+ 5 - 1
src/views/purchasingManagement/procurementPlanAdd.vue

@@ -535,6 +535,8 @@ export default {
       // this.dataList.outputCity = CodeToText[value[1]]
       // this.dataList.outputCity = CodeToText[value[1]]
     },
     },
     sendWarehousechange(e) {
     sendWarehousechange(e) {
+          console.log("sendWarehousechange",e)
+
       for (let i = 0; i < this.warehouseList.length; i++) {
       for (let i = 0; i < this.warehouseList.length; i++) {
         if (this.warehouseList[i].warehouseName == e) {
         if (this.warehouseList[i].warehouseName == e) {
           var tmp = []
           var tmp = []
@@ -548,7 +550,8 @@ export default {
               this.warehouseList[i].warehouseCity
               this.warehouseList[i].warehouseCity
             ][this.warehouseList[i].warehouseArea].code
             ][this.warehouseList[i].warehouseArea].code
           this.selectedOptions = tmp
           this.selectedOptions = tmp
-          this.dataList.warehouseId = this.warehouseList[i].id
+          console.log("sendWarehousechange",this.warehouseList[i])
+          this.dataList.receiveWarehouseId = this.warehouseList[i].id
         }
         }
       }
       }
     },
     },
@@ -864,6 +867,7 @@ export default {
         .then(() => {
         .then(() => {
           this.$refs.dataList.validate(valid => {
           this.$refs.dataList.validate(valid => {
             if (valid) {
             if (valid) {
+              console.log(this.dataList)
               this.dataList.procurementPlanNo='CGJH'+this.getdate()+this.verifyinit()
               this.dataList.procurementPlanNo='CGJH'+this.getdate()+this.verifyinit()
               this.dataList.sourceProvince = CodeToText[this.selectedOptions[0]]
               this.dataList.sourceProvince = CodeToText[this.selectedOptions[0]]
               this.dataList.sourceCity = CodeToText[this.selectedOptions[1]]
               this.dataList.sourceCity = CodeToText[this.selectedOptions[1]]

+ 1 - 0
src/views/salesManagement/salesPlanAdd.vue

@@ -633,6 +633,7 @@ export default {
               this.warehouseList[i].warehouseCity
               this.warehouseList[i].warehouseCity
             ][this.warehouseList[i].warehouseArea].code
             ][this.warehouseList[i].warehouseArea].code
           this.selectedOptions = tmp
           this.selectedOptions = tmp
+          this.dataList.sendWarehouseId = this.warehouseList[i].id
         }
         }
       }
       }
     },
     },