Browse Source

2025-12-15

过站采集-》车间工作平台->异常截卷增加打印
master
fengyuan_yang 4 weeks ago
parent
commit
91eff371b5
  1. 8
      src/views/modules/yieldReport/com_abnormal_continue_roll.vue
  2. 13
      src/views/modules/yieldReport/com_separate_roll.vue

8
src/views/modules/yieldReport/com_abnormal_continue_roll.vue

@ -15,9 +15,9 @@
max-height="150" max-height="150"
@row-dblclick="selectRollNo" @row-dblclick="selectRollNo"
highlight-current-row> highlight-current-row>
<el-table-column prop="currentRollNo" label="当前卷号" align="center" min-width="200">
<el-table-column prop="currentRollNo" label="卷号" align="center" min-width="200">
</el-table-column> </el-table-column>
<el-table-column prop="newRollNo" label="卷号" align="center" min-width="200">
<el-table-column prop="newRollNo" label="分卷卷号" align="center" min-width="200">
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
@ -27,12 +27,12 @@
<!-- 卷信息行 --> <!-- 卷信息行 -->
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="当前卷号">
<el-form-item label="卷号">
<el-input v-model="selectedRollNo.currentRollNo" readonly style="width: 200px;"></el-input> <el-input v-model="selectedRollNo.currentRollNo" readonly style="width: 200px;"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="卷号">
<el-form-item label="分卷卷号">
<el-input v-model="selectedRollNo.newRollNo" readonly style="width: 200px;"></el-input> <el-input v-model="selectedRollNo.newRollNo" readonly style="width: 200px;"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>

13
src/views/modules/yieldReport/com_separate_roll.vue

@ -751,7 +751,7 @@ export default {
// //
try { try {
await this.$confirm('确定执行异常截卷操作吗?该操作将执行产量报告(不打印)并保存缓存数据。', '提示', {
await this.$confirm('确定执行异常截卷操作吗?该操作将执行产量报告。', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
@ -761,13 +761,14 @@ export default {
} }
try { try {
// ========== ==========
// ========== ==========
// //
const rowsPerRoll = Math.floor(this.pageData.rowCount / this.pageData.rollCount); const rowsPerRoll = Math.floor(this.pageData.rowCount / this.pageData.rollCount);
const remainingRows = this.pageData.rowCount % this.pageData.rollCount; const remainingRows = this.pageData.rowCount % this.pageData.rollCount;
let currentRowIndex = 0; let currentRowIndex = 0;
let newRollNo = ''; // let newRollNo = ''; //
const allPrintList = []; //
// //
for (let rollIndex = 0; rollIndex < this.pageData.rollCount; rollIndex++) { for (let rollIndex = 0; rollIndex < this.pageData.rollCount; rollIndex++) {
@ -821,6 +822,8 @@ export default {
// //
if (data.printList && data.printList.length > 0) { if (data.printList && data.printList.length > 0) {
newRollNo = data.printList[0].rollNo || ''; newRollNo = data.printList[0].rollNo || '';
//
allPrintList.push(...data.printList);
} }
this.$message.success(`${rollIndex + 1}/${this.pageData.rollCount}卷创建成功`); this.$message.success(`${rollIndex + 1}/${this.pageData.rollCount}卷创建成功`);
@ -873,6 +876,12 @@ export default {
if (abnormalData && abnormalData.code === 0) { if (abnormalData && abnormalData.code === 0) {
this.$message.success('异常截卷操作完成!数据已保存。'); this.$message.success('异常截卷操作完成!数据已保存。');
// ========== ==========
if (allPrintList.length > 0) {
await this.printLabelsWithTemplate(allPrintList);
}
// //
setTimeout(() => { setTimeout(() => {
this.closeDialog(); this.closeDialog();

Loading…
Cancel
Save