|
@@ -39,7 +39,7 @@
|
|
|
>
|
|
|
<u--textarea
|
|
|
v-model="remarkVal"
|
|
|
- :disabled="type == 'view'"
|
|
|
+ :disabled="!isBinji"
|
|
|
placeholder="请输入备注内容"
|
|
|
fixed
|
|
|
border="none"
|
|
@@ -59,7 +59,7 @@
|
|
|
>
|
|
|
<u--textarea
|
|
|
v-model="remarkVal2"
|
|
|
- :disabled="type == 'view'"
|
|
|
+ :disabled="!isBinji"
|
|
|
placeholder="请输入备注内容"
|
|
|
fixed
|
|
|
border="none"
|
|
@@ -87,10 +87,10 @@
|
|
|
mode="aspectFill"
|
|
|
@tap="prevVideo(item.url)"
|
|
|
></image>
|
|
|
- <text v-if="type !== 'view'" class="iconfont icon-guanbi1" @tap="delImage(index)"></text>
|
|
|
+ <text v-if="isBinji" class="iconfont icon-guanbi1" @tap="delImage(index)"></text>
|
|
|
</view>
|
|
|
</block>
|
|
|
- <view class="add" @tap="addImage" v-if="imageList.length < 15 && type !== 'view'">
|
|
|
+ <view class="add" @tap="addImage" v-if="imageList.length < 15 && isBinji">
|
|
|
<text class="iconfont icon-xiangji"></text>
|
|
|
<text class="text">添加图片</text>
|
|
|
</view>
|
|
@@ -105,9 +105,7 @@
|
|
|
|
|
|
<view
|
|
|
class="info-container card mt30"
|
|
|
- v-if="
|
|
|
- oldData.workerInvolveApplyItems && oldData.workerInvolveApplyItems.length && ![1, 3].includes(oldData.status)
|
|
|
- "
|
|
|
+ v-if="oldData && oldData.workerInvolveApplyItems && oldData.workerInvolveApplyItems.length"
|
|
|
>
|
|
|
<view class="common-title">
|
|
|
<text>审核信息</text>
|
|
@@ -137,10 +135,10 @@
|
|
|
</view>
|
|
|
|
|
|
<template slot="footer">
|
|
|
- <view class="footer-btn-group" v-if="['sub'].includes(type)">
|
|
|
- <u-button text="确定" type="primary" size="large" @click="submitData"></u-button>
|
|
|
+ <view class="footer-btn-group" v-if="!oldData">
|
|
|
+ <u-button text="提交" type="primary" size="large" @click="submitData"></u-button>
|
|
|
</view>
|
|
|
- <view class="footer-btn-group" v-if="['shenhe'].includes(type)">
|
|
|
+ <view class="footer-btn-group" v-if="oldData && oldData.status == 2">
|
|
|
<u-button text="重新申请" type="primary" size="large" @click="shenheapi"></u-button>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -178,28 +176,33 @@ export default {
|
|
|
imageList: [],
|
|
|
orderDetail: null,
|
|
|
canClickBtn: true,
|
|
|
- oldData: {},
|
|
|
+ oldData: null,
|
|
|
videoUrl: ''
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+ computed: {
|
|
|
+ isBinji() {
|
|
|
+ return !this.oldData || this.oldData?.status == 2
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
async onLoad({ id, type }) {
|
|
|
this.id = id
|
|
|
- this.type = type
|
|
|
this.getOrderDetail()
|
|
|
- if (['shenhe', 'view'].includes(this.type)) {
|
|
|
- this.$api
|
|
|
- .post('/workerApply/detail', {
|
|
|
- orderBaseId: this.id
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
+ this.$api
|
|
|
+ .post('/workerApply/detail', {
|
|
|
+ orderBaseId: this.id
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data) {
|
|
|
this.oldData = res.data
|
|
|
this.remarkVal = res.data.reason
|
|
|
this.remarkVal2 = res.data.problemDescription
|
|
|
this.imageList = res.data.image.split(',').map(url => ({ url }))
|
|
|
- })
|
|
|
- .catch(res => {})
|
|
|
- }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(res => {})
|
|
|
},
|
|
|
|
|
|
methods: {
|