From 22decd594e7d0facf9d605195a49d0813ed49f90 Mon Sep 17 00:00:00 2001
From: “linengliang” <vanSuperEnergy@163.com>
Date: 星期二, 10 十月 2023 17:22:03 +0800
Subject: [PATCH] 精度参数模版导入1.0
---
src/views/eam/modules/specialtyInspectionPlan/SpecialtyInspectionPlanModal.vue | 21 ++++++++++++++-------
1 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/src/views/eam/modules/specialtyInspectionPlan/SpecialtyInspectionPlanModal.vue b/src/views/eam/modules/specialtyInspectionPlan/SpecialtyInspectionPlanModal.vue
index 06f9007..f22b2d8 100644
--- a/src/views/eam/modules/specialtyInspectionPlan/SpecialtyInspectionPlanModal.vue
+++ b/src/views/eam/modules/specialtyInspectionPlan/SpecialtyInspectionPlanModal.vue
@@ -340,11 +340,11 @@
form: this.$form.createForm(this),
headers: {},
validatorRules: {
- num: {
- rules: [
- { required: true, message: '璇疯緭鍏ョ偣妫�璁″垝缂栫爜!' },
- ]
- },
+ // num: {
+ // rules: [
+ // { required: true, message: '璇疯緭鍏ョ偣妫�璁″垝缂栫爜!' },
+ // ]
+ // },
inspectionCycleId: {
rules: [
{ required: true, message: '璇烽�夋嫨鐐规鍛ㄦ湡!' },
@@ -384,6 +384,7 @@
listByBusIdAndBusType: "/system/sysUploadRela/listByBusIdAndBusType",
getInspectionCycle: "/eam/inspectionStandardDetail/getInspectionCycle",
// getSysDeparts: "/eam/specialtyInspectionPlan/getSysDeparts",
+ getNum: '/eam/sysIdentity/getNumNew',
},
dataSource: [],
//鐢ㄤ簬灞曠ず鏂囦欢
@@ -522,7 +523,7 @@
handleOk() {
const that = this;
// 瑙﹀彂琛ㄥ崟楠岃瘉
- that.form.validateFields((err, values) => {
+ that.form.validateFields(async (err, values) => {
if (JSON.stringify(that.fileObject.file) == '{}' && that.uploadId == '' && that.fileList.length == 0) {
that.$message.warning("璇蜂笂浼犳枃浠�");
return false
@@ -543,7 +544,13 @@
method = 'put';
}
let formData = Object.assign(that.model, values);
-
+ if(!formData.num){
+ await getAction(this.url.getNum, { type: 'SpecialtyInspectionPlan', length: '4' }).then((res) => {
+ if (res.success) {
+ formData.num = res.message;
+ }
+ });
+ }
formData.type = "inspection_path_photo";
formData.uploadId = that.uploadId;
formData.fileType = "7";//鏂囦欢绫诲瀷 7锛氬浘鐗�
--
Gitblit v1.9.3