Commit fbd77cd9 authored by 14699's avatar 14699

fix-接口联调

parent 0066ac2d
......@@ -220,9 +220,9 @@ export default {
contractList() {
let vm = this
if (vm.num === 1) {
let url = $config.basePath + 'prj_confirm_list_query'
let url = $config.basePath + 'zm_prj_list_query'
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,
pagesize: 10,
pagenum: vm.submitPagenum,
......@@ -248,13 +248,13 @@ export default {
}
})
} else if (vm.num === 2) {
let url = $config.basePath + 'prj_confirm_list_query'
let url = $config.basePath + 'zm_prj_list_query'
let param = {
pagesize: 10,
pagenum: vm.approvedPagenum,
searchInput: vm.searchInput,
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,
}
vm.hlsPopup.showLoading('数据加载中')
......
......@@ -27,7 +27,13 @@
</item>
<item>
<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-->
<!-- v-if="isApproved && isMultiRole && !hasMultiRole"-->
......@@ -121,7 +127,6 @@
slot="content"
v-model="baseInfo.bp_name"
placeholder="请输入姓名"
class="auto"
/>
</item>
<item>
......@@ -130,7 +135,6 @@
slot="content"
v-model="baseInfo.id_card_no"
placeholder="请输入身份证号码"
class="auto"
/>
</item>
<item>
......@@ -142,7 +146,6 @@
cols="30"
rows="1"
placeholder="请输入户籍地址"
class="auto"
@input="addRows(baseInfo.address_on_resident_booklit)"
/>
</item>
......@@ -153,7 +156,6 @@
v-model="baseInfo.id_card_date_from"
readonly
placeholder="请输入身份证有效期从"
class="auto"
/>
<!-- <span class="auto">{{ baseInfo.id_card_date_from|dateFormat }}</span> -->
</item>
......@@ -164,7 +166,6 @@
readonly
v-model="baseInfo.id_card_date_to"
placeholder="请输入身份证有效期到"
class="auto"
/>
</item>
<item>
......@@ -421,7 +422,9 @@ export default {
// working_place_sp: '',
// address_sp: '',
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: '', // 身份证正面图片
idCardBack: '', // 身份证反面图片
......@@ -487,10 +490,11 @@ export default {
},
created() {
this.getBpType()
this.getEducationBackground()
this.getMarital()
this.getProvince()
// this.getBpType()
// this.getEducationBackground()
// this.getMarital()
// this.getProvince()
this.getFactoryBpName()
},
beforeRouteEnter(to, from, next) {
// 绑定查询入口
......@@ -543,6 +547,8 @@ export default {
address_sp: '',
user_phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.handleUser).bp_id,
bp_factory_id: '',
bp_factory_name: '',
}
vm.idCardFront = '' // 身份证正面图片
......@@ -576,8 +582,8 @@ export default {
vm.from = true
window.localStorage.setItem('from', true)
vm.basicInfoQuery()
vm.loadItemList(true) // 附件查询
vm.getMultipleRole()// 获取第二角色
// vm.loadItemList(true) // 附件查询
// vm.getMultipleRole()// 获取第二角色
} else if (from.name === 'UserBind') {
vm.list = {}
window.localStorage.setItem('from', false)
......@@ -624,6 +630,8 @@ export default {
address_sp: '',
user_phone: window.localStorage.user_phone,
bp_id: JSON.parse(window.localStorage.handleUser).bp_id,
bp_factory_id: '',
bp_factory_name: '',
}
vm.idCardFrontUpload = ''
vm.idCardBackUpload = ''
......@@ -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>
<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