|
|
@@ -126,13 +126,13 @@ Page({
|
|
|
name: 'collectName',
|
|
|
type: 'drop',
|
|
|
dropType: 'collect'
|
|
|
- },
|
|
|
- // {
|
|
|
- // code: 'collectAmount',
|
|
|
- // type: 'number',
|
|
|
- // title: mixins.$t('totalAmount'),
|
|
|
- // }
|
|
|
- ],
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // code: 'collectAmount',
|
|
|
+ // type: 'number',
|
|
|
+ // title: mixins.$t('totalAmount'),
|
|
|
+ // }
|
|
|
+ ],
|
|
|
|
|
|
other: [{
|
|
|
code: 'remarks',
|
|
|
@@ -204,7 +204,7 @@ Page({
|
|
|
code: 'flag',
|
|
|
title: mixins.$t('antoHandle'),
|
|
|
type: 'checkbox'
|
|
|
- },
|
|
|
+ },
|
|
|
// {
|
|
|
// code: 'need',
|
|
|
// title: mixins.$t('totalAmount'),
|
|
|
@@ -405,7 +405,8 @@ Page({
|
|
|
if (formData.outStatus == Constants.outStatus.outBounded) {
|
|
|
|
|
|
element.outQty = element.itemQty
|
|
|
- element.priceOut = element.priceOut ? element.priceOut : element.priceStandard
|
|
|
+ element.priceOut = element.priceOut != null ? element.priceOut : element.priceStandard
|
|
|
+ console.log();
|
|
|
element.outAmt = element.priceOut * element.itemQty
|
|
|
element.outingAmt = 0 // 已出库金额
|
|
|
element.outingQty = 0 // 已出库数量
|
|
|
@@ -415,7 +416,7 @@ Page({
|
|
|
totalQuantity += Number(element.itemQty)
|
|
|
} else {
|
|
|
element.outingQty = element.itemQty
|
|
|
- element.priceOut = element.priceOut ? element.priceOut : element.priceStandard
|
|
|
+ element.priceOut = element.priceOut != null ? element.priceOut : element.priceStandard
|
|
|
element.outingAmt = element.priceOut * element.itemQty
|
|
|
element.outAmt = 0 // 已出库金额
|
|
|
element.outQty = 0 // 已出库数量
|
|
|
@@ -439,8 +440,8 @@ Page({
|
|
|
//合计金额
|
|
|
card.itemAmt = totalAmout
|
|
|
// card.itemQty = totalQuantity
|
|
|
- // 出库状态-已出库
|
|
|
- if (formData.outStatus == Constants.outStatus.outBounded) {
|
|
|
+ // 出库状态-已出库
|
|
|
+ if (formData.outStatus == Constants.outStatus.outBounded) {
|
|
|
card.itemQty = totalQuantity
|
|
|
} else {
|
|
|
card.outingQty = totalQuantity
|
|
|
@@ -565,4 +566,16 @@ Page({
|
|
|
return this.excute(this.data.service, this.data.service.otheroutBoundInsert, this.data.params)
|
|
|
}
|
|
|
},
|
|
|
+ /**
|
|
|
+ * @desc : 处理保存后续事件
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 姜永辉
|
|
|
+ */
|
|
|
+ handleSaveData() {
|
|
|
+ var pages = getCurrentPages();
|
|
|
+ var prevPage = pages[pages.length - 2]; //上一个页面
|
|
|
+ prevPage.setData({
|
|
|
+ refreshByAdd: true
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|