From 47cf5518f0f61dbf8066c2273b9f77c2cd7b1751 Mon Sep 17 00:00:00 2001
From: YLouie <929705085@qq.com>
Date: 星期五, 19 九月 2025 17:56:03 +0800
Subject: [PATCH] 销售订单plm同步
---
src/views/technology/routing/routing-form.vue | 59 ++++++++++++++++++++++++++++++++++++++++++++++++-----------
1 files changed, 48 insertions(+), 11 deletions(-)
diff --git a/src/views/technology/routing/routing-form.vue b/src/views/technology/routing/routing-form.vue
index 6b5702b..b2f7ee1 100644
--- a/src/views/technology/routing/routing-form.vue
+++ b/src/views/technology/routing/routing-form.vue
@@ -1,5 +1,5 @@
<template>
- <div style="height: 100%">
+ <div style="height: 100%" :key="itemKey">
<div class="page-header">
<div class="header-left">
<a @click="$router.go(-1)"><i class="icon-btn-back"></i></a>
@@ -531,8 +531,8 @@
},
computed: {
- editable: function () {
- if (!this.dataForm.id) {
+ editable() {
+ if (!this.dataForm.id && this.itemKey) {
return true
}
if (this.dataForm.id && this.dataForm.state == '01draft') {
@@ -584,14 +584,50 @@
'$route.query.id': {
immediate: true,
handler(newVal, oldVal) {
- this.dataForm.id = this.$route.query.id
- this.getParamType()
- this.init()
- this.itemKey = Math.random()
- this.getBomTypeDbOptions()
- this.getWorkCenterOptions()
- this.getRunTimeCodeDbOptions()
- this.getLaborClassNo()
+ if (this.$route.name == '宸ヨ壓璺嚎璇︽儏') {
+ if (newVal) {
+ this.dataForm.id = this.$route.query.id
+ this.getParamType()
+ this.init()
+ this.itemKey = Math.random()
+ this.getBomTypeDbOptions()
+ this.getWorkCenterOptions()
+ this.getRunTimeCodeDbOptions()
+ this.getLaborClassNo()
+ } else {
+ this.dataForm.id = null
+ this.getParamType()
+ this.init()
+ this.dataForm = {
+ id: null,
+ routingNo: null,
+ name: null,
+ partId: null,
+ partNo: null,
+ partName: null,
+ description: null,
+ state: null,
+ master: false,
+ bomId: null,
+ operations: [],
+ refs: [],
+ bomTypeDb: 'M',
+ alternativeNo: '*',
+ alternativeDesc: null,
+ ifsSync: false,
+ phaseInDate: null,
+ phaseOutDate: null,
+ version: null,
+ wireCore: null
+ }
+ this.operationPart = {}
+ this.itemKey = Math.random()
+ this.getBomTypeDbOptions()
+ this.getWorkCenterOptions()
+ this.getRunTimeCodeDbOptions()
+ this.getLaborClassNo()
+ }
+ }
},
},
},
@@ -615,6 +651,7 @@
this.getWorkCenterOptions()
this.getRunTimeCodeDbOptions()
this.getLaborClassNo()
+ console.log(4444)
},
methods: {
// 鏌ヨ缁撴瀯绫诲瀷瀛楀吀
--
Gitblit v1.9.3