Просмотр исходного кода

Merge branch 'master' of http://110.41.163.243:9980/kd-aiot/kd-aiot-frontend-wt

ysy 2 лет назад
Родитель
Сommit
1dbf000145

+ 8 - 3
src/views/bpm/handleTask/components/productionWarehousing/productionWarehousing.vue

@@ -807,7 +807,7 @@
   import { getLoginUser } from '@/api/login';
   import picker from '@/views/bpm/stockManagement/components/picker.vue';
   import outin from '@/api/warehouseManagement/outin';
-  import { getTreeByGroup } from '@/api/classifyManage';
+  import { getTreeByGroup, allCategoryLevel } from '@/api/classifyManage';
   import warehouseDefinition from '@/api/warehouseManagement/warehouseDefinition';
   import selectUpload from '@/components/selectUpload';
   import upload from '@/components/uploadImg';
@@ -1234,7 +1234,11 @@
       // 根据单据信息初始化产品信息(外部调用)
       async pickerSuccess(row) {
         this.formData.bizType = '1'; // 生产入库
-        this.codeListValue(row.categoryLevelId);
+        console.log('row---------------');
+        console.log(row);
+        this.formData.extInfo.assetType = row.categoryLevelId;
+        this.title = row.categoryLevelName;
+        this.selectEquiType = row.categoryLevelId;
         this.isTask = true;
         this.pickerRow = row;
         // this.formData.extInfo.documentSource = row.orderNo;
@@ -1958,8 +1962,9 @@
         );
       },
       async initData() {
-        const { data } = await getTreeByGroup({ type: 1 });
+        const { data } = await allCategoryLevel();
         this.codeList = data;
+        console.log(this.codeList, 'codeList--------------');
         const res = await warehouseDefinition.tree();
         const info = await getLoginUser();
         let obj = res.find(