|
@@ -27,7 +27,7 @@
|
|
<tn-avatar class="" shape="circle" :src="item.userAvatar" size="lg">
|
|
<tn-avatar class="" shape="circle" :src="item.userAvatar" size="lg">
|
|
</tn-avatar>
|
|
</tn-avatar>
|
|
</view> -->
|
|
</view> -->
|
|
- <view class="tn-padding-right tn-text-ellipsis">
|
|
|
|
|
|
+ <view class="tn-padding-right">
|
|
<view class="tn-padding-right tn-text-bold tn-text-lg" :style="{fontSize:(wxFontSize)+'px'}">
|
|
<view class="tn-padding-right tn-text-bold tn-text-lg" :style="{fontSize:(wxFontSize)+'px'}">
|
|
{{ item.company }}
|
|
{{ item.company }}
|
|
</view>
|
|
</view>
|
|
@@ -38,7 +38,7 @@
|
|
</view>
|
|
</view>
|
|
<view v-if="item.status=='4'&&item.showFlag=='否'"
|
|
<view v-if="item.status=='4'&&item.showFlag=='否'"
|
|
class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
|
|
class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
|
|
- <text class="" style="background: #3F51B542;font-size: 12px;
|
|
|
|
|
|
+ <text class="" style="background: #3F51B542;font-size: 12px;word-break: keep-all;
|
|
padding: 8px;
|
|
padding: 8px;
|
|
color: #333333;
|
|
color: #333333;
|
|
border-radius: 24px;
|
|
border-radius: 24px;
|
|
@@ -47,7 +47,7 @@
|
|
<!-- 状态(1:暂存,2:待处理,3:审核中,4:已通过,9:已拒绝,10:已取消) -->
|
|
<!-- 状态(1:暂存,2:待处理,3:审核中,4:已通过,9:已拒绝,10:已取消) -->
|
|
<view v-if="item.status=='1'"
|
|
<view v-if="item.status=='1'"
|
|
class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
|
|
class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
|
|
- <text class="" style="background: #3F51B542;font-size: 12px;
|
|
|
|
|
|
+ <text class="" style="background: #3F51B542;font-size: 12px;word-break: keep-all;
|
|
padding: 8px;
|
|
padding: 8px;
|
|
color: #333333;
|
|
color: #333333;
|
|
border-radius: 24px;
|
|
border-radius: 24px;
|
|
@@ -55,7 +55,7 @@
|
|
</view>
|
|
</view>
|
|
<view v-if="item.status=='3'"
|
|
<view v-if="item.status=='3'"
|
|
class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
|
|
class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
|
|
- <text class="" style="background: #3f51b56b;font-size: 12px;
|
|
|
|
|
|
+ <text class="" style="background: #3f51b56b;font-size: 12px;word-break: keep-all;
|
|
padding: 8px;
|
|
padding: 8px;
|
|
color: #ff0;
|
|
color: #ff0;
|
|
border-radius: 24px;
|
|
border-radius: 24px;
|
|
@@ -63,7 +63,7 @@
|
|
</view>
|
|
</view>
|
|
<view v-if="item.status=='4'&&item.showFlag!='否'"
|
|
<view v-if="item.status=='4'&&item.showFlag!='否'"
|
|
class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
|
|
class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
|
|
- <text class="" style="background: #3F51B542;font-size: 12px;
|
|
|
|
|
|
+ <text class="" style="background: #3F51B542;font-size: 12px;word-break: keep-all;
|
|
padding: 8px;
|
|
padding: 8px;
|
|
color: #007000;
|
|
color: #007000;
|
|
border-radius: 24px;
|
|
border-radius: 24px;
|
|
@@ -71,7 +71,7 @@
|
|
</view>
|
|
</view>
|
|
<view v-if="item.status=='9'"
|
|
<view v-if="item.status=='9'"
|
|
class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
|
|
class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
|
|
- <text class="" style="background: #3F51B542;font-size: 12px;
|
|
|
|
|
|
+ <text class="" style="background: #3F51B542;font-size: 12px;word-break: keep-all;
|
|
padding: 8px;
|
|
padding: 8px;
|
|
color: #d23920;
|
|
color: #d23920;
|
|
border-radius: 24px;
|
|
border-radius: 24px;
|
|
@@ -79,7 +79,7 @@
|
|
</view>
|
|
</view>
|
|
<view v-if="item.status=='10'"
|
|
<view v-if="item.status=='10'"
|
|
class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
|
|
class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
|
|
- <text class="" style="background: #3F51B542;font-size: 12px;
|
|
|
|
|
|
+ <text class="" style="background: #3F51B542;font-size: 12px;word-break: keep-all;
|
|
padding: 8px;
|
|
padding: 8px;
|
|
color: #333333;
|
|
color: #333333;
|
|
border-radius: 24px;
|
|
border-radius: 24px;
|
|
@@ -89,14 +89,14 @@
|
|
|
|
|
|
<view
|
|
<view
|
|
class="blogger__desc tn-margin-top-sm tn-margin-bottom-sm tn-text-justify tn-flex-col-center tn-flex-row-left"
|
|
class="blogger__desc tn-margin-top-sm tn-margin-bottom-sm tn-text-justify tn-flex-col-center tn-flex-row-left"
|
|
- @click="tn('')">
|
|
|
|
|
|
+ >
|
|
<text
|
|
<text
|
|
class="blogger__desc__content tn-flex-1 tn-text-justify tn-text-df" :style="{fontSize:(wxFontSize-2)+'px'}">{{ item.content }}</text>
|
|
class="blogger__desc__content tn-flex-1 tn-text-justify tn-text-df" :style="{fontSize:(wxFontSize-2)+'px'}">{{ item.content }}</text>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<block v-if="item.imgList">
|
|
<block v-if="item.imgList">
|
|
<view v-if="[1,2,4].indexOf(item.imgList.length) != -1" class="tn-padding-top-xs"
|
|
<view v-if="[1,2,4].indexOf(item.imgList.length) != -1" class="tn-padding-top-xs"
|
|
- @click="tn('')">
|
|
|
|
|
|
+ >
|
|
<image v-for="(image_item,image_index) in item.imgList" :key="image_index"
|
|
<image v-for="(image_item,image_index) in item.imgList" :key="image_index"
|
|
class="blogger__main-image" :class="{
|
|
class="blogger__main-image" :class="{
|
|
'blogger__main-image--1 tn-margin-bottom-sm': item.imgList.length === 1,
|
|
'blogger__main-image--1 tn-margin-bottom-sm': item.imgList.length === 1,
|
|
@@ -139,7 +139,7 @@
|
|
<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin-top-xs">
|
|
<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin-top-xs">
|
|
<view class="justify-content-item tn-color-gray">
|
|
<view class="justify-content-item tn-color-gray">
|
|
<view class="tn-padding-right tn-padding-top-xs tn-color-gray" style="display: flex;">
|
|
<view class="tn-padding-right tn-padding-top-xs tn-color-gray" style="display: flex;">
|
|
- <view style="white-space: nowrap;">{{ item.createTime|formatDate }}</view>
|
|
|
|
|
|
+ <view style="white-space: nowrap;" :style="{fontSize:(wxFontSize-3)+'px'}">{{ item.createTime|formatDate }}</view>
|
|
<view style="color: red;margin-left:8px;" v-if="item.status==9&&item.feedback" :style="{fontSize:(wxFontSize-3)+'px'}">
|
|
<view style="color: red;margin-left:8px;" v-if="item.status==9&&item.feedback" :style="{fontSize:(wxFontSize-3)+'px'}">
|
|
反馈意见:{{item.feedback||'--'}}
|
|
反馈意见:{{item.feedback||'--'}}
|
|
</view>
|
|
</view>
|
|
@@ -148,14 +148,16 @@
|
|
|
|
|
|
</view>
|
|
</view>
|
|
<view class="justify-content-item tn-flex tn-flex-col-center" v-if="item.status==4&&item.showFlag!='否'">
|
|
<view class="justify-content-item tn-flex tn-flex-col-center" v-if="item.status==4&&item.showFlag!='否'">
|
|
- <button type="warn" plain="true" size="mini" @click="finishItem(item)">结束需求</button>
|
|
|
|
|
|
+ <button type="warn" plain="true" size="mini" @click="finishItem(item)" :style="{fontSize:(wxFontSize-4)+'px'}">结束需求</button>
|
|
<!-- <tn-button shadow shape="round" fontColor="tn-color-white" backgroundColor="tn-bg-blue"
|
|
<!-- <tn-button shadow shape="round" fontColor="tn-color-white" backgroundColor="tn-bg-blue"
|
|
:fontSize="24" height="auto" padding="10rpx 18rpx"
|
|
:fontSize="24" height="auto" padding="10rpx 18rpx"
|
|
@click="finishItem(item)">结束需求</tn-button> -->
|
|
@click="finishItem(item)">结束需求</tn-button> -->
|
|
|
|
|
|
</view>
|
|
</view>
|
|
- <view class="justify-content-item tn-flex tn-flex-col-center" style="flex: none;" v-if="item.status==1||item.status==9">
|
|
|
|
- <button type="warn" plain="true" size="mini" @click="editItem(item)">编辑</button>
|
|
|
|
|
|
+ <view class="justify-content-item tn-flex tn-flex-col-center" style="flex: none;" v-if="item.status==1||item.status==9||(item.status==4&&item.showFlag=='否')">
|
|
|
|
+ <button type="warn" plain="true" size="mini" @click="editItem(item)" :style="{fontSize:(wxFontSize-4)+'px'}">编辑</button>
|
|
|
|
+
|
|
|
|
+ <button v-if="item.status==4&&item.showFlag=='否'" style="border-color: #007000;color:#007000;margin-left:12px" type="warn" plain="true" size="mini" @click="reOpen(item)" :style="{fontSize:(wxFontSize-4)+'px'}">恢复</button>
|
|
<!-- <tn-button shadow shape="round" fontColor="tn-color-white" backgroundColor="tn-bg-blue"
|
|
<!-- <tn-button shadow shape="round" fontColor="tn-color-white" backgroundColor="tn-bg-blue"
|
|
:fontSize="24" height="auto" padding="10rpx 18rpx"
|
|
:fontSize="24" height="auto" padding="10rpx 18rpx"
|
|
@click="finishItem(item)">结束需求</tn-button> -->
|
|
@click="finishItem(item)">结束需求</tn-button> -->
|
|
@@ -302,7 +304,7 @@
|
|
}else{
|
|
}else{
|
|
if(res._redirect){
|
|
if(res._redirect){
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: '操作过期,请重试',
|
|
|
|
|
|
+ title: '操作过期,请登录后重试',
|
|
duration: 2000,
|
|
duration: 2000,
|
|
icon:'none'
|
|
icon:'none'
|
|
});
|
|
});
|
|
@@ -333,6 +335,60 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ reOpen(item){
|
|
|
|
+ this.curItem = item;
|
|
|
|
+ let that = this;
|
|
|
|
+ uniShowModal('确定恢复需求吗?', '', {
|
|
|
|
+ showCancel: true,
|
|
|
|
+ confirmText:'确定',
|
|
|
|
+ success: (res) => {
|
|
|
|
+ if(res.confirm){
|
|
|
|
+ //update
|
|
|
|
+ let params = {};
|
|
|
|
+ params.slbResourceDemand = JSON.parse(JSON.stringify(item));
|
|
|
|
+ params.slbResourceDemand.status = 4;
|
|
|
|
+ params.slbResourceDemand.showFlag = '是';
|
|
|
|
+ params.slbResourceDemand.fileDetailList = undefined;
|
|
|
|
+
|
|
|
|
+ params.slbResourceDemand.companyEntity = {};
|
|
|
|
+ params.slbResourceDemand.companyEntity.company = params.slbResourceDemand.company;
|
|
|
|
+ params.slbResourceDemand.companyEntity.jobTitle = params.slbResourceDemand.jobTitle;
|
|
|
|
+ params.slbResourceDemand.companyEntity.creditCode = params.slbResourceDemand.creditCode;
|
|
|
|
+ params.slbResourceDemand.companyEntity.address = params.slbResourceDemand.base;
|
|
|
|
+ params.slbResourceDemand.companyEntity.regStatus = params.slbResourceDemand.regStatus;
|
|
|
|
+
|
|
|
|
+ params.slbResourceDemand.companyEntity.contactPerson = params.slbResourceDemand.contactPerson;
|
|
|
|
+ params.slbResourceDemand.companyEntity.contactMethod = params.slbResourceDemand.contactMethod;
|
|
|
|
+
|
|
|
|
+ params.slbResourceDemand.slbUserExt = {
|
|
|
|
+ contactPerson:params.slbResourceDemand.contactPerson,
|
|
|
|
+ contactMethod:params.slbResourceDemand.contactMethod,
|
|
|
|
+ userNo:params.slbResourceDemand.userNo,
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ params.slbResourceDemand = JSON.stringify(params.slbResourceDemand);
|
|
|
|
+
|
|
|
|
+ params.fileDetailList = JSON.stringify(item.fileDetailList);
|
|
|
|
+
|
|
|
|
+ request.post('/slbResourceDemand/update', params).then(res => {
|
|
|
|
+
|
|
|
|
+ if(res.success){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '恢复成功'
|
|
|
|
+ })
|
|
|
|
+ that.loadData();
|
|
|
|
+ }else{
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title:res.msg,
|
|
|
|
+ icon:'none'
|
|
|
|
+ })
|
|
|
|
+ that.canSave = true;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
finishItem(item) {
|
|
finishItem(item) {
|
|
this.curItem = item;
|
|
this.curItem = item;
|
|
let that = this;
|
|
let that = this;
|