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

增加补打印的按钮

parent 8c63af22
...@@ -93,8 +93,8 @@ const install = (Vue, vm) => { ...@@ -93,8 +93,8 @@ const install = (Vue, vm) => {
), ),
//生产报工补打印 //生产报工补打印
rePackageInfoPrint: (params = {}) => rePackageInfoPrint: (params = {}) =>
vm.$u.post( vm.$u.postJson(
config.adminPath + '/dev-api/pro/packagePrintRecord/rePackageInfoPrint', config.adminPath + '/pro/packagePrintRecord/rePackageInfoPrint',
params params
), ),
// 生产指令列表 // 生产指令列表
...@@ -223,6 +223,12 @@ const install = (Vue, vm) => { ...@@ -223,6 +223,12 @@ const install = (Vue, vm) => {
config.adminPath + '/mobile/pro/proMaterial/listIssueLine', config.adminPath + '/mobile/pro/proMaterial/listIssueLine',
params params
), ),
//投料校验列表
listFeedingInspectionlist: (params = {}) =>
vm.$u.post(
config.adminPath + '/mobile/pro/proMaterial/listFeedingInspection',
params
),
validateFeedingInspection: (params = {}) => validateFeedingInspection: (params = {}) =>
vm.$u.post( vm.$u.post(
config.adminPath + config.adminPath +
......
...@@ -240,11 +240,11 @@ ...@@ -240,11 +240,11 @@
style="margin-left: 20rpx" size="mini"> style="margin-left: 20rpx" size="mini">
打印/报工 打印/报工
</u-button> </u-button>
<!-- <u-button v-if="scope.row.feedbackQuantity && Number(scope.row.feedbackQuantity) > 0" <u-button v-if="scope.row.feedbackQuantity && Number(scope.row.feedbackQuantity) > 0"
@tap="rePackageInfoPrint(feedback, scope.row, i)" type="success" @tap="rePackageInfoPrint(feedback, scope.row, i)" type="success"
style="margin-left: 20rpx" size="mini"> style="margin-left: 20rpx" size="mini">
补打印 补打印
</u-button> --> </u-button>
<!-- <u-input v-model="scope.row.reportQuantity" type="number"></u-input> --> <!-- <u-input v-model="scope.row.reportQuantity" type="number"></u-input> -->
</template> </template>
</zb-table> </zb-table>
...@@ -329,7 +329,7 @@ ...@@ -329,7 +329,7 @@
</u-col> </u-col>
<u-col span="6"> <u-col span="6">
<u-form-item label="生产工单:" prop="workorderId"> <u-form-item label="生产工单:" prop="workorderId">
<view v-if="feedback.taskType&&feedback.taskType===3">{{feedback.workorderId}}</view> <view v-if="feedback.taskType&&feedback.taskType===3">{{feedback.workorderCode}}</view>
<uni-data-select v-model="feedback.workorderId" v-else :localdata="feedback.workorderOption" <uni-data-select v-model="feedback.workorderId" v-else :localdata="feedback.workorderOption"
@change="workorderSelect($event, i)"></uni-data-select> @change="workorderSelect($event, i)"></uni-data-select>
</u-form-item> </u-form-item>
...@@ -396,9 +396,9 @@ ...@@ -396,9 +396,9 @@
</u-form-item> </u-form-item>
</u-col> </u-col>
<u-col span="6"> <u-col span="6">
<u-form-item label="是否关单:" prop="whether" v-if="feedback.taskType&&feedback.taskType===3"> <u-form-item label="是否关单:" prop="closeType" v-if="feedback.taskType&&feedback.taskType===3">
<view class="uni-list-item__extra"> <view class="uni-list-item__extra">
<u-radio-group v-model="feedback.whether"> <u-radio-group v-model="feedback.closeType">
<u-radio :name="1"></u-radio> <u-radio :name="1"></u-radio>
<u-radio :name="0"></u-radio> <u-radio :name="0"></u-radio>
</u-radio-group> </u-radio-group>
...@@ -2230,6 +2230,7 @@ export default { ...@@ -2230,6 +2230,7 @@ export default {
printContents: item.arrangeCode, printContents: item.arrangeCode,
feedbackTime: this.parseTime(new Date()), feedbackTime: this.parseTime(new Date()),
whether: '', whether: '',
closeType: null,
printTemplate: '', printTemplate: '',
tableSizeData: [], tableSizeData: [],
tableSizeColumn: [ tableSizeColumn: [
...@@ -2297,6 +2298,8 @@ export default { ...@@ -2297,6 +2298,8 @@ export default {
if(feedback.taskType && feedback.taskType === 3) { if(feedback.taskType && feedback.taskType === 3) {
feedback.quantityQualify = item.quantity - item.quantityQualify - item.quantityUnqualify feedback.quantityQualify = item.quantity - item.quantityQualify - item.quantityUnqualify
feedback.quantityUnqualify = item.quantityUnqualify feedback.quantityUnqualify = item.quantityUnqualify
feedback.workorderCode = item.workorderCode
feedback.closeType = ''
} }
this.getWorkorderWithSizeAndDirective(feedback, index); this.getWorkorderWithSizeAndDirective(feedback, index);
this.feedbackForms.push(feedback); this.feedbackForms.push(feedback);
...@@ -2388,6 +2391,9 @@ export default { ...@@ -2388,6 +2391,9 @@ export default {
}); });
}, },
rePackageInfoPrint(item, row, i){ rePackageInfoPrint(item, row, i){
if (!item.printTemplate) {
return this.$u.toast('请选择打印模版')
}
if (item.printTemplate && !this.vuex_printConnect) { if (item.printTemplate && !this.vuex_printConnect) {
this.$u.toast('打印机连接失败'); this.$u.toast('打印机连接失败');
return; return;
...@@ -2401,9 +2407,9 @@ export default { ...@@ -2401,9 +2407,9 @@ export default {
.then((res) => { .then((res) => {
if (res.code === 200) { if (res.code === 200) {
// this.proVisible = false; // this.proVisible = false;
item.quantityUnqualify = 0; // item.quantityUnqualify = 0;
this.$u.toast('上报成功'); // this.$u.toast('上报成功');
this.getWorkorderDirectiveList(item, i) // this.getWorkorderDirectiveList(item, i)
if (item.printTemplate) { if (item.printTemplate) {
let params = {}; let params = {};
res.data.forEach((datas) => { res.data.forEach((datas) => {
...@@ -2575,6 +2581,7 @@ export default { ...@@ -2575,6 +2581,7 @@ export default {
processId: item.processId, processId: item.processId,
processCode: item.processCode, processCode: item.processCode,
processName: item.processName, processName: item.processName,
closeType: item.taskType === 3 ? item.closeType : null,
itemId: item.itemId, itemId: item.itemId,
itemCode: item.itemCode, itemCode: item.itemCode,
itemName: item.itemName, itemName: item.itemName,
...@@ -2656,7 +2663,7 @@ export default { ...@@ -2656,7 +2663,7 @@ export default {
}, },
feedingInspectionLoadAndScan(bool) { feedingInspectionLoadAndScan(bool) {
const taskInfo = this.tableSelectData[0]; const taskInfo = this.tableSelectData[0];
this.$u.api.listFeedingInspection({ taskId: taskInfo.taskId }).then((res) => { this.$u.api.listFeedingInspectionlist({ taskId: taskInfo.taskId }).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.feedingInspectionList = res.data; this.feedingInspectionList = res.data;
if (bool) { if (bool) {
......
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