Commit 3d81fd33 authored by qinj's avatar qinj

企查查Loading

parent 8b5f0ebd
......@@ -293,46 +293,49 @@
:visible.sync="dialogTableVisible"
width="50%"
:before-close="handleClose">
<el-form :inline="true"
:model="formInline"
class="demo-form-inline">
<el-form-item label="公司名称:">
<el-input v-model="formInline.Name"
placeholder=""></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary"
@click="getList">获取企查查信息</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary"
@click="reSet">重置</el-button>
</el-form-item>
</el-form>
<el-table :data="tableData"
border
@row-click="select"
style="width: 100%">
<el-table-column prop="Status"
width="80"
label="状态">
</el-table-column>
<el-table-column prop="Name"
label="公司">
</el-table-column>
<el-table-column prop="OperName"
width="120"
label="法定代表人">
</el-table-column>
<el-table-column prop="CreditCode"
label="社会统一信用代码">
</el-table-column>
</el-table>
<pagination v-show="TotalRecords>0"
:total="TotalRecords"
:page.sync="page.currentPage"
:limit.sync="page.pageSize"
@pagination="getList" />
<div v-loading="selLoading">
<el-form :inline="true"
:model="formInline"
class="demo-form-inline">
<el-form-item label="公司名称:">
<el-input v-model="formInline.Name"
placeholder=""></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary"
@click="getList">获取企查查信息</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary"
@click="reSet">重置</el-button>
</el-form-item>
</el-form>
<el-table :data="tableData"
border
@row-click="select"
style="width: 100%">
<el-table-column prop="Status"
width="80"
label="状态">
</el-table-column>
<el-table-column prop="Name"
label="公司">
</el-table-column>
<el-table-column prop="OperName"
width="120"
label="法定代表人">
</el-table-column>
<el-table-column prop="CreditCode"
label="社会统一信用代码">
</el-table-column>
</el-table>
<pagination v-show="TotalRecords>0"
:total="TotalRecords"
:page.sync="page.currentPage"
:limit.sync="page.pageSize"
@pagination="getList" />
</div>
</el-dialog>
</div>
......@@ -354,6 +357,7 @@ export default {
countryArea: '',
title: '城市代理商注册',
btnloading: false,
selLoading: false,
formInline: {},
recordList: [],
tableData: [],
......@@ -460,25 +464,27 @@ export default {
this.dialogTableVisible = true
},
select(row, column, event) {
this.page.extSocialUnifiedCreditCode_SDK = row.CreditCode
this.page.extSocialUnifiedCreditCode_SDK = row.CreditCode
this.page.searchKey = row.CreditCode
this.selLoading = true
this.$request(Qcc.onlyDetailUrl, this.page).then((resp) => {
this.selLoading = false
this.formData.extCorporateName_SDK = row.OperName
this.formData.extSocialUnifiedCreditCode_SDK = row.CreditCode
this.formData.name = row.Name
this.formData.extRegisteredCapital_SDK = resp.results.Result.RegistCapi
this.dialogTableVisible = false
}).catch((err)=>{
}).catch((err) => {
this.selLoading = false
})
},
handleApprove() {
this.$refs.formData.validate((valid) => {
if (valid) {
this.formData.extCustomerType_SDK = 111
const dataList=this.formData
const dataList = this.formData
this.btnloading = true
this.$request(Customer.searchUrl, this.paramsToFormData(dataList)).then((resp) => {
this.btnloading = false
......
......@@ -391,46 +391,49 @@
:visible.sync="dialogTableVisible"
width="50%"
:before-close="handleClose">
<el-form :inline="true"
:model="formInline"
class="demo-form-inline">
<el-form-item label="公司名称:">
<el-input v-model="formInline.Name"
placeholder=""></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary"
@click="getList">获取企查查信息</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary"
@click="reSet">重置</el-button>
</el-form-item>
</el-form>
<el-table :data="tableData"
border
@row-click="select"
style="width: 100%">
<el-table-column prop="Status"
width="80"
label="状态">
</el-table-column>
<el-table-column prop="Name"
label="公司">
</el-table-column>
<el-table-column prop="OperName"
width="120"
label="法定代表人">
</el-table-column>
<el-table-column prop="CreditCode"
label="社会统一信用代码">
</el-table-column>
</el-table>
<pagination v-show="TotalRecords>0"
:total="TotalRecords"
:page.sync="page.currentPage"
:limit.sync="page.pageSize"
@pagination="getList" />
<div v-loading="selLoading">
<el-form :inline="true"
:model="formInline"
class="demo-form-inline">
<el-form-item label="公司名称:">
<el-input v-model="formInline.Name"
placeholder=""></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary"
@click="getList">获取企查查信息</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary"
@click="reSet">重置</el-button>
</el-form-item>
</el-form>
<el-table :data="tableData"
border
@row-click="select"
style="width: 100%">
<el-table-column prop="Status"
width="80"
label="状态">
</el-table-column>
<el-table-column prop="Name"
label="公司">
</el-table-column>
<el-table-column prop="OperName"
width="120"
label="法定代表人">
</el-table-column>
<el-table-column prop="CreditCode"
label="社会统一信用代码">
</el-table-column>
</el-table>
<pagination v-show="TotalRecords>0"
:total="TotalRecords"
:page.sync="page.currentPage"
:limit.sync="page.pageSize"
@pagination="getList" />
</div>
</el-dialog>
</div>
......@@ -494,7 +497,8 @@ export default {
},
dialogTableVisible: false,
isShow: true,
formDataList:{},
selLoading: false,
formDataList: {},
TotalRecords: 0,
page: {
pageSize: 10,
......@@ -624,22 +628,24 @@ export default {
},
select(row, column, event) {
this.page.extSocialUnifiedCreditCode_SDK = row.CreditCode
this.page.searchKey=row.CreditCode
this.page.searchKey = row.CreditCode
this.selLoading = true
this.$request(Qcc.onlyDetailUrl, this.page).then((resp) => {
this.selLoading = false
this.formData.extCorporateName_SDK = row.OperName
this.formData.extSocialUnifiedCreditCode_SDK = row.CreditCode
this.formData.name = row.Name
this.formData.extRegisteredCapital_SDK = resp.results.Result.RegistCapi
this.dialogTableVisible = false
}).catch((err)=>{
}).catch((err) => {
this.selLoading = false
})
},
handleApprove() {
this.$refs.formData.validate((valid) => {
if (valid) {
this.formData.extCustomerType_SDK = 101
let dataList=this.formData
let dataList = this.formData
const ExtProductGroup_KUT = this.formDataList.extProductGroup_KUT
const ExtProductGroup_SDK = this.formDataList.extProductGroup_SDK
const ExtTotalAgent_KUT = this.formDataList.extTotalAgent_KUT
......@@ -647,19 +653,19 @@ export default {
dataList.extProductGroup_KUT = ExtProductGroup_KUT.toString()
dataList.extProductGroup_SDK = ExtProductGroup_SDK.toString()
dataList.extTotalAgent_KUT = ExtTotalAgent_KUT.toString()
dataList.extTotalAgent_SDK = ExtTotalAgent_SDK .toString()
dataList.extTotalAgent_SDK = ExtTotalAgent_SDK.toString()
this.btnloading = true
this.$request(Customer.searchUrl, this.paramsToFormData(dataList)).then((resp) => {
this.btnloading = false
this.$message.success('提交成功!')
this.formData.extProductGroup_KUT=this.formData.extProductGroup_KUT.split(',')
this.formData.extTotalAgent_KUT=this.formData.extTotalAgent_KUT.split(',')
console.log(this.formData)
this.formData.extProductGroup_KUT = this.formData.extProductGroup_KUT.split(',')
this.formData.extTotalAgent_KUT = this.formData.extTotalAgent_KUT.split(',')
console.log(this.formData)
this.isShow = false
}).catch((err) => {
this.btnloading = false
this.formData.extProductGroup_KUT=this.formData.extProductGroup_KUT.split(',')
this.formData.extTotalAgent_KUT=this.formData.extTotalAgent_KUT.split(',')
this.formData.extProductGroup_KUT = this.formData.extProductGroup_KUT.split(',')
this.formData.extTotalAgent_KUT = this.formData.extTotalAgent_KUT.split(',')
})
} else {
this.btnloading = false
......
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