Browse Source

自动打印袋装标签、出库扫描增加标准袋重量字段

master
赵宏斌 5 months ago
parent
commit
ccc8b7b8ff
  1. 2
      src/api/production/generateReport.js
  2. 4
      src/views/modules/production/bagLabelsTCP.vue
  3. 8
      src/views/modules/production/scanForm.vue
  4. 13
      src/views/modules/production/shippingScan.vue

2
src/api/production/generateReport.js

@ -76,6 +76,8 @@ export const packagePrintDataList = data =>createAPI('/board/packagePrintDataLis
export const getPartValue = data=>createAPI('/board/getPartValue','get',data);
export const saveScanLabel = data=>createAPI('/board/saveScanLabel','post',data);
//根据物料查询标准袋重量
export const queryStandardWeight = data=>createAPI('/board/queryStandardWeight','post',data);
export const removeScanLabel = data=>createAPI('/board/removeScanLabel','post',data);
export const scanLabel = data=>createAPI('/board/scanLabel','post',data);
export const checkIsPacking = data=>createAPI('/board/checkIsPacking','get',data);

4
src/views/modules/production/bagLabelsTCP.vue

@ -389,8 +389,8 @@ export default {
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label=" ">
<el-form-item label="标准袋重量">
<el-input v-model="soScheduleRouting.standardWeight" readonly></el-input>
</el-form-item>
</el-col>
<el-col :span="6">

8
src/views/modules/production/scanForm.vue

@ -1,5 +1,5 @@
<script>
import {getPartValue, removeScanLabel, saveScanLabel, scanLabel} from "../../../api/production/generateReport";
import {getPartValue, removeScanLabel, saveScanLabel, scanLabel, queryStandardWeight} from "../../../api/production/generateReport";
import dayjs from "dayjs";
import {Decimal} from "decimal.js";
import {getPhotoAddressData} from "../../../api/pad";
@ -67,7 +67,8 @@ export default {
set(val) {
}
}
},
standardWeight: 0
},
data(){
return{
@ -288,6 +289,9 @@ export default {
<el-form-item label="总重量">
<el-input-number disabled :controls="false" style="margin-top: -5px;text-align: right" v-model="totalWeight"></el-input-number>
</el-form-item>
<el-form-item label="标准袋重量">
<el-input-number disabled :controls="false" style="margin-top: -5px;text-align: right" v-model="detail.standardWeight"></el-input-number>
</el-form-item>
<el-form-item label=" " v-if="isReport">
<download-excel
:fields="exportDataStandard"

13
src/views/modules/production/shippingScan.vue

@ -9,6 +9,7 @@ import dayjs from "dayjs";
import {Decimal} from "decimal.js";
import {finallyPrintBoxLabel, getPrintBoxLabel, getPrintBoxLabelHandle} from "../../../api/pad";
import {printOutBoxLabel} from "../print/print_outBox_label";
import {queryStandardWeight} from "../../../api/production/generateReport";
export default {
name: "shippingScan",
components:{
@ -134,6 +135,18 @@ export default {
this.delNotifyDetail = JSON.parse(JSON.stringify(row))
this.allNum = this.delNotifyDetail.allNum
this.notifyQty = this.delNotifyDetail.notifyQty
let params = {
site: row.site,
partNo: row.partNo
}
//
queryStandardWeight(params).then(({data})=>{
if (data && data.code === 0 && data.row){
this.delNotifyDetail.standardWeight = data.row.standardWeight
} else {
this.delNotifyDetail.standardWeight = 0
}
}).catch()
this.scanFlag = true
},
changeAllNum(val){

Loading…
Cancel
Save