Commit fbd77cd9 authored by 14699's avatar 14699

fix-接口联调

parent 0066ac2d
...@@ -220,9 +220,9 @@ export default { ...@@ -220,9 +220,9 @@ export default {
contractList() { contractList() {
let vm = this let vm = this
if (vm.num === 1) { if (vm.num === 1) {
let url = $config.basePath + 'prj_confirm_list_query' let url = $config.basePath + 'zm_prj_list_query'
let param = { let param = {
// user_phone: window.localStorage.user_phone, phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id, bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
pagesize: 10, pagesize: 10,
pagenum: vm.submitPagenum, pagenum: vm.submitPagenum,
...@@ -248,13 +248,13 @@ export default { ...@@ -248,13 +248,13 @@ export default {
} }
}) })
} else if (vm.num === 2) { } else if (vm.num === 2) {
let url = $config.basePath + 'prj_confirm_list_query' let url = $config.basePath + 'zm_prj_list_query'
let param = { let param = {
pagesize: 10, pagesize: 10,
pagenum: vm.approvedPagenum, pagenum: vm.approvedPagenum,
searchInput: vm.searchInput, searchInput: vm.searchInput,
confirm_status: 'APPROVED', confirm_status: 'APPROVED',
// user_phone: window.localStorage.user_phone, phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id, bp_id: JSON.parse(window.localStorage.now_user_bp_bind_id).bp_id,
} }
vm.hlsPopup.showLoading('数据加载中') vm.hlsPopup.showLoading('数据加载中')
......
...@@ -27,7 +27,13 @@ ...@@ -27,7 +27,13 @@
</item> </item>
<item> <item>
<div slot="name" class="required">主机厂</div> <div slot="name" class="required">主机厂</div>
<span slot="content">{{ baseInfo.factory_bp_name }}</span> <input
slot="content"
v-model="baseInfo.bp_factory_name"
placeholder="请选择"
type="text"
readonly
@click="selectFactoryBpName()"/>
</item> </item>
<!-- <item--> <!-- <item-->
<!-- v-if="isApproved && isMultiRole && !hasMultiRole"--> <!-- v-if="isApproved && isMultiRole && !hasMultiRole"-->
...@@ -121,7 +127,6 @@ ...@@ -121,7 +127,6 @@
slot="content" slot="content"
v-model="baseInfo.bp_name" v-model="baseInfo.bp_name"
placeholder="请输入姓名" placeholder="请输入姓名"
class="auto"
/> />
</item> </item>
<item> <item>
...@@ -130,7 +135,6 @@ ...@@ -130,7 +135,6 @@
slot="content" slot="content"
v-model="baseInfo.id_card_no" v-model="baseInfo.id_card_no"
placeholder="请输入身份证号码" placeholder="请输入身份证号码"
class="auto"
/> />
</item> </item>
<item> <item>
...@@ -142,7 +146,6 @@ ...@@ -142,7 +146,6 @@
cols="30" cols="30"
rows="1" rows="1"
placeholder="请输入户籍地址" placeholder="请输入户籍地址"
class="auto"
@input="addRows(baseInfo.address_on_resident_booklit)" @input="addRows(baseInfo.address_on_resident_booklit)"
/> />
</item> </item>
...@@ -153,7 +156,6 @@ ...@@ -153,7 +156,6 @@
v-model="baseInfo.id_card_date_from" v-model="baseInfo.id_card_date_from"
readonly readonly
placeholder="请输入身份证有效期从" placeholder="请输入身份证有效期从"
class="auto"
/> />
<!-- <span class="auto">{{ baseInfo.id_card_date_from|dateFormat }}</span> --> <!-- <span class="auto">{{ baseInfo.id_card_date_from|dateFormat }}</span> -->
</item> </item>
...@@ -164,7 +166,6 @@ ...@@ -164,7 +166,6 @@
readonly readonly
v-model="baseInfo.id_card_date_to" v-model="baseInfo.id_card_date_to"
placeholder="请输入身份证有效期到" placeholder="请输入身份证有效期到"
class="auto"
/> />
</item> </item>
<item> <item>
...@@ -421,7 +422,9 @@ export default { ...@@ -421,7 +422,9 @@ export default {
// working_place_sp: '', // working_place_sp: '',
// address_sp: '', // address_sp: '',
user_phone: window.localStorage.user_phone, user_phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.handleUser).bp_id bp_id: JSON.parse(window.localStorage.handleUser).bp_id,
bp_factory_id: '',
bp_factory_name: '',
}, },
idCardFront: '', // 身份证正面图片 idCardFront: '', // 身份证正面图片
idCardBack: '', // 身份证反面图片 idCardBack: '', // 身份证反面图片
...@@ -487,10 +490,11 @@ export default { ...@@ -487,10 +490,11 @@ export default {
}, },
created() { created() {
this.getBpType() // this.getBpType()
this.getEducationBackground() // this.getEducationBackground()
this.getMarital() // this.getMarital()
this.getProvince() // this.getProvince()
this.getFactoryBpName()
}, },
beforeRouteEnter(to, from, next) { beforeRouteEnter(to, from, next) {
// 绑定查询入口 // 绑定查询入口
...@@ -543,6 +547,8 @@ export default { ...@@ -543,6 +547,8 @@ export default {
address_sp: '', address_sp: '',
user_phone: window.localStorage.user_phone, user_phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.handleUser).bp_id, bp_id: JSON.parse(window.localStorage.handleUser).bp_id,
bp_factory_id: '',
bp_factory_name: '',
} }
vm.idCardFront = '' // 身份证正面图片 vm.idCardFront = '' // 身份证正面图片
...@@ -576,8 +582,8 @@ export default { ...@@ -576,8 +582,8 @@ export default {
vm.from = true vm.from = true
window.localStorage.setItem('from', true) window.localStorage.setItem('from', true)
vm.basicInfoQuery() vm.basicInfoQuery()
vm.loadItemList(true) // 附件查询 // vm.loadItemList(true) // 附件查询
vm.getMultipleRole()// 获取第二角色 // vm.getMultipleRole()// 获取第二角色
} else if (from.name === 'UserBind') { } else if (from.name === 'UserBind') {
vm.list = {} vm.list = {}
window.localStorage.setItem('from', false) window.localStorage.setItem('from', false)
...@@ -624,6 +630,8 @@ export default { ...@@ -624,6 +630,8 @@ export default {
address_sp: '', address_sp: '',
user_phone: window.localStorage.user_phone, user_phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.handleUser).bp_id, bp_id: JSON.parse(window.localStorage.handleUser).bp_id,
bp_factory_id: '',
bp_factory_name: '',
} }
vm.idCardFrontUpload = '' vm.idCardFrontUpload = ''
vm.idCardBackUpload = '' vm.idCardBackUpload = ''
...@@ -1769,7 +1777,37 @@ export default { ...@@ -1769,7 +1777,37 @@ export default {
}, },
}) })
}, },
} getFactoryBpName() {
let vm = this
let url = process.env.basePath + 'bp_factory_query'
let param = {}
vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.factoryBpNameList = res.lists.map(item => {
return {
code: item.bp_factory_id,
code_name: item.bp_factory_name,
}
})
}
})
},
selectFactoryBpName(e) {
let vm = this
vm.hlsPopup.selectList({
list: vm.factoryBpNameList,
code: 'factory_bp_id',
object: {},
returnItem: function (index, obj) {
console.log(obj)
vm.baseInfo.bp_factory_id = obj.factory_bp_id
vm.baseInfo.bp_factory_name = obj.factory_bp_id_n
},
})
},
},
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
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