Browse Source

报工部分代码修改

master
DouDou 2 years ago
parent
commit
cedb34067f
  1. 5
      src/api/scheduleReport/com_die_cutting_report.js
  2. 3
      src/api/scheduleReport/com_fqc_report.js
  3. 52
      src/views/modules/scheduleReport/com_die_cutting_report.vue
  4. 67
      src/views/modules/scheduleReport/com_fqc_report.vue
  5. 2
      src/views/modules/scheduleReport/com_scan_material.vue
  6. 2
      src/views/modules/scheduleReport/com_separate_roll.vue

5
src/api/scheduleReport/com_die_cutting_report.js

@ -11,3 +11,8 @@ export const getSfdcRollOpsByCon = data => createAPI('schedule/getSfdcRollOpsByC
// 获取当前上机卷信息 // 获取当前上机卷信息
export const getSoFinalRollsByCon = data => createAPI('schedule/getSoFinalRollsByCon', 'POST', data) export const getSoFinalRollsByCon = data => createAPI('schedule/getSoFinalRollsByCon', 'POST', data)
// 删除成品卷
export const deleteSoFinalRoll = data => createAPI('schedule/deleteSoFinalRoll', 'POST', data)

3
src/api/scheduleReport/com_fqc_report.js

@ -9,3 +9,6 @@ export const getSoFinalRollsByCon = data => createAPI('schedule/getSoFinalRollsB
// 检验当前的卷信息 // 检验当前的卷信息
export const scanFinalRollNo = data => createAPI('schedule/scanFinalRollNo', 'POST', data) export const scanFinalRollNo = data => createAPI('schedule/scanFinalRollNo', 'POST', data)
// 取消检验成品卷
export const cancelCheckSoFinalRoll = data => createAPI('schedule/cancelCheckSoFinalRoll', 'POST', data)

52
src/views/modules/scheduleReport/com_die_cutting_report.vue

@ -110,18 +110,18 @@
style="width: 100px; height: 80px"/></span> style="width: 100px; height: 80px"/></span>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column
<el-table-column
fixed="left" fixed="left"
header-align="center" header-align="center"
align="center" align="center"
width="150" width="150"
:label=labels.rollListOperation>
label='操作'>
<template slot-scope="scope"> <template slot-scope="scope">
&lt;!&ndash; <a class="customer-a" v-if="operatorData.operatorName != ''"
@click="printSfdcFlowLabel(scope.row)"
>{{ labels.rollListPrint }}</a>&ndash;&gt;
<a class="customer-a" v-if="scope.row.statusCode === 0"
@click="deleteFinalRollConfirm(scope.row)"
>删除</a>
</template> </template>
</el-table-column>-->
</el-table-column>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -130,12 +130,12 @@
</el-dialog> </el-dialog>
<!-- 扫描材料的组件 --> <!-- 扫描材料的组件 -->
<comScanMaterial :close-on-click-modal="false" ref="comScanMaterial" <comScanMaterial :close-on-click-modal="false" ref="comScanMaterial"
@refreshPageData="refreshPageData">
@refreshCurrentTabTable="refreshCurrentTabTable">
</comScanMaterial> </comScanMaterial>
<!-- 创建分卷的操作 --> <!-- 创建分卷的操作 -->
<comSeparateRoll :close-on-click-modal="false" ref="comSeparateRoll" <comSeparateRoll :close-on-click-modal="false" ref="comSeparateRoll"
@refreshPageData="refreshPageData">
@refreshCurrentTabTable="refreshCurrentTabTable">
</comSeparateRoll> </comSeparateRoll>
</div> </div>
</template> </template>
@ -146,6 +146,7 @@ import {
getCurrentRollOpsBySeqNo, getCurrentRollOpsBySeqNo,
getSfdcRollOpsByCon, getSfdcRollOpsByCon,
getSoFinalRollsByCon, getSoFinalRollsByCon,
deleteSoFinalRoll,
} from "@/api/scheduleReport/com_die_cutting_report.js"; } from "@/api/scheduleReport/com_die_cutting_report.js";
/*打印标签专用的js*/ /*打印标签专用的js*/
import { import {
@ -968,7 +969,7 @@ export default {
//table //table
//this.activeTable = 'sfdc_rollOps'; //this.activeTable = 'sfdc_rollOps';
//table //table
await this.refreshCurrentTabTable();
await this.refreshCurrentTabTable(false);
}, },
// //
@ -1023,7 +1024,7 @@ export default {
// //
tabClick(tab, event) { tabClick(tab, event) {
// //
this.refreshCurrentTabTable();
this.refreshCurrentTabTable(false);
}, },
// //
@ -1040,7 +1041,7 @@ export default {
}, },
//table //table
async refreshCurrentTabTable() {
async refreshCurrentTabTable(tableMark) {
// //
this.searchData = JSON.parse(JSON.stringify(this.scheduleData)); this.searchData = JSON.parse(JSON.stringify(this.scheduleData));
// //
@ -1050,6 +1051,10 @@ export default {
} else { } else {
this.searchData.rollNo = ''; this.searchData.rollNo = '';
} }
//使
if(tableMark){
this.activeTable = tableMark;
}
// //
if (this.activeTable == 'sfdc_material') { if (this.activeTable == 'sfdc_material') {
@ -1061,14 +1066,23 @@ export default {
} }
}, },
/*结束卷操作*/
finishRollModal() {
//1.
//checkProduceButton('finishRollFlag');
//
this.$nextTick(() => {
this.showFinishFlag = true;
this.$refs.comFinishRoll.init(this.scheduleData)
/*确认删除操作*/
deleteFinalRollConfirm(finalRow) {
this.$confirm('确认删除成品卷:'+finalRow.finalRollNo, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
//
deleteSoFinalRoll(finalRow).then(({data}) => {
//
if(data.code == 200) {
this.$message.success(data.msg);
this.refreshCurrentTabTable(false);
}else {
this.$message.error(data.msg);
}
});
}); });
}, },

67
src/views/modules/scheduleReport/com_fqc_report.vue

@ -30,7 +30,7 @@
<!-- 第四行菜单 --> <!-- 第四行菜单 -->
<fieldset class="customer-fieldset" style="width: 880px;"> <fieldset class="customer-fieldset" style="width: 880px;">
<legend class="customer-legend">{{ labels.rollButtons }}</legend> <legend class="customer-legend">{{ labels.rollButtons }}</legend>
<el-form>
<el-form @submit.native.prevent>
<el-form-item class="customer-roll-css" style="width: 130px; font-size: 16px; color: #387877;"> <el-form-item class="customer-roll-css" style="width: 130px; font-size: 16px; color: #387877;">
<el-input v-model="searchData.rollNo" ref="rollNo" style="width: 180px" <el-input v-model="searchData.rollNo" ref="rollNo" style="width: 180px"
@keyup.enter.native="scanFinalRollNoFun"> @keyup.enter.native="scanFinalRollNoFun">
@ -76,18 +76,18 @@
style="width: 100px; height: 80px"/></span> style="width: 100px; height: 80px"/></span>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column
<el-table-column
fixed="left" fixed="left"
header-align="center" header-align="center"
align="center" align="center"
width="150" width="150"
:label=labels.rollListOperation>
label='操作'>
<template slot-scope="scope"> <template slot-scope="scope">
&lt;!&ndash; <a class="customer-a" v-if="operatorData.operatorName != ''"
@click="printSfdcFlowLabel(scope.row)"
>{{ labels.rollListPrint }}</a>&ndash;&gt;
<a class="customer-a" v-if="scope.row.statusCode === 1"
@click="confirmCancelCheckFinalRoll(scope.row)"
>取消检验</a>
</template> </template>
</el-table-column>-->
</el-table-column>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -102,6 +102,7 @@ import {
getScheduleDataBySeqNo, getScheduleDataBySeqNo,
getSoFinalRollsByCon, getSoFinalRollsByCon,
scanFinalRollNo, scanFinalRollNo,
cancelCheckSoFinalRoll,
} from "@/api/scheduleReport/com_fqc_report.js"; } from "@/api/scheduleReport/com_fqc_report.js";
/*打印标签专用的js*/ /*打印标签专用的js*/
import { import {
@ -876,45 +877,23 @@ export default {
} }
}, },
/*结束卷操作*/
finishRollModal() {
//1.
//checkProduceButton('finishRollFlag');
//
this.$nextTick(() => {
this.showFinishFlag = true;
this.$refs.comFinishRoll.init(this.scheduleData)
});
},
/*开始调机modal*/
startProduceModal() {
//1.
//checkProduceButton('startProduceFlag');
//
this.$nextTick(() => {
this.showProduceFlag = true;
this.$refs.comStartProduce.init(this.scheduleData)
});
},
/*材料结束生产的modal*/
finishMaterialModal(materialRow) {
this.$nextTick(() => {
this.showMaterialFlag = true;
this.$refs.comProduceMaterial.init(this.scheduleData)
});
},
/*提醒是否删除的提示*/
warnDeleteSfdcRollsConfirm(sfdcRollRow) {
this.$confirm(this.labels.sureDeleteCurrentRoll, '提示', {
confirmButtonText: this.labels.confirmLabel,
celButtonText: this.labels.cancelLabel,
/*确认取消检验提示操作*/
confirmCancelCheckFinalRoll(finalRow) {
this.$confirm('确认取消检验成品卷:'+finalRow.finalRollNo, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
//sfdcRolls
this.deleteSfdcRollsOperation(sfdcRollRow);
//
cancelCheckSoFinalRoll(finalRow).then(({data}) => {
//
if(data.code == 200) {
this.$message.success(data.msg);
this.refreshCurrentTabTable(false);
}else {
this.$message.error(data.msg);
}
});
}); });
}, },

2
src/views/modules/scheduleReport/com_scan_material.vue

@ -167,7 +167,7 @@ export default {
closeDialog(){ closeDialog(){
this.visible = false; this.visible = false;
// //
this.$emit('refreshPageData');
this.$emit('refreshCurrentTabTable', 'sfdc_rollOps');
}, },
/*检查材料卷号的数据*/ /*检查材料卷号的数据*/

2
src/views/modules/scheduleReport/com_separate_roll.vue

@ -218,7 +218,7 @@ export default {
/*关闭modal*/ /*关闭modal*/
closeDialog(){ closeDialog(){
// //
this.$emit('refreshPageData');
this.$emit('refreshCurrentTabTable', 'sfdc_roll');
// //
this.visible = false; this.visible = false;
}, },

Loading…
Cancel
Save