|
@@ -53,7 +53,7 @@
|
|
|
<el-dialog
|
|
|
:title="modalType == 'add' ? '添加' : '编辑'"
|
|
|
v-model="dialogVisible"
|
|
|
- width="500"
|
|
|
+ width="800"
|
|
|
v-loading="loadingOne"
|
|
|
destroy-on-close
|
|
|
>
|
|
@@ -83,7 +83,7 @@
|
|
|
</template>
|
|
|
|
|
|
<template #combination>
|
|
|
- <div>
|
|
|
+ <div style="width: 100%;">
|
|
|
<div
|
|
|
style="
|
|
|
font-size: 14px;
|
|
@@ -1002,14 +1002,16 @@ const changeDay = (type) => {
|
|
|
};
|
|
|
|
|
|
const handleSelect = (row) => {
|
|
|
- const flag = formData.data.productCombinationList.some(
|
|
|
- (x) => x.linkProductId === row.id
|
|
|
- );
|
|
|
- if (flag)
|
|
|
- return ElMessage({
|
|
|
- message: "该产品已选择",
|
|
|
- type: "info",
|
|
|
- });
|
|
|
+ if (formData.data.productCombinationList && formData.data.productCombinationList.length > 0) {
|
|
|
+ const flag = formData.data.productCombinationList.some(
|
|
|
+ (x) => x.linkProductId === row.id
|
|
|
+ );
|
|
|
+ if (flag)
|
|
|
+ return ElMessage({
|
|
|
+ message: "该产品已选择",
|
|
|
+ type: "info",
|
|
|
+ });
|
|
|
+ }
|
|
|
const product = {
|
|
|
linkProductId: row.id,
|
|
|
linkQuantity: "",
|