|
|
@@ -16,7 +16,7 @@ Page({
|
|
|
tableData: [],
|
|
|
choooseInboundItemList: [],
|
|
|
buttonSaveList: [{ code: 'add', title: mixins.$t('confirm'), width: '120rpx', color: '#1B365D' }],
|
|
|
- contentSaveList: [{ code: 'flag', title: '全出', type: 'checkbox' }, { code: 'need', title: '合计金额', type: 'str' }, { code: 'amount', content: 0, type: 'number' }],
|
|
|
+ contentSaveList: [{ code: 'need', title: '合计金额', type: 'str' }, { code: 'amount', content: 0, type: 'number' }],
|
|
|
},
|
|
|
/**
|
|
|
* @desc : 加载数据源
|
|
|
@@ -50,6 +50,7 @@ Page({
|
|
|
setSearchParams(params) {
|
|
|
//销售状态
|
|
|
params.outStatusList = [Constants.outStatus.unOutBound]
|
|
|
+ params.cusId = this.data.item.id
|
|
|
return params
|
|
|
},
|
|
|
|
|
|
@@ -150,7 +151,7 @@ Page({
|
|
|
res.orderItemResponseList.forEach(item => {
|
|
|
if (item.checked) {
|
|
|
item.priceOut = item.priceSale
|
|
|
- // item.outingQty = Number(item.itemQty - item.outQty)
|
|
|
+ item.outingQty = Number(item.itemQty - item.outQty)
|
|
|
item.outingAmt = item.priceOut * item.outingQty
|
|
|
//设置最大值
|
|
|
item['outingQty_min'] = 1
|
|
|
@@ -169,7 +170,7 @@ Page({
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- contentSaveList[2]['content'] = returnTotalAmount.toFixed(2)
|
|
|
+ contentSaveList[1]['content'] = returnTotalAmount.toFixed(2)
|
|
|
|
|
|
this.setData({
|
|
|
choooseInboundItemList: choooseInboundItemList,
|