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,13 +1023,13 @@ 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: "售价",
|
||||
params: "price",
|
||||
keydown: (e, data,el) => {
|
||||
keydown: (e, data, el) => {
|
||||
if (e.key !== "Enter") return;
|
||||
data.tableData.forEach((item) => {
|
||||
item.price = el.search;
|
||||
|
@ -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({
|
||||
|
@ -1121,7 +1121,7 @@ const specificationSubmit = (row) => {
|
|||
priceList.fixPrice.map((item) => {
|
||||
console.log(item, "itemmm");
|
||||
if (item.type === "edit") {
|
||||
item.specification_list =specification_list;
|
||||
item.specification_list = specification_list;
|
||||
} else if (item.type === "el-table") {
|
||||
item.tabelList = [...tabelList, ...item.tabelList];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue