feat: 打印机、商品列表的问题修改
This commit is contained in:
@@ -16,10 +16,14 @@ const modalConfig: IModalConfig<addRequest> = {
|
||||
formAction: function (data) {
|
||||
let obj = { ...data }
|
||||
obj.printType = data.printType.join(',')
|
||||
obj.categoryIds = JSON.stringify(data.categoryIdsArr)
|
||||
obj.categoryList = JSON.stringify(data.categoryIdsArr)
|
||||
// obj.categoryIds = '[' + data.categoryIdsArr.join(',') + ']'
|
||||
return printerApi.add(obj);
|
||||
},
|
||||
beforeSubmit(data) {
|
||||
console.log("提交之前处理", data);
|
||||
|
||||
},
|
||||
formItems: [
|
||||
{
|
||||
@@ -128,6 +132,14 @@ const modalConfig: IModalConfig<addRequest> = {
|
||||
options: options.classifyPrint,
|
||||
initialValue: options.classifyPrint[0].value
|
||||
},
|
||||
{
|
||||
type: "custom",
|
||||
slotName: 'classifyPrintData',
|
||||
prop: "categoryIdsArr",
|
||||
label: "",
|
||||
initialValue: []
|
||||
},
|
||||
|
||||
{
|
||||
type: "radio",
|
||||
label: "打印数量",
|
||||
|
||||
Reference in New Issue
Block a user