fix:工商登记信息同步
This commit is contained in:
parent
dda013c4a9
commit
48cb283b23
|
|
@ -0,0 +1,16 @@
|
||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新建编辑
|
||||||
|
* @param {*} data
|
||||||
|
*/
|
||||||
|
export function syGsdjxx(data) {
|
||||||
|
return request({
|
||||||
|
url: 'crmGsdjxx/queryByMonthAndXzqhDm',
|
||||||
|
method: 'post',
|
||||||
|
data: data,
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json;charset=UTF-8'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 行政区划list
|
||||||
|
* @param {*} data
|
||||||
|
*/
|
||||||
|
export function getXzqhList() {
|
||||||
|
return request({
|
||||||
|
url: 'crmXzqhDm/list',
|
||||||
|
method: 'get',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json;charset=UTF-8'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
@ -54,6 +54,15 @@
|
||||||
:label="item.poolName"
|
:label="item.poolName"
|
||||||
:value="item.poolId"/>
|
:value="item.poolId"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
<!-- 添加新按钮 -->
|
||||||
|
<el-button
|
||||||
|
v-if="poolId === 34557"
|
||||||
|
type="primary"
|
||||||
|
size="small"
|
||||||
|
style="margin-left: 10px"
|
||||||
|
@click="handlePoolAction">
|
||||||
|
同步数据
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</c-r-m-table-head>
|
</c-r-m-table-head>
|
||||||
<el-table
|
<el-table
|
||||||
|
|
@ -140,6 +149,36 @@
|
||||||
@size-change="handleSizeChange"
|
@size-change="handleSizeChange"
|
||||||
@current-change="handleCurrentChange"/>
|
@current-change="handleCurrentChange"/>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 同步数据参数对话框 -->
|
||||||
|
<el-dialog
|
||||||
|
:visible.sync="openXky"
|
||||||
|
title="请选择同步参数"
|
||||||
|
width="400px"
|
||||||
|
append-to-body>
|
||||||
|
<el-form>
|
||||||
|
<el-table-column label="同步月份">
|
||||||
|
同步月份:
|
||||||
|
<el-date-picker
|
||||||
|
v-model="month"
|
||||||
|
type="month"
|
||||||
|
value-format="yyyyMM"
|
||||||
|
placeholder="选择同步月"/>
|
||||||
|
</el-table-column>
|
||||||
|
<el-form-item style="padding-top: 30px">
|
||||||
|
地区:
|
||||||
|
<el-select v-model="xzqhDm" placeholder="请选择">
|
||||||
|
<el-option
|
||||||
|
v-for="item in xzqhList"
|
||||||
|
:key="item.xzqhDm"
|
||||||
|
:label="item.xzqhMc"
|
||||||
|
:value="item.xzqhDm"/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button :loading="loadingGs" type="primary" @click="sysGsdjxx">提交</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
<customer-detail
|
<customer-detail
|
||||||
v-if="showDview"
|
v-if="showDview"
|
||||||
|
|
@ -159,6 +198,8 @@ import { crmCustomerPoolNameListAPI, crmCustomerPoolQueryAuthAPI } from '@/api/c
|
||||||
|
|
||||||
import CustomerDetail from '../customer/Detail'
|
import CustomerDetail from '../customer/Detail'
|
||||||
import TableMixin from '../mixins/Table'
|
import TableMixin from '../mixins/Table'
|
||||||
|
import {getXzqhList} from "../../../api/crm/xzqh";
|
||||||
|
import {syGsdjxx} from "../../../api/crm/gsdjxx";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
/** 客户管理 的 公海列表 */
|
/** 客户管理 的 公海列表 */
|
||||||
|
|
@ -182,7 +223,12 @@ export default {
|
||||||
isSeas: true, // 是公海
|
isSeas: true, // 是公海
|
||||||
poolId: '',
|
poolId: '',
|
||||||
poolAuth: {},
|
poolAuth: {},
|
||||||
poolList: []
|
poolList: [],
|
||||||
|
openXky: false,
|
||||||
|
xzqhList: [],
|
||||||
|
month: '',
|
||||||
|
xzqhDm: '',
|
||||||
|
loadingGs: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -250,7 +296,32 @@ export default {
|
||||||
})
|
})
|
||||||
.catch(() => {})
|
.catch(() => {})
|
||||||
},
|
},
|
||||||
|
// 打开选项框
|
||||||
|
handlePoolAction() {
|
||||||
|
getXzqhList().then(resp => {
|
||||||
|
console.log(resp.data)
|
||||||
|
this.xzqhList = resp.data
|
||||||
|
this.openXky = true
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 同步工商登记信息
|
||||||
|
sysGsdjxx() {
|
||||||
|
let xzqhMc = null
|
||||||
|
for (let i = 0; i < this.xzqhList.length; i++) {
|
||||||
|
if (this.xzqhList[i].xzqhDm === this.xzqhDm){
|
||||||
|
xzqhMc = this.xzqhList[i].xzqhMc
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const pa = {
|
||||||
|
yf: this.month,
|
||||||
|
xzqhDm: this.xzqhDm,
|
||||||
|
xzqhMc: xzqhMc
|
||||||
|
}
|
||||||
|
console.log(pa)
|
||||||
|
syGsdjxx(pa)
|
||||||
|
this.$message.success(`同步成功,请稍后刷新界面`)
|
||||||
|
this.openXky = false
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 左侧菜单选择
|
* 左侧菜单选择
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue