|
@@ -260,13 +260,14 @@
|
|
|
<template #title>
|
|
|
<!-- <TitleInfo :content="'主材'"></TitleInfo> -->
|
|
|
<div style="font-size:14px;font-weight:700;padding-left:25px;width:300px">
|
|
|
- 产品编码:{{product.productCode}}
|
|
|
+ 产品编码:{{product.productCode || '定制产品'}}
|
|
|
</div>
|
|
|
<el-form-item label="数量" class="margin-b-0" style="width:300px !important;" :prop="'quotationProductList.' +index + '.quantity'"
|
|
|
:rules="rules.quantity" :inline-message="true" @click.stop>
|
|
|
<el-input-number v-model="product.quantity" placeholder="请输入" style="width: 100%" :precision="0" :controls="false" :min="1"
|
|
|
onmousewheel="return false;" />
|
|
|
</el-form-item>
|
|
|
+ <el-button text type="primary" style="margin-left:10px" @click="handleRemove(index)">删除</el-button>
|
|
|
</template>
|
|
|
<div style="width:100%">
|
|
|
<div style="margin:10px 0">
|
|
@@ -433,7 +434,8 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="折叠数" class="wid100" v-if="product.isFold==1">
|
|
|
+ <el-form-item label="折叠数" class="wid100" :prop="'quotationProductList.' +index + '.foldWay'" v-if="product.isFold==1"
|
|
|
+ :rules="product.isFold==1?rules.foldWay:''">
|
|
|
<el-select v-model="product.foldWay" placeholder="请选择" style="width:100%">
|
|
|
<el-option v-for="item in foldWayData" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" />
|
|
|
</el-select>
|
|
@@ -1413,6 +1415,7 @@ const rules = ref({
|
|
|
technologyId: [
|
|
|
{ required: true, message: "请选择工艺产线", trigger: "change" },
|
|
|
],
|
|
|
+ foldWay: [{ required: true, message: "请选择折叠数", trigger: "change" }],
|
|
|
remark: [{ required: true, message: "请输入备注", trigger: "blur" }],
|
|
|
});
|
|
|
|
|
@@ -1580,6 +1583,7 @@ const selectProduct = (row) => {
|
|
|
quotationProductBomList: goods.productBomDetailList,
|
|
|
quotationProductCustomInfoList: quotationProductCustomInfoList,
|
|
|
});
|
|
|
+ activeNames.value.push(formData.data.quotationProductList.length - 1);
|
|
|
proxy.msgTip("添加成功", 1);
|
|
|
} else {
|
|
|
return proxy.msgTip("该产品未配置BOM", 2);
|
|
@@ -1619,6 +1623,7 @@ const clickPushProduct = () => {
|
|
|
quotationProductCustomInfoList: quotationProductCustomInfoList,
|
|
|
});
|
|
|
proxy.msgTip("添加成功", 1);
|
|
|
+ activeNames.value.push(formData.data.quotationProductList.length - 1);
|
|
|
};
|
|
|
// const selectProduct = (goods) => {
|
|
|
// if (goods && goods.id) {
|
|
@@ -1849,14 +1854,19 @@ const handleSubmit = (type) => {
|
|
|
if (iele.packAsk) {
|
|
|
iele.packAsk = iele.packAsk.join(",");
|
|
|
}
|
|
|
+
|
|
|
if (
|
|
|
iele.quotationProductCustomInfoList &&
|
|
|
iele.quotationProductCustomInfoList.length > 0
|
|
|
) {
|
|
|
+ let checkNum = 0;
|
|
|
for (let j = 0; j < iele.quotationProductCustomInfoList.length; j++) {
|
|
|
let jele = iele.quotationProductCustomInfoList[j];
|
|
|
jele.isCheck = jele.isCheckBox ? 1 : 0;
|
|
|
if (jele.isCheckBox) {
|
|
|
+ checkNum += 1;
|
|
|
+ }
|
|
|
+ if (jele.isCheckBox) {
|
|
|
if (!(jele.fileList && jele.fileList.length > 0)) {
|
|
|
return proxy.msgTip(
|
|
|
`请上传第${i + 1}条数据的${getLabel(jele.type)}附件`,
|
|
@@ -1865,6 +1875,9 @@ const handleSubmit = (type) => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if (checkNum == 0) {
|
|
|
+ return proxy.msgTip(`请至少勾选一个第${i + 1}条数据的定制内容`, 2);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
submitLoading.value = true;
|