|
|
@@ -237,6 +237,7 @@ export default {
|
|
|
cancelButtonText: '放弃',
|
|
|
type: 'warning'
|
|
|
}).then(async () => {
|
|
|
+ if (this.tableData.some(v => v.location === '')) return this.$message.warning('藏品位置不能为空')
|
|
|
if (this.fromData.textarea.trim() === '') return this.$message.warning('入库说明不能为空')
|
|
|
// 发请求
|
|
|
await holding1submit(obj)
|
|
|
@@ -255,6 +256,7 @@ export default {
|
|
|
},
|
|
|
// 点击提交
|
|
|
async submit () {
|
|
|
+ if (this.tableData.some(v => v.location === '')) return this.$message.warning('藏品位置不能为空')
|
|
|
if (this.fromData.textarea.trim() === '') return this.$message.warning('入库说明不能为空')
|
|
|
const obj = { description: this.fromData.textarea, goodsIds: this.goodsIds.join(','), id: this.mydata.id, status: 1, location: this.location }
|
|
|
// console.log(999, obj)
|