Przeglądaj źródła

物品类型回显

yusheng 2 lat temu
rodzic
commit
1ffb67df88
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      src/views/bpm/stockManagement/add.vue

+ 4 - 2
src/views/bpm/stockManagement/add.vue

@@ -66,6 +66,7 @@
                 class="form-ipt"
                 size="medium"
                 style="width: 100%"
+                :value="formData.extInfo.assetType"
                 clearable
                 :options="codeList"
                 :props="{
@@ -1387,6 +1388,7 @@
       },
       async pickerSuccess(row) {
         this.formData.bizType = '2';
+        this.codeListValue(row.categoryLevelTopId)
         this.isTask = true;
         this.pickerRow = row;
         this.formData.extInfo.documentSource = row.orderNo;
@@ -1421,10 +1423,10 @@
         this.$refs.pickerRef.open();
       },
       codeListValue(val) {
-        this.formData.extInfo.assetType = val.id;
+        this.formData.extInfo.assetType = val.id||val;
         this.$forceUpdate();
         this.title = val?.name;
-        this.selectEquiType = val?.id;
+        this.selectEquiType = val?.id||val;
       },
       //计算生产设备重量
       deviceWeight(row, num) {