修改商品模块,删除商品条码的时候增加传值
This commit is contained in:
@@ -189,7 +189,8 @@
|
|||||||
:rowSelection="true"
|
:rowSelection="true"
|
||||||
:actionButton="true"
|
:actionButton="true"
|
||||||
@valueChange="onValueChange"
|
@valueChange="onValueChange"
|
||||||
@added="onAdded">
|
@added="onAdded"
|
||||||
|
@deleted="onDeleted">
|
||||||
<template #buttonAfter>
|
<template #buttonAfter>
|
||||||
<a-button @click="batchSetPrice('purchase')">采购价-批量</a-button>
|
<a-button @click="batchSetPrice('purchase')">采购价-批量</a-button>
|
||||||
<a-button style="margin-left: 8px" @click="batchSetPrice('commodity')">零售价-批量</a-button>
|
<a-button style="margin-left: 8px" @click="batchSetPrice('commodity')">零售价-批量</a-button>
|
||||||
@@ -316,6 +317,7 @@
|
|||||||
switchDisabled: false, //开关的启用状态
|
switchDisabled: false, //开关的启用状态
|
||||||
barCodeSwitch: false, //生成条码开关
|
barCodeSwitch: false, //生成条码开关
|
||||||
maxBarCodeInfo: '', //最大条码
|
maxBarCodeInfo: '', //最大条码
|
||||||
|
meDeleteIdList: [], //删除条码信息的id数组
|
||||||
prefixNo: 'material',
|
prefixNo: 'material',
|
||||||
sku: {
|
sku: {
|
||||||
manyColor: '多颜色',
|
manyColor: '多颜色',
|
||||||
@@ -653,6 +655,7 @@
|
|||||||
} else {
|
} else {
|
||||||
formData.imgName = ''
|
formData.imgName = ''
|
||||||
}
|
}
|
||||||
|
formData.meDeleteIdList = this.meDeleteIdList
|
||||||
//接口调用
|
//接口调用
|
||||||
let url = this.url.add, method = 'post'
|
let url = this.url.add, method = 'post'
|
||||||
if (this.model.id) {
|
if (this.model.id) {
|
||||||
@@ -810,6 +813,9 @@
|
|||||||
this.maxBarCodeInfo = this.maxBarCodeInfo + 1
|
this.maxBarCodeInfo = this.maxBarCodeInfo + 1
|
||||||
target.setValues([{rowKey: row.id, values: {barCode: this.maxBarCodeInfo, commodityUnit: unit?unit:''}}])
|
target.setValues([{rowKey: row.id, values: {barCode: this.maxBarCodeInfo, commodityUnit: unit?unit:''}}])
|
||||||
},
|
},
|
||||||
|
onDeleted(value) {
|
||||||
|
this.meDeleteIdList = (value)
|
||||||
|
},
|
||||||
//单元值改变一个字符就触发一次
|
//单元值改变一个字符就触发一次
|
||||||
onValueChange(event) {
|
onValueChange(event) {
|
||||||
const { type, row, column, value, target } = event
|
const { type, row, column, value, target } = event
|
||||||
|
|||||||
Reference in New Issue
Block a user