From 19bb512734fc1bd3524a45cc66dfda8caef2066b Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期三, 10 十二月 2025 08:05:45 +0800
Subject: [PATCH] 1.打印时自动派发
---
src/views/workOrder/workOrderList.vue | 23 +++++++++++++++++------
1 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/src/views/workOrder/workOrderList.vue b/src/views/workOrder/workOrderList.vue
index 5ef65e8..b6b8126 100644
--- a/src/views/workOrder/workOrderList.vue
+++ b/src/views/workOrder/workOrderList.vue
@@ -476,7 +476,7 @@
v-if="mesSetting.workOrder"
class="el-icon-files"
style="cursor: pointer;color:#42b983;margin-right: 15px"
- @click.stop="pre(row,1)"
+ @click="pre(row,1)"
/>
</el-tooltip>
@@ -484,7 +484,7 @@
<i
class="el-icon-edit-outline"
:style="{color:$store.state.settings.theme}"
- @click.stop="edit('edit',row)"
+ @click="edit('edit',row)"
/>
</el-tooltip>
@@ -502,7 +502,7 @@
:style="{color:$store.state.settings.theme}"
class="el-icon-printer"
style="cursor: pointer;margin-right: 15px"
- @click.stop="handlePrint(row.wo_code,row.saleOrderCod,row)"
+ @click="handlePrint(row.wo_code,row.saleOrderCod,row)"
/>
</el-tooltip>
@@ -511,7 +511,7 @@
class="el-icon-view"
style="cursor: pointer;"
:style="{color:$store.state.settings.theme}"
- @click.stop="edit('view',row)"
+ @click="edit('view',row)"
/>
</el-tooltip>
@@ -1803,7 +1803,7 @@
<el-button v-waves @click="dialogVisibleBackPreview">杩� 鍥�</el-button>
<!-- <el-button v-waves v-if="operation==='add'" type="primary" @click="dialogVisibleConfirm">纭� 瀹�</el-button>-->
<!-- <el-button v-waves type="primary" @click="dialogVisibleConfirm">纭� 瀹�/鎵� 鍗�</el-button>-->
- <el-button v-waves v-print="printObj" type="primary">鎵� 鍗�</el-button>
+ <el-button v-waves v-print="printObj" type="primary" @click="sendMesOrderDistribution">鎵� 鍗�</el-button>
</div>
</span>
</el-dialog>
@@ -2906,7 +2906,7 @@
console.log('鎵ц浜嗘墦鍗�')
}
},
-
+ sendMesOrderWoCode: '',
formApprove: {
m_po: '', // 婧愬崟鍗曞彿
mesordercode: '',
@@ -3091,6 +3091,16 @@
// })
},
methods: {
+ // 鎵撳嵃鐨勬椂鍊欐墽琛屾淳鍙戜簨浠�
+ sendMesOrderDistribution() {
+ MesOrderDistribution([this.sendMesOrderWoCode]).then(res => {
+ if (res.code === '200') {
+ this.$notify.success('娲惧彂鎴愬姛!')
+ this.getMesOrderSearch()
+ }
+ })
+ },
+
mesqtyInputChange(val) {
if (this.stepTableData && this.stepTableData.length > 0) {
this.stepTableData.forEach(i => {
@@ -4115,6 +4125,7 @@
const data2 = {
mesordercode: wo_code || this.dialogForm.mesordercode
}
+ this.sendMesOrderWoCode = wo_code || this.dialogForm.mesordercode
MesOrderPrintSearch(data2).then(res2 => {
if (res2.code === '200') {
this.dialogVisibleApprove = true
--
Gitblit v1.9.3