|
@@ -136,7 +136,7 @@
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<div class="inbound_details">
|
|
<div class="inbound_details">
|
|
|
<header-title title="产品信息">
|
|
<header-title title="产品信息">
|
|
|
- <el-button type="primary" @click="addProduct">添加</el-button>
|
|
|
|
|
|
|
+ <el-button v-if="!isTask" type="primary" @click="addProduct">添加</el-button>
|
|
|
</header-title>
|
|
</header-title>
|
|
|
<div class="form_table">
|
|
<div class="form_table">
|
|
|
<el-form
|
|
<el-form
|
|
@@ -146,7 +146,7 @@
|
|
|
>
|
|
>
|
|
|
<div style="text-align: right;margin-bottom: 10px;">
|
|
<div style="text-align: right;margin-bottom: 10px;">
|
|
|
<el-button
|
|
<el-button
|
|
|
- v-if="productList.length != 0"
|
|
|
|
|
|
|
+ v-if="productList.length != 0 && !isTask"
|
|
|
type="success"
|
|
type="success"
|
|
|
plain
|
|
plain
|
|
|
size="mini"
|
|
size="mini"
|
|
@@ -154,7 +154,7 @@
|
|
|
>批量保存</el-button
|
|
>批量保存</el-button
|
|
|
>
|
|
>
|
|
|
<el-button
|
|
<el-button
|
|
|
- v-if="productList.length != 0 && this.packingList.length == 0"
|
|
|
|
|
|
|
+ v-if="productList.length != 0 && this.packingList.length == 0 && !isTask"
|
|
|
type="success"
|
|
type="success"
|
|
|
plain
|
|
plain
|
|
|
size="mini"
|
|
size="mini"
|
|
@@ -343,7 +343,9 @@
|
|
|
|
|
|
|
|
<!-- 仓库 -->
|
|
<!-- 仓库 -->
|
|
|
<template v-slot:warehouseName="{ row, $index }">
|
|
<template v-slot:warehouseName="{ row, $index }">
|
|
|
|
|
+ <span v-if="isTask">{{ row.warehouseName }}</span>
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
|
|
+ v-else
|
|
|
:prop="'productList.' + $index + '.warehouseId'"
|
|
:prop="'productList.' + $index + '.warehouseId'"
|
|
|
:rules="{
|
|
:rules="{
|
|
|
required: true,
|
|
required: true,
|
|
@@ -437,7 +439,9 @@
|
|
|
|
|
|
|
|
<!-- 颜色 -->
|
|
<!-- 颜色 -->
|
|
|
<template v-slot:colorKey="{ row, $index }">
|
|
<template v-slot:colorKey="{ row, $index }">
|
|
|
|
|
+ <span v-if="isTask">{{ row.colorKey }}</span>
|
|
|
<DictSelection
|
|
<DictSelection
|
|
|
|
|
+ v-else
|
|
|
dictName="物品颜色"
|
|
dictName="物品颜色"
|
|
|
clearable
|
|
clearable
|
|
|
v-model="row.colorKey"
|
|
v-model="row.colorKey"
|
|
@@ -451,7 +455,9 @@
|
|
|
|
|
|
|
|
<!-- 机型 -->
|
|
<!-- 机型 -->
|
|
|
<template v-slot:modelKey="{ row, $index }">
|
|
<template v-slot:modelKey="{ row, $index }">
|
|
|
|
|
+ <span v-if="isTask">{{ row.modelKey }}</span>
|
|
|
<DictSelection
|
|
<DictSelection
|
|
|
|
|
+ v-else
|
|
|
dictName="物品机型"
|
|
dictName="物品机型"
|
|
|
clearable
|
|
clearable
|
|
|
v-model="row.modelKey"
|
|
v-model="row.modelKey"
|
|
@@ -488,7 +494,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="showPackingList.length > 0" class="inbound_details">
|
|
<div v-if="showPackingList.length > 0" class="inbound_details">
|
|
|
<header-title :title="`包装明细`">
|
|
<header-title :title="`包装明细`">
|
|
|
- <div class="switch_right">
|
|
|
|
|
|
|
+ <div class="switch_right" v-if="!isTask">
|
|
|
<el-button
|
|
<el-button
|
|
|
style="margin-left: 20px"
|
|
style="margin-left: 20px"
|
|
|
type="text"
|
|
type="text"
|
|
@@ -1006,7 +1012,8 @@
|
|
|
detailProductList: { type: Array, default: () => [] },
|
|
detailProductList: { type: Array, default: () => [] },
|
|
|
isMoreProduct: { type: Boolean, default: false }, //多产品包装明细
|
|
isMoreProduct: { type: Boolean, default: false }, //多产品包装明细
|
|
|
processInstance: { type: Object, default: () => {} },
|
|
processInstance: { type: Object, default: () => {} },
|
|
|
- isShowPackage: { type: Boolean, default: false } //售后退货单仓管审批显示
|
|
|
|
|
|
|
+ isShowPackage: { type: Boolean, default: false }, //售后退货单仓管审批显示
|
|
|
|
|
+ isTask: { type: Boolean, default: false }
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -1170,7 +1177,7 @@
|
|
|
// 失效日期
|
|
// 失效日期
|
|
|
{ label: '失效日期', prop: 'detailExpireDate', slot: 'detailExpireDate', align: 'center', width: 220 },
|
|
{ label: '失效日期', prop: 'detailExpireDate', slot: 'detailExpireDate', align: 'center', width: 220 },
|
|
|
// 操作
|
|
// 操作
|
|
|
- { label: '操作', columnKey: 'action', slot: 'action', width: 140, align: 'center', fixed: 'right' }
|
|
|
|
|
|
|
+ { label: '操作', columnKey: 'action', slot: 'action', width: 140, align: 'center', fixed: 'right', show: !this.isTask }
|
|
|
].filter(col => col.show !== false);
|
|
].filter(col => col.show !== false);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -1746,6 +1753,7 @@
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
index: this.productList.length + index,
|
|
index: this.productList.length + index,
|
|
|
|
|
+ isSave: this.isTask || undefined,
|
|
|
categoryId: item.id, // 物品id
|
|
categoryId: item.id, // 物品id
|
|
|
categoryName: item.name, // 物品名称
|
|
categoryName: item.name, // 物品名称
|
|
|
categoryCode: item.code, // 物品编码
|
|
categoryCode: item.code, // 物品编码
|