This commit is contained in:
qiaopengfei 2024-07-26 13:43:42 +08:00
parent a266434c05
commit 2d03273085
2 changed files with 8 additions and 8 deletions

View File

@ -213,7 +213,7 @@ const submitForm = () => {
return ElMessage.warning("没有添加任何规格属性!");
if (!specification_list.value.every((item) => item.valueGrop.length))
return ElMessage.warning("添加规格后至少添加一个属性值!");
$emit("specificationSubmit", specification_list);
$emit("specificationSubmit", specification_list.value);
specificationClose();
};
const specificationClose = () => {

View File

@ -951,7 +951,7 @@ const specificationClose = () => {
};
const specificationSubmit = (row) => {
ruleFormRef.value.resetFields();
if (!row._value) return;
if (!row) return;
const specification_list = [];
const tabelList = [];
priceList.fixPrice = [
@ -970,7 +970,7 @@ const specificationSubmit = (row) => {
label: "编辑",
handler: () => {
priceList.specificationDialogVisible = true;
priceList.specification_arr = row._value;
priceList.specification_arr = row;
},
},
{
@ -1023,8 +1023,8 @@ const specificationSubmit = (row) => {
{
type: "el-table",
label: "销售规格",
tableData: generateCombinations(row._value),
new_tableData: generateCombinations(row._value),
tableData: generateCombinations(row),
new_tableData: generateCombinations(row),
tabelList: [
{
label: "售价",
@ -1066,7 +1066,7 @@ const specificationSubmit = (row) => {
options: [{ label: "888", value: 6 }],
},
];
row._value.forEach((item) => {
row.forEach((item) => {
specification_list.push({ key: item.label, value: item.valueGrop });
tabelList.push({