Эх сурвалжийг харах

增加需求计划和业务类型的联动

黄梓星 1 жил өмнө
parent
commit
ee61250668

+ 9 - 0
src/views/purchase/PurchaseDemandList/add.vue

@@ -839,6 +839,12 @@ export default {
     // 改变需求计划改变需求日期
     changeplanType() {
       this.dafaultDate()
+      if (this.basicForm.planType == 'JJXQ') {
+        this.basicForm.billType = 'JJXQ'
+      }
+      if (this.basicForm.planType == 'JJXQ' && this.basicForm.puDemandItemList.length != 0) {
+        this.basicForm.puDemandItemList.forEach(item => {item.isUrgency = 'Y'})
+      }
     },
     // 无限滚动加载配置
     load() {
@@ -872,6 +878,9 @@ export default {
           item.additionalSupplierName = null
         })
       }
+      if (this.basicForm.billType == 'JJXQ') {
+        this.basicForm.planType = 'JJXQ'
+      }
       if (this.basicForm.billType == 'JJXQ' && this.basicForm.puDemandItemList.length != 0) {
         this.basicForm.puDemandItemList.forEach(item => {item.isUrgency = 'Y'})
       } else {