From 2df883fcbed176f83d8d144fd007e7f72fcb54d6 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期四, 01 二月 2024 17:21:24 +0800
Subject: [PATCH] 修改
---
web/src/views/modules/itemCirculatOrder/ItemCirculatOrder-AddOrUpdate.vue | 73 +++++++++++++++++++++++++++---------
1 files changed, 55 insertions(+), 18 deletions(-)
diff --git a/web/src/views/modules/itemCirculatOrder/ItemCirculatOrder-AddOrUpdate.vue b/web/src/views/modules/itemCirculatOrder/ItemCirculatOrder-AddOrUpdate.vue
index dcea241..f580989 100644
--- a/web/src/views/modules/itemCirculatOrder/ItemCirculatOrder-AddOrUpdate.vue
+++ b/web/src/views/modules/itemCirculatOrder/ItemCirculatOrder-AddOrUpdate.vue
@@ -43,7 +43,8 @@
</el-table-column>
<el-table-column prop="infoName" min-width="180" label="鎶�鏈祫鏂欏悕绉�">
<template v-slot="{ row }">
- <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.name" placeholder="鎶�鏈祫鏂欏悕绉�"></el-input>
+ <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.name"
+ placeholder="鎶�鏈祫鏂欏悕绉�"></el-input>
</template>
</el-table-column>
<el-table-column prop="identify" align="center" width="150" label="鏍囪瘑">
@@ -53,13 +54,15 @@
</el-table-column>
<el-table-column prop="version" align="center" width="120" label="鐗堟湰">
<template v-slot="{ row }">
- <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.identify" placeholder="鐗堟湰"></el-input>
+ <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.identify"
+ placeholder="鐗堟湰"></el-input>
</template>
</el-table-column>
<el-table-column prop="secretClass" label="瀵嗙骇" width="100" align="center">
<template v-slot="{ row }">
<!-- <el-input v-model="row.secretClass" placeholder="瀵嗙骇"></el-input>-->
- <zt-dict :disabled="stepMarker!=='wplz_first'" v-model="row.secretClass" dict="secret_class"></zt-dict>
+ <zt-dict :disabled="stepMarker!=='wplz_first'" v-model="row.secretClass"
+ dict="secret_class"></zt-dict>
</template>
</el-table-column>
<el-table-column prop="medium" label="浠嬭川" width="100" align="center">
@@ -74,10 +77,10 @@
</el-table-column>
<el-table-column prop="remark" label="澶囨敞" width="100" align="center">
<template v-slot="{ row }">
- <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.remark" placeholder="澶囨敞"></el-input>
+ <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.remark" placeholder="澶囨敞"></el-input>
</template>
</el-table-column>
- <el-table-column fixed="right" prop="files" label="涓婁紶闄勪欢" width="300" align="center">
+ <el-table-column fixed="right" prop="files" label="涓婁紶闄勪欢" width="300" align="center">
<template v-slot="{ row }">
<table-uploader busi-type="circulat_order" model-name="row" :dataForm="row"
v-model="row.files"/>
@@ -409,23 +412,57 @@
// 琛ㄥ崟鎻愪氦
async formSubmit(submitType) {
let isFiles = true;
+ let flag = true;
+ console.log(this.dataForm, "this.dataForm11111")
this.dataForm.technicalList.forEach(item => {
- console.log(item, "his.dataForm.technicalList.forEach")
- item.files.groups.forEach(groups => {
- groups.fields.forEach(files => {
- if (files.files.length === 0) {
- this.$alert("褰撳墠瀛樺湪鏈笂浼犻檮浠剁殑鎶�鏈祫鏂欙紝璇烽噸鏂颁笂浼�")
- isFiles = false
- return isFiles
- }
+ if (parseInt(item.secretClass) > localStorage.getItem('userSecretClass')) {
+ this.$alert("褰撳墠椤圭洰璁剧疆鐨勫瘑绾ч珮浜庡綋鍓嶇敤鎴风殑瀵嗙骇锛岃閲嶆柊璁剧疆")
+ flag = false
+ }
+ })
+ if (!flag) {
+ return
+ }
+ if (submitType === 'tj' || submitType === 'bl') {
+ if (this.stepMarker === 'wplz_wpjs') {
+ if (this.dataForm.circulatOrder.acceptSituation == null || this.dataForm.circulatOrder.virusLibraryVersion == null) {
+ this.$alert("褰撳墠鏈夋湭濉啓鐨勬儏鍐佃鏄�")
+ return
+ }
+ }
+ if (this.stepMarker === 'wplz_jcjs') {
+ if (this.dataForm.circulatOrder.detectAcceptSituation == null) {
+ this.$alert("褰撳墠鏈夋湭濉啓鐨勬儏鍐佃鏄�")
+ return
+ }
+ }
+ if (this.stepMarker === 'wplz_xzjc') {
+ if (this.dataForm.circulatOrder.detectSituation == null) {
+ this.$alert("褰撳墠鏈夋湭濉啓鐨勬儏鍐佃鏄�")
+ return
+ }
+ }
+ if (this.stepMarker === 'wplz_wprk') {
+ if (this.dataForm.circulatOrder.depositSituation == null) {
+ this.$alert("褰撳墠鏈夋湭濉啓鐨勬儏鍐佃鏄�")
+ return
+ }
+ }
+ this.dataForm.technicalList.forEach(item => {
+ item.files.groups.forEach(groups => {
+ groups.fields.forEach(files => {
+ if (files.files.length === 0) {
+ this.$alert("褰撳墠瀛樺湪鏈笂浼犻檮浠剁殑鎶�鏈祫鏂欙紝璇烽噸鏂颁笂浼�")
+ isFiles = false
+ return isFiles
+ }
+ })
})
})
- })
- console.log(this.dataForm, "this.dataForm11111")
- if (submitType == 'tj' || submitType == 'bl') {
- if (!isFiles){
+ if (!isFiles) {
return
}
+
let flowInfo = {
flowCode: 'wplz',
stepIdMark: this.stepMarker,
@@ -435,7 +472,7 @@
}
let res = await this.$http[!this.dataForm.id ? 'post' : 'put']('/itemCirculatOrder/ItemCirculatOrder/', this.dataForm)
if (res.success) {
- if (this.stepMarker === 'wplz_wprk' && submitType == 'bl') {
+ if (this.stepMarker === 'wplz_wprk' && submitType === 'bl') {
this.$nextTick(() => {
this.$refs.addOrUpdate.$refs.dialog.init(null, {
id: res.data,
--
Gitblit v1.9.1