Commit 4e5feb6b authored by linxin's avatar linxin

fixed

parent 93362a6a
Pipeline #4422 canceled with stages
...@@ -144,6 +144,7 @@ export default { ...@@ -144,6 +144,7 @@ export default {
office_name: '', // 办事处 office_name: '', // 办事处
factory_name: '', factory_name: '',
business: '', business: '',
factoty: '', // 主机厂列表
showModal: false, showModal: false,
showLists: [], showLists: [],
user_bp_type: '', // 客户类型 user_bp_type: '', // 客户类型
...@@ -168,6 +169,18 @@ export default { ...@@ -168,6 +169,18 @@ export default {
} }
}, },
watch: { watch: {
'salesInfo.factory': {
handler (newVal, oldVal) {
this.factoty.forEach(i => {
if (i.bp_factory_id === this.salesInfo['factory']) {
this.inflow_line = i.inflow_line
this.inflow_used = i.inflow_used
this.inflow_reset = i.inflow_reset
}
})
},
immediate: true,
},
}, },
activated () { activated () {
...@@ -309,7 +322,7 @@ export default { ...@@ -309,7 +322,7 @@ export default {
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
console.log('主机厂', res) 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 {
......
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