|
@@ -25,7 +25,7 @@
|
|
|
<span>{{ scope.row.wsm_name }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="num" width="80px" label="发货数量" show-overflow-tooltip />
|
|
|
+
|
|
|
<el-table-column width="110px" show-overflow-tooltip>
|
|
|
<template slot="header">
|
|
|
<span style="color:red;margin-right:2px">*</span>退货数量
|
|
@@ -42,6 +42,7 @@
|
|
|
:size="'mini'"
|
|
|
:controls="false"
|
|
|
:append="''"
|
|
|
+ :new-time="newTime"
|
|
|
@reschange="onNumberChange($event, scope.$index)"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -117,6 +118,7 @@ export default {
|
|
|
loading: false,
|
|
|
subLoading: false,
|
|
|
setWorkOrderColumns,
|
|
|
+ newTime: null,
|
|
|
formData: {
|
|
|
return_wsm_code: '',
|
|
|
return_num: '0'
|
|
@@ -124,7 +126,6 @@ export default {
|
|
|
}),
|
|
|
computed: {
|
|
|
confirmText() {
|
|
|
- console.log(Number(this.workOrderCount), Number(this.currentWorkOrder))
|
|
|
return Number(this.workOrderCount) === Number(this.currentWorkOrder) ? '保存' : '保存当前设置'
|
|
|
},
|
|
|
state() {
|
|
@@ -173,7 +174,7 @@ export default {
|
|
|
case 0:
|
|
|
this.list = data.map(item => ({
|
|
|
...item,
|
|
|
- return_num: 0,
|
|
|
+ return_num: this.outItem ? Number(this.outItem.return_num) : 0,
|
|
|
return_wsm_code: this.sitem.order_type === '1' ? [item.wsm_code] : '' }
|
|
|
))
|
|
|
break
|
|
@@ -181,6 +182,8 @@ export default {
|
|
|
this.$message.warning(message)
|
|
|
break
|
|
|
}
|
|
|
+
|
|
|
+ this.newTime = new Date().valueOf()
|
|
|
},
|
|
|
onStockChange({ code, supplierName, supplierNo, contactor } = {}, index) {
|
|
|
this.$set(this.list, index, {
|