[update] 企业管理变更
This commit is contained in:
+1
-1
@@ -596,7 +596,7 @@ export function isRepeat(arr) {
|
|||||||
|
|
||||||
export function addZero(e) {
|
export function addZero(e) {
|
||||||
// (e) => {e.target.value = e.target.value.replace(/[^0-9.]/g,'')}
|
// (e) => {e.target.value = e.target.value.replace(/[^0-9.]/g,'')}
|
||||||
console.log(e.target.value)
|
// console.log(e.target.value)
|
||||||
// 判断是否包含 .
|
// 判断是否包含 .
|
||||||
let value = e.target.value
|
let value = e.target.value
|
||||||
// 判断是否包含小数点
|
// 判断是否包含小数点
|
||||||
|
|||||||
@@ -120,6 +120,11 @@ export default {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'companyPhone'
|
dataIndex: 'companyPhone'
|
||||||
|
},{
|
||||||
|
title: '状态',
|
||||||
|
align: 'center',
|
||||||
|
width: 100,
|
||||||
|
dataIndex: 'status'
|
||||||
}, {
|
}, {
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
|||||||
@@ -19,6 +19,16 @@
|
|||||||
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
|
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
<a-col :xl="12" :sm="24">
|
||||||
|
<a-form-item label="信用代码" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
|
<a-input placeholder="请输入信用代码"
|
||||||
|
v-decorator="['dutyCode', validatorRules.dutyCode]"
|
||||||
|
:maxLength='50'
|
||||||
|
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row>
|
||||||
<a-col :xl="12" :sm="24">
|
<a-col :xl="12" :sm="24">
|
||||||
<a-form-item label="公司地址" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="公司地址" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-input placeholder="请输入公司地址"
|
<a-input placeholder="请输入公司地址"
|
||||||
@@ -27,8 +37,6 @@
|
|||||||
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
|
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
|
||||||
<a-row>
|
|
||||||
<a-col :xl="12" :sm="24">
|
<a-col :xl="12" :sm="24">
|
||||||
<a-form-item label="公司电话" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="公司电话" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-input placeholder="请输入公司电话"
|
<a-input placeholder="请输入公司电话"
|
||||||
@@ -37,6 +45,8 @@
|
|||||||
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
|
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row>
|
||||||
<a-col :xl="12" :sm="24">
|
<a-col :xl="12" :sm="24">
|
||||||
<a-form-item label="邮政编码" :labelCol="labelCol" :wrapperCol="wrapperCol" class="form-item-postcode">
|
<a-form-item label="邮政编码" :labelCol="labelCol" :wrapperCol="wrapperCol" class="form-item-postcode">
|
||||||
<a-input placeholder="请输入邮政编码"
|
<a-input placeholder="请输入邮政编码"
|
||||||
@@ -46,8 +56,6 @@
|
|||||||
<a class="search-postcode" href="https://www.youbianku.com" target="_blank">查询邮编</a>
|
<a class="search-postcode" href="https://www.youbianku.com" target="_blank">查询邮编</a>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
|
||||||
<a-row>
|
|
||||||
<a-col :xl="12" :sm="24">
|
<a-col :xl="12" :sm="24">
|
||||||
<a-form-item label="银行户名" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="银行户名" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-input placeholder="请输入银行户名"
|
<a-input placeholder="请输入银行户名"
|
||||||
@@ -56,6 +64,8 @@
|
|||||||
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
|
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row>
|
||||||
<a-col :xl="12" :sm="24">
|
<a-col :xl="12" :sm="24">
|
||||||
<a-form-item label="开户行" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="开户行" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-input placeholder="请输入开户行"
|
<a-input placeholder="请输入开户行"
|
||||||
@@ -64,8 +74,6 @@
|
|||||||
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
|
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
|
||||||
<a-row>
|
|
||||||
<a-col :xl="12" :sm="24">
|
<a-col :xl="12" :sm="24">
|
||||||
<a-form-item label="银行账号" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="银行账号" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-input placeholder="请输入银行账号"
|
<a-input placeholder="请输入银行账号"
|
||||||
@@ -74,14 +82,6 @@
|
|||||||
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
|
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :xl="12" :sm="24">
|
|
||||||
<a-form-item label="税号" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
||||||
<a-input placeholder="请输入税号"
|
|
||||||
v-decorator="['dutyCode', validatorRules.dutyCode]"
|
|
||||||
:maxLength='50'
|
|
||||||
@change="e => {e.target.value = (e.target.value + '').trim()}"></a-input>
|
|
||||||
</a-form-item>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col>
|
<a-col>
|
||||||
@@ -213,8 +213,8 @@ export default {
|
|||||||
this.form.validateFields((err, values) => {
|
this.form.validateFields((err, values) => {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
that.confirmLoading = true
|
that.confirmLoading = true
|
||||||
values.dataSource = this.dataForm
|
// values.dataSource = this.dataForm
|
||||||
values.signingUp = this.applyAdd
|
// values.signingUp = this.applyAdd
|
||||||
let httpurl = ''
|
let httpurl = ''
|
||||||
let method = 'post'
|
let method = 'post'
|
||||||
if (!this.model.id) {
|
if (!this.model.id) {
|
||||||
@@ -293,21 +293,31 @@ export default {
|
|||||||
callback('请输入银行账号')
|
callback('请输入银行账号')
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 校验税号
|
* 校验信用代码唯一性
|
||||||
* @param rules
|
* @param rules
|
||||||
* @param value
|
* @param value
|
||||||
* @param callback
|
* @param callback
|
||||||
*/
|
*/
|
||||||
checkDutyCode(rules, value, callback) {
|
checkDutyCode(rules, value, callback) {
|
||||||
if (value) {
|
if (value) {
|
||||||
if (taxNo(value)) {
|
if (!this.model.id) {
|
||||||
callback()
|
const params = {
|
||||||
} else {
|
confusionCode: 'pay_company_duty_code',
|
||||||
callback('请输入15位、17位、18位、20位数字和大写英文字母')
|
fieldVal: value
|
||||||
|
}
|
||||||
|
duplicateCheck(params).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
callback()
|
||||||
|
} else {
|
||||||
|
callback('信用代码已存在')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return
|
||||||
}
|
}
|
||||||
return
|
callback()
|
||||||
|
} else {
|
||||||
|
callback('请输入信用代码')
|
||||||
}
|
}
|
||||||
callback('请输入税号')
|
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 企业名称唯一性校验
|
* 企业名称唯一性校验
|
||||||
|
|||||||
@@ -200,7 +200,6 @@ export default {
|
|||||||
},
|
},
|
||||||
open() {
|
open() {
|
||||||
this.dataSource = this.tableData
|
this.dataSource = this.tableData
|
||||||
console.log(this.dataSource)
|
|
||||||
this.loadData()
|
this.loadData()
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
@@ -262,7 +261,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
console.log(this.dataSource)
|
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
/**
|
/**
|
||||||
|
|||||||
+1
-1
@@ -70,7 +70,7 @@
|
|||||||
<a @click="goDetail(record.id)">详情</a>
|
<a @click="goDetail(record.id)">详情</a>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<template slot="footer" slot-scope="currentPageData">
|
<template slot="footer">
|
||||||
|
|
||||||
<a-table
|
<a-table
|
||||||
size="middle"
|
size="middle"
|
||||||
|
|||||||
Reference in New Issue
Block a user