Commit 3d81fd33 authored by qinj's avatar qinj

企查查Loading

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