Commit 22176a3b authored by Marcus's avatar Marcus

【箱明细】后台入仓/备货模块,新建/编辑箱明细,品名和品牌需设置为必填项,其他为非必填

https://zentao.test.jdshangmen.com/bug-view-5373.html
parent 68a0206f
......@@ -142,6 +142,20 @@ export default {
.catch(_ => {});
},
handleSave() {
for (let i = 0; i < this.dataList.length; i++) {
if (!this.dataList[i].prodId) {
return this.$notify({
title: '明细' + (i + 1) + ': ' + '请选择品名',
type: "warning"
})
}
if (!this.dataList[i].brand) {
return this.$notify({
title: '明细' + (i + 1) + ': ' + '请选择品牌',
type: "warning"
})
}
}
this.$emit('input', this.dataList)
this.dialogVisible = false
}
......
......@@ -6,12 +6,12 @@
</div>
<el-row :gutter="10">
<el-col :span="12">
<el-form-item :label="$t('中文品名')">
<el-form-item :label="$t('中文品名')" required>
<product-selector v-model="value.prodId" @change="onProductChange" determined :disabled="readonly" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item :label="$t('品牌')">
<el-form-item :label="$t('品牌')" required>
<el-select
v-model="value.brand"
:placeholder="$t('可修改')"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment