From 86a84c327007a1fb398fa2aefff1bffc03a83cfb Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期二, 06 八月 2024 22:36:02 +0800
Subject: [PATCH] 委托下单,禁止下拉框输入
---
src/components/view/a5-laboratory-qualifications.vue | 56 ++++++++++++++++++++++++--------------------------------
1 files changed, 24 insertions(+), 32 deletions(-)
diff --git a/src/components/view/a5-laboratory-qualifications.vue b/src/components/view/a5-laboratory-qualifications.vue
index 9e3d802..29ae866 100644
--- a/src/components/view/a5-laboratory-qualifications.vue
+++ b/src/components/view/a5-laboratory-qualifications.vue
@@ -54,14 +54,14 @@
<div class="capacity-scope">
<div>
<el-row class="title">
- <el-col :span="12">
+ <el-col :span="12" style="text-align: left">
<el-radio-group v-model="radio" @input="selectorSwitch" size="medium" fill="#3A7BFA">
<el-radio-button label="0">璧勮川鏄庣粏</el-radio-button>
<el-radio-button label="1">璧勮川鎬昏</el-radio-button>
</el-radio-group>
</el-col>
<el-col :span="12" style="text-align: right;" v-if="radio==0">
- <el-button size="medium" type="primary" @click="openAdd" v-if="addPower">鏂板</el-button>
+ <el-button size="medium" type="primary" @click="openAdd" v-if="addPower">璧勮川鏇存柊</el-button>
<el-button size="medium" icon="el-icon-delete" @click="handleDel" v-if="delPower">鍒犻櫎</el-button>
</el-col>
</el-row>
@@ -119,8 +119,9 @@
</div>
</el-image>
<div class="table-item-right" style="flex: 1;font-size: 12px;color: #666666;">
- <p style="line-height: 30px;">璧勮川鍚嶇О锛�<span style="color: #3A7BFA;">{{ m.name }}</span></p>
- <p style="line-height: 30px;">鏈夋晥鏃堕棿锛歿{m.expireTime}}</p>
+ <p style="line-height: 26px;">璧勮川鍚嶇О锛�<span style="color: #3A7BFA;">{{ m.name }}</span></p>
+ <p style="line-height: 26px;">棰佸彂鏃堕棿锛歿{m.recentlyTime}}</p>
+ <p style="line-height: 26px;">鍒版湡鏃堕棿锛歿{m.expireTime}}</p>
<p>
<span>鐘舵�侊細</span>
<el-tag :type="m.state==0?'danger':'success'" size="small">{{ m.state==0?'澶辨晥':'鏈夋晥' }}</el-tag>
@@ -148,7 +149,7 @@
</div>
<el-dialog title="璧勮川鏇存柊" :visible.sync="qualificationsConnectVisible" width="400px">
<div class="search_thing" style="margin-bottom: 16px;">
- <div class="search_label" style="width:120px">璧勮川鍚嶇О锛�</div>
+ <div class="search_label" style="width:120px"><span class="required-span">* </span>璧勮川鍚嶇О锛�</div>
<div class="search_input">
<el-select v-model="formData.name" placeholder="璇烽�夋嫨" style="width: 100%;" size="small" clearable>
<el-option
@@ -161,7 +162,7 @@
</div>
</div>
<div class="search_thing" style="margin-bottom: 16px;">
- <div class="search_label" style="width:120px">璧勮川缂栫爜锛�</div>
+ <div class="search_label" style="width:120px"><span class="required-span">* </span>璧勮川缂栫爜锛�</div>
<div class="search_input">
<el-input
size="small"
@@ -171,7 +172,7 @@
</div>
</div>
<div class="search_thing" style="margin-bottom: 16px;">
- <div class="search_label" style="width:120px">棰佸彂鏈烘瀯锛�</div>
+ <div class="search_label" style="width:120px"><span class="required-span">* </span>棰佸彂鏈烘瀯锛�</div>
<div class="search_input">
<el-input
size="small"
@@ -190,10 +191,12 @@
v-model="formData.explanation"></el-input>
</div>
</div>
+
+
<div class="search_thing" style="margin-bottom: 16px;">
- <div class="search_label" style="width:120px">棣栨棰佸彂鏃堕棿锛�</div>
+ <div class="search_label" style="width:120px"><span class="required-span">* </span>棰佸彂鏃堕棿锛�</div>
<div class="search_input">
- <el-date-picker style="width:100%" v-model="formData.firstTime"
+ <el-date-picker style="width:100%" v-model="formData.dateOfIssuance"
type="datetime"
size="small"
format="yyyy-MM-dd HH:mm:ss"
@@ -204,20 +207,7 @@
</div>
</div>
<div class="search_thing" style="margin-bottom: 16px;">
- <div class="search_label" style="width:120px">鏈�杩戦鍙戞椂闂达細</div>
- <div class="search_input">
- <el-date-picker style="width:100%" v-model="formData.recentlyTime"
- type="datetime"
- size="small"
- format="yyyy-MM-dd HH:mm:ss"
- value-format="yyyy-MM-dd HH:mm:ss"
- clearable
- placeholder="閫夋嫨鏃ユ湡">
- </el-date-picker>
- </div>
- </div>
- <div class="search_thing" style="margin-bottom: 16px;">
- <div class="search_label" style="width:120px">鍒版湡棰佸彂鏃堕棿锛�</div>
+ <div class="search_label" style="width:120px"><span class="required-span">* </span>鍒版湡鏃堕棿锛�</div>
<div class="search_input">
<el-date-picker style="width:100%" v-model="formData.expireTime"
type="datetime"
@@ -278,10 +268,10 @@
itemParameterData: {
entity: {
name: null,
- orderBy: {
- field: 'id',
- order: 'asc'
- }
+ // orderBy: {
+ // field: 'id',
+ // order: 'asc'
+ // }
},
isIndex: false,
showSelect: true,
@@ -315,7 +305,8 @@
},
},
requiredAdd: [],
- requiredUp: []
+ requiredUp: [],
+ needSort: ['firstIssuanceDate', 'latestIssuanceDate', 'expireTime', 'name'],
},
itemParameterEntityCopy: {},
upIndex: 0,
@@ -331,7 +322,7 @@
finishLoding: false, // 鍔犺浇瀹屾垚锛屾樉绀哄凡缁忔病鏈夋洿澶氫簡
entity:{
name: null,
- orderBy: {field: "id", order: "asc"}
+ // orderBy: {field: "id", order: "asc"}
},
currentPage: 1, // 褰撳墠椤�
pageSize: 16, // 涓�椤�16鏉�
@@ -361,9 +352,9 @@
this.refreshTable();
}
},
- refreshTable() {
+ refreshTable(e) {
if (this.radio === '0') {
- this.$refs['itemParameterTable'].selectList()
+ this.$refs['itemParameterTable'].selectList(e)
} else {
if(this.currentPage>1){
this.isLoding = true
@@ -444,6 +435,7 @@
const link = document.createElement('a');
link.href = this.javaApi + '/img/'+ url;
document.body.appendChild(link);
+ link.target = '_blank';
link.click();
},
handleSuccessUpImg(response,name) {
@@ -513,7 +505,7 @@
this.loading = false
if (res.code == 201) return
this.$message.success('宸叉彁浜�')
- this.refreshTable()
+ this.refreshTable('page')
this.qualificationsConnectVisible = false
})
},
--
Gitblit v1.9.3