From c35fe70546f021b79adfeb1860b8c9e122d9d57d Mon Sep 17 00:00:00 2001
From: yunuo970428 <405378304@qq.com>
Date: Mon, 19 Sep 2022 17:44:22 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=90=88=E6=A0=BC=E8=AF=81?=
=?UTF-8?q?=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../hegezhengtaizhangAdd.vue | 68 ++++++++++++++-----
1 file changed, 50 insertions(+), 18 deletions(-)
diff --git a/anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhangAdd.vue b/anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhangAdd.vue
index 11d495507c..fae72059bd 100644
--- a/anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhangAdd.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhangAdd.vue
@@ -98,7 +98,8 @@
备注:
-
+
+ {{ temp.remarks }}
@@ -320,6 +321,22 @@
+
+
+
+
+ 说明原因
+
+
+
+
+
+
+
+
@@ -334,10 +351,12 @@ import { typeValues } from '@/api/cheliang/dictcommons'
import ImageUpload from '@/components/uploadFile/ManyImageUpload' // 上传文件
export default {
name: 'PinpaiAdd',
- components: {ImageUpload},
+ components: { ImageUpload },
data() {
return {
viewTitle: '',
+ dialogVisible: false,
+ smRemarks: '',
// --按钮菜单-------
menuState: {
add: false, // 添加
@@ -359,7 +378,8 @@ export default {
certificatePhoto: [],
certificateState: '004', // 合格证状态key
certificateStateValue: '正式', // 合格证状态value
- noticeModel: '' // 公告型号
+ noticeModel: '', // 公告型号
+ smRemarks: ''
}, // 添加和修改
templook: {}, // 查看实体
Situation: [],
@@ -667,9 +687,12 @@ export default {
certificateSituationValue: '',
certificatePhoto: [],
certificateState: '0002', // 合格证状态key
- certificateStateValue: '正式' // 合格证状态value
+ certificateStateValue: '正式', // 合格证状态value
+ smRemarks: ''
} // 添加和修改
- this.$emit('doback')
+ this.dialogVisible = false
+ this.smRemarks = ''
+ this.$emit('doback')
},
// 添加前数据初始化
@@ -711,18 +734,31 @@ export default {
})
} else {
// this.temp.certificatePhoto = this.attachTypeYingyezhizhao
+ this.temp.smRemarks = this.smRemarks
Update(this.temp).then((response) => {
this.FormLoading = false
- if (response.code === '200') {
+ if (response.success) {
// this.getList()
- this.dialogFormVisible = false
- this.$notify({
- title: '提示',
- message: '修改成功',
- type: 'success',
- duration: 2000
- })
- this.handleReturn('true')
+ if (response.msg !== '该车架号后八位与车辆台账中车架号不符,请填写说明原因') {
+ this.dialogFormVisible = false
+ this.$notify({
+ title: '提示',
+ message: '修改成功',
+ type: 'success',
+ duration: 2000
+ })
+ this.handleReturn('true')
+ } else {
+ const tip = response.msg
+ this.$confirm(tip, '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ this.smRemarks = ''
+ this.dialogVisible = true
+ })
+ }
}
})
}
@@ -811,10 +847,6 @@ export default {
}