|
|
@@ -12,52 +12,6 @@
|
|
|
<el-form-item label="出库单号" prop="bizNum">
|
|
|
<el-input :value="formData.bizNum" disabled /></el-form-item
|
|
|
></el-col> -->
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="出库物品类型" prop="extInfo.assetType">
|
|
|
- <!-- <DictSelection
|
|
|
- dictName="类型用途"
|
|
|
- :disabled="
|
|
|
- !!(warehousingMaterialList && warehousingMaterialList.length)
|
|
|
- "
|
|
|
- clearable
|
|
|
- v-model="formData.extInfo.assetType"
|
|
|
- @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> -->
|
|
|
- <selectTree
|
|
|
- ref="tree"
|
|
|
- class="form-ipt"
|
|
|
- :isBindPlan="
|
|
|
- !!(warehousingMaterialList && warehousingMaterialList.length)
|
|
|
- "
|
|
|
- size="medium"
|
|
|
- style="width: 100%"
|
|
|
- clearable
|
|
|
- :options="codeList"
|
|
|
- :props="{
|
|
|
- value: 'id',
|
|
|
- label: 'name',
|
|
|
- children: 'children'
|
|
|
- }"
|
|
|
- @getValue="codeListValue"
|
|
|
- :isAll="false"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="出库场景" prop="bizType">
|
|
|
<el-select
|
|
|
@@ -136,6 +90,53 @@
|
|
|
"
|
|
|
/></el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="出库物品类型" prop="extInfo.assetType">
|
|
|
+ <!-- <DictSelection
|
|
|
+ dictName="类型用途"
|
|
|
+ :disabled="
|
|
|
+ !!(warehousingMaterialList && warehousingMaterialList.length)
|
|
|
+ "
|
|
|
+ clearable
|
|
|
+ v-model="formData.extInfo.assetType"
|
|
|
+ @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> -->
|
|
|
+ <selectTree
|
|
|
+ ref="tree"
|
|
|
+ class="form-ipt"
|
|
|
+ :isBindPlan="
|
|
|
+ !!(warehousingMaterialList && warehousingMaterialList.length)
|
|
|
+ "
|
|
|
+ size="medium"
|
|
|
+ style="width: 100%"
|
|
|
+ clearable
|
|
|
+ :options="codeList"
|
|
|
+ :props="{
|
|
|
+ value: 'id',
|
|
|
+ label: 'name',
|
|
|
+ children: 'children'
|
|
|
+ }"
|
|
|
+ @getValue="codeListValue"
|
|
|
+ :isAll="false"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="权属部门" prop="deptName">
|
|
|
<el-input
|
|
|
@@ -182,7 +183,11 @@
|
|
|
></el-col> -->
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="领料人" prop="fromUser">
|
|
|
- <el-select v-model="formData.fromUser" filterable placeholder="">
|
|
|
+ <el-select
|
|
|
+ v-model="formData.fromUser"
|
|
|
+ filterable
|
|
|
+ placeholder="请选择领料人"
|
|
|
+ >
|
|
|
<el-option
|
|
|
v-for="item in fromUserList"
|
|
|
:key="item.id"
|
|
|
@@ -623,25 +628,30 @@
|
|
|
row.tableData = [];
|
|
|
this.formData.documentSource = row.code;
|
|
|
for (const key in row.orderInfoList) {
|
|
|
- for (const i in row.orderInfoList[key].bomDetailDTOS) {
|
|
|
- row.tableData.push({
|
|
|
- ...row.orderInfoList[key].bomDetailDTOS[i],
|
|
|
- code: row.orderInfoList[key].bomDetailDTOS[i].categoryCode,
|
|
|
- name: row.orderInfoList[key].bomDetailDTOS[i].categoryName,
|
|
|
- modelTyp: row.orderInfoList[key].bomDetailDTOS[i].model,
|
|
|
- id: row.orderInfoList[key].bomDetailDTOS[i].categoryId
|
|
|
- });
|
|
|
+ if (row.orderInfoList[key].bomDetailDTOS.length != 0) {
|
|
|
+ for (const i in row.orderInfoList[key].bomDetailDTOS) {
|
|
|
+ row.tableData.push({
|
|
|
+ ...row.orderInfoList[key].bomDetailDTOS[i],
|
|
|
+ code: row.orderInfoList[key].bomDetailDTOS[i].categoryCode,
|
|
|
+ name: row.orderInfoList[key].bomDetailDTOS[i].categoryName,
|
|
|
+ modelType: row.orderInfoList[key].bomDetailDTOS[i].model,
|
|
|
+ id: row.orderInfoList[key].bomDetailDTOS[i].categoryId
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
- for (const j in row.orderInfoList[key].instanceList) {
|
|
|
- row.tableData.push({
|
|
|
- ...row.orderInfoList[key].instanceList[j],
|
|
|
- code: row.orderInfoList[key].instanceList[j].categoryCode,
|
|
|
- name: row.orderInfoList[key].instanceList[j].categoryName,
|
|
|
- modelTyp: row.orderInfoList[key].bomDetailDTOS[j].model,
|
|
|
- id: row.orderInfoList[key].bomDetailDTOS[j].categoryId
|
|
|
- });
|
|
|
+ if (row.orderInfoList[key].instanceList.length != 0) {
|
|
|
+ for (const j in row.orderInfoList[key].instanceList) {
|
|
|
+ row.tableData.push({
|
|
|
+ ...row.orderInfoList[key].instanceList[j],
|
|
|
+ code: row.orderInfoList[key].instanceList[j].categoryCode,
|
|
|
+ name: row.orderInfoList[key].instanceList[j].categoryName,
|
|
|
+ modelType: row.orderInfoList[key].instanceList[j].model,
|
|
|
+ id: row.orderInfoList[key].instanceList[j].categoryId
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
const uniqueItems = [];
|
|
|
const uniqueIds = new Set();
|
|
|
row.tableData.forEach((item) => {
|
|
|
@@ -825,6 +835,9 @@
|
|
|
//出库明细删除
|
|
|
listDel(row, index) {
|
|
|
this.warehousingMaterialList.splice(index, 1);
|
|
|
+ if (this.warehousingMaterialList.length == 0) {
|
|
|
+ this.formData.documentSource = '';
|
|
|
+ }
|
|
|
},
|
|
|
// 出库明细生成条码信息
|
|
|
async createMaterialCode(row) {
|
|
|
@@ -975,9 +988,9 @@
|
|
|
// this.llList = [];
|
|
|
// }
|
|
|
// .concat(this.llList)
|
|
|
- if (this.warehousingMaterialList.length != 0) {
|
|
|
- val = this.warehousingMaterialList.concat(val);
|
|
|
- }
|
|
|
+ // if (this.warehousingMaterialList.length != 0) {
|
|
|
+ // val = this.warehousingMaterialList.concat(val);
|
|
|
+ // }
|
|
|
this.onSelectTableDataVal = val;
|
|
|
this.warehousingMaterialList = val.map((next) => {
|
|
|
delete next.updateTime;
|