shish %!s(int64=4) %!d(string=hai) anos
pai
achega
3c720e8008
Modificáronse 1 ficheiros con 25 adicións e 7 borrados
  1. 25 7
      hdPad/src/pages/home/components/console.vue

+ 25 - 7
hdPad/src/pages/home/components/console.vue

@@ -110,7 +110,30 @@ export default {
 	},
     methods:{
         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(){
 			this.$refs.gatheringRef.close()
@@ -190,12 +213,7 @@ export default {
 			this.$util.hitVoice()
 		},
 		toWastage(){
-			this.$util.hitVoice()
-			if(this.$util.isEmpty(this.selectList)) {
-				this.$msg('请选择报损花材')
-				return false
-			}
-			this.$refs.wastageRef.open('center')
+			this.takeItem('1-577')
 		},
 		confirmWastage(){
 			this.$util.hitVoice()