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