|
@@ -235,6 +235,9 @@
|
|
|
<a-input v-model="record.remark" />
|
|
|
</div>
|
|
|
</template>
|
|
|
+ <template slot="cdefine33" slot-scope="text, record">
|
|
|
+ <a-input v-model="record.cdefine33" />
|
|
|
+ </template>
|
|
|
<span slot="action" slot-scope="record">
|
|
|
<template>
|
|
|
<a @click="handleBaseFormForModifySelect(record)">修改</a>
|
|
@@ -359,6 +362,11 @@ export default {
|
|
|
title: '货架号',
|
|
|
dataIndex: 'storePosition'
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '降本项目',
|
|
|
+ dataIndex: 'cdefine33',
|
|
|
+ scopedSlots: { customRender: 'cdefine33' }
|
|
|
+ },
|
|
|
/* {
|
|
|
title: '备注',
|
|
|
dataIndex: 'remark',
|
|
@@ -467,6 +475,7 @@ export default {
|
|
|
'feeFrom',
|
|
|
'pickNo',
|
|
|
'type',
|
|
|
+ 'deptId',
|
|
|
'remark'
|
|
|
])))
|
|
|
})
|
|
@@ -492,8 +501,15 @@ export default {
|
|
|
this.confirmLoading = false
|
|
|
return
|
|
|
}
|
|
|
+ let status = 0
|
|
|
values.outFlag = this.outFlag
|
|
|
- values.detailList = this.data
|
|
|
+ values.detailList = this.data.map(item => {
|
|
|
+ if (!item.cdefine33) {
|
|
|
+ status++
|
|
|
+ this.$message.error('请填写' + item.spareName + '降本项目')
|
|
|
+ }
|
|
|
+ return item
|
|
|
+ })
|
|
|
console.log(values)
|
|
|
if (this.model != null) {
|
|
|
values.pickId = this.model.id
|
|
@@ -501,6 +517,10 @@ export default {
|
|
|
values.oldOrNew = this.tokenType
|
|
|
values.userTime = BaseTool.Date.formatter(values.userTime, BaseTool.Date.PICKER_NORM_DATE_PATTERN)
|
|
|
// 日期处理
|
|
|
+ if (status !== 0) {
|
|
|
+ this.confirmLoading = false
|
|
|
+ return
|
|
|
+ }
|
|
|
if (this.BaseTool.String.isBlank(values.id)) {
|
|
|
addOutStoreFormYY(values)
|
|
|
.then(() => {
|