|
@@ -481,13 +481,6 @@ export default {
|
|
|
hanldeOk (arr) {
|
|
|
// 门槛产品导入
|
|
|
const resultArr = []
|
|
|
- arr.forEach(item => {
|
|
|
- const obj = {
|
|
|
- productCode: item.productCode,
|
|
|
- productSn: item.product.productSn
|
|
|
- }
|
|
|
- resultArr.push(obj)
|
|
|
- })
|
|
|
if (this.chooseVal == 'a') {
|
|
|
const name = this.chooseVal == 'a' ? 'cill' : this.chooseVal == 'b' ? 'normalPrice' : 'offer'
|
|
|
this.$refs[name + 'Product'].importRow(arr)
|
|
@@ -592,8 +585,8 @@ export default {
|
|
|
provinceDiscountPrice: item.provinceDiscountPriceText,
|
|
|
cityDiscountPrice: item.cityDiscountPriceText,
|
|
|
specialDiscountPrice: item.specialDiscountPriceText,
|
|
|
- unitType: 'SL',
|
|
|
- unitQty: 1,
|
|
|
+ unitType: item.unitType,
|
|
|
+ unitQty: item.unitQty,
|
|
|
provinceDiscountRate: item.provinceDiscountRate ? item.provinceDiscountRate : undefined,
|
|
|
cityDiscountRate: item.cityDiscountRate ? item.cityDiscountRate : undefined,
|
|
|
specialDiscountRate: item.specialDiscountRate ? item.specialDiscountRate : undefined
|