|
|
@@ -3,6 +3,9 @@
|
|
|
<cu-custom bgColor="bg-luohu" :isBack="true">
|
|
|
<block slot="backText">返回</block>
|
|
|
<block slot="content">沟通记录</block>
|
|
|
+ <block slot="right" v-if="typeValue == '4'">
|
|
|
+ <text @click="getBack">退回原因</text>
|
|
|
+ </block>
|
|
|
</cu-custom>
|
|
|
<view>
|
|
|
<view class="cu-form-group">
|
|
|
@@ -16,64 +19,89 @@
|
|
|
v-if="form.keHuDanWeiMingChe != ''" @click="form.keHuDanWeiMingChe = ''"></u-icon> -->
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
- <view class="title">客户联系人:</view>
|
|
|
- <input placeholder="请输入客户联系人" v-model="form.keHuLianXiRen" name="input" :disabled="id && id != '' ? true: false"></input>
|
|
|
- <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.keHuLianXiRen != '' && id == ''" @click="form.keHuLianXiRen = ''"></u-icon>
|
|
|
+ <view class="title">
|
|
|
+ <text style="color: red;">*</text>
|
|
|
+ 客户联系人:
|
|
|
+ </view>
|
|
|
+ <input placeholder="请输入客户联系人" v-model="form.keHuLianXiRen" name="input" :disabled="typeValue != 3 && typeValue != 4 ? true: false"></input>
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.keHuLianXiRen != '' && (typeValue == 3 || typeValue == 4)" @click="form.keHuLianXiRen = ''"></u-icon>
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
- <view class="title">委托单号:</view>
|
|
|
- <text style="width: 100%;" @click="getShow">{{getWeiTuo(form.weiTuoDanHao)}}</text>
|
|
|
- <u-button type="success" size="mini" @click="getShow" v-if="form.weiTuoDanHao == '' && id == ''">选择
|
|
|
- </u-button>
|
|
|
- <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.weiTuoDanHao != '' && id == ''" @click="form.weiTuoDanHao = ''"></u-icon>
|
|
|
+ <view class="title">
|
|
|
+ <text style="color: red;">*</text>
|
|
|
+ 联系电话:
|
|
|
+ </view>
|
|
|
+ <input placeholder="请输入联系电话" v-model="form.lianXiDianHua" name="input" :disabled="typeValue != 3 && typeValue != 4 ? true: false"></input>
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.lianXiDianHua != '' && (typeValue == 3 || typeValue == 4)" @click="form.lianXiDianHua = ''"></u-icon>
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
- <view class="title">联系电话:</view>
|
|
|
- <input placeholder="请输入联系电话" v-model="form.lianXiDianHua" name="input" :disabled="id && id != '' ? true: false"></input>
|
|
|
- <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.lianXiDianHua != '' && id == ''" @click="form.lianXiDianHua = ''"></u-icon>
|
|
|
+ <view class="title">
|
|
|
+ <text style="color: red;">*</text>
|
|
|
+ 委托单号:
|
|
|
+ </view>
|
|
|
+ <text style="width: 100%;" @click="getShow">{{getWeiTuo(form.weiTuoDanHao)}}</text>
|
|
|
+ <u-button type="success" size="mini" @click="getShow" v-if="form.weiTuoDanHao == '' && (typeValue == 3 || typeValue == 4)">选择
|
|
|
+ </u-button>
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.weiTuoDanHao != '' && (typeValue == 3 || typeValue == 4)" @click="form.weiTuoDanHao = ''"></u-icon>
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
<view class="title">样品名称:</view>
|
|
|
- <textarea maxlength="-1" v-model="form.yangPinMingCheng" placeholder="请输入样品名称" auto-height="true" :disabled="id && id != '' ? true: false"></textarea>
|
|
|
- <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.yangPinMingCheng != '' && id == ''" @click="form.yangPinMingCheng = ''"></u-icon>
|
|
|
+ <textarea maxlength="-1" v-model="form.yangPinMingCheng" placeholder="请输入样品名称" auto-height="true" :disabled="typeValue != 3 && typeValue != 4 ? true: false"></textarea>
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.yangPinMingCheng != '' && (typeValue == 3 || typeValue == 4)" @click="form.yangPinMingCheng = ''"></u-icon>
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
<view class="title">样品编号:</view>
|
|
|
- <textarea maxlength="-1" v-model="form.yangPinBianHao" placeholder="请输入样品编号" auto-height="true" :disabled="id && id != '' ? true: false"></textarea>
|
|
|
+ <textarea maxlength="-1" v-model="form.yangPinBianHao" placeholder="请输入样品编号" auto-height="true" :disabled="typeValue != 3 && typeValue != 4 ? true: false"></textarea>
|
|
|
<!-- <input placeholder="请输入样品编号" v-model="form.yangPinBianHao" name="input"
|
|
|
:disabled="id && id != '' ? true: false"></input> -->
|
|
|
- <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.yangPinBianHao != '' && id == ''" @click="form.yangPinBianHao = '' && id == ''"></u-icon>
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.yangPinBianHao != '' && (typeValue == 3 || typeValue == 4)" @click="form.yangPinBianHao = '' && id == ''"></u-icon>
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
<view class="title">样品类型:</view>
|
|
|
- <textarea maxlength="-1" v-model="form.yangPinLeiXing" placeholder="请输入样品类型" auto-height="true" :disabled="id && id != '' ? true: false"></textarea>
|
|
|
- <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.yangPinLeiXing != '' && id == ''" @click="form.yangPinLeiXing = ''"></u-icon>
|
|
|
+ <textarea maxlength="-1" v-model="form.yangPinLeiXing" placeholder="请输入样品类型" auto-height="true" :disabled="typeValue != 3 && typeValue != 4 ? true: false"></textarea>
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.yangPinLeiXing != '' && (typeValue == 3 || typeValue == 4)" @click="form.yangPinLeiXing = ''"></u-icon>
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
<view class="title">报告编号:</view>
|
|
|
- <textarea maxlength="-1" v-model="form.baoGaoBianHao" placeholder="请输入报告编号" auto-height="true" :disabled="id && id != '' ? true: false"></textarea>
|
|
|
- <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.baoGaoBianHao != '' && id == ''" @click="form.baoGaoBianHao = ''"></u-icon>
|
|
|
+ <textarea maxlength="-1" v-model="form.baoGaoBianHao" placeholder="请输入报告编号" auto-height="true" :disabled="typeValue != 3 && typeValue != 4 ? true: false"></textarea>
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.baoGaoBianHao != '' && (typeValue == 3 || typeValue == 4)" @click="form.baoGaoBianHao = ''"></u-icon>
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
- <view class="title">沟通类型:</view>
|
|
|
+ <view class="title">
|
|
|
+ <text style="color: red;">*</text>
|
|
|
+ 沟通类型:
|
|
|
+ </view>
|
|
|
<input placeholder="请选择沟通类型" v-model="form.gouTongLeiXing" name="input" disabled></input>
|
|
|
- <u-button type="success" size="mini" @click="sheetShow = true" v-if="id == ''">选择</u-button>
|
|
|
+ <u-button type="success" size="mini" @click="sheetShow = true" v-if="(typeValue == 3 || typeValue == 4)">选择</u-button>
|
|
|
</view>
|
|
|
<uni-section title="沟通内容" type="line" padding>
|
|
|
- <textarea maxlength="-1" v-model="form.gouTongNeiRong" placeholder="意见和建议" :disabled="id && id != '' ? true: false"></textarea>
|
|
|
+ <textarea maxlength="-1" auto-height v-model="form.gouTongNeiRong" placeholder="意见和建议" :disabled="typeValue != 3 && typeValue != 4 ? true: false"></textarea>
|
|
|
</uni-section>
|
|
|
+ <!-- <uni-section title="上传附件" type="line">
|
|
|
+ <lin-upload :fileList="fuJianShangChuanArray" @chooseClick="select"></lin-upload>
|
|
|
+ </uni-section> -->
|
|
|
<uni-section title="上传附件" type="line">
|
|
|
- <view class="example-body" v-if="id == ''">
|
|
|
- <uni-file-picker limit="5" file-mediatype="all" @select="select" @progress="progress" @success="success" @fail="fail" @delete="deleteMe" :auto-upload="false" ref="uploadMe">
|
|
|
- </uni-file-picker>
|
|
|
- </view>
|
|
|
- <view v-else>
|
|
|
- <view v-for="(item,index) in fuJianShangChuanArray" :key="index" style="margin: 0 10rpx;">
|
|
|
- <view style="line-height: 50rpx;" @click="uploadClick(item.id,item.fileName,item.ext)">{{item.fileName + '.' + item.ext}}</view>
|
|
|
+ <view style="padding: 10rpx;">
|
|
|
+ <view class="example-body" v-if="(typeValue == 3 || typeValue == 4)">
|
|
|
+ <uni-file-picker res="files" :listShow="false" limit="5" file-mediatype="all" @select="select" @progress="progress" @success="success" @fail="fail" @delete="deleteMe" :auto-upload="false" ref="uploadMe">
|
|
|
+ </uni-file-picker>
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ <view v-for="(item,index) in fuJianShangChuanArray" :key="index" style="margin: 0 10rpx;">
|
|
|
+ <view class="fileBox">
|
|
|
+ <view @click="uploadClick(item.id,item.name)">
|
|
|
+ <u-icon size="30" name="file-text-fill"></u-icon>
|
|
|
+ {{item.name}}
|
|
|
+ </view>
|
|
|
+ <view style="width: 50rpx;" @click="deleteMe(item.id)" v-if="(typeValue == 3 || typeValue == 4)">
|
|
|
+ <u-icon size="26" name="close"></u-icon>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</uni-section>
|
|
|
- <uni-section title="签名" type="line" padding>
|
|
|
+ <uni-section title="沟通签名" type="line" padding v-if="form.leiXing == '1'">
|
|
|
<view style="width: 100%;">
|
|
|
<view style="text-align: right;width: 100%;" v-if="typeValue != '1'">
|
|
|
<view>
|
|
|
@@ -84,24 +112,53 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view style="width: 100%;margin-top: 10rpx;" v-if="form.keHu != ''">
|
|
|
- <image :src="form.keHu" style="width: 100%;height: 500rpx;border: 1px #eee solid;">
|
|
|
+ <image :src="form.keHu" style="width: 100%;height: 300rpx;border: 1px #eee solid;">
|
|
|
</image>
|
|
|
</view>
|
|
|
</view>
|
|
|
</uni-section>
|
|
|
-
|
|
|
- <uni-section title="沟通内容确定" type="line" padding v-if="id != '' && form.leiXing != '2'">
|
|
|
- <textarea maxlength="-1" v-model="form.gouTongQueDingNei" placeholder="意见和建议" :disabled="true"></textarea>
|
|
|
- </uni-section>
|
|
|
<u-row v-if="typeValue == 1">
|
|
|
<u-col span="6">
|
|
|
<uni-section title="沟通人" type="line" padding>
|
|
|
<view style="height: 40rpx">{{bianZhiRenName}}</view>
|
|
|
</uni-section>
|
|
|
</u-col>
|
|
|
+ <u-col span="6">
|
|
|
+ <uni-section title="沟通时间" type="line" padding>
|
|
|
+ <view style="height: 40rpx;">{{form.bianZhiShiJian}}</view>
|
|
|
+ </uni-section>
|
|
|
+ </u-col>
|
|
|
+ </u-row>
|
|
|
+
|
|
|
+ <uni-section title="沟通内容确定" type="line" padding v-if="typeValue != 3 && typeValue != 4 && form.leiXing != '2'">
|
|
|
+ <textarea maxlength="-1" auto-height v-model="form.gouTongQueDingNei" placeholder="意见和建议" :disabled="true"></textarea>
|
|
|
+ </uni-section>
|
|
|
+
|
|
|
+ <uni-section title="确定签名" type="line" padding v-if="form.leiXing == '2'">
|
|
|
+ <view style="width: 100%;">
|
|
|
+ <view style="text-align: right;width: 100%;" v-if="typeValue != '1'">
|
|
|
+ <view>
|
|
|
+ <u-button type="primary" size="mini" @click="qianming()" class="btn-back-color">
|
|
|
+ 签名</u-button>
|
|
|
+ <u-button type="error" size="mini" @click="deqianming()" style="margin-left: 15rpx;" v-if="form.keHu != ''">
|
|
|
+ 取消</u-button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view style="width: 100%;margin-top: 10rpx;" v-if="form.keHu != ''">
|
|
|
+ <image :src="form.keHu" style="width: 100%;height: 300rpx;border: 1px #eee solid;">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </uni-section>
|
|
|
+ <u-row v-if="typeValue == 1">
|
|
|
<u-col span="6">
|
|
|
<uni-section title="确定人" type="line" padding>
|
|
|
- <view style="height: 40rpx;">{{queDingRenName}}</view>
|
|
|
+ <view style="height: 40rpx">{{queDingRenName}}</view>
|
|
|
+ </uni-section>
|
|
|
+ </u-col>
|
|
|
+ <u-col span="6">
|
|
|
+ <uni-section title="确定时间" type="line" padding>
|
|
|
+ <view style="height: 40rpx;">{{form.gouTongRiQi}}</view>
|
|
|
</uni-section>
|
|
|
</u-col>
|
|
|
</u-row>
|
|
|
@@ -112,7 +169,11 @@
|
|
|
</u-button>
|
|
|
</view>
|
|
|
<view class="padding flex flex-direction" v-if="typeValue == '2'">
|
|
|
- <u-button type="success" class="btn btn-back-color" @click="onAgree">同意
|
|
|
+ <u-button type="success" class="btn btn-back-color" @click="onAgree('1','同意','确定')">同意
|
|
|
+ </u-button>
|
|
|
+ </view>
|
|
|
+ <view class="padding flex flex-direction" v-if="typeValue == '4'">
|
|
|
+ <u-button type="success" class="btn btn-back-color" @click="onAgree('已编制','重新提交','提交')">修改
|
|
|
</u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -128,6 +189,11 @@
|
|
|
</u-popup>
|
|
|
|
|
|
<lin-popup ref="picker" :title="'委托单选择'" :list="weiTuoList" @onConfirm="onConfirm"></lin-popup>
|
|
|
+ <u-modal v-model="backShow" :show-cancel-button="true" :show-confirm-button="false" title="退回提示" @cancel="cancel">
|
|
|
+ <view class="u-update-content">
|
|
|
+ <rich-text :nodes="content"></rich-text>
|
|
|
+ </view>
|
|
|
+ </u-modal>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -139,9 +205,11 @@
|
|
|
} from "@/common/util/constants" // 拉取登录token,userName,userInfo
|
|
|
import http from '@/common/service/http.js'
|
|
|
import autograph from '@/components/autograph/autograph'
|
|
|
+ import linUpload from '@/components/lin-upload/lin-upload.vue'
|
|
|
export default {
|
|
|
components: {
|
|
|
- autograph
|
|
|
+ autograph,
|
|
|
+ linUpload
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -186,7 +254,10 @@
|
|
|
|
|
|
weiTuoList: [],
|
|
|
bianZhiRenName: '',
|
|
|
- queDingRenName: ''
|
|
|
+ queDingRenName: '',
|
|
|
+ backShow: false,
|
|
|
+ option: '',
|
|
|
+ content: ''
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
@@ -197,7 +268,7 @@
|
|
|
} else {
|
|
|
this.getGtbh()
|
|
|
}
|
|
|
- if (options.id) {
|
|
|
+ if (options.typeValue) {
|
|
|
this.typeValue = options.typeValue
|
|
|
}
|
|
|
},
|
|
|
@@ -242,22 +313,21 @@
|
|
|
},
|
|
|
success: (uploadFileRes) => {
|
|
|
let data = JSON.parse(uploadFileRes.data)
|
|
|
- that.fuJianShangChuanArray.push({
|
|
|
- fileid: file.tempFiles[e].file.uuid,
|
|
|
- uploadid: data.data.id
|
|
|
- })
|
|
|
+ let obj = {
|
|
|
+ id: data.data.id,
|
|
|
+ name: data.data.fileName + '.' + data.data.ext,
|
|
|
+ ext: data.data.ext,
|
|
|
+ uuid: file.tempFiles[e].file.uuid
|
|
|
+ }
|
|
|
+ this.fuJianShangChuanArray.push(obj)
|
|
|
uni.hideLoading()
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
// 删除
|
|
|
- deleteMe(file) {
|
|
|
- for (let e in this.fuJianShangChuanArray) {
|
|
|
- if (this.fuJianShangChuanArray[e].fileid == file.tempFile.uuid) {
|
|
|
- this.fuJianShangChuanArray.splice(e, 1)
|
|
|
- }
|
|
|
- }
|
|
|
+ deleteMe(id) {
|
|
|
+ this.fuJianShangChuanArray = this.fuJianShangChuanArray.filter(item => item.id !== id)
|
|
|
},
|
|
|
// 获取上传进度
|
|
|
progress(e) {},
|
|
|
@@ -316,7 +386,7 @@
|
|
|
getDe(id) {
|
|
|
uni.showLoading({
|
|
|
mask: true,
|
|
|
- title: 'loading'
|
|
|
+ title: '加载中'
|
|
|
});
|
|
|
let sql =
|
|
|
`select * from t_khgtjlb where id_ = ${id}`
|
|
|
@@ -342,12 +412,15 @@
|
|
|
gouTongNeiRong: data.gou_tong_nei_rong,
|
|
|
keHu: data.ke_hu_,
|
|
|
gouTongQueDingNei: data.gou_tong_que_ding,
|
|
|
- leiXing: data.lei_xing_
|
|
|
+ leiXing: data.lei_xing_,
|
|
|
+ bianZhiShiJian: data.bian_zhi_shi_jian,
|
|
|
+ gouTongRiQi: data.gou_tong_ri_qi_
|
|
|
}
|
|
|
if (data.fu_jian_ && data.fu_jian_ != '') {
|
|
|
this.getFileList(data.fu_jian_)
|
|
|
}
|
|
|
- if (data.lei_xing_ == '2' && data.shi_fou_guo_shen_ == '已编制') {
|
|
|
+ //data.lei_xing_ == '2' && data.shi_fou_guo_shen_ == '已编制'
|
|
|
+ if (this.typeValue == '2' || this.typeValue == '4') {
|
|
|
this.getTaskId(data.id_)
|
|
|
}
|
|
|
|
|
|
@@ -373,15 +446,17 @@
|
|
|
this.$http.post("/ibps/platform/v3/file/attachment/transfer", params).then(res => {
|
|
|
if (res.data.state == 200) {
|
|
|
const data = res.data.data
|
|
|
+ let list = []
|
|
|
lists.forEach(item => {
|
|
|
let obj = {
|
|
|
id: item,
|
|
|
- fileName: data[item].fileName,
|
|
|
- ext: data[item].ext
|
|
|
+ name: data[item].fileName + '.' + data[item].ext,
|
|
|
+ ext: data[item].ext,
|
|
|
+ uuid: item
|
|
|
}
|
|
|
- this.fuJianShangChuanArray.push(obj)
|
|
|
+ list.push(obj)
|
|
|
})
|
|
|
-
|
|
|
+ this.fuJianShangChuanArray = JSON.parse(JSON.stringify(list))
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -390,6 +465,31 @@
|
|
|
title: '加载中',
|
|
|
mask: true
|
|
|
})
|
|
|
+ let suList = ['keHuLianXiRen', 'lianXiDianHua']
|
|
|
+ let suListName = ['客户联系人', '联系电话']
|
|
|
+ for (let item in suList) {
|
|
|
+ if (!this.form[suList[item]]) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '请输入' + suListName[item],
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ let selList = ['weiTuoDanHao', 'gouTongLeiXing']
|
|
|
+ let selListName = ['委托单号', '沟通类型']
|
|
|
+ for (let item in suList) {
|
|
|
+ if (!this.form[selList[item]]) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '请选择' + selListName[item],
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
let tmpArray = []
|
|
|
for (let e in this.fuJianShangChuanArray) {
|
|
|
tmpArray.push(this.fuJianShangChuanArray[e].uploadid)
|
|
|
@@ -432,7 +532,7 @@
|
|
|
|
|
|
});
|
|
|
},
|
|
|
- onAgree() {
|
|
|
+ onAgree(shiFouGuoShen, opinion, type) {
|
|
|
uni.showLoading({
|
|
|
title: '加载中',
|
|
|
mask: true
|
|
|
@@ -443,19 +543,19 @@
|
|
|
this.form.gouTongRenYuan = useId
|
|
|
this.form.gouTongRiQi = this.$methCommon.time(10)
|
|
|
this.form.gouTongBuMen = detpId
|
|
|
- this.form.shiFouGuoShen = "1"
|
|
|
+ this.form.shiFouGuoShen = shiFouGuoShen
|
|
|
let editData = {
|
|
|
data: JSON.stringify(this.form),
|
|
|
- opinion: '同意',
|
|
|
+ opinion: opinion,
|
|
|
taskId: this.taskId
|
|
|
}
|
|
|
this.$http.post("/ibps/business/v3/bpm/task/agree", editData).then(res => {
|
|
|
if (res.data.state == 200) {
|
|
|
- this.$methCommon.getPrompt('同意成功!')
|
|
|
+ this.$methCommon.getPrompt(type + '成功!')
|
|
|
uni.hideLoading();
|
|
|
this.getPageA()
|
|
|
} else {
|
|
|
- this.$methCommon.getPrompt('同意异常!', 'fail')
|
|
|
+ this.$methCommon.getPrompt(type + '异常!', 'fail')
|
|
|
uni.hideLoading()
|
|
|
}
|
|
|
});
|
|
|
@@ -463,8 +563,14 @@
|
|
|
},
|
|
|
//根据委托单id查询 taskId
|
|
|
getTaskId(id) {
|
|
|
- let sql =
|
|
|
- `select TASK_ID_ from ibps_bpm_tasks where NAME_ = '确认' and NODE_ID_ = 'Activity_1vrp3i4' and PROC_DEF_KEY_ = 'Process_183pepd' and EXEC_ID_ = (select PROC_INST_ID_ from act_ru_execution where ACT_ID_ = 'Activity_1vrp3i4' and BUSINESS_KEY_ = '${id}') ORDER BY CREATE_TIME_ desc`
|
|
|
+ let sql = ``
|
|
|
+ if (this.typeValue == '2') {
|
|
|
+ sql =
|
|
|
+ `select TASK_ID_,PROC_INST_ID_ from ibps_bpm_tasks where NAME_ = '确认' and NODE_ID_ = 'Activity_1vrp3i4' and PROC_DEF_KEY_ = 'Process_183pepd' and EXEC_ID_ = (select PROC_INST_ID_ from act_ru_execution where ACT_ID_ = 'Activity_1vrp3i4' and BUSINESS_KEY_ = '${id}') ORDER BY CREATE_TIME_ desc`
|
|
|
+ } else if (this.typeValue == '4') {
|
|
|
+ sql =
|
|
|
+ `select TASK_ID_,PROC_INST_ID_ from ibps_bpm_tasks where NAME_ = '沟通' and NODE_ID_ = 'Activity_0qy1dd7' and PROC_DEF_KEY_ = 'Process_0pjp1fy' and EXEC_ID_ = (select PROC_INST_ID_ from act_ru_execution where ACT_ID_ = 'Activity_0qy1dd7' and BUSINESS_KEY_ = '${id}') ORDER BY CREATE_TIME_ desc`
|
|
|
+ }
|
|
|
|
|
|
let requestData = this.$sig(sql)
|
|
|
|
|
|
@@ -472,6 +578,20 @@
|
|
|
if (res.data.state == 200) {
|
|
|
let result = res.data.variables.data[0]
|
|
|
this.taskId = result.TASK_ID_
|
|
|
+
|
|
|
+ this.getProcInstId(result.PROC_INST_ID_)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //根据委托单id查询 taskId
|
|
|
+ getProcInstId(id) {
|
|
|
+ let sql =
|
|
|
+ `select OPTION_ from ibps_bpm_oper_log where PROC_INST_ID_ = '${id}' order by create_time_ desc limit 1`
|
|
|
+ let requestData = this.$sig(sql)
|
|
|
+ this.$http.post("/ibps/business/v3/sys/universal/inputSqlSelectData", requestData).then(res => {
|
|
|
+ if (res.data.state == 200) {
|
|
|
+ let result = res.data.variables.data[0]
|
|
|
+ this.option = result.OPTION_
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -593,7 +713,7 @@
|
|
|
dalta: 1
|
|
|
})
|
|
|
},
|
|
|
- uploadClick(id, item, type) {
|
|
|
+ uploadClick(id, item) {
|
|
|
uni.showLoading({
|
|
|
title: '下载中',
|
|
|
mask: true
|
|
|
@@ -613,7 +733,7 @@
|
|
|
const link = document.createElement('a')
|
|
|
link.style.display = 'none'
|
|
|
link.href = url
|
|
|
- link.setAttribute('download', item + '.' + type)
|
|
|
+ link.setAttribute('download', item)
|
|
|
document.body.appendChild(link)
|
|
|
link.click()
|
|
|
window.URL.revokeObjectURL(link.href)
|
|
|
@@ -630,7 +750,15 @@
|
|
|
callback(datas[0])
|
|
|
}
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
+ //退回原因
|
|
|
+ getBack() {
|
|
|
+ this.content = this.option
|
|
|
+ this.backShow = true
|
|
|
+ },
|
|
|
+ cancel() {
|
|
|
+ this.backShow = false
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
@@ -643,4 +771,23 @@
|
|
|
.btn {
|
|
|
margin: 15rpx;
|
|
|
}
|
|
|
+
|
|
|
+ .fileBox {
|
|
|
+ line-height: 50rpx;
|
|
|
+ color: #888888;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ border: 1rpx solid #DDDDDD;
|
|
|
+ border-radius: 8rpx;
|
|
|
+ padding: 5rpx;
|
|
|
+ margin-top: 10rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .u-update-content {
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: $u-content-color;
|
|
|
+ line-height: 1.7;
|
|
|
+ padding: 30rpx;
|
|
|
+ }
|
|
|
</style>
|