|
|
@@ -19,6 +19,12 @@
|
|
|
<u-form-item label="委托编号">
|
|
|
<u-input placeholder="请输入委托编号" v-model="form.weiTuoBianHao" disabled />
|
|
|
</u-form-item>
|
|
|
+ <!-- <u-form-item label="用户选择" prop="userNameId" required v-if="administrator">
|
|
|
+ <uni-data-select placeholder="请选择合同选择" v-model="form.userNameId" :localdata="userList"
|
|
|
+ v-if="type != 'detail'">
|
|
|
+ </uni-data-select>
|
|
|
+ <text v-else>{{getButtChange(form.heTongId,hetong)}}</text>
|
|
|
+ </u-form-item> -->
|
|
|
<u-form-item label="合同选择" prop="heTongId" required>
|
|
|
<uni-data-select placeholder="请选择合同选择" v-model="form.heTongId" :localdata="hetong"
|
|
|
@change="hetongChange" v-if="type != 'detail'">
|
|
|
@@ -236,10 +242,12 @@
|
|
|
return {
|
|
|
activeNum: 1,
|
|
|
form: {
|
|
|
+ userNameId: '',
|
|
|
weiTuoLeiXing: '',
|
|
|
weiTuoDanLaiYuan: '',
|
|
|
weiTuoBianHao: '',
|
|
|
heTongId: '',
|
|
|
+ heTongBianHao: '',
|
|
|
weiTuoHeTong: '',
|
|
|
weiTuoDanWei: '',
|
|
|
songJianDanWei: '',
|
|
|
@@ -369,18 +377,30 @@
|
|
|
itemType: true,
|
|
|
deleteString: '',
|
|
|
backShow: false,
|
|
|
- option: ''
|
|
|
+ option: '',
|
|
|
+
|
|
|
+ userList: [],
|
|
|
+ administrator: false
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
+ let administrator = uni.getStorageSync('administrator')
|
|
|
+ this.administrator = administrator
|
|
|
+ this.getInit()
|
|
|
+
|
|
|
+ // if (administrator) {
|
|
|
+ // this.getAdministrator()
|
|
|
+ // }
|
|
|
+
|
|
|
//一开始查合同 如果修改或者明细 传option.id
|
|
|
- if (options && options.type != 'detail') {
|
|
|
- this.getDataHetong(options.id)
|
|
|
- } else {
|
|
|
- this.getLiuHenWeiTuoDan(options.id)
|
|
|
- }
|
|
|
+ // if (options && options.type != 'detail') {
|
|
|
+ // this.getDataHetong(options.id)
|
|
|
+ // } else {
|
|
|
+ // this.getLiuHenWeiTuoDan(options.id)
|
|
|
+ // }
|
|
|
+ this.getDataHetong(options.id)
|
|
|
+
|
|
|
|
|
|
- this.getInit()
|
|
|
if (options.saveId) { //是不是暂存信息
|
|
|
this.buttonFlagNum = '3'
|
|
|
this.saveId = options.saveId
|
|
|
@@ -411,6 +431,22 @@
|
|
|
this.scrollTop = e.scrollTop;
|
|
|
},
|
|
|
methods: {
|
|
|
+ //超级用户 获取全部客户信息
|
|
|
+ getAdministrator() {
|
|
|
+ let sql =
|
|
|
+ `select * from ibps_party_employee where GROUP_ID_ = '1041786072788369408' and STATUS_ = 'actived'`
|
|
|
+ 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
|
|
|
+ result.forEach((item, index) => {
|
|
|
+ this.$set(item, 'text', item.NAME_)
|
|
|
+ this.$set(item, 'value', item.ID_)
|
|
|
+ })
|
|
|
+ this.userList = result
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
//根据委托单id查询 taskId
|
|
|
getTaskId(id) {
|
|
|
let sql =
|
|
|
@@ -459,6 +495,8 @@
|
|
|
|
|
|
this.form.weiTuoLeiXing = '客户委托'
|
|
|
this.form.weiTuoRiQi = this.time
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
//根据暂存id获取暂存详情信息
|
|
|
getSaveData(id) {
|
|
|
@@ -633,7 +671,7 @@
|
|
|
// `select tb.*,ty.ke_hu_ming_cheng_ as ke_hu_dang_wei from t_bjd tb,t_yxkh ty where tb.ke_hu_ming_cheng_ = ty.id_ and tb.zhuang_tai_='生效中' and tb.shi_fou_guo_shen_ = '已完成'`
|
|
|
|
|
|
let sql =
|
|
|
- `select tb.*,ty.ke_hu_ming_cheng_ as ke_hu_dang_wei from t_bjd tb,t_yxkh ty where tb.ke_hu_ming_cheng_ = ty.id_ and tb.ke_hu_zhang_hao_ ='${info.employee.account}' and tb.zhuang_tai_='生效中' and tb.shi_fou_guo_shen_ = '已完成'`
|
|
|
+ `select tb.*,ty.ke_hu_ming_cheng_ as ke_hu_dang_wei from t_bjd tb,t_yxkh ty where tb.ke_hu_ming_cheng_ = ty.id_ and tb.ke_hu_zhang_hao_ ='${info.employee.id}' and tb.zhuang_tai_='生效中' and tb.shi_fou_guo_shen_ = '已完成'`
|
|
|
let requestData = this.$sig(sql)
|
|
|
this.$http.post("/ibps/business/v3/sys/universal/inputSqlSelectData", requestData).then(res => {
|
|
|
if (res.data.state == 200) {
|
|
|
@@ -678,6 +716,7 @@
|
|
|
this.form.weiTuoFangLianXiD = data.dian_hua_ || ''
|
|
|
this.form.weiTuoFangLianXiR = data.lian_xi_ren_ || ''
|
|
|
this.form.weiTuoFangMingChe = data.ke_hu_dang_wei || ''
|
|
|
+ this.form.heTongBianHao = data.he_tong_bian_hao_ || ''
|
|
|
}
|
|
|
|
|
|
this.getJiance(e, type, weiTouId)
|
|
|
@@ -882,7 +921,7 @@
|
|
|
let that = this
|
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
|
- content: '委托单编号:' + this.form.weiTuoDanWei + '一共金额为' + this.form.zongJia + '元,是否确定下单?',
|
|
|
+ content: '委托单编号:' + this.form.weiTuoBianHao + '金额为' + this.form.zongJia + '元,是否确定下单?',
|
|
|
success: function(res) {
|
|
|
if (res.confirm) {
|
|
|
that.sumbit(valueType)
|
|
|
@@ -1099,6 +1138,7 @@
|
|
|
if (valueType == 2 || valueType == 3) {
|
|
|
this.form.lhypb.forEach((item, index) => {
|
|
|
let bit = {
|
|
|
+ he_tong_id_: this.form.heTongBianHao,
|
|
|
he_tong_bian_hao_: this.form.heTongId,
|
|
|
jiao_fei_fang_shi: this.form.fuKuanFangShi,
|
|
|
shen_qing_id_: this.form.zhanShiBiaoId,
|
|
|
@@ -1153,7 +1193,7 @@
|
|
|
this.$http.post("ibps/business/v3/bpm/instance/start", data).then(res => {
|
|
|
if (res.data.state == 200) {
|
|
|
this.$tip.success('提交成功!')
|
|
|
- this.getLiuHen()
|
|
|
+ // this.getLiuHen()
|
|
|
uni.hideLoading();
|
|
|
this.$Router.replaceAll({
|
|
|
name: 'index'
|
|
|
@@ -1183,7 +1223,7 @@
|
|
|
this.$http.post("/ibps/business/v3/bpm/task/agree", data).then(res => {
|
|
|
if (res.data.state == 200) {
|
|
|
this.$tip.success('提交成功!')
|
|
|
- this.getLiuHen()
|
|
|
+ // this.getLiuHen()
|
|
|
uni.hideLoading();
|
|
|
this.$Router.replaceAll({
|
|
|
name: 'index'
|
|
|
@@ -1197,7 +1237,8 @@
|
|
|
//数据留痕
|
|
|
getLiuHen() {
|
|
|
this.form.taoCanShow = this.taoCanShow
|
|
|
- this.form.hetongList = this.hetong
|
|
|
+ this.form.hetongList = this.hetongList
|
|
|
+ this.form.hetong = this.hetong
|
|
|
this.form.taoCanList = this.taoCanList
|
|
|
this.form.jianCeTypeList = this.jianCeTypeList
|
|
|
this.form.jianCeList = this.jianCeList
|