From 16e8c7adbee6c9ee9bac09a80d44d3bfd3fe2f0c Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 19 五月 2025 09:45:38 +0800
Subject: [PATCH] Merge branch '2.0.2' into 2.0.1
---
wx/pages/report_details/report_details.vue | 157 +++++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 143 insertions(+), 14 deletions(-)
diff --git a/wx/pages/report_details/report_details.vue b/wx/pages/report_details/report_details.vue
index 7b32b76..7d7fbe7 100644
--- a/wx/pages/report_details/report_details.vue
+++ b/wx/pages/report_details/report_details.vue
@@ -94,10 +94,16 @@
<view class="info_list">
<view class="info_list_item f">
<view class="info_list_item_label1">1銆佸憳宸ュ叧绯昏瘉鏄庤祫鏂�</view>
- <view class="info_list_item_tu" v-if="info && info.relationFileList">
+ <view class="info_list_item_tu" v-if="info">
<view class="info_list_item_tu_img" v-for="(item,index) in info.relationFileList" :key="index">
+ <view class="info_list_item_tu_img_dele" @click.stop="deleFile(item.id, item.objId)">
+ <image src="@/static/icon/ic_delete@2x.png" mode="widthFix"></image>
+ </view>
<image :src="item.fileurlFull" mode="widthFix" v-if="item.type == 0"></image>
<video :src="item.fileurlFull" v-if="item.type == 1" />
+ </view>
+ <view class="info_list_item_tu_up" @click="upload(2)" v-if="info.status == 0 || info.status == 2 || info.status == 3">
+ <u-icon name="plus" color="#222222" size="20"></u-icon>
</view>
<view class="info_list_item_tu_zw"></view>
<view class="info_list_item_tu_zw"></view>
@@ -106,11 +112,17 @@
</view>
<view class="info_list_item f">
<view class="info_list_item_label1">2銆佸尰鐤楄祫鏂�</view>
- <view class="info_list_item_tu" v-if="info && [...info.outpatientFileList, ...info.hospitalFileList, ...info.disabilityFileList].length > 0">
- <view class="info_list_item_tu_img" v-for="(item, index) in [].concat(info.outpatientFileList).concat(info.hospitalFileList).concat(info.disabilityFileList)" :key="index">
+ <view class="info_list_item_tu" v-if="info">
+ <view class="info_list_item_tu_img" v-for="(item, index) in info.outpatientFileList" :key="index">
+ <view class="info_list_item_tu_img_dele" @click.stop="deleFile(item.id, item.objId)">
+ <image src="@/static/icon/ic_delete@2x.png" mode="widthFix"></image>
+ </view>
<image :src="item.fileurlFull" mode="widthFix" v-if="item.type === 0"></image>
<video :src="item.fileurlFull" v-if="item.type === 1"></video>
</view>
+ <view class="info_list_item_tu_up" @click="upload(3)" v-if="info.status == 0 || info.status == 2 || info.status == 3">
+ <u-icon name="plus" color="#222222" size="20"></u-icon>
+ </view>
<view class="info_list_item_tu_zw"></view>
<view class="info_list_item_tu_zw"></view>
<view class="info_list_item_tu_zw"></view>
@@ -118,10 +130,16 @@
</view>
<view class="info_list_item f">
<view class="info_list_item_label1">3銆佽禂浠樼粨妗堣祫鏂�</view>
- <view class="info_list_item_tu" v-if="info && info.compensationFileList">
+ <view class="info_list_item_tu" v-if="info">
<view class="info_list_item_tu_img" v-for="(item, index) in info.compensationFileList" :key="index">
+ <view class="info_list_item_tu_img_dele" @click.stop="deleFile(item.id, item.objId)">
+ <image src="@/static/icon/ic_delete@2x.png" mode="widthFix"></image>
+ </view>
<image :src="item.fileurlFull" mode="widthFix" v-if="item.type === 0"></image>
- <video :src="item.fileurlFull" v-if="item.type === 0"></video>
+ <video :src="item.fileurlFull" v-if="item.type === 1"></video>
+ </view>
+ <view class="info_list_item_tu_up" @click="upload(6)" v-if="info.status == 0 || info.status == 2 || info.status == 3">
+ <u-icon name="plus" color="#222222" size="20"></u-icon>
</view>
<view class="info_list_item_tu_zw"></view>
<view class="info_list_item_tu_zw"></view>
@@ -157,7 +175,8 @@
<view class="info_list_row_info_nr" v-if="item.content">
<view class="info_list_row_info_nr_title" :style="{ color: info.settleClaimsLogList.length - 1 === index ? '#437CB3' : '' }">澶勭悊杩涘睍锛�</view>
<view class="info_list_row_info_nr_val">
- {{item.content}}
+ <text>{{item.content}}</text>
+ <text v-if="item.objType === 3">鍖荤枟鐞嗚禂:{{JSON.parse(item.afterContent).ylClaimAccount}}鍏冿紝璇伐鐞嗚禂:{{JSON.parse(item.afterContent).wgClaimAccount}}鍏冿紝浼ゆ畫鐞嗚禂:{{JSON.parse(item.afterContent).scClaimAccount}}鍏冿紝姝讳骸鐞嗚禂:{{JSON.parse(item.afterContent).swClaimAccount}}鍏冿紝鐞嗚禂鎬婚:{{JSON.parse(item.afterContent).claimAccount}}鍏冦��</text>
</view>
</view>
</view>
@@ -166,28 +185,112 @@
</view>
<view style="width: 100%; height: calc(env(safe-area-inset-bottom) + 100rpx);" v-if="info.status == 0 || info.status == 2 || info.status == 3"></view>
<view class="details_footer" v-if="info.status == 0 || info.status == 2 || info.status == 3">
+ <u-button type="primary" shape="circle" color="#437CB3" text="琛ュ厖璇存槑" @click="openBC"></u-button>
+ <view style="width: 30rpx; height: 100%;"></view>
<u-button type="primary" shape="circle" color="#437CB3" text="缂栬緫" @click="edit"></u-button>
</view>
</view>
+ <u-modal
+ title="琛ュ厖璧勬枡"
+ :show="show"
+ :showCancelButton="true"
+ closeOnClickOverlay
+ @cancel="show = false"
+ @confirm="confirm"
+ >
+ <u--textarea v-model="value" placeholder="璇疯緭鍏�"></u--textarea>
+ </u-modal>
</view>
</template>
<script>
+ import { mapState } from 'vuex'
export default {
data() {
return {
id: null,
info: null,
+ show: false,
height: 'auto',
height1: 'auto',
- height2: 'auto'
+ height2: 'auto',
+ value: ''
};
},
onLoad(option) {
this.id = option.id
this.getDetails()
+ uni.$on('update', (data) => {
+ this.getDetails()
+ })
+ },
+ computed: {
+ ...mapState(['cookies'])
},
methods: {
+ // 鍒犻櫎闄勪欢
+ deleFile(id, objId) {
+ this.$u.api.delFile(objId, id)
+ .then(res => {
+ if (res.code === 200) {
+ this.getDetails()
+ }
+ })
+ },
+ // 涓婁紶鏉愭枡
+ upload(type) {
+ var that = this
+ uni.chooseMedia({
+ count: 1,
+ maxDuration: 60,
+ success(res) {
+ uni.uploadFile({
+ url: that.$baseUrl + 'public/upload',
+ filePath: res.tempFiles[0].tempFilePath,
+ name: 'file',
+ header: {
+ 'doumee-auth-token': that.cookies
+ },
+ formData: {
+ 'folder': 'settle'
+ },
+ success: (uploadFileRes) => {
+ let data = JSON.parse(uploadFileRes.data).data
+ console.log(JSON.parse(uploadFileRes.data).data)
+ that.$u.api.claimsUploadFile({
+ fileName: '',
+ fileType: data.type,
+ fileUrl: data.imgaddr,
+ id: that.id,
+ objType: type
+ }).then(result => {
+ that.getDetails()
+ })
+ }
+ });
+ }
+ })
+ },
+ openBC() {
+ this.value = ''
+ this.show = true
+ },
+ confirm() {
+ if (!this.value) return uni.showToast({
+ title: '璇疯緭鍏ュ唴瀹�',
+ icon: 'none'
+ })
+ this.$u.api.supplement({
+ id: this.id,
+ objType: 0,
+ supplement: this.value
+ }).then(res => {
+ if (res.code === 200) {
+ this.show = false
+ this.getDetails()
+ }
+ })
+ },
edit() {
uni.navigateTo({
url: `/pages/new_report/new_report?id=${this.info.id}`
@@ -197,7 +300,6 @@
this.$u.api.settleClaimsById(this.id)
.then(res => {
if (res.code === 200) {
- console.log(res)
this.info = res.data
}
})
@@ -314,12 +416,11 @@
bottom: 0;
left: 0;
z-index: 99;
- padding: 10rpx 30rpx;
+ padding: 10rpx 30rpx calc(env(safe-area-inset-bottom) + 10rpx) 30rpx;
box-sizing: border-box;
background-color: #ffffff;
display: flex;
align-items: center;
- padding-bottom: env(safe-area-inset-bottom);
}
.box_head_infoA {
width: 100%;
@@ -422,11 +523,19 @@
font-style: normal;
}
.info_list_row_info_nr_val {
- font-weight: 400;
- font-size: 26rpx;
- color: #666666;
- font-style: normal;
+ display: flex;
+ flex-direction: column;
margin-top: 12rpx;
+ text {
+ font-weight: 400;
+ font-size: 26rpx;
+ color: #666666;
+ font-style: normal;
+ margin-bottom: 20rpx;
+ &:last-child {
+ margin: 0 !important;
+ }
+ }
}
}
}
@@ -455,14 +564,34 @@
width: 140rpx;
height: 0;
}
+ .info_list_item_tu_up {
+ width: 140rpx;
+ height: 140rpx;
+ border-radius: 15rpx;
+ margin-bottom: 20rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border: 1rpx solid #999999;
+ }
.info_list_item_tu_img {
width: 140rpx;
height: 140rpx;
border-radius: 15rpx;
+ margin-bottom: 20rpx;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
+ position: relative;
+ .info_list_item_tu_img_dele {
+ width: 50rpx;
+ height: 50rpx;
+ position: absolute;
+ right: 0;
+ top: 0;
+ z-index: 9;
+ }
image {
width: 100%;
height: 100%;
--
Gitblit v1.9.3