|
@@ -69,6 +69,7 @@
|
|
|
<text class="code" :style="{ color: item.status ? 'green' : '#666' }">
|
|
|
{{ item.orderNum }}
|
|
|
<text v-if="item.batch_text">批次号: {{ item.batch_text }}</text>
|
|
|
+ <text v-if="item.space">仓位编码: {{ item.space }}</text>
|
|
|
{{ item.type }}
|
|
|
</text>
|
|
|
|
|
@@ -169,6 +170,11 @@ export default {
|
|
|
]
|
|
|
}
|
|
|
};
|
|
|
+ },
|
|
|
+ spaceRes: function () {
|
|
|
+ const res = this.spaces.find((item) => item.value === this.valiFormData.space_code);
|
|
|
+ console.log(res);
|
|
|
+ return res?.text;
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
@@ -251,7 +257,7 @@ export default {
|
|
|
this.valiFormData = {
|
|
|
...this.valiFormData,
|
|
|
orderNum: '',
|
|
|
- space_code: '',
|
|
|
+ // space_code: '',
|
|
|
batch_number: '',
|
|
|
weight: '',
|
|
|
search_pkg: true,
|
|
@@ -363,6 +369,7 @@ export default {
|
|
|
const historyItem = {
|
|
|
orderNum: this.valiFormData.orderNum,
|
|
|
createTime: new Date(),
|
|
|
+ space: this.spaceRes,
|
|
|
type: '入库',
|
|
|
status: true
|
|
|
};
|
|
@@ -376,6 +383,7 @@ export default {
|
|
|
const historyItem = {
|
|
|
orderNum: this.valiFormData.orderNum,
|
|
|
createTime: new Date(),
|
|
|
+ space: this.spaceRes,
|
|
|
type: '入库',
|
|
|
status: false
|
|
|
};
|