Commit f75fa2ce authored by 沈翠玲's avatar 沈翠玲

A类问题

parent ad30d108
......@@ -103,7 +103,7 @@ const install = (Vue, vm) => {
),
//装箱打印
blPackagePrintInfo: (params = {}) =>
vm.$u.post(
vm.$u.postJson(
config.adminPath + '/pro/packagePrintRecord/blPackagePrintInfo',
params
),
......
......@@ -238,24 +238,24 @@
</template>
<template slot="grossWeight" slot-scope="scope">
<!-- {{ scope.row }} -->
<u-input v-model="scope.row.grossWeight" type="number"></u-input>
<u-input v-model="scope.row.grossWeight" type="number" placeholder=""></u-input>
</template>
<template slot="packageStandard" slot-scope="scope">
<!-- {{ scope.row }} -->
<uni-easyinput type="text" suffixIcon="scan" v-model="scope.row.packageStandard" style="width: 100%"
@iconClick="() => iconPackageStandard(scope.row)" placeholder="请输入装箱规格" />
@iconClick="() => iconPackageStandard(scope.row)" placeholder="" />
</template>
<template slot="peration" slot-scope="scope">
<!-- {{ scope.row }} -->
<u-button v-if="scope.row.isEncase" @tap="handleBlPackagePrintInfo(feedback, scope.row, i)" class="successBtn" style="margin-left: 20rpx">打印</u-button>
<u-button v-if="scope.row.isEncase" @tap="handleBlPackagePrintInfo(feedback, scope.row, i)" class="successBtn" style="margin-left: 0">打印</u-button>
<u-button v-else-if="scope.row.feedbackQuantity && Number(scope.row.feedbackQuantity) > 0"
@tap="rePackageInfoPrint(feedback, scope.row, i)" class="successBtn"
style="margin-left: 20rpx">
style="margin-left: 0">
补打印
</u-button>
<u-button v-else-if="Number(scope.row.packageNum) > Number(scope.row.feedbackQuantity) || scope.row.printbtn"
@tap="handleSubmitPackageFeedback(feedback, scope.row, i)" class="successBtn"
style="margin-left: 20rpx">
style="margin-left: 0">
打印/报工
</u-button>
<!-- <u-input v-model="scope.row.reportQuantity" type="number"></u-input> -->
......@@ -276,23 +276,23 @@
</template>
<template slot="grossWeight" slot-scope="scope">
<!-- {{ scope.row }} -->
<u-input v-model="scope.row.grossWeight" type="number"></u-input>
<u-input v-model="scope.row.grossWeight" type="number" placeholder=""></u-input>
</template>
<template slot="packageStandard" slot-scope="scope">
<!-- {{ scope.row }} -->
<uni-easyinput type="text" suffixIcon="scan" v-model="scope.row.packageStandard" style="width: 100%"
@iconClick="() => iconPackageStandard(scope.row)" placeholder="请输入装箱规格" />
@iconClick="() => iconPackageStandard(scope.row)" placeholder="装箱规格" />
</template>
<template slot="peration" slot-scope="scope">
<!-- {{ scope.row }} -->
<u-button v-if="scope.row.isEncase" @tap="handleBlPackagePrintInfo(feedback, scope.row, i)" class="successBtn" style="margin-left: 20rpx">打印</u-button>
<u-button v-if="scope.row.isEncase" @tap="handleBlPackagePrintInfo(feedback, scope.row, i)" class="successBtn" style="margin-left: 0">打印</u-button>
<u-button v-else-if="scope.row.feedbackQuantity && Number(scope.row.feedbackQuantity) > 0"
@tap="rePackageInfoPrint(feedback, scope.row, i)"
style="margin-left: 20rpx" class="successBtn">
style="margin-left: 0" class="successBtn">
补打印
</u-button>
<u-button v-else @tap="handleSubmitPackageFeedback(feedback, scope.row, i)"
style="margin-left: 20rpx" class="successBtn">打印/报工</u-button>
style="margin-left: 0" class="successBtn">打印/报工</u-button>
<!-- <u-input v-model="scope.row.reportQuantity" type="number"></u-input> -->
</template>
</zb-table>
......@@ -311,23 +311,23 @@
</template>
<template slot="grossWeight" slot-scope="scope">
<!-- {{ scope.row }} -->
<u-input v-model="scope.row.grossWeight" type="number"></u-input>
<u-input v-model="scope.row.grossWeight" type="number" placeholder=""></u-input>
</template>
<template slot="packageStandard" slot-scope="scope">
<!-- {{ scope.row }} -->
<uni-easyinput type="text" suffixIcon="scan" v-model="scope.row.packageStandard" style="width: 100%"
@iconClick="() => iconPackageStandard(scope.row)" placeholder="请输入装箱规格" />
@iconClick="() => iconPackageStandard(scope.row)" placeholder="装箱规格" />
</template>
<template slot="peration" slot-scope="scope">
<!-- {{ scope.row }} -->
<u-button v-if="scope.row.isEncase" @tap="handleBlPackagePrintInfo(feedback, scope.row, i)" class="successBtn" style="margin-left: 20rpx">打印</u-button>
<u-button v-if="scope.row.isEncase" @tap="handleBlPackagePrintInfo(feedback, scope.row, i)" class="successBtn" style="margin-left: 0">打印</u-button>
<u-button v-else-if="scope.row.feedbackQuantity && Number(scope.row.feedbackQuantity) > 0"
@tap="rePackageInfoPrint(feedback, scope.row, i)"
style="margin-left: 20rpx" class="successBtn">
style="margin-left: 0" class="successBtn">
补打印
</u-button>
<u-button v-else @tap="handleSubmitPackageFeedback(feedback, scope.row, i)"
style="margin-left: 20rpx" class="successBtn">打印/报工</u-button>
style="margin-left: 0" class="successBtn">打印/报工</u-button>
</template>
</zb-table>
</view>
......@@ -1062,7 +1062,7 @@ export default {
{
name: 'peration',
label: '操作',
width: 120,
width: 80,
type: 'slot',
slot: 'peration'
}
......@@ -1076,41 +1076,41 @@ export default {
{
name: 'quantity',
label: '派工数',
width: 100
width: 70
},
{
name: 'packageNum',
label: '包装数',
width: 80
width: 75
},
{
name: 'lossNum',
label: 'LOSS数',
width: 100
width: 80
},
{
name: 'feedbackQuantity',
label: '已包装数',
width: 130
width: 80
},
{
name: 'reportQuantity',
label: '本次报工',
width: 100,
width: 80,
type: 'slot',
slot: 'reportQuantity'
},
{
name: 'netWeight',
label: '净重',
width: 100,
width: 70,
type: 'slot',
slot: 'netWeight'
},
{
name: 'grossWeight',
label: '毛重',
width: 100,
width: 70,
type: 'slot',
slot: 'grossWeight'
},
......@@ -1124,7 +1124,7 @@ export default {
{
name: 'peration',
label: '操作',
width: 120,
width: 80,
type: 'slot',
slot: 'peration'
}
......@@ -2517,7 +2517,7 @@ export default {
{
name: 'standardSizeIdx',
label: '序号',
width: 60
width: 40
},
{
name: 'standardSize',
......@@ -2547,21 +2547,21 @@ export default {
{
name: 'reportQuantity',
label: '本次报工',
width: 100,
width: 90,
type: 'slot',
slot: 'reportQuantity'
},
{
name: 'netWeight',
label: '净重',
width: 100,
width: 80,
type: 'slot',
slot: 'netWeight'
},
{
name: 'grossWeight',
label: '毛重',
width: 100,
width: 80,
type: 'slot',
slot: 'grossWeight'
},
......@@ -2575,7 +2575,7 @@ export default {
{
name: 'peration',
label: '操作',
width: 120,
width: 80,
type: 'slot',
slot: 'peration'
}
......@@ -2748,35 +2748,24 @@ export default {
this.$u.toast('打印机连接失败');
return;
}
if (!row.grossWeight || !row.packageStandard) {
this.$u.toast('请录入毛重、装箱规格');
return;
}
item.feedbackTime = this.parseTime(new Date())
this.$u.api
.blPackagePrintInfo({
taskWorkunitId: item.taskWorkunitId,
checkBy: item.checkBy,
encasementNum: item.encasementNum,
mergePack: item.mergePack,
packNum: item.packNum,
printTemplate: item.printTemplate,
quantityUnqualify: item.quantityUnqualify,
taskId: item.taskId,
userName: item.userName,
feedbackTime: item.feedbackTime,
qrcode: row.qrcode,
workorderId: item.workorderId,
'reportData.grossWeight': row.grossWeight,
'reportData.packageStandard': row.packageStandard,
'reportData.boxWeight': row.boxWeight,
'reportData.netWeight': row.netWeight,
'reportData.reportQuantity': row.reportQuantity,
'reportData.packageNum': row.packageNum,
'reportData.qrcode': row.qrcode,
'reportData.workorderSoDirectiveId': row.workorderSoDirectiveId,
'reportData.workorderSoSizeItemId': row.workorderSoSizeItemId
grossWeight: row.grossWeight,
packageStandard: row.packageStandard,
boxWeight: row.boxWeight
})
.then((res) => {
if (res.code === 200) {
// this.proVisible = false;
item.quantityUnqualify = 0;
this.$u.toast('上报成功');
this.$u.toast('打印成功');
this.getWorkorderDirectiveList(item, i)
if (item.printTemplate) {
let params = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment