Commit 0b0a83d9 authored by xinzhedeai's avatar xinzhedeai

add:逾期上报接口对接

parent 05875aa5
......@@ -25,13 +25,13 @@ axios.defaults.headers.common['Authorization'] =
// 'Bearer eyJhbGciOiJlUzUxMiJ9.eyJzdWlioilxNZ92MZAzMDl00SlslmxyZ2luX3VzZXJfa2V5ljoiMEONTM1NzktNTJiMSO0N2QwLTkzNmEtMmViNWFhYzMzMTI1In0.EG_EwS7xS1jgi29Ly7WXOJBCW4DcAyOtLD4he06sV8b4i70kknNQqVAx063NpcDa5kmTFdZ6zEfPHYPfVR4dEO'
// wgy账号token
// axios.defaults.headers.common['Authorization'] =
// 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLlrZnmgJ3lv40iLCJsb2dpbl91c2VyX2tleSI6IjU3MTM1MWEyLTVhNDAtNGRhMS05ODk0LTFjMzZhNTJlMzkxMyJ9.ryYWzzcwCU2EHNYb2AQCMfP2S_rvBheuhexKV6NP-E_8BQ7vlpLAYXAB6xmuPgyAotnwzxXOcOxuopdIpbiJnQ'
axios.defaults.headers.common['Authorization'] =
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLlrZnmgJ3lv40iLCJsb2dpbl91c2VyX2tleSI6IjU3MTM1MWEyLTVhNDAtNGRhMS05ODk0LTFjMzZhNTJlMzkxMyJ9.ryYWzzcwCU2EHNYb2AQCMfP2S_rvBheuhexKV6NP-E_8BQ7vlpLAYXAB6xmuPgyAotnwzxXOcOxuopdIpbiJnQ'
// admin账号token
axios.defaults.headers.common['Authorization'] =
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImxvZ2luX3VzZXJfa2V5IjoiOTEyODc0N2ItNGE4NC00MWRjLTg0ZGUtZTY1ODNkMzBiNDcwIn0.w_JRlifng-sUQqvGnuRFH5-wiL-1tfwI1cF7E97gjaOZ37bvRQld3120Myf9MYqLtVHUVX_vhlcBj7Kmg9exZw'
// axios.defaults.headers.common['Authorization'] =
// 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImxvZ2luX3VzZXJfa2V5IjoiOTEyODc0N2ItNGE4NC00MWRjLTg0ZGUtZTY1ODNkMzBiNDcwIn0.w_JRlifng-sUQqvGnuRFH5-wiL-1tfwI1cF7E97gjaOZ37bvRQld3120Myf9MYqLtVHUVX_vhlcBj7Kmg9exZw'
// 请求拦截器
......
......@@ -275,9 +275,9 @@
<div class="content" style="padding: 0rem 1rem 0.5rem; text-align: center;">
<h4 style="text-align: left;font-size: .32rem;">选择行业主管部门</h4>
<van-checkbox-group v-model="yuqi.dept">
<div v-for="(item, subIndex) in 4" style="overflow: hidden;">
<van-checkbox :key="subIndex" :name="item" shape="square">
{{ '社会事业局' }}
<div style="overflow: hidden;">
<van-checkbox :key="subIndex" :name="item.deptId" shape="square" v-for="(item, subIndex) in yuqi.deptDict">
{{ item.deptName }}
</van-checkbox>
</div>
</van-checkbox-group>
......
......@@ -120,6 +120,7 @@ window.onload = function () {
}
this.getDept4jujue()
this.getDept4yuqi()
},
watch: {
checkData: {
......@@ -137,6 +138,35 @@ window.onload = function () {
}
},
methods: {
getDept4yuqi(param) {
http2.post({
serviceId: API_KEY_MAP["no-page"]['id'],
interfacePublicKey: API_KEY_MAP["no-page"]["publicKey"],
interfacePrivateKey: API_KEY_MAP["no-page"]["privateKey"],
reqParams: {
sign: 28, // 逾期上报列表获取
}
}, (res) => {
if (!res) { // 中台返回为undefined 重新请求
vant.Toast.clear()
setTimeout(() => {
this.getDept4yuqi()
}, 0);
return
}
if (res) {
setTimeout(() => {
this.$nextTick(() => {
vant.Toast.clear()
})
}, 0);
var result = JSON.parse(res)
console.log('接口回调数据getDept4jujue', JSON.parse(res))
this.yuqi.deptDict = result.data
}
})
},
getDept4jujue(param) {
http2.post({
serviceId: API_KEY_MAP["no-page"]['id'],
......@@ -172,10 +202,9 @@ window.onload = function () {
"hdId": this.id,
}
if(type){ // 为1,则是延期
if(type===1){ // 为1,则是延期
reqParams.type = type
}
if(!type){ 上报
}else{ // 上报
if(!this.yuqi.dept.length){
vant.Dialog.alert({
title: '信息提示',
......@@ -185,6 +214,7 @@ window.onload = function () {
}
reqParams.reportedIds = this.yuqi.dept
}
http2.post({
serviceId: API_KEY_MAP["no-page"]['id'],
interfacePublicKey: API_KEY_MAP["no-page"]["publicKey"],
......
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