From d975fc4756806f5b51f006c19c33571b9b8c0b3b Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期五, 20 十二月 2024 09:30:19 +0800
Subject: [PATCH] 修改下单时要求值输入限制

---
 src/components/view/a5-laboratory-qualifications.vue |   36 +++++++++++++-----------------------
 1 files changed, 13 insertions(+), 23 deletions(-)

diff --git a/src/components/view/a5-laboratory-qualifications.vue b/src/components/view/a5-laboratory-qualifications.vue
index 748d535..0bd8ef2 100644
--- a/src/components/view/a5-laboratory-qualifications.vue
+++ b/src/components/view/a5-laboratory-qualifications.vue
@@ -54,7 +54,7 @@
 	<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>
@@ -100,7 +100,7 @@
 				</div>
 				<div class="search_thing" style="padding-left: 30px;">
 					<el-button size="small" @click="refresh()">閲� 缃�</el-button>
-					<el-button size="small" type="primary" @click="refreshTable()">鏌� 璇�</el-button>
+					<el-button size="small" type="primary" @click="list=[],refreshTable()">鏌� 璇�</el-button>
 				</div>
 			</div>
 			<div class="table" v-if="radio==1" v-loading="pageLoading" @scroll="scrollFn">
@@ -191,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_thing" style="margin-bottom: 16px;">
+        <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,19 +206,6 @@
 					</el-date-picker>
         </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"><span class="required-span">* </span>鍒版湡鏃堕棿锛�</div>
         <div class="search_input">
@@ -316,7 +305,8 @@
 						},
 					},
 					requiredAdd: [],
-					requiredUp: []
+					requiredUp: [],
+          needSort: ['firstIssuanceDate', 'latestIssuanceDate', 'expireTime', 'name'],
 				},
 				itemParameterEntityCopy: {},
 				upIndex: 0,
@@ -362,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
@@ -415,7 +405,7 @@
           this.list=[];
           this.entity={
             name: null,
-            orderBy: {field: "id", order: "asc"}
+            // orderBy: {field: "id", order: "asc"}
           };
           this.refreshTable()
         }
@@ -515,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