From c65169cebf56657dbec38088c870f0084ca08321 Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Tue, 26 Dec 2023 18:26:40 +0800
Subject: [PATCH] 优化修复问题
---
subPackage/workbench/views/examine.vue | 86 +++++++++++++++++++++++++-----------------
1 files changed, 51 insertions(+), 35 deletions(-)
diff --git a/subPackage/workbench/views/examine.vue b/subPackage/workbench/views/examine.vue
index 75f3cb5..cd7d52f 100644
--- a/subPackage/workbench/views/examine.vue
+++ b/subPackage/workbench/views/examine.vue
@@ -6,26 +6,35 @@
<lineItem :dataInfo="basicData"></lineItem>
</view>
</view>
- <view class="licence" v-if="imageObj.imageUrls.length">
+ <view class="licence">
<box-title title="营业执照" class="box-title"></box-title>
<view class="info">
- <view class="images-box" v-for="(i,k) in imageObj.imageUrls" :key="k">
+
+
+ <view class="f-30" v-if="!imageObj.imageUrls.length">未完善</view>
+
+ <view class="images-box" v-for="(i,k) in imageObj.imageUrls" :key="k" v-if="imageObj.imageUrls.length">
<u-image width="80" height="80" :src="i" @click="preViewImg(i,imageObj.imageUrls)"></u-image>
</view>
</view>
</view>
- <view class="planegraph" v-if="imageObj.planImageUrls.length">
+ <view class="planegraph">
<box-title title="场所平面图" class="box-title"></box-title>
<view class="info">
- <view class="images-box" v-for="(i,k) in imageObj.planImageUrls" :key="k">
+ <view class="f-30" v-if="!imageObj.planImageUrls.length">未完善</view>
+ <view class="images-box" v-for="(i,k) in imageObj.planImageUrls" :key="k"
+ v-if="imageObj.planImageUrls.length">
<u-image width="80" height="80" :src="i" @click="preViewImg(i,imageObj.planImageUrls)"></u-image>
</view>
</view>
</view>
- <view class="personnel" v-if="placePersonList.length">
+ <view class="personnel">
<box-title title="从业人员" class="box-title"></box-title>
<view class="info">
- <view class="person-box" v-for="(item, index) in placePersonList" :key="item.id">
+ <view class="f-30" v-if="!placePersonList.length">
+ 未完善
+ </view>
+ <view class="person-box" v-for="(item, index) in placePersonList" :key="item.id">
<view class="title">人员信息-#{{ index + 1 }}</view>
<view class="info-box">
<view class="content">
@@ -44,9 +53,12 @@
</view>
</view>
</view>
- <!-- <view class="examine">
- <box-title title="审核信息" class="box-title"></box-title>
- <view class="info">
+ <view class="examine" v-if="confirmNotion">
+ <box-title title="备注" class="box-title"></box-title>
+ <view class="row f-30">
+ {{confirmNotion}}
+ </view>
+ <!-- <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="defaultPlaceholder" disabled disabledColor="#ffffff"
@@ -54,28 +66,23 @@
<u-icon slot="right" name="arrow-right"></u-icon>
</u-form-item>
<u-form-item label="备注" class="form-item">
- <u--input v-model="form.confirmNotion" inputAlign="right" border="none"></u--input>
+ <u--input v-model="confirmNotion" inputAlign="right" border="none"></u--input>
</u-form-item>
</u-form>
- </view>
- </view> -->
+ </view> -->
+ </view>
<!-- <view class="bottom-btn">
<u-button type="primary" @click="submit">提交审核</u-button>
</view> -->
-
-
- <footer-btn @click="submit" v-if="form.confirmFlag == 3" text="通过" />
-
-
-
- <view class="footer flex a-i-c j-c-s-b" v-if="form.confirmFlag == 1">
+ <footer-btn @click="submit" v-if="confirmFlag == 3" text="通过" />
+ <view class="footer flex a-i-c j-c-s-b" v-if="confirmFlag == 1">
<button class="footer-btn" @click="submit(1)">通过</button>
<button class="footer-btn" @click="submit(2)">驳回</button>
</view>
- <u-modal :show="isShowModal" title="备注" :showConfirmButton="false">
+ <u-modal :show="isShowModal" title="备注" :showConfirmButton="false">
<view class="modal-content">
<u-textarea v-model="form.confirmNotion" placeholder="请输入驳回原因"></u-textarea>
<view class="modal-btn flex j-c-s-b a-i-c" slot="confirmButton">
@@ -83,7 +90,6 @@
<button class="modal-btn-item bgc-main f-30 c-ff" @click="rejectSubmit">确定</button>
</view>
</view>
-
</u-modal>
<u-picker :defaultIndex="[this.defaultColumns]" :closeOnClickOverlay="true" @close="isPickerShow = false"
@@ -161,7 +167,9 @@
},
defaultColumns: 0,
defaultPlaceholder: '待审核',
- isShowModal: false
+ isShowModal: false,
+ confirmFlag: 1,
+ confirmNotion: ""
}
},
onLoad(option) {
@@ -197,7 +205,8 @@
// })
this.form.confirmFlag = data.confirmFlag;
-
+ this.confirmFlag = data.confirmFlag;
+ this.confirmNotion = data.confirmNotion;
if (data.imageUrls) {
// let urls = data.imageUrls.split(",");
// this.imageObj.imageUrls = `${minioBaseUrl}${data.imageUrls}`
@@ -274,13 +283,14 @@
},
rejectSubmit() {
- if(!this.form.confirmNotion){
+ if (!this.form.confirmNotion) {
uni.showToast({
- title:"请输入驳回原因",
- icon:"none"
+ title: "请输入驳回原因",
+ icon: "none"
})
return
- }
+ }
+ this.form.confirmFlag = 3
this.checkPlaceExt()
}
@@ -400,7 +410,8 @@
}
.modal-content {
- width:100%;
+ width: 100%;
+
.modal-btn {
width: 100%;
padding: 40rpx 0 0;
@@ -410,19 +421,24 @@
height: 74rpx;
line-height: 74rpx;
border-radius: 35rpx;
- border:none;
- padding:0;
- margin:0;
+ border: none;
+ padding: 0;
+ margin: 0;
}
.modal-btn-item:first-child {
border: 1px solid currentColor;
- background:transparent;
+ background: transparent;
}
-
+
}
}
- /deep/ .u-modal__content{
- padding-bottom:20rpx !important;
+
+ /deep/ .u-modal__content {
+ padding-bottom: 20rpx !important;
+ }
+
+ .row {
+ padding: 20rpx;
}
</style>
\ No newline at end of file
--
Gitblit v1.9.3