|
@@ -110,7 +110,30 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
addToClear(){
|
|
addToClear(){
|
|
|
- this.settleCommit()
|
|
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ hasPay: 0,
|
|
|
|
|
+ payWay:0,
|
|
|
|
|
+ needPrint:2,
|
|
|
|
|
+ freight: '',
|
|
|
|
|
+ groupName:'',
|
|
|
|
|
+ remark:'',
|
|
|
|
|
+ sendCost:0,
|
|
|
|
|
+ modifyPrice:0,
|
|
|
|
|
+ getStaffName:''
|
|
|
|
|
+ }
|
|
|
|
|
+ if(this.$util.isEmpty(this.selectList)){
|
|
|
|
|
+ this.$msg('请选择商品')
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ let price = 0
|
|
|
|
|
+ for (const ele of this.selectList) {
|
|
|
|
|
+ let currentPrice = Number(ele.currentNum) * Number(ele.unitPrice)
|
|
|
|
|
+ currentPrice = currentPrice.toFixed(2)
|
|
|
|
|
+ price = Number(currentPrice) + Number(price)
|
|
|
|
|
+ price = price.toFixed(2)
|
|
|
|
|
+ }
|
|
|
|
|
+ params.modifyPrice = price
|
|
|
|
|
+ this.settleCommit(params)
|
|
|
},
|
|
},
|
|
|
cancelSelectPrice(){
|
|
cancelSelectPrice(){
|
|
|
this.$refs.gatheringRef.close()
|
|
this.$refs.gatheringRef.close()
|
|
@@ -190,12 +213,7 @@ export default {
|
|
|
this.$util.hitVoice()
|
|
this.$util.hitVoice()
|
|
|
},
|
|
},
|
|
|
toWastage(){
|
|
toWastage(){
|
|
|
- this.$util.hitVoice()
|
|
|
|
|
- if(this.$util.isEmpty(this.selectList)) {
|
|
|
|
|
- this.$msg('请选择报损花材')
|
|
|
|
|
- return false
|
|
|
|
|
- }
|
|
|
|
|
- this.$refs.wastageRef.open('center')
|
|
|
|
|
|
|
+ this.takeItem('1-577')
|
|
|
},
|
|
},
|
|
|
confirmWastage(){
|
|
confirmWastage(){
|
|
|
this.$util.hitVoice()
|
|
this.$util.hitVoice()
|