|
|
|
@ -112,24 +112,25 @@ const actions = {
|
|
|
|
|
if (data.limit === 0) {
|
|
|
|
|
delete data.singleBuyLimit;
|
|
|
|
|
}
|
|
|
|
|
data.virtualProductModifyDTOList = [
|
|
|
|
|
...data.fileList.map((item) => {
|
|
|
|
|
data.virtualProductModifyDTOList = data.fileList.map((item) => {
|
|
|
|
|
return {
|
|
|
|
|
shipType: 1,
|
|
|
|
|
shipContent: item,
|
|
|
|
|
};
|
|
|
|
|
}),
|
|
|
|
|
{
|
|
|
|
|
});
|
|
|
|
|
if (data.autoSend) {
|
|
|
|
|
data.virtualProductModifyDTOList.push({
|
|
|
|
|
shipType: 2,
|
|
|
|
|
shipContent: data.autoSend,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
let res = await save(data);
|
|
|
|
|
if (res) {
|
|
|
|
|
ElMessage.success('保存成功');
|
|
|
|
|
dispatch('search');
|
|
|
|
|
} else {
|
|
|
|
|
ElMessage.error('保存失败');
|
|
|
|
|
res = null;
|
|
|
|
|
}
|
|
|
|
|
return res;
|
|
|
|
|
},
|
|
|
|
|