From 79e5599727c2ad19bb40cccd35f6f3302ff1b896 Mon Sep 17 00:00:00 2001
From: GULIMMO <2820890765@qq.com>
Date: Thu, 09 Nov 2023 17:39:57 +0800
Subject: [PATCH] 场所维护及其审核页面、报事审核及其审核页面更新
---
subPackage/workbench/views/examine.vue | 124 ++++++++++++++++++++++++++++------------
1 files changed, 86 insertions(+), 38 deletions(-)
diff --git a/subPackage/workbench/views/examine.vue b/subPackage/workbench/views/examine.vue
index aacc524..046416f 100644
--- a/subPackage/workbench/views/examine.vue
+++ b/subPackage/workbench/views/examine.vue
@@ -32,12 +32,12 @@
<view class="info">
<u-form labelWidth="70" :model="form" ref="form" class="form">
<u-form-item label="审核状态" @click="isPickerShow = true" class="form-item">
- <u-input v-model="form.status" disabled disabledColor="#ffffff" placeholder="请选择审核状态"
- border="none"></u-input>
+ <u--input v-model="form.confirmFlag" disabled disabledColor="#ffffff" placeholder="请选择审核状态"
+ border="none"></u--input>
<u-icon slot="right" name="arrow-right"></u-icon>
</u-form-item>
<u-form-item label="备注" class="form-item">
- <u-input v-model="form.remark" border="none"></u-input>
+ <u--input v-model="form.confirmNotion" border="none"></u--input>
</u-form-item>
</u-form>
</view>
@@ -53,6 +53,9 @@
<script>
import boxTitle from '@/components/boxTitle/index.vue'
import lineItem from '../components/lineItem.vue'
+ import {
+ checkPlaceExtData
+ } from '@/api/placeExp/placeExp.js'
export default {
components: {
boxTitle,
@@ -61,19 +64,23 @@
data() {
return {
basicData: [{
- label: '场所名称',
+ label: '场所名称',
+ name: "placeName",
value: '未完善'
},
{
- label: '法人信息',
+ label: '法人信息',
+ name: 'legalPerson',
value: '未完善'
},
{
- label: '法人电话',
+ label: '法人电话',
+ name: 'legalTel',
value: '未完善'
},
{
- label: '场所位置',
+ label: '场所位置',
+ name: 'localtion',
value: '未完善'
},
],
@@ -90,45 +97,84 @@
label: '暂住地',
value: '未完善',
}
- ],
- [{
- label: '姓名',
- value: '未完善',
- },
- {
- label: '电话号码',
- value: '未完善',
- },
- {
- label: '暂住地',
- value: '未完善',
- }
]
],
form: {
- status: '未审批',
- remark: ''
+ confirmFlag: '待审核',
+ confirmNotion: ''
},
isPickerShow: false,
columns: [
[{
- name: '通过',
- type: 1
- }, {
- name: '不通过',
- type: 2
- }]
- ]
+ name: "待审核",
+ status: 1
+ },
+ {
+ name: "审核通过",
+ status: 2
+ },
+ {
+ name: "审核不通过",
+ status: 3
+ },
+ ]
+ ],
+ currentId: '',
+ currentData: {}
}
},
- methods: {
+ onLoad(option) {
+ // const {
+ // id
+ // } = option
+ // this.currentId = id
+ const { siteData } = option
+ this.currentData = JSON.parse(siteData)
+ },
+ onShow() {
+ this.setDefaultValue()
+ },
+ methods: {
+ setDefaultValue() {
+ this.basicData.forEach(item => {
+ item.value = this.currentData[item.name]
+ })
+ },
+ async checkPlaceExt(data) {
+ const res = await checkPlaceExtData(data)
+ if (res.code !== 200) {
+ uni.showToast({
+ title: '更新失败',
+ icon: 'error'
+ })
+ return
+ }
+ uni.navigateBack()
+ },
handleConfirm(e) {
- this.form.status = e.value[0].name
+ this.form.confirmFlag = e.value[0].name
this.isPickerShow = false
},
submit() {
-
- }
+ const {
+ confirmFlag,
+ confirmNotion
+ } = this.form
+ let data = {
+ id: this.currentData.id,
+ confirmFlag: this.findObjValue(confirmFlag, this.columns[0]).status
+ }
+ confirmNotion && Object.assign(data, {
+ confirmNotion
+ })
+ this.checkPlaceExt(data)
+ },
+ findObjValue(value, obj) {
+ const res = obj.find(item => {
+ return item.name == value
+ })
+ return res
+ },
}
}
</script>
@@ -146,10 +192,10 @@
}
.info {
-
+
.title {
- font-size: 30rpx;
+ font-size: 30rpx;
padding-left: 10rpx;
}
@@ -160,13 +206,14 @@
}
}
- .form {
+ .form {
background-color: #fff;
+
.form-item {
padding: 0 20rpx;
&:first-child {
- border: 1rpx solid #f6f6ff;
+ border-bottom: 1rpx solid #f6f6ff;
}
}
}
@@ -178,11 +225,12 @@
padding: 20rpx;
width: calc(100% - 40rpx);
background-color: #fff;
+ z-index: 9999;
}
}
/deep/ .u-form-item__body__left__content__label,
- /deep/ .uni-input-input {
+ /deep/ .uni-input-placeholder {
font-size: 30rpx;
}
</style>
\ No newline at end of file
--
Gitblit v1.9.3