|
|
@@ -315,6 +315,10 @@ Page({
|
|
|
if (item.skuImages) {
|
|
|
item['imagesUrl'] = item.skuImages.length > 0 ? item.skuImages[0].url : null
|
|
|
}
|
|
|
+ if (item.flgSubUnit) {
|
|
|
+ item.calculationFormula = item.packBox + item.unitName + '= 1' + item.subUnitName
|
|
|
+ item.packageBox = item['outingBox'] + item.subUnitName + item['outingPiece'] + item.unitName
|
|
|
+ }
|
|
|
let btnFormData = JSON.parse(this.data.btnFormData)
|
|
|
//销售订单、销售出库、采购退货-自动出库或者办理时要读取系统参数【欠货开单】开启就不判断库存,调取后台自动生成对应入库单
|
|
|
if (btnFormData.flag && this.data.flgBackStockInvoicingSetting) {
|
|
|
@@ -460,12 +464,7 @@ Page({
|
|
|
cardList[1].sumStandard = data.sumStandard
|
|
|
cardList[1].sumQuantity = data.sumQuantity
|
|
|
cardList[1].saleDiscount = data.saleDiscount
|
|
|
- data.goodsList.forEach(element => {
|
|
|
- if (element.flgSubUnit) {
|
|
|
- element.calculationFormula = element.packBox + element.unitName + '= 1' + element.subUnitName
|
|
|
- element.packageBox = element['outingBox'] + element.subUnitName + element['outingPiece'] + element.unitName
|
|
|
- }
|
|
|
- });
|
|
|
+
|
|
|
this.setData({
|
|
|
cardList: cardList,
|
|
|
formData: JSON.stringify(data)
|