From 20bf8e325691f148ce15155b9c6e44f04c48b4dd Mon Sep 17 00:00:00 2001
From: 鲁班七号 <9159450+luban-71@user.noreply.gitee.com>
Date: 星期四, 05 一月 2023 10:41:42 +0800
Subject: [PATCH] 修改时间戳格式,批量优化前端问题。
---
src/views/selfCheck/components/checkDetails.vue | 59 +++++++++++++++++++++++++++++++++++++++++++++--------------
1 files changed, 45 insertions(+), 14 deletions(-)
diff --git a/src/views/selfCheck/components/checkDetails.vue b/src/views/selfCheck/components/checkDetails.vue
index 6d073fe..9b32c28 100644
--- a/src/views/selfCheck/components/checkDetails.vue
+++ b/src/views/selfCheck/components/checkDetails.vue
@@ -5,9 +5,10 @@
:close-on-click-modal="false"
width="75%"
center
+ @close="resetForm()"
>
<div slot="title" class="dialog-title">
- 烟花爆竹批发企业自查情况信息报送表
+ 烟花爆竹{{enterpriseType==1?'批发':'零售'}}企业自查情况信息报送表
</div>
<div class="table-tit">
<div>企业名称: <span class="m-color">{{corpInfo.enterpriseName}}</span></div>
@@ -18,8 +19,8 @@
<th class="m-color b-font">企业基本情况</th>
<tr>
<td class="m-color w-33">批发许可证状态</td>
- <td class="m-color w-33">库存(万箱)</td>
- <td class="m-color w-33">库容(万箱)</td>
+ <td class="m-color w-33">库存(箱)</td>
+ <td class="m-color w-33">库容(箱)</td>
</tr>
<tr>
<td class="w-33">{{corpInfo.licenceValidStatus==0 ? '有效期内' : '失效'}}</td>
@@ -90,20 +91,22 @@
data(){
return{
dialogVisible:false,
+ enterpriseType: null,
id: null,
corpInfo:{
enterpriseName: '',
enterpriseProvince: '',
enterpriseCity: '',
enterpriseArea: '',
- licenceValidStatus: 0,
- stockNum: 0,
- store: 0,
+ licenceValidStatus: null,
+ stockNum: null,
+ storageCapacity: null,
+ hiddendangerStatus: null,
hiddendangerInfos: [],
- hiddendangerSum: 0,
- majorHiddendangerNum: 0,
- completedRectifyHiddendangerSum: 0,
- completedRectifyMajorHiddendangerNum: 0,
+ hiddendangerSum: null,
+ majorHiddendangerNum: null,
+ completedRectifyHiddendangerSum: null,
+ completedRectifyMajorHiddendangerNum: null,
selfcheckReportUserName: '',
selfcheckReportUserMobile: '',
reportModifyTime: ''
@@ -118,8 +121,8 @@
let res = await getEnterpriseInfo({id: t.id})
if(res.data.code === "200"){
t.corpInfo = res.data.result
- console.log(t.corpInfo,'t.corpInfo')
}else{
+ t.dialogVisible = false
t.$message({
type:'warning',
message:res.data.message
@@ -129,6 +132,26 @@
confirmBack(){
this.dialogVisible = false
+ },
+ resetForm(){
+ this.corpInfo={
+ enterpriseName: '',
+ enterpriseProvince: '',
+ enterpriseCity: '',
+ enterpriseArea: '',
+ licenceValidStatus: null,
+ stockNum: null,
+ storageCapacity: null,
+ hiddendangerStatus: null,
+ hiddendangerInfos: [],
+ hiddendangerSum: null,
+ majorHiddendangerNum: null,
+ completedRectifyHiddendangerSum: null,
+ completedRectifyMajorHiddendangerNum: null,
+ selfcheckReportUserName: '',
+ selfcheckReportUserMobile: '',
+ reportModifyTime: ''
+ }
}
},
}
@@ -147,11 +170,17 @@
font-weight: bolder;
}
.table-tit{
+ width: 100%;
display: flex;
align-items: center;
- margin-bottom: 10px;
- div:first-of-type{
- margin-right: 100px;
+ justify-content: space-between;
+ flex-flow: wrap;
+ background: #ecf5ff;
+ padding: 10px;
+ border-radius: 4px;
+
+ &>div{
+ width: 50%;
}
}
.corp-list{
@@ -228,6 +257,8 @@
line-height: 1.5;
text-align: left;
padding: 10px;
+ &::-webkit-scrollbar { width: 0; height: 0; color: transparent }
+ &::scrollbar { width: 0; height: 0; color: transparent }
}
}
}
--
Gitblit v1.9.2