buhui
This commit is contained in:
parent
a266434c05
commit
2d03273085
|
@ -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 = () => {
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue