1.铁水磅前端界面调整。

2.倒短磅前端界面完善。
This commit is contained in:
xiaosuonian 2025-07-01 15:16:23 +08:00
parent 6c0631e31d
commit c76854cb9f
3 changed files with 1061 additions and 230 deletions

View File

@ -648,6 +648,9 @@ export default {
name: [
{ required: true, message: "磅点名称不能为空", trigger: "blur" }
],
buspoundid: [
{ required: true, message: "业务磅点不能为空", trigger: "blur" }
],
}
}
},

View File

@ -147,7 +147,7 @@
>
<el-table-column type="selection" width="55" align="center" />
<!-- <el-table-column label="打印次数" align="center" prop="id" />-->
<el-table-column label="单号" align="center" prop="usrcode" />
<el-table-column label="单号" align="center" prop="usrcode" width="180"/>
<el-table-column label="榜单日期" align="center" prop="bsndt" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.bsndt, '{y}-{m}-{d}') }}</span>
@ -317,7 +317,7 @@
:total="queryPageParams.poundBillDetail.total"
:page.sync="queryPageParams.poundBillDetail.pageNum"
:limit.sync="queryPageParams.poundBillDetail.pageSize"
@pagination="handleSearchTareappli"
@pagination="queryPoundBillDetail"
/>
</el-col>
<el-col :span="activeTab === 'tareRequest'? 24 : 16"
@ -897,6 +897,7 @@ export default {
//
rules: {
},
//
truepoundData:{},
//
empPoundFormData:{
@ -1033,9 +1034,9 @@ watch: {
handleMstSelectionChange(selection) {
if (selection.length > 0){
this.mstBillFormData.selectedIds = selection.map(item => item.id)
var mstId = this.mstBillFormData.selectedIds[0];
debugger
this.queryPoundBillDetail(mstId);
this.queryPoundBillDetailFirst();
}else {
this.mstBillFormData.selectedIds = [];
}
},
//
@ -1106,6 +1107,8 @@ watch: {
},
//,1
handleSearchMstBillFirst(){
//
if (!this.checkPoundSelected())return;
this.queryPageParams.mstBill.pageNum = 1;
this.handleSearchMstBill();
},
@ -1153,6 +1156,11 @@ watch: {
getMstBillDataById(){
debugger;
const id = this.mstBillFormData.selectedIds[0];
//idnull
if (id == null || id === "") {
this.$message.error("请选择主榜单!");
return;
}
this.resetMstBillForm();
getPoundmst(id).then(response => {
this.mstBillFormData.mstBillForm = response.data;
@ -1207,13 +1215,23 @@ watch: {
this.poundBillDetailFormData.thisSelectedRow = row;
},
//1
queryPoundBillDetailFirst(){
this.queryPageParams.poundBillDetail.pageNum = 1;
this.queryPoundBillDetail();
},
//ID
queryPoundBillDetail(id){
queryPoundBillDetail(){
//
if (this.mstBillFormData.selectedIds.length === 0) {
this.$message.error("请先选择主榜单!");
return;
}
var thisQueryParams = {
billstate:"1",
isinuse:"Y"
}
thisQueryParams.appliid = id;
thisQueryParams.appliid = this.mstBillFormData.selectedIds[0];
listPoundbill(thisQueryParams).then(response => {
this.queryPageParams.poundBillDetail.total = response.total;
this.poundBillDetailList = response.rows;
@ -1304,7 +1322,7 @@ watch: {
this.$message.success("新增榜单明细成功!");
this.poundBillDetailFormData.poundBillDetailOpen = false;
//
this.queryPoundBillDetail(this.mstBillFormData.selectedIds[0]);
this.queryPoundBillDetailFirst();
})
}).catch(() => {});
} else {
@ -1374,7 +1392,7 @@ watch: {
this.$message.success("榜单明细称皮重成功!");
this.poundBillDetailFormData.poundBillDetailOpen = false;
//
this.queryPoundBillDetail(this.mstBillFormData.selectedIds[0]);
this.queryPoundBillDetailFirst();
})
}).catch(() => {});
} else {
@ -1382,7 +1400,7 @@ watch: {
this.$message.success("榜单明细称皮重成功!");
this.poundBillDetailFormData.poundBillDetailOpen = false; //
//
this.queryPoundBillDetail(this.mstBillFormData.selectedIds[0]);
this.queryPoundBillDetailFirst();
});
}
}
@ -1396,6 +1414,13 @@ watch: {
},
//
handleQueryPoundBillFullList(){
//
if (!this.checkPoundSelected())return;
//
if (this.mstBillFormData.selectedIds.length === 0) {
this.$message.error("请先选择主榜单!");
return;
}
this.poundBillFullLoading = true;
var thisqueryParams = {
billstate:"2",