From e7ce08b0a8037a4d5fb9b087aba817f5ffce607b Mon Sep 17 00:00:00 2001 From: "DESKTOP-00SUCB6\\Administrator" Date: Mon, 6 Sep 2021 18:11:03 +0800 Subject: [PATCH] =?UTF-8?q?0906=20=20=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/h5/info.html | 4 +- src/utils/index.js | 11 +++++ src/views/company/companyEdit.vue | 37 ++++++++++------- src/views/company/companyInfo.vue | 6 +-- src/views/company/search.vue | 2 +- src/views/home/index.vue | 6 +-- src/views/home/index2.vue | 11 ++--- src/views/system/qualification/index.vue | 53 +++++++++++++++--------- 8 files changed, 83 insertions(+), 47 deletions(-) diff --git a/public/h5/info.html b/public/h5/info.html index c700e04..5a3e5b4 100644 --- a/public/h5/info.html +++ b/public/h5/info.html @@ -88,7 +88,7 @@ } .content-box .content-text { font-size: 14px; - line-height: 44px; + /* line-height: 40px; */ color: #666666; /* border-bottom: 1px dashed #D2E1EA; */ overflow: hidden; @@ -104,7 +104,7 @@ .content-box .content-text label{ display: inline-block; /* float: left; */ - width: 40%; + /* width: 40%; */ font-weight: 600; line-height: 34px; vertical-align: top; diff --git a/src/utils/index.js b/src/utils/index.js index 3ee1788..c67ab2d 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -14,6 +14,17 @@ export function formatDate(cellValue) { var seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds() return year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds } +/** + * 表格时间格式化 - 时分秒 + */ + export function getFormatTime(cellValue) { + if (cellValue == null || cellValue == "") return ""; + var date = new Date(cellValue) + var hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours() + var minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes() + var seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds() + return hours + ':' + minutes + ':' + seconds +} /*获取当前年月日*/ export function getDay() { var nowDate = new Date(); diff --git a/src/views/company/companyEdit.vue b/src/views/company/companyEdit.vue index c82f3b2..2dda081 100644 --- a/src/views/company/companyEdit.vue +++ b/src/views/company/companyEdit.vue @@ -170,8 +170,8 @@ {{form.contactInformation}} - - + + {{form.provinceCode | filterProvinceCodeOptions(that)}} - - + + {{form.cityCode | filterCityCodeOptions(that)}} - - + + @@ -297,7 +297,7 @@ export default { } }; const checkUrl = (rule, value, callback) => { - if(value.trim() == '') + if(!value || value.trim() == '') { callback() } @@ -410,13 +410,13 @@ export default { { required: true, message: "法定代表人名称不能为空", trigger: "blur" } ], provinceCode: [ - { required: true, message: "省代码不能为空", trigger: "change" } + { required: true, message: "省不能为空", trigger: "change" } ], cityCode: [ - { required: true, message: "市代码不能为空", trigger: "change" } + { required: true, message: "市不能为空", trigger: "change" } ], areaCode: [ - { required: true, message: "区代码不能为空", trigger: "change" } + { required: true, message: "区不能为空", trigger: "change" } ], typeLegalRepresentative: [ { required: true, message: "法定代表人类型不能为空", trigger: "change" } @@ -583,12 +583,21 @@ export default { this.isEdit = true }, changeProvince(newVal){ - this.form.cityCode = null - this.form.areaCode = null + if(this.form.cityCode != null) + { + this.form.cityCode = null + } + if(this.form.areaCode != null) + { + this.form.areaCode = null + } this.getCityOrAreaList(newVal,1) }, changeCity(newVal){ - this.form.areaCode = null + if(this.form.areaCode != null) + { + this.form.areaCode = null + } this.getCityOrAreaList(newVal,2) }, changeArea(newVal){ diff --git a/src/views/company/companyInfo.vue b/src/views/company/companyInfo.vue index b8c9630..e5c8f01 100644 --- a/src/views/company/companyInfo.vue +++ b/src/views/company/companyInfo.vue @@ -22,19 +22,19 @@ 法定代表人证件类型: {{form.typeLegalRepresentative | filterTypeLegalRepresentative(that)}} - 省代码: + 省: {{form.provinceCode | filterProvinceCodeOptions(that)}} 法定代表人证件号码: {{form.certificateNumberLegalRepresentative}} - 市代码: + 市: {{form.cityCode | filterCityCodeOptions(that)}} 统一社会信用代码类型: {{form.corporateUnifiedSocialCreditType | filterCorporateUnifiedSocialCreditTypeOptions(that)}} - 区代码: + 区: {{form.areaCode | filterAreaCodeOptions(that)}} diff --git a/src/views/company/search.vue b/src/views/company/search.vue index 00bf1a8..6d2bcf1 100644 --- a/src/views/company/search.vue +++ b/src/views/company/search.vue @@ -181,7 +181,7 @@ - + diff --git a/src/views/home/index.vue b/src/views/home/index.vue index c332371..c5db394 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -41,7 +41,7 @@