Commit b0b6cc8e authored by 白日依山山山's avatar 白日依山山山

fix:客户准入添加签署认证;字段取值修改

parent a05de67d
......@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app.dev"',
currentVersion: '"3.6.6"'
currentVersion: '"3.6.9"'
}
......@@ -866,7 +866,7 @@ export default {
name: 'ContractRepayPlan',
params: {
project_id: this.project_id,
product_num: this.info.product_num,
product_num: this.info[0].product_num,
},
})
},
......
......@@ -17,7 +17,9 @@
<div slot="name" class="section-title" style="">基本信息补录</div>
<item v-for="(ele, i) of baseInfo_B" :key="ele.title">
<!-- <div slot="name" class="font-color">{{ ele.title }}</div> -->
<Field :label="ele.title" v-model="baseInfo[ele.prop]" rows="1" autosize type="textarea" input-align="right" required placeholder="请输入"/>
<Field
:label="ele.title" v-model="baseInfo[ele.prop]" rows="1" autosize
type="textarea" input-align="right" required placeholder="请输入"/>
</item>
</div>
<div>
......@@ -53,6 +55,7 @@
</item>
</div>
<div class="foot-bottom">
<button class="success" style=" border: 1px solid #e6b500;background-color: white;color: #e6b500;" @click="signAuth">签署认证</button>
<button class="success" @click="save">保存</button>
</div>
</list-item>
......@@ -91,17 +94,39 @@ export default {
},
},
methods: {
async signAuth () {
let vm = this
// console.log('qianshu renzhneg ', this.baseInfo)
let url = process.env.basePath + 'auth_company_noauth'
let param = {
'bp_id': this.baseInfo.bp_id,
}
hlsPopup.showLoading('请稍候')
let res = await this.$post(url, param)
this.hlsPopup.hideLoading()
// console.log(res)
if (res.result.info.code === 0 && res.result.code !== 700) {
vm.$router.push({
name: 'ElectronicSign',
params: {
url: res.result.info.data.authUrl,
},
})
} else if (res.result.code === 700) {
hlsPopup.showLongCenter(res.result.msg)
} else {
hlsPopup.showLongCenter(res.result.info.msg)
}
},
async save () {
let flag = false
console.log('基本信息', this.baseInfo_B);
let obj = {
'bp_id': this.baseInfo['bp_id'],
}
this.baseInfo_B.forEach(item => {
obj[item.prop] = this.baseInfo[item.prop]
})
console.log('保存信息', obj)
Object.keys(obj).map(key => {
if (obj[key] === undefined || obj[key] === null || obj[key] === '') {
flag = true
......@@ -126,7 +151,6 @@ export default {
let param = {
'master': obj,
}
console.log(param)
hlsPopup.showLoading('请稍候')
let res = await this.$post(url, param)
......
......@@ -109,7 +109,24 @@ export default {
},
beforeRouteEnter (to, from, next) {
next(vm => {
if (from.name === 'ToDoList') {
vm.tabNum = 1
vm.collActiveTab = ['2']
vm.history_Coll = false
vm.confirm_note = ''
vm.baseInfo = {} // 基本信息
vm.billingInfo = [] // 开票信息
vm.attachmentInfo = [] // 附件 信息
vm.bankInfo = [] // 银行信息
vm.roleInfo = [] // 角色信息
vm.historyData = []
vm.appendixData = []
vm.isTodo = true
vm.isEditType = false // 30节点可编辑合同类型、开票类型
vm.getData()
vm.getHistory()
}
})
},
mounted () {
......@@ -152,7 +169,7 @@ export default {
},
getHistory () {
this.historyData = this.$route.params.approve_history_lists.reverse()
console.log('历史审批数据:',this.historyData);
console.log('历史审批数据:', this.historyData)
},
triggerHistory () {
this.history_Coll = !this.history_Coll
......@@ -188,7 +205,7 @@ export default {
if (res.result === 'S') {
setTimeout(() => {
this.$router.back()
}, 2000);
}, 2000)
}
})
},
......
......@@ -47,7 +47,7 @@ export default {
},
createForm() {
let formArr = [
['商业伙伴编码', 'bp_id', 'text'],
['商业伙伴编码', 'bp_id_n', 'text'],
['商业伙伴名称', 'bp_name', 'text'],
['证件号码', 'id_card_no', 'text'],
['联系电话', 'cell_phone', 'text'],
......
......@@ -11,8 +11,8 @@
<span slot="content" v-else="ele.type == 'text'">{{ planData[pi][ele.prop] }}</span>
</item>
</list-item>
<Cell v-if="editFlag" :value="p.repurchase_flag_n" :required="editFlag" :disabled="!editFlag" :is-link="editFlag" title="合同类型" placeholder="请选择" @click="showPicker(1,pi)" />
<Cell v-if="editFlag" :value="p.rent_invoice_type_n" :required="editFlag" :disabled="!editFlag" :is-link="editFlag" title="开票类型" placeholder="请选择" @click="showPicker(0,pi)"/>
<Cell v-if="editFlag || showFlag" :value="p.repurchase_flag_n" :required="editFlag" :is-link="editFlag" title="合同类型" placeholder="请选择" @click="showPicker(1,pi)" />
<Cell v-if="editFlag || showFlag" :value="p.rent_invoice_type_n" :required="editFlag" :is-link="editFlag" title="开票类型" placeholder="请选择" @click="showPicker(0,pi)"/>
<!-- 查看还款计划 -->
<router-link :to="toPath(p.cash_lists, p)">查看还款计划</router-link>
......@@ -32,7 +32,7 @@ import 'vant/lib/collapse-item/style'
import 'vant/lib/action-sheet/style'
export default {
props: ['planData','editFlag'],
props: ['planData','editFlag','showFlag'],
components: {
Collapse, CollapseItem, Cell, ActionSheet},
data () {
......@@ -95,6 +95,7 @@ export default {
}
},
showPicker (flag, index) {
if (!this.editFlag) return
if (flag) {
this.actions = this.contractType.map(item => ({name: item.code_name}))
this.now_nodeName = 'repurchase_flag'
......
......@@ -41,7 +41,7 @@
<Lessee :lesseeData="lesseeData"></Lessee>
</div>
<div v-if="tabNum === 2" class="z100">
<Plan :planData="planData" :editFlag="isEditType"></Plan>
<Plan :planData="planData" :editFlag="isEditType" :showFlag="isShowType"></Plan>
</div>
<div v-if="tabNum === 3" class="z100">
<Partner :bplist="bplist"></Partner>
......@@ -97,6 +97,7 @@ export default {
appendixData: [],
isTodo: true,
isEditType: false, // 30节点可编辑合同类型、开票类型
isShowType: false, // 75节点可见合同类型、开票类型
}
},
beforeRouteEnter(to, from, next) {
......@@ -107,6 +108,7 @@ export default {
mounted() {
console.log(this.$route.params)
this.isEditType = this.$route.params.node_sequence_num === '30'
this.isShowType = this.$route.params.node_sequence_num === '75'
this.isTodo = this.$route.params.type === 'todo'
this.getHistory()
this.getData()
......
......@@ -388,7 +388,7 @@ export default new Router({
path: '/customerAccess-detail',
component: customerAccessDetail,
name: 'customerAccessDetail',
meta: { keepAlive: false },
meta: { keepAlive: true },
},
// 逾期信息查询
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment