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

解决调拨订单编辑时客户回显错误问题

002390 1 жил өмнө
parent
commit
d97e3b2b2d

+ 8 - 0
src/views/purchase/transferOrder/add.vue

@@ -253,6 +253,7 @@
             <el-select
               clearable
               size="mini"
+              :disabled="sonDisable"
               v-model="basicForm.customer"
               @clear="clean('客户')"
               @focus="chooseRefer('CUSTOMER_PARAM', true, '客户')"
@@ -1901,9 +1902,15 @@ export default {
           if (this.basicForm.deliveryDept) {
             this.reBackRefer("DEPT_PARAM", this.basicForm.deliveryDept);
           }
+          
           if (this.basicForm.currency) {
             this.reBackRefer("CURRENCY_PARAM", this.basicForm.currency);
           }
+          // 客户
+          if (this.basicForm.customer) {
+            this.reBackRefer("CUSTOMER_PARAM", this.basicForm.customer);
+          }
+
           if (this.basicForm.storageWarehouse) {
             this.reBackRefer(
               "WAREHOUSE_PARAM",
@@ -1928,6 +1935,7 @@ export default {
     },
     // 回显参照框
     reBackRefer(type, id, title) {
+      console.log(type, id, title,'回显参照框');
       getRefer({ type: type, id: id, title: title }).then((res) => {
         if (type == "ORG_PARAM" && title == "调出库存组织") {
           this.chuOrgOptions = res.rows;