1.出厂入厂磅调整。

This commit is contained in:
xiaosuonian 2025-06-18 17:15:46 +08:00
parent 9288155070
commit 4598107db6
1 changed files with 57 additions and 18 deletions

View File

@ -49,7 +49,7 @@
<el-radio-group v-model="queryParams.weighttype"> <el-radio-group v-model="queryParams.weighttype">
<el-radio v-for="dict in dict.type.weighttype" :key="dict.value" :label="dict.value">{{ dict.label }}</el-radio> <el-radio v-for="dict in dict.type.weighttype" :key="dict.value" :label="dict.value">{{ dict.label }}</el-radio>
</el-radio-group> </el-radio-group>
<el-button type="primary" size="mini" @click="handleQuery" style="width: 78px">生成榜单</el-button> <el-button type="primary" size="mini" @click="" style="width: 78px">生成榜单</el-button>
</el-form-item> </el-form-item>
<el-form-item label="车号" prop="carno"> <el-form-item label="车号" prop="carno">
<el-input <el-input
@ -70,7 +70,7 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" size="mini" @click="handleGetweight">获取重量</el-button> <el-button type="primary" size="mini" @click="handleGetweight">获取重量</el-button>
<el-button type="primary" size="mini" @click="handleStopTimer">停止/启动获取</el-button> <!-- <el-button type="primary" size="mini" @click="handleStopTimer">停止/启动获取</el-button>-->
<el-button type="primary" size="mini" @click="getwghqty" :disabled="this.queryParams.carno =='' || this.queryParams.carno == null || this.activeTab != 'weighingRequest'">称毛重</el-button> <el-button type="primary" size="mini" @click="getwghqty" :disabled="this.queryParams.carno =='' || this.queryParams.carno == null || this.activeTab != 'weighingRequest'">称毛重</el-button>
<el-button type="primary" size="mini" @click="getempqty" :disabled="this.queryParams.carno =='' || this.queryParams.carno == null">称皮重</el-button> <el-button type="primary" size="mini" @click="getempqty" :disabled="this.queryParams.carno =='' || this.queryParams.carno == null">称皮重</el-button>
</el-form-item> </el-form-item>
@ -86,7 +86,7 @@
v-model="form.crtdt" v-model="form.crtdt"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="请选择创建时间" placeholder=""
readonly readonly
> >
</el-date-picker> </el-date-picker>
@ -98,7 +98,7 @@
v-model="form.srcbsndt" v-model="form.srcbsndt"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="请选择创建时间" placeholder=""
readonly readonly
> >
</el-date-picker> </el-date-picker>
@ -106,7 +106,7 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="车号" prop="carno"> <el-form-item label="车号" prop="carno">
<el-input v-model="form.carno" placeholder="请输入车号" <el-input v-model="form.carno" placeholder=""
readonly readonly
/> />
</el-form-item> </el-form-item>
@ -125,7 +125,7 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="原磅单号" prop="srcpunmqty"> <el-form-item label="原磅单号" prop="srcpunmqty">
<el-input v-model="form.srcpunmqty" placeholder="请输入原磅单号" <el-input v-model="form.srcpunmqty" placeholder=""
readonly readonly
/> />
</el-form-item> </el-form-item>
@ -139,7 +139,7 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="规格" prop="specification"> <el-form-item label="规格" prop="specification">
<el-input v-model="form.specification" placeholder="请输入规格" <el-input v-model="form.specification" placeholder=""
readonly readonly
/> />
</el-form-item> </el-form-item>
@ -177,7 +177,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="收货单位" prop="recentname"> <el-form-item label="收货单位" prop="recentname">
<el-input v-model="form.recentname" placeholder="请输入收货单位" <el-input v-model="form.recentname" placeholder=""
readonly readonly
/> />
</el-form-item> </el-form-item>
@ -191,7 +191,7 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="扣吨比例" prop="ductmqtypre"> <el-form-item label="扣吨比例" prop="ductmqtypre">
<el-input v-model="form.ductmqtypre" placeholder="请输入扣吨比例" /> <el-input v-model="form.ductmqtypre" placeholder="" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -201,7 +201,7 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="承运单位" prop="trnentname"> <el-form-item label="承运单位" prop="trnentname">
<el-input v-model="form.trnentname" placeholder="请输入承运单位" <el-input v-model="form.trnentname" placeholder=""
readonly readonly
/> />
</el-form-item> </el-form-item>
@ -229,7 +229,7 @@
<el-table style="width: 950px; display: inline-block;float:left;" <el-table style="width: 950px; display: inline-block;float:left;"
v-loading="loading" v-loading="loading"
:data="poundappliList" :data="poundappliList"
v-if="activeTab === 'weighingRequest'" v-show="activeTab === 'weighingRequest'"
border border
stripe stripe
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@ -260,7 +260,7 @@
<el-table style="width: 950px; display: inline-block;float:left;" <el-table style="width: 950px; display: inline-block;float:left;"
v-loading="loading" v-loading="loading"
:data="tareappliList" :data="tareappliList"
v-if="activeTab === 'tareRequest'" v-show="activeTab === 'tareRequest'"
border border
stripe stripe
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@ -302,7 +302,7 @@
<el-table style="width: 950px; display: inline-block;float:left;" <el-table style="width: 950px; display: inline-block;float:left;"
v-loading="loading" v-loading="loading"
:data="outinpoundList" :data="outinpoundList"
v-if="activeTab === 'weightInfo'" v-show="activeTab === 'weightInfo'"
border border
stripe stripe
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
@ -317,7 +317,7 @@
<!-- 右下部分历史皮重 --> <!-- 右下部分历史皮重 -->
<div style=" width: 500px; display: inline-block;float:left;position: relative;top: -29px;"> <div style=" width: 500px; display: inline-block;float:left;position: relative;top: -29px;">
<div> <div>
<el-button class="transition-all duration-200" type="primary" size="mini" @click="handleQuery">历史皮重</el-button> <el-button class="transition-all duration-200" type="primary" size="mini" @click="">历史皮重</el-button>
</div> </div>
<div > <div >
<el-table v-loading="historyPoundLoading" <el-table v-loading="historyPoundLoading"
@ -421,10 +421,27 @@ export default {
truepoundData: { truepoundData: {
}, },
//
queryPageParams: {
weighingRequest:{
total:0,
pageNum:1,
pageSize:10
},
tareRequest:{
total:0,
pageNum:1,
pageSize:10
},
weightInfo:{
total:0,
pageNum:1,
pageSize:10
},
},
} }
}, },
created() { created() {
this.getList()
}, },
watch: { watch: {
// //
@ -557,8 +574,10 @@ export default {
this.form.wghmqty = this.queryParams.weight; this.form.wghmqty = this.queryParams.weight;
// //
getPoundNumber().then(response => { getPoundNumber().then(response => {
var number = response.data; debugger;
var number = response.data.number;
this.form.usrcode = number +"|"+this.form.carno; 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.usrcode = row.usrcode;
//
this.form.crtdt = row.crtdt;
}, },
// //
handleGetweight() { handleGetweight() {
@ -628,7 +649,7 @@ export default {
} }
this.handleSearchPoundappli(); this.handleSearchPoundappli();
this.handleSearchTareappli(); this.handleSearchTareappli();
if (this.poundappliList.length > 0){ if (this.tareappliList.length > 0){
this.activeTab = 'tareRequest'; this.activeTab = 'tareRequest';
}else { }else {
this.activeTab = 'weighingRequest'; this.activeTab = 'weighingRequest';
@ -642,9 +663,12 @@ export default {
isinuse:"Y", isinuse:"Y",
bllstate:"1" bllstate:"1"
}; };
thisqueryParams.pageNo = this.queryPageParams.weighingRequest.pageNum;
thisqueryParams.pageSize = this.queryPageParams.weighingRequest.pageSize;
thisqueryParams.carno = this.queryParams.carno; thisqueryParams.carno = this.queryParams.carno;
listPoundappli(thisqueryParams).then(response => { listPoundappli(thisqueryParams).then(response => {
this.poundappliList = response.rows; this.poundappliList = response.rows;
this.queryPageParams.weighingRequest.total = response.total;
this.loading = false; this.loading = false;
}) })
}, },
@ -656,9 +680,12 @@ export default {
isinuse:"Y", isinuse:"Y",
billstate:"1" billstate:"1"
}; };
thisqueryParams.pageNo = this.queryPageParams.tareRequest.pageNum;
thisqueryParams.pageSize = this.queryPageParams.tareRequest.pageSize;
thisqueryParams.carno = this.queryParams.carno; thisqueryParams.carno = this.queryParams.carno;
listPoundbill(thisqueryParams).then(response => { listPoundbill(thisqueryParams).then(response => {
this.tareappliList = response.rows; this.tareappliList = response.rows;
this.queryPageParams.tareRequest.total = response.total;
this.loading = false; this.loading = false;
}) })
}, },
@ -686,6 +713,7 @@ export default {
} }
if (this.form.wghmqty == undefined || this.form.wghmqty == ""){ if (this.form.wghmqty == undefined || this.form.wghmqty == ""){
this.$message.error("请先获取毛重!(双击过磅申请)"); this.$message.error("请先获取毛重!(双击过磅申请)");
return;
} }
// //
@ -705,6 +733,8 @@ export default {
// //
transData.usrcode = this.form.usrcode; transData.usrcode = this.form.usrcode;
//
transData.remark = this.form.remark;
// //
transData.poundid = this.truepoundData.id; transData.poundid = this.truepoundData.id;
@ -733,6 +763,8 @@ export default {
// //
transData.usrcode = this.form.usrcode; transData.usrcode = this.form.usrcode;
//
transData.remark = this.form.remark;
// //
transData.poundid = this.truepoundData.id; transData.poundid = this.truepoundData.id;
@ -753,7 +785,7 @@ export default {
// //
getempqty() { 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"){ if(this.queryParams.poundtype == "1"){
var transData = {}; var transData = {};
transData.carno = this.form.carno; transData.carno = this.form.carno;
@ -775,9 +807,16 @@ export default {
this.$message.error("请先选择过皮申请!"); this.$message.error("请先选择过皮申请!");
return; return;
} }
//
var poundbill = this.form.usrcode;
if (poundbill === undefined || poundbill === ""){
this.$message.error("请双击过皮申请!");
return;
}
//id //id
var transData = {}; var transData = {};
transData.id = selection[0].id; transData.id = selection[0].id;
transData.carno = this.queryParams.carno;
// //
transData.empmqty = this.form.empmqty; transData.empmqty = this.form.empmqty;
transData.netmqty = this.form.netmqty; transData.netmqty = this.form.netmqty;