From 86d004ebe505aae018ab74091bff67162bcd2de8 Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期三, 08 十一月 2023 14:57:51 +0800
Subject: [PATCH] 增加班组
---
src/views/spare/modules/sparePartScrap/SparePartScrapForm.vue | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/src/views/spare/modules/sparePartScrap/SparePartScrapForm.vue b/src/views/spare/modules/sparePartScrap/SparePartScrapForm.vue
index 2af4bf8..90927e1 100644
--- a/src/views/spare/modules/sparePartScrap/SparePartScrapForm.vue
+++ b/src/views/spare/modules/sparePartScrap/SparePartScrapForm.vue
@@ -426,18 +426,8 @@
},
created() {
this.initOptions()
- this.initNum()
},
methods: {
- initNum() {
- getAction(this.url.getNum, { type: 'SparePart', length: '4' }).then((res) => {
- if (res.success) {
- this.model.num = res.message
-
- /* this.model.setFieldsValue({ num: res.message }); */
- }
- })
- },
initOptions() {
getAction(this.url.loadOptions).then(res => {
if (res.success) {
@@ -525,6 +515,12 @@
if (this.model.id) {
let params = { id: this.model.id }
this.requestSubTableData(this.url.sparesScrapDetail.list, params, this.sparesScrapDetailTable)
+ }else{
+ getAction(this.url.getNum, { type: 'SparePartScrap', length: '4' }).then((res) => {
+ if (res.success) {
+ this.model.num = res.message
+ }
+ })
}
},
//鏍¢獙鎵�鏈変竴瀵逛竴瀛愯〃琛ㄥ崟
--
Gitblit v1.9.3