Commit 3daf625d authored by qinj's avatar qinj

Merge branch 'dev' of http://120.25.63.219:6088/rex/portalhtml into dev

parents 032c2be0 c813fabf
...@@ -192,6 +192,11 @@ export default { ...@@ -192,6 +192,11 @@ export default {
label: '社会统一信用代码', label: '社会统一信用代码',
type: 'input', type: 'input',
layout: 12 layout: 12
},
Status: {
label: '状态',
type: 'input',
layout: 12
} }
} }
} }
......
import request from '@/utils/request'
export const Qcc = { export const Qcc = {
searchUrl: '/qcc/search', searchUrl: '/qcc/search',
detailUrl: '/qcc/getOne' detailUrl: '/qcc/getOne'
...@@ -14,4 +16,12 @@ export const Customer = { ...@@ -14,4 +16,12 @@ export const Customer = {
export const Common = { export const Common = {
searchUrl: '/commonSession/searchAll', searchUrl: '/commonSession/searchAll',
} }
\ No newline at end of file
export function qccGetOne(data) {
return request({
url: '/qcc/getOne',
method: 'post',
data
})
}
...@@ -197,7 +197,7 @@ export default { ...@@ -197,7 +197,7 @@ export default {
tableData: [], tableData: [],
pageData: { pageData: {
total: 0, total: 0,
currentPage: 0, pageIndex: 0,
pageSize: 10 pageSize: 10
}, },
text: this.value, text: this.value,
...@@ -249,7 +249,8 @@ export default { ...@@ -249,7 +249,8 @@ export default {
delete params.total delete params.total
this.$request(url, params).then(res => { this.$request(url, params).then(res => {
this.tableData = res.results.Result || [] this.tableData = res.results.Result || []
this.pageData.total = Number(res.totalSize || 0) this.pageData.total = Number(res.results.Paging.TotalRecords || 0)
// this.pageData.total = 100
this.loading = false this.loading = false
}) })
}, },
......
...@@ -24,8 +24,7 @@ export default { ...@@ -24,8 +24,7 @@ export default {
}, },
data() { data() {
return { return {
typeCode: uploadCode.customer, typeCode: uploadCode.customer
objectId: 'aaaaaa'
} }
}, },
watch: { watch: {
...@@ -45,16 +44,6 @@ export default { ...@@ -45,16 +44,6 @@ export default {
immediate: true, immediate: true,
deep: true deep: true
} }
},
created() {
// 设置表单的初始搜索条件,该条件一般不会发生改变
if (this.$attrs['form-data'] && this.$attrs['form-data'].BusinessObjectID) {
config.tableConfig.initialParams = {
BusinessObjectID: this.$attrs['form-data'].BusinessObjectID,
}
} else {
config.tableConfig.url = ''
}
} }
} }
</script> </script>
......
...@@ -22,7 +22,7 @@ import Title from '@/components/Title' ...@@ -22,7 +22,7 @@ import Title from '@/components/Title'
import { customerCreate, provinceSearch, citySearch, districtSearch } from '@/api/customers'; import { customerCreate, provinceSearch, citySearch, districtSearch } from '@/api/customers';
import customerAddAddress from './components/customersAdd-adress/index' import customerAddAddress from './components/customersAdd-adress/index'
import customerAddAccessory from './components/customersAdd-accessory/index' import customerAddAccessory from './components/customersAdd-accessory/index'
// import constant from '@/components/ExportBtn/constant'; import { qccGetOne } from '@/api/qcc'
export default { export default {
components: { components: {
...@@ -32,7 +32,8 @@ export default { ...@@ -32,7 +32,8 @@ export default {
customerAddAccessory, customerAddAccessory,
provinceSearch, provinceSearch,
citySearch, citySearch,
districtSearch districtSearch,
qccGetOne
}, },
data () { data () {
return { return {
...@@ -46,10 +47,19 @@ export default { ...@@ -46,10 +47,19 @@ export default {
formDesc: { formDesc: {
Name: { Name: {
type: 'lov', type: 'lov',
label: '公司称', label: '公司称',
layout: 24, layout: 24,
code: 'qcc', code: 'qcc',
returnFn: function(row) { returnFn: function(row) {
// let resDate = await qccGetOne({searchKey:row.CreditCode})
// let resDates = {
// Name: resDate.results.Result.Name,
// ExtSocialUnifiedCreditCode_SDK: resDate.results.Result.CreditCode,
// ExtCorporateName_SDK: resDate.results.Result.OperName,
// ExtRegisteredCapital_SDK: resDate.results.Result.RegistCapi
// }
// console.log(resDates)
// return resDates
return { return {
Name: row.Name, Name: row.Name,
ExtSocialUnifiedCreditCode_SDK: row.CreditCode, ExtSocialUnifiedCreditCode_SDK: row.CreditCode,
...@@ -59,7 +69,7 @@ export default { ...@@ -59,7 +69,7 @@ export default {
}, },
ExtSecondName_SDK: { ExtSecondName_SDK: {
type: 'input', type: 'input',
label: '公司称曾用名', label: '公司称曾用名',
layout: 12, layout: 12,
}, },
ExtSocialUnifiedCreditCode_SDK: { ExtSocialUnifiedCreditCode_SDK: {
...@@ -87,7 +97,7 @@ export default { ...@@ -87,7 +97,7 @@ export default {
{ {
title: '地址信息', title: '地址信息',
formDesc: { formDesc: {
ExtProvinceCode_SDK: { ExtProvince_SDK: {
type: 'select', type: 'select',
label: '省份', label: '省份',
layout: 12, layout: 12,
...@@ -102,18 +112,18 @@ export default { ...@@ -102,18 +112,18 @@ export default {
return result return result
}, },
}, },
ExtCityCode_SDK: { ExtCity_SDK: {
type: 'select', type: 'select',
label: '城市', label: '城市',
layout: 12, layout: 12,
isOptions: true, isOptions: true,
optionsLinkageFields: ['ExtProvinceCode_SDK'], optionsLinkageFields: ['ExtProvince_SDK'],
options: async data => { options: async data => {
if (!data.ExtProvinceCode_SDK) { if (!data.ExtProvince_SDK) {
return [] return []
} }
const res = await citySearch({ const res = await citySearch({
provinceCode: data.ExtProvinceCode_SDK provinceCode: data.ExtProvince_SDK
}) })
var result = res.results.map(item => { var result = res.results.map(item => {
return { return {
...@@ -124,18 +134,18 @@ export default { ...@@ -124,18 +134,18 @@ export default {
return result return result
}, },
}, },
ExtDistrictCode_SDK: { ExtDistrict_SDK: {
type: 'select', type: 'select',
label: '县市', label: '县市',
layout: 12, layout: 12,
isOptions: true, isOptions: true,
optionsLinkageFields: ['ExtProvinceCode_SDK', 'ExtCityCode_SDK'], optionsLinkageFields: ['ExtProvince_SDK', 'ExtCity_SDK'],
options: async data => { options: async data => {
if (!data.ExtCityCode_SDK) { if (!data.ExtCity_SDK) {
return [] return []
} }
const res = await districtSearch({ const res = await districtSearch({
cityCode: data.ExtCityCode_SDK cityCode: data.ExtCity_SDK
}) })
var result = res.results.map(item => { var result = res.results.map(item => {
return { return {
...@@ -206,14 +216,13 @@ export default { ...@@ -206,14 +216,13 @@ export default {
], ],
// 同 vue-ele-form // 同 vue-ele-form
rules: { rules: {
Name: {required: true, message: '名称必填'}, Name: {required: true, message: '公司名称必填'},
ExtSocialUnifiedCreditCode_SDK: { required: true, message: '名称必填' }, ExtSocialUnifiedCreditCode_SDK: { required: true, message: '社会统一信用代码必填' },
ExtSocialUnifiedCreditCode_SDK: { required: true, message: '名称必填' }, ExtRegisteredCapital_SDK: {required: true, message: '注册资本必填' },
ExtRegisteredCapital_SDK: {required: true, message: '名称必填' }, ExtCorporateName_SDK: { required: true, message: '法人必填' },
ExtCorporateName_SDK: { required: true, message: '名称必填' }, ExtProvince_SDK: { required: true, message: '省份必填' },
ExtProvinceCode_SDK: { required: true, message: '名称必填' }, ExtDistrict_SDK: {required: true, message: '城市必填' },
ExtDistrictCode_SDK: {required: true, message: '名称必填' }, ExtCity_SDK: { required: true, message: '县区必填' },
ExtCityCode_SDK: { required: true, message: '名称必填' },
} }
} }
}, },
......
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