|
@@ -35,7 +35,7 @@
|
|
|
</el-col> -->
|
|
</el-col> -->
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="物品类型" prop="extInfo.assetType">
|
|
<el-form-item label="物品类型" prop="extInfo.assetType">
|
|
|
- <DictSelection
|
|
|
|
|
|
|
+ <!-- <DictSelection
|
|
|
dictName="类型用途"
|
|
dictName="类型用途"
|
|
|
:disabled="
|
|
:disabled="
|
|
|
!!(warehousingMaterialList && warehousingMaterialList.length)
|
|
!!(warehousingMaterialList && warehousingMaterialList.length)
|
|
@@ -43,7 +43,22 @@
|
|
|
clearable
|
|
clearable
|
|
|
v-model="formData.extInfo.assetType"
|
|
v-model="formData.extInfo.assetType"
|
|
|
@itemChange="handleChange"
|
|
@itemChange="handleChange"
|
|
|
- />
|
|
|
|
|
|
|
+ /> -->
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ :disabled="
|
|
|
|
|
+ !!(warehousingMaterialList && warehousingMaterialList.length)
|
|
|
|
|
+ "
|
|
|
|
|
+ clearable
|
|
|
|
|
+ v-model="formData.extInfo.assetType"
|
|
|
|
|
+ @change="handleChanges"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="(item, index) in codeList"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ :label="item.dictValue"
|
|
|
|
|
+ :value="item.dictCode"
|
|
|
|
|
+ ></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
@@ -330,7 +345,7 @@
|
|
|
"
|
|
"
|
|
|
>
|
|
>
|
|
|
<template slot="append">
|
|
<template slot="append">
|
|
|
- {{ row.minPackUnit }}个
|
|
|
|
|
|
|
+ {{ row.minPackUnit }}
|
|
|
</template>
|
|
</template>
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -627,7 +642,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import outin from '@/api/warehouseManagement/outin';
|
|
import outin from '@/api/warehouseManagement/outin';
|
|
|
-
|
|
|
|
|
|
|
+ import { getTreeByPid } 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';
|
|
@@ -658,6 +673,7 @@
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ codeList: [],
|
|
|
materialType,
|
|
materialType,
|
|
|
warehousingType,
|
|
warehousingType,
|
|
|
sceneState,
|
|
sceneState,
|
|
@@ -1273,6 +1289,10 @@
|
|
|
console.log('sasasa===', this.warehousingMaterialList);
|
|
console.log('sasasa===', this.warehousingMaterialList);
|
|
|
},
|
|
},
|
|
|
async initData() {
|
|
async initData() {
|
|
|
|
|
+ const { data } = await getTreeByPid(0);
|
|
|
|
|
+ this.codeList = data.map((item) => {
|
|
|
|
|
+ return { dictCode: item.id, dictValue: item.name };
|
|
|
|
|
+ });
|
|
|
const res = await warehouseDefinition.tree();
|
|
const res = await warehouseDefinition.tree();
|
|
|
this.treeList = this.$util.toTreeData({
|
|
this.treeList = this.$util.toTreeData({
|
|
|
data: res,
|
|
data: res,
|
|
@@ -1314,6 +1334,11 @@
|
|
|
this.title = data?.dictValue;
|
|
this.title = data?.dictValue;
|
|
|
this.selectEquiType = data?.dictCode;
|
|
this.selectEquiType = data?.dictCode;
|
|
|
},
|
|
},
|
|
|
|
|
+ handleChanges(code) {
|
|
|
|
|
+ const data = this.codeList.find((item) => item.dictCode == code);
|
|
|
|
|
+ this.title = data?.dictValue;
|
|
|
|
|
+ this.selectEquiType = data?.dictCode;
|
|
|
|
|
+ },
|
|
|
getSupplier() {
|
|
getSupplier() {
|
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
|
supplier.list({ page: 1, size: 999 }).then((res) => {
|
|
supplier.list({ page: 1, size: 999 }).then((res) => {
|