|
|
@@ -3,7 +3,7 @@
|
|
|
<Nav :title="title" :genre="1" :opacity="scrollTop" is_fixed :bgHeight="bgHeight"></Nav>
|
|
|
<view class="operate_body page-env-160" :style="{top:`${$tools.topHeight()}px`}">
|
|
|
<view class="sys-background-fff m-lr30 m-t30 m-b20 p-lr30 r-20">
|
|
|
- <view class="" v-if="is_handle">
|
|
|
+ <view class="" v-if="type!=='3'">
|
|
|
<view class="row-justify-sb center p-tb30 bor-bottom-1 size-28">
|
|
|
<view class="wh-text"><text></text>下一阶段处理</view>
|
|
|
<view class="row-c flex" @click="openPopupObj(1)">
|
|
|
@@ -24,13 +24,13 @@
|
|
|
</view>
|
|
|
<uni-icons type="forward" size="18" color="#D8D8D8"></uni-icons>
|
|
|
</view>
|
|
|
- <WhInput :name="'回款金额'" v-if="stageData.operate_ids.indexOf('2')>-1" v-model="businessData.returned_total" type="digit" placeholder="请输入回款金额" ></WhInput>
|
|
|
- <WhInput :name="'出款金额'" v-if="stageData.operate_ids.indexOf('1')>-1" v-model="businessData.out_total" type="digit" placeholder="请输入出款金额" ></WhInput>
|
|
|
- <WhInput :name="'银行出款'" v-if="stageData.operate_ids.indexOf('4')>-1" v-model="businessData.bank_total" type="digit" placeholder="请输入银行出款" ></WhInput>
|
|
|
+ <en-input :name="'回款金额'" v-if="stageData.operate_ids.indexOf('2')>-1" v-model="businessData.returned_total" type="digit" placeholder="请输入回款金额" ></en-input>
|
|
|
+ <en-input :name="'出款金额'" v-if="stageData.operate_ids.indexOf('1')>-1" v-model="businessData.out_total" type="digit" placeholder="请输入出款金额" ></en-input>
|
|
|
+ <en-input :name="'银行出款'" v-if="stageData.operate_ids.indexOf('4')>-1" v-model="businessData.bank_total" type="digit" placeholder="请输入银行出款" ></en-input>
|
|
|
<view v-if="stageData.operate_ids.indexOf('3')>-1">
|
|
|
- <WhInput :name="'回款姓名'" v-model="businessData.returned_name" type="text" placeholder="请输入回款人姓名" ></WhInput>
|
|
|
+ <en-input :name="'回款姓名'" v-model="businessData.returned_name" type="text" placeholder="请输入回款人姓名" ></en-input>
|
|
|
<!-- 此处应该是select-->
|
|
|
- <WhInput :name="'银行出款'" v-model="businessData.returned_bank_id" :localData="bankData" placeholder="请选择还款银行" ></WhInput>
|
|
|
+ <en-input :name="'银行出款'" v-model="businessData.returned_bank_id" :localData="bankData" placeholder="请选择还款银行" ></en-input>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
@@ -39,7 +39,7 @@
|
|
|
<!-- </view>-->
|
|
|
</view>
|
|
|
<view class="sys-background-fff m-lr30 r-20">
|
|
|
- <SendChat v-model="msgData"></SendChat>
|
|
|
+ <SendChat v-model="msgData" :placeholder="type==='2'?'请输入审核意见~~':'请输入描述~~'"></SendChat>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-show="showExecute">
|
|
|
@@ -58,11 +58,13 @@
|
|
|
import {
|
|
|
auditTask, getReturnedBankList,
|
|
|
getTaskStage,
|
|
|
- setExecuteTask, setStageOperate
|
|
|
+ setExecuteTask, setMsg, setStageOperate
|
|
|
} from "@/api/task";
|
|
|
import {getStageUser} from "@/api/task";
|
|
|
+ import EnInput from "@/components/en-from/en-input/en-input.vue";
|
|
|
export default {
|
|
|
components: {
|
|
|
+ EnInput,
|
|
|
WhInput,
|
|
|
SendChat
|
|
|
},
|
|
|
@@ -142,8 +144,9 @@
|
|
|
if(this.type==='1'){
|
|
|
this.title='任务反馈'
|
|
|
}else if(this.type==='2'){
|
|
|
- tools.success('ok')
|
|
|
this.title='任务审核'
|
|
|
+ }else if(this.type==='3'){
|
|
|
+ this.title='任务执行'
|
|
|
}else {
|
|
|
this.title='任务冲销'
|
|
|
}
|
|
|
@@ -229,9 +232,40 @@
|
|
|
submit() {
|
|
|
if (this.type==='2') {
|
|
|
this.auditTask()
|
|
|
- } else {
|
|
|
+ } else if (this.type==='1'){
|
|
|
this.setExecuteTask()
|
|
|
+ }else if (this.type==='3'){
|
|
|
+ this.setMsg()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ setEnd(){
|
|
|
+ uni.$emit('newTaskList')
|
|
|
+ setTimeout(()=>{
|
|
|
+ tools.leftClick()
|
|
|
+ },1000)
|
|
|
+ },
|
|
|
+ setMsg() {
|
|
|
+ if (this.isAjax) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // this.isAjax=true;
|
|
|
+ this.msgData.business_id = this.businessId
|
|
|
+ if (this.replyId) {
|
|
|
+ this.msgData.reply_id = this.replyId;
|
|
|
}
|
|
|
+ setMsg(this.msgData).then((res) => {
|
|
|
+ if (res.code === 1) {
|
|
|
+ tools.success(res.msg)
|
|
|
+ this.msgData.reply_id = ''
|
|
|
+ this.msgData.msg = ''
|
|
|
+ this.msgData.msg_img = []
|
|
|
+ this.setEnd()
|
|
|
+ } else {
|
|
|
+ tools.error(res.msg)
|
|
|
+ this.isAjax = false;
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
},
|
|
|
getTaskStage() {
|
|
|
getTaskStage({
|
|
|
@@ -288,10 +322,7 @@
|
|
|
auditTask(this.businessData).then((auditRes) => {
|
|
|
if (auditRes.code === 1) {
|
|
|
tools.success(auditRes.msg)
|
|
|
- uni.$emit('newTaskList')
|
|
|
- setTimeout(()=>{
|
|
|
- tools.leftClick()
|
|
|
- },500)
|
|
|
+ this.setEnd()
|
|
|
} else {
|
|
|
tools.error(auditRes.msg)
|
|
|
}
|
|
|
@@ -305,10 +336,7 @@
|
|
|
if (auditRes.code === 1) {
|
|
|
tools.success(auditRes.msg)
|
|
|
// this.$emit('endTaskSet')
|
|
|
- uni.$emit('newTaskList')
|
|
|
- setTimeout(()=>{
|
|
|
- tools.leftClick()
|
|
|
- },1000)
|
|
|
+ this.setEnd()
|
|
|
} else {
|
|
|
tools.error(auditRes.msg)
|
|
|
}
|