Browse Source

0906 问题修改

master
DESKTOP-00SUCB6\Administrator 4 years ago
parent
commit
e7ce08b0a8
  1. 4
      public/h5/info.html
  2. 11
      src/utils/index.js
  3. 37
      src/views/company/companyEdit.vue
  4. 6
      src/views/company/companyInfo.vue
  5. 2
      src/views/company/search.vue
  6. 6
      src/views/home/index.vue
  7. 11
      src/views/home/index2.vue
  8. 53
      src/views/system/qualification/index.vue

4
public/h5/info.html

@ -88,7 +88,7 @@
} }
.content-box .content-text { .content-box .content-text {
font-size: 14px; font-size: 14px;
line-height: 44px; /* line-height: 40px; */
color: #666666; color: #666666;
/* border-bottom: 1px dashed #D2E1EA; */ /* border-bottom: 1px dashed #D2E1EA; */
overflow: hidden; overflow: hidden;
@ -104,7 +104,7 @@
.content-box .content-text label{ .content-box .content-text label{
display: inline-block; display: inline-block;
/* float: left; */ /* float: left; */
width: 40%; /* width: 40%; */
font-weight: 600; font-weight: 600;
line-height: 34px; line-height: 34px;
vertical-align: top; vertical-align: top;

11
src/utils/index.js

@ -14,6 +14,17 @@ export function formatDate(cellValue) {
var seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds() var seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds()
return year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds 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() { export function getDay() {
var nowDate = new Date(); var nowDate = new Date();

37
src/views/company/companyEdit.vue

@ -170,8 +170,8 @@
<el-input v-if="isEdit" v-model="form.contactInformation" placeholder="请输入联系方式" /> <el-input v-if="isEdit" v-model="form.contactInformation" placeholder="请输入联系方式" />
<span v-else>{{form.contactInformation}}</span> <span v-else>{{form.contactInformation}}</span>
</el-form-item> </el-form-item>
<el-form-item label="省代码:" prop="provinceCode"> <el-form-item label="省:" prop="provinceCode">
<el-select v-if="isEdit" v-model="form.provinceCode" placeholder="请选择省代码" @change="changeProvince"> <el-select v-if="isEdit" v-model="form.provinceCode" placeholder="请选择省" @change="changeProvince">
<el-option <el-option
v-for="dict in provinceCodeOptions" v-for="dict in provinceCodeOptions"
:key="dict.dictValue" :key="dict.dictValue"
@ -181,8 +181,8 @@
</el-select> </el-select>
<span v-else>{{form.provinceCode | filterProvinceCodeOptions(that)}}</span> <span v-else>{{form.provinceCode | filterProvinceCodeOptions(that)}}</span>
</el-form-item> </el-form-item>
<el-form-item label="市代码:" prop="cityCode"> <el-form-item label="市:" prop="cityCode">
<el-select v-if="isEdit" v-model="form.cityCode" placeholder="请选择市代码" @change="changeCity"> <el-select v-if="isEdit" v-model="form.cityCode" placeholder="请选择市" @change="changeCity">
<el-option <el-option
v-for="(item,index) in cityCodeOptions" v-for="(item,index) in cityCodeOptions"
:key="index" :key="index"
@ -192,8 +192,8 @@
</el-select> </el-select>
<span v-else>{{form.cityCode | filterCityCodeOptions(that)}}</span> <span v-else>{{form.cityCode | filterCityCodeOptions(that)}}</span>
</el-form-item> </el-form-item>
<el-form-item label="区代码:" prop="areaCode"> <el-form-item label="区(县):" prop="areaCode">
<el-select v-if="isEdit" v-model="form.areaCode" placeholder="请选择县代码" @change="changeArea"> <el-select v-if="isEdit" v-model="form.areaCode" placeholder="请选择区(县)" @change="changeArea">
<el-option <el-option
v-for="(item,index) in areaCodeOptions" v-for="(item,index) in areaCodeOptions"
:key="index" :key="index"
@ -237,7 +237,7 @@
style="display: block" style="display: block"
v-model="form.enterpriseDescribeSwitch" v-model="form.enterpriseDescribeSwitch"
active-text="显示企业介绍信息" active-text="显示企业介绍信息"
inactive-text="显示企业介绍信息" inactive-text="隐藏企业介绍信息"
:active-value="1" :active-value="1"
:inactive-value="0"> :inactive-value="0">
</el-switch> </el-switch>
@ -297,7 +297,7 @@ export default {
} }
}; };
const checkUrl = (rule, value, callback) => { const checkUrl = (rule, value, callback) => {
if(value.trim() == '') if(!value || value.trim() == '')
{ {
callback() callback()
} }
@ -410,13 +410,13 @@ export default {
{ required: true, message: "法定代表人名称不能为空", trigger: "blur" } { required: true, message: "法定代表人名称不能为空", trigger: "blur" }
], ],
provinceCode: [ provinceCode: [
{ required: true, message: "省代码不能为空", trigger: "change" } { required: true, message: "省不能为空", trigger: "change" }
], ],
cityCode: [ cityCode: [
{ required: true, message: "市代码不能为空", trigger: "change" } { required: true, message: "市不能为空", trigger: "change" }
], ],
areaCode: [ areaCode: [
{ required: true, message: "区代码不能为空", trigger: "change" } { required: true, message: "区不能为空", trigger: "change" }
], ],
typeLegalRepresentative: [ typeLegalRepresentative: [
{ required: true, message: "法定代表人类型不能为空", trigger: "change" } { required: true, message: "法定代表人类型不能为空", trigger: "change" }
@ -583,12 +583,21 @@ export default {
this.isEdit = true this.isEdit = true
}, },
changeProvince(newVal){ changeProvince(newVal){
this.form.cityCode = null if(this.form.cityCode != null)
this.form.areaCode = null {
this.form.cityCode = null
}
if(this.form.areaCode != null)
{
this.form.areaCode = null
}
this.getCityOrAreaList(newVal,1) this.getCityOrAreaList(newVal,1)
}, },
changeCity(newVal){ changeCity(newVal){
this.form.areaCode = null if(this.form.areaCode != null)
{
this.form.areaCode = null
}
this.getCityOrAreaList(newVal,2) this.getCityOrAreaList(newVal,2)
}, },
changeArea(newVal){ changeArea(newVal){

6
src/views/company/companyInfo.vue

@ -22,19 +22,19 @@
<tr> <tr>
<th>法定代表人证件类型</th> <th>法定代表人证件类型</th>
<td>{{form.typeLegalRepresentative | filterTypeLegalRepresentative(that)}}</td> <td>{{form.typeLegalRepresentative | filterTypeLegalRepresentative(that)}}</td>
<th>代码</th> <th></th>
<td>{{form.provinceCode | filterProvinceCodeOptions(that)}}</td> <td>{{form.provinceCode | filterProvinceCodeOptions(that)}}</td>
</tr> </tr>
<tr> <tr>
<th>法定代表人证件号码</th> <th>法定代表人证件号码</th>
<td>{{form.certificateNumberLegalRepresentative}}</td> <td>{{form.certificateNumberLegalRepresentative}}</td>
<th>代码</th> <th></th>
<td>{{form.cityCode | filterCityCodeOptions(that)}}</td> <td>{{form.cityCode | filterCityCodeOptions(that)}}</td>
</tr> </tr>
<tr> <tr>
<th>统一社会信用代码类型</th> <th>统一社会信用代码类型</th>
<td>{{form.corporateUnifiedSocialCreditType | filterCorporateUnifiedSocialCreditTypeOptions(that)}}</td> <td>{{form.corporateUnifiedSocialCreditType | filterCorporateUnifiedSocialCreditTypeOptions(that)}}</td>
<th>代码</th> <th></th>
<td>{{form.areaCode | filterAreaCodeOptions(that)}}</td> <td>{{form.areaCode | filterAreaCodeOptions(that)}}</td>
</tr> </tr>
<tr> <tr>

2
src/views/company/search.vue

@ -181,7 +181,7 @@
</div> </div>
<el-divider></el-divider> <el-divider></el-divider>
</el-drawer> </el-drawer>
<el-dialog title="资质详情" :visible.sync="qualificationVisible" width="600px" append-to-body> <el-dialog title="资质详情" :visible.sync="qualificationVisible" width="750px" append-to-body>
<el-form ref="form" :model="qualificationFrom" label-width="120px"> <el-form ref="form" :model="qualificationFrom" label-width="120px">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">

6
src/views/home/index.vue

@ -41,7 +41,7 @@
</div> </div>
</template> </template>
<script> <script>
import {getDay} from "@/utils/index" import {getDay,getFormatTime} from "@/utils/index"
import echarts from "echarts"; import echarts from "echarts";
// import echarts from "echarts5_0_1/echarts5_0_1.min.js"; // import echarts from "echarts5_0_1/echarts5_0_1.min.js";
import "echarts-liquidfill"; import "echarts-liquidfill";
@ -72,10 +72,10 @@ export default {
}, },
mounted() { mounted() {
let theDate = new Date() let theDate = new Date()
this.times = theDate.getHours()+":"+ theDate.getMinutes()+ ":" +theDate.getSeconds() this.times = getFormatTime(theDate)
setInterval(() => { setInterval(() => {
let theDate = new Date() let theDate = new Date()
this.times = theDate.getHours()+":"+ theDate.getMinutes()+ ":" +theDate.getSeconds() this.times = getFormatTime(theDate)
}, 1000); }, 1000);
this.getList() this.getList()
this.initEcharts() this.initEcharts()

11
src/views/home/index2.vue

@ -52,7 +52,8 @@
<el-form-item label="企业名片:"> <el-form-item label="企业名片:">
<vue-qr ref="QrInfo" :logoSrc="imageUrl" :text="qrInfo" :size="200" :margin="0"></vue-qr> <vue-qr ref="QrInfo" :logoSrc="imageUrl" :text="qrInfo" :size="200" :margin="0"></vue-qr>
</el-form-item> </el-form-item>
<el-form-item >
<el-form-item style="margin-top:58px;">
<el-button type="primary" size="mini" @click="downloadImg('QrInfo')">下载企业名片</el-button> <el-button type="primary" size="mini" @click="downloadImg('QrInfo')">下载企业名片</el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -107,7 +108,7 @@
</div> </div>
</template> </template>
<script> <script>
import {getDay} from "@/utils/index" import {getDay,getFormatTime} from "@/utils/index"
import {getIndexInfo,getPartnersApplyForVerificationCodesBy,updatePartnersApplyForVerificationCodesBy,setVerificationCodesSwitch,getVerificationCodesSwitchByLogin} from "@/api/home/index" import {getIndexInfo,getPartnersApplyForVerificationCodesBy,updatePartnersApplyForVerificationCodesBy,setVerificationCodesSwitch,getVerificationCodesSwitchByLogin} from "@/api/home/index"
import vueQr from 'vue-qr' import vueQr from 'vue-qr'
@ -135,7 +136,7 @@ export default {
enterpriseUrl:'', enterpriseUrl:'',
// //
form: { form: {
isItPublic:'1', isItPublic:'0',
time:'2' time:'2'
}, },
imageUrl:"", imageUrl:"",
@ -148,10 +149,10 @@ export default {
}, },
mounted() { mounted() {
let theDate = new Date() let theDate = new Date()
this.times = theDate.getHours()+":"+ theDate.getMinutes()+ ":" +theDate.getSeconds() this.times = getFormatTime(theDate)
setInterval(() => { setInterval(() => {
let theDate = new Date() let theDate = new Date()
this.times = theDate.getHours()+":"+ theDate.getMinutes()+ ":" +theDate.getSeconds() this.times = getFormatTime(theDate)
}, 1000); }, 1000);
this.initData() this.initData()
}, },

53
src/views/system/qualification/index.vue

@ -2,11 +2,19 @@
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="发证日期" prop="dateOfIssue"> <el-form-item label="发证日期" prop="dateOfIssue">
<el-date-picker clearable size="small" <!-- <el-date-picker clearable size="small"
v-model="queryParams.dateOfIssue" v-model="queryParams.dateOfIssue"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择发证日期"> placeholder="选择发证日期">
</el-date-picker> -->
<el-date-picker clearable size="small"
v-model="queryParams.dateOfIssue"
type="daterange"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@ -191,7 +199,7 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
dateOfIssue: null, dateOfIssue: [],
}, },
// //
form: {}, form: {},
@ -227,7 +235,14 @@ export default {
/** 查询企业资质列表 */ /** 查询企业资质列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listQualification(this.queryParams).then(response => { console.log(this.queryParams);
const params = {
pageNum: this.queryParams.pageNum,
pageSize: this.queryParams.pageSize,
minDateOfIssue:this.queryParams.dateOfIssue[0]?this.queryParams.dateOfIssue[0]:null,
maxDateOfIssue:this.queryParams.dateOfIssue[1]?this.queryParams.dateOfIssue[1]:null
}
listQualification(params).then(response => {
this.qualificationList = response.rows; this.qualificationList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
@ -313,8 +328,8 @@ export default {
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const enterpriseQualificationIds = row.enterpriseQualificationId || this.ids; const enterpriseQualificationName = row.qualificationName;
this.$confirm('是否确认删除企业资质编号为"' + enterpriseQualificationIds + '"的数据项?', "警告", { this.$confirm('是否确认删除企业资质名为"' + enterpriseQualificationName + '"的数据项?', "警告", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
@ -326,20 +341,20 @@ export default {
}) })
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { // handleExport() {
const queryParams = this.queryParams; // const queryParams = this.queryParams;
this.$confirm('是否确认导出所有企业资质数据项?', "警告", { // this.$confirm('?', "", {
confirmButtonText: "确定", // confirmButtonText: "",
cancelButtonText: "取消", // cancelButtonText: "",
type: "warning" // type: "warning"
}).then(() => { // }).then(() => {
this.exportLoading = true; // this.exportLoading = true;
return exportQualification(queryParams); // return exportQualification(queryParams);
}).then(response => { // }).then(response => {
this.download(response.msg); // this.download(response.msg);
this.exportLoading = false; // this.exportLoading = false;
}) // })
} // }
} }
}; };
</script> </script>

Loading…
Cancel
Save