diff --git a/ruoyi-ui/src/views/measurement/operation/outinpound/index.vue b/ruoyi-ui/src/views/measurement/operation/outinpound/index.vue index ad8ea31..37b73b5 100644 --- a/ruoyi-ui/src/views/measurement/operation/outinpound/index.vue +++ b/ruoyi-ui/src/views/measurement/operation/outinpound/index.vue @@ -49,7 +49,7 @@ {{ dict.label }} - 生成榜单 + 生成榜单 获取重量 - (停止/启动)获取 + 称毛重 称皮重 @@ -86,7 +86,7 @@ v-model="form.crtdt" type="date" value-format="yyyy-MM-dd" - placeholder="请选择创建时间" + placeholder="" readonly > @@ -98,7 +98,7 @@ v-model="form.srcbsndt" type="date" value-format="yyyy-MM-dd" - placeholder="请选择创建时间" + placeholder="" readonly > @@ -106,7 +106,7 @@ - @@ -125,7 +125,7 @@ - @@ -139,7 +139,7 @@ - @@ -177,7 +177,7 @@ - @@ -191,7 +191,7 @@ - + @@ -201,7 +201,7 @@ - @@ -229,7 +229,7 @@ @@ -317,7 +317,7 @@
- 历史皮重 + 历史皮重
{ - var number = response.data; + debugger; + var number = response.data.number; this.form.usrcode = number +"|"+this.form.carno; + this.form.crtdt = response.data.date; }) }, //过皮申请单击选中,并将车号进行赋值。 @@ -598,6 +617,8 @@ export default { } //将当前过皮申请的磅单赋值到字段上 this.form.usrcode = row.usrcode; + //制单时间进行赋值 + this.form.crtdt = row.crtdt; }, // 生成随机重量(两位小数,避免精度问题) handleGetweight() { @@ -628,7 +649,7 @@ export default { } this.handleSearchPoundappli(); this.handleSearchTareappli(); - if (this.poundappliList.length > 0){ + if (this.tareappliList.length > 0){ this.activeTab = 'tareRequest'; }else { this.activeTab = 'weighingRequest'; @@ -642,9 +663,12 @@ export default { isinuse:"Y", bllstate:"1" }; + thisqueryParams.pageNo = this.queryPageParams.weighingRequest.pageNum; + thisqueryParams.pageSize = this.queryPageParams.weighingRequest.pageSize; thisqueryParams.carno = this.queryParams.carno; listPoundappli(thisqueryParams).then(response => { this.poundappliList = response.rows; + this.queryPageParams.weighingRequest.total = response.total; this.loading = false; }) }, @@ -656,9 +680,12 @@ export default { isinuse:"Y", billstate:"1" }; + thisqueryParams.pageNo = this.queryPageParams.tareRequest.pageNum; + thisqueryParams.pageSize = this.queryPageParams.tareRequest.pageSize; thisqueryParams.carno = this.queryParams.carno; listPoundbill(thisqueryParams).then(response => { this.tareappliList = response.rows; + this.queryPageParams.tareRequest.total = response.total; this.loading = false; }) }, @@ -686,6 +713,7 @@ export default { } if (this.form.wghmqty == undefined || this.form.wghmqty == ""){ this.$message.error("请先获取毛重!(双击过磅申请)"); + return; } // 弹出确认框 @@ -705,6 +733,8 @@ export default { // 磅单号 transData.usrcode = this.form.usrcode; + //备注数据 + transData.remark = this.form.remark; // 磅点信息 transData.poundid = this.truepoundData.id; @@ -733,6 +763,8 @@ export default { // 磅单号 transData.usrcode = this.form.usrcode; + //备注数据 + transData.remark = this.form.remark; // 磅点信息 transData.poundid = this.truepoundData.id; @@ -753,7 +785,7 @@ export default { //称皮重方法 getempqty() { //先写出厂磅的逻辑 - this.$modal.confirm('车号为:' + this.form.carno + '",皮重为:' + this.queryParams.weight).then(() => { + this.$modal.confirm('车号为:' + this.form.carno + ',皮重为:' + this.queryParams.weight).then(() => { if(this.queryParams.poundtype == "1"){ var transData = {}; transData.carno = this.form.carno; @@ -775,9 +807,16 @@ export default { this.$message.error("请先选择过皮申请!"); return; } + //根据磅单号来判断是否双击了过皮申请。 + var poundbill = this.form.usrcode; + if (poundbill === undefined || poundbill === ""){ + this.$message.error("请双击过皮申请!"); + return; + } //获取选中的过皮申请的id var transData = {}; transData.id = selection[0].id; + transData.carno = this.queryParams.carno; //获取皮重,净重,扣减吨位。 transData.empmqty = this.form.empmqty; transData.netmqty = this.form.netmqty;