Browse Source

完善欠款客户备案

master
yunuo970428 2 years ago
parent
commit
4e24f0f9cd
  1. 30
      anrui-riskcenter-ui/src/views/delinquentcustomerfiling/delinquentcustomerfilingAdd.vue
  2. 30
      anrui-riskcenter-ui/src/views/workFlow/qiankuanbeianFlow/delinquentcustomerfilingEdit.vue

30
anrui-riskcenter-ui/src/views/delinquentcustomerfiling/delinquentcustomerfilingAdd.vue

@ -95,7 +95,7 @@
<el-row>
<el-col :span="16">
<div class="span-sty">证件地址</div>
<el-form-item><el-input class="addinputInfo" style="width: 30%;" v-model="formobj.clientAddress" clearable placeholder=""/></el-form-item>
<el-form-item><el-input class="addinputInfo" style="width: 60%;" v-model="formobj.clientAddress" clearable placeholder=""/></el-form-item>
</el-col>
<el-col :span="8">
<div v-show="formobj.customerTypeKey == '1'">
@ -188,7 +188,10 @@
</el-col>
</el-row>
</div>
<div class="title">附件清单</div>
<div class="title titleOne">
<div>附件清单</div>
<el-button type="primary" class="btntopblueline" size="mini" @click="downLoad('/template/信息查询授权书.pdf')">信息查询授权书模板下载</el-button>
</div>
<el-row v-show="formobj.customerTypeKey === '2' || (formobj.customerTypeKey === '1' && formobj.isAnchored === '1')">
<el-col :span="24">
<div class="span-sty span-sty-special" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center">营业执照</div>
@ -238,6 +241,7 @@
import req from '@/api/delinquentcustomerfiling/delinquentcustomerfiling'
import { selectOrgList, selectMangerByDeptSid, selectCustomerList, typeValues, selectInvoingByOrgPath } from '@/api/Common/dictcommons'
import uploadImg from '@/components/uploadFile/uploadImg'
import { getStorage } from '@/utils/auth'
export default {
name: 'DelinquentCustomerFilingAdd',
@ -523,6 +527,28 @@ export default {
this.formobj.address = ''
}
},
downLoad(filePath) {
var xhr = new XMLHttpRequest()
xhr.open('GET', process.env.VUE_APP_BASE_API + '/base/file/download?filePath=' + filePath + '&outFileName=' + '信息查询授权书', true)
xhr.setRequestHeader('token', getStorage())
xhr.responseType = 'blob'
xhr.onload = function(e) {
//
var blob = this.response
var filename = '信息查询授权书.pdf'
var a = document.createElement('a')
// blob.type="application/octet-stream";
// url
var url = URL.createObjectURL(blob)
a.href = url
a.download = filename
a.click()
// URL
window.URL.revokeObjectURL(url)
}
//
xhr.send()
},
save() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {

30
anrui-riskcenter-ui/src/views/workFlow/qiankuanbeianFlow/delinquentcustomerfilingEdit.vue

@ -94,7 +94,7 @@
<el-row>
<el-col :span="16">
<div class="span-sty">证件地址</div>
<el-form-item><el-input class="addinputInfo" style="width: 30%;" v-model="formobj.clientAddress" clearable placeholder=""/></el-form-item>
<el-form-item><el-input class="addinputInfo" style="width: 60%;" v-model="formobj.clientAddress" clearable placeholder=""/></el-form-item>
</el-col>
<el-col :span="8">
<div v-show="formobj.customerTypeKey == '1'">
@ -187,7 +187,10 @@
</el-col>
</el-row>
</div>
<div class="title">附件清单</div>
<div class="title titleOne">
<div>附件清单</div>
<el-button type="primary" class="btntopblueline" size="mini" @click="downLoad('/template/信息查询授权书.pdf')">信息查询授权书模板下载</el-button>
</div>
<el-row v-show="formobj.customerTypeKey === '2' || (formobj.customerTypeKey === '1' && formobj.isAnchored === '1')">
<el-col :span="24">
<div class="span-sty span-sty-special" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center">营业执照</div>
@ -237,6 +240,7 @@
import req from '@/api/delinquentcustomerfiling/delinquentcustomerfiling'
import { selectOrgList, selectMangerByDeptSid, selectCustomerList, typeValues, selectInvoingByOrgPath } from '@/api/Common/dictcommons'
import uploadImg from '@/components/uploadFile/uploadImg'
import { getStorage } from '@/utils/auth'
export default {
name: 'DelinquentCustomerFilingEdit',
@ -519,6 +523,28 @@ export default {
this.formobj.address = ''
}
},
downLoad(filePath) {
var xhr = new XMLHttpRequest()
xhr.open('GET', process.env.VUE_APP_BASE_API + '/base/file/download?filePath=' + filePath + '&outFileName=' + '信息查询授权书', true)
xhr.setRequestHeader('token', getStorage())
xhr.responseType = 'blob'
xhr.onload = function(e) {
//
var blob = this.response
var filename = '信息查询授权书.pdf'
var a = document.createElement('a')
// blob.type="application/octet-stream";
// url
var url = URL.createObjectURL(blob)
a.href = url
a.download = filename
a.click()
// URL
window.URL.revokeObjectURL(url)
}
//
xhr.send()
},
save() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {

Loading…
Cancel
Save