Commit ffbd4719 authored by linxin's avatar linxin

Merge branch 'liuin' into uat

parents 53c83992 d6079410
...@@ -65,7 +65,6 @@ ...@@ -65,7 +65,6 @@
type="text" type="text"
readonly readonly
placeholder="请选择" placeholder="请选择"
@click="selectFactory"
> >
</item> </item>
<item> <item>
...@@ -179,20 +178,20 @@ export default { ...@@ -179,20 +178,20 @@ export default {
} }
}, },
watch: { watch: {
'salesInfo.factory': { // 'salesInfo.factory': {
handler (newVal, oldVal) { // handler (newVal, oldVal) {
this.factoty.forEach(i => { // this.factoty.forEach(i => {
if (i.bp_factory_id === this.salesInfo['factory']) { // if (i.bp_factory_id === this.salesInfo['factory']) {
this.inflow_line = i.inflow_line // this.inflow_line = i.inflow_line
this.inflow_used = i.inflow_used // this.inflow_used = i.inflow_used
this.inflow_reset = i.inflow_reset // this.inflow_reset = i.inflow_reset
this.salesInfo.credit_id = i.credit_id // this.salesInfo.credit_id = i.credit_id
window.localStorage.setItem('credit_id', i.credit_id) // window.localStorage.setItem('credit_id', i.credit_id)
} // }
}) // })
}, // },
immediate: true, // immediate: true,
}, // },
// '$route' (to, from) { // '$route' (to, from) {
// debugger // debugger
// if (from.fullPath !== '/contract-create-list' && to.fullPath === '/sales-info') { // if (from.fullPath !== '/contract-create-list' && to.fullPath === '/sales-info') {
...@@ -236,8 +235,8 @@ export default { ...@@ -236,8 +235,8 @@ export default {
} }
vm.businessQuery().then(res => { vm.businessQuery().then(res => {
vm.agentQuery().then(res => { vm.agentQuery().then(res => {
vm.factoryQuery().then(res => { // vm.factoryQuery().then(res => {
}) // })
}) })
}) })
} else if (from.name === 'CreateBaseInfo') { } else if (from.name === 'CreateBaseInfo') {
...@@ -344,18 +343,28 @@ export default { ...@@ -344,18 +343,28 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'prj_factory_list' let url = process.env.basePath + 'prj_factory_list'
let param = { let param = {
office_id: vm.salesInfo.office_id,
phone: window.localStorage.getItem('user_phone'), phone: window.localStorage.getItem('user_phone'),
} }
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
return vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
vm.factoty = res.lists // vm.factoty = res.lists
if (res.result === 'S') { if (res.result === 'S') {
vm.factoryLists = res.lists.map(item => { // vm.factoryLists = res.lists.map(item => {
return { // return {
code: item.bp_factory_id, // code: item.bp_factory_id,
code_name: item.bp_factory_name, // code_name: item.bp_factory_name,
} // }
// })
res.lists.forEach(i => {
vm.inflow_line = i.inflow_line
vm.inflow_used = i.inflow_used
vm.inflow_reset = i.inflow_reset
vm.salesInfo.factory = i.bp_factory_id
vm.salesInfo.credit_id = i.credit_id
vm.factory_name = i.bp_factory_name
window.localStorage.setItem('credit_id', i.credit_id)
}) })
} }
}) })
...@@ -439,6 +448,7 @@ export default { ...@@ -439,6 +448,7 @@ export default {
returnItem: function (index, obj) { returnItem: function (index, obj) {
vm.salesInfo.office_id = obj.office_type vm.salesInfo.office_id = obj.office_type
vm.office_name = obj.office_type_n vm.office_name = obj.office_type_n
vm.factoryQuery()
}, },
}) })
}, },
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<div class="info"> <div class="info">
<div class="info-item"> <div class="info-item">
<span>还款金额</span> <span>还款金额</span>
<span>¥{{ parseFloat(money).toFixed(2) |currency }}</span> <span>{{ parseFloat(money).toFixed(2) |currency }}</span>
</div> </div>
<div class="interest"> <div class="interest">
<span>本次交易收取{{ rate }}%手续费</span> <span>本次交易收取{{ rate }}%手续费</span>
......
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