diff --git a/pages/hdyy/scgl/lt-weight.vue b/pages/hdyy/scgl/lt-weight.vue index 351f9c5..971e1fd 100644 --- a/pages/hdyy/scgl/lt-weight.vue +++ b/pages/hdyy/scgl/lt-weight.vue @@ -25,6 +25,14 @@ /> + + + 毛重 + + + + + 总数量 @@ -69,8 +77,8 @@ - - + + @@ -90,6 +98,7 @@ val1: '', val2: '', num: null, + weight: null, pkId: '', pkObj: {}, dataList: [], @@ -104,6 +113,10 @@ toEmpty () { this.val1 = '' this.val2 = '' + this.num = null + this.weight = null + this.pkId = '' + this.pkObj = {} this.dataList = [] this.disabled = false }, @@ -131,12 +144,12 @@ }, async _manualInbound () { this.disabled = true - if (!this.pkId || !this.val2 || !this.val1 || !this.num) { + if (!this.pkId || !this.val2 || !this.val1 || !this.num || !this.weight) { this.disabled = false return } try { - let res = await manualInbound(this.pkObj, this.val2, this.val1, this.num) + let res = await manualInbound(this.pkObj, this.val2, this.val1, this.num, this.weight) if (res) { uni.showToast({ title: res.message, @@ -151,12 +164,12 @@ }, async _manualOutbound () { this.disabled = true - if (!this.pkId || !this.val2 || !this.val1 || !this.num) { + if (!this.pkId || !this.val2 || !this.val1 || !this.num || !this.weight) { this.disabled = false return } try { - let res = await manualOutbound(this.pkObj, this.val2, this.val1, this.num) + let res = await manualOutbound(this.pkObj, this.val2, this.val1, this.num, this.weight) if (res) { uni.showToast({ title: res.message, diff --git a/utils/getData3.js b/utils/getData3.js index cda46c4..6ea7938 100644 --- a/utils/getData3.js +++ b/utils/getData3.js @@ -306,14 +306,14 @@ export const getTaskBucketGroupInfo = (vcode) => request({ data: {vehicle_code: vcode} }) // 入站 -export const manualInbound = (row, cpoint, vcode, total) => request({ +export const manualInbound = (row, cpoint, vcode, total, weight) => request({ url:'api/pdaProduction/manualInbound', - data: {row: row, current_point: cpoint, vehicle_code: vcode, total: total} + data: {row: row, current_point: cpoint, vehicle_code: vcode, total: total, weight: weight} }) // 出站 -export const manualOutbound = (row, cpoint, vcode, total) => request({ +export const manualOutbound = (row, cpoint, vcode, total, weight) => request({ url:'api/pdaProduction/manualOutbound', - data: {row: row, current_point: cpoint, vehicle_code: vcode, total: total} + data: {row: row, current_point: cpoint, vehicle_code: vcode, total: total, weight: weight} })