From 4aeb79927aab9874ae13bda09f85e5d560d8ca70 Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期一, 04 九月 2023 15:19:42 +0800
Subject: [PATCH] 修改bug

---
 .env.development                                             |    2 +-
 src/views/experiment/passRateStatistics/index.vue            |    8 +++++++-
 src/views/laboratory/measure/index.vue                       |   13 ++++++++-----
 src/views/laboratory/role/index.vue                          |    6 +++++-
 .env.production                                              |    2 +-
 src/views/inspectionManagement/reportForInspection/index.vue |   19 ++++++++++++++++---
 6 files changed, 38 insertions(+), 12 deletions(-)

diff --git a/.env.development b/.env.development
index b0631dd..ab9be2d 100644
--- a/.env.development
+++ b/.env.development
@@ -2,4 +2,4 @@
 ENV = 'development'
 
 # base api
-VUE_APP_BASE_API =  'http://192.168.110.254:1234/'
+VUE_APP_BASE_API =  'http://localhost:1234/'
diff --git a/.env.production b/.env.production
index b1d6aa4..dd72fa5 100644
--- a/.env.production
+++ b/.env.production
@@ -3,5 +3,5 @@
 
 # base api
 # VUE_APP_BASE_API = '/prod-api'
-VUE_APP_BASE_API = 'http://192.168.137.138:1234/'
+VUE_APP_BASE_API = 'http://localhost:1234/'
 
diff --git a/src/views/experiment/passRateStatistics/index.vue b/src/views/experiment/passRateStatistics/index.vue
index bf2c28a..ce5fd7a 100644
--- a/src/views/experiment/passRateStatistics/index.vue
+++ b/src/views/experiment/passRateStatistics/index.vue
@@ -29,7 +29,7 @@
         </el-form-item>
         <div class="rightBtn">
           <el-form-item>
-            <el-button type="primary" plain size="mini">娓呯┖</el-button>
+            <el-button type="primary" @click="clear" plain size="mini">娓呯┖</el-button>
             <el-button type="primary" @click="search" size="mini">鏌ヨ</el-button>
           </el-form-item>
         </div>
@@ -160,6 +160,12 @@
         console.log("涓荤嚎绋�"+index);
       }
     },
+    clear(){
+       this.searchData.date=[]
+       this.searchData.type=null
+       this.searchData.supplier=null
+       this.searchData.code=null 
+    },
     async search() {
       this.testSampleStatistics = null
       this.supplierNoPassStatistics = null
diff --git a/src/views/inspectionManagement/reportForInspection/index.vue b/src/views/inspectionManagement/reportForInspection/index.vue
index f89e215..5984f31 100644
--- a/src/views/inspectionManagement/reportForInspection/index.vue
+++ b/src/views/inspectionManagement/reportForInspection/index.vue
@@ -48,7 +48,7 @@
 					</el-form-item>
 					<el-form-item label="瑙勬牸鍨嬪彿:" prop="specificationsNumber">
 						<el-cascader v-model="insertData.specificationsNumber" :options="childrenOptions"
-							:props="{label: 'Name', value: 'Name'}" separator="-"></el-cascader>
+							:props="{label: 'Name', value: 'Id'}" separator="-"></el-cascader>
 					</el-form-item>
 					<el-form-item label="鍗曚綅:" prop="unit">
 						<el-input type="text" v-model="insertData.unit" />
@@ -153,6 +153,7 @@
     getChooseVersion,
     lookProByVer
 	} from '@/api/inspection/rawmaterial'
+import ItemVue from '@/layout/components/Sidebar/Item.vue'
 	export default {
 		data() {
 			return {
@@ -458,13 +459,25 @@
 			insert() {
 				this.$refs['addMaterialForm'].validate((valid) => {
 					if (valid) {
+						console.log(this.childrenOptions);
+						console.log(this.insertData);
+						let f=this.childrenOptions.filter(item=>{
+							return item.Id===this.insertData.specificationsNumber[0]
+						})[0]
+						console.log(f);
+						let fatherName=f.Name;
+						let c=f.children.filter(item=>{
+							return item.Id===this.insertData.specificationsNumber[1]
+						})[0]
+						let sonName=c.Name
+						let specificationsId=c.Id;
 						var str = {
 							"dateSurvey": this.insertData.fromDate,
 							"materialCoding": this.insertData.mCode,
 							"materialName": this.insertData.mName,
 							"quantity": this.insertData.num,
-							"specificationsModels": this.insertData.specificationsNumber[0] + '-' + this.insertData
-								.specificationsNumber[1],
+							"specificationsModels": fatherName+ '-' + sonName,
+							"specificationsId": specificationsId,	
 							"supplierName": this.insertData.supplierName,
 							"type": 0,
 							"unit": this.insertData.unit
diff --git a/src/views/laboratory/measure/index.vue b/src/views/laboratory/measure/index.vue
index 1bb43b8..b6d76a2 100644
--- a/src/views/laboratory/measure/index.vue
+++ b/src/views/laboratory/measure/index.vue
@@ -42,7 +42,7 @@
           </div>
         </div>
         <div class="table-box">
-          <el-table v-if="this.radioValue == 0" :max-height="800" :cell-style="{ textAlign: 'center' }"
+          <el-table v-if="this.radioValue == 0" :max-height="500" :cell-style="{ textAlign: 'center' }"
             :header-cell-style="{ border: '0px', background: '#f5f7fa', color: '#606266', boxShadow: 'inset 0 1px 0 #ebeef5', textAlign: 'center' }"
             :data="measureLedgerTable" style="width: 100%">
             <el-table-column type="index" min-width="10%" />
@@ -81,7 +81,7 @@
               </template>
             </el-table-column>
           </el-table>
-          <el-table v-show="this.radioValue == 1" :max-height="800" :cell-style="{ textAlign: 'center' }"
+          <el-table v-show="this.radioValue == 1" :max-height="500" :cell-style="{ textAlign: 'center' }"
             :header-cell-style="{ border: '0px', background: '#f5f7fa', color: '#606266', boxShadow: 'inset 0 1px 0 #ebeef5', textAlign: 'center' }"
             :data="measurePlanTable" style="width: 100%">
             <el-table-column type="index" min-width="10%" />
@@ -114,7 +114,7 @@
           <!-- 鍒嗛〉鍣� -->
           <div style="display: flex;justify-content: end;padding: 10px 0;">
             <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
-              :current-page="currentPage" :page-sizes="[5, 10, 20]" :page-size="pageSize"
+              :current-page="currentPage" :page-sizes="[10, 20, 30]" :page-size="pageSize"
               layout="total, sizes, prev, pager, next, jumper" :total="total">
             </el-pagination>
           </div>
@@ -328,10 +328,10 @@
       measureLedgerTable: [],
       measurePlanTable: [],
       currentPage: 1,
-      pageSize: 5,
+      pageSize: 10,
       total: 0,
       currentPagePlan: 1,
-      pageSizePlan: 5,
+      pageSizePlan: 10,
       totalPlan: 0,
       direction: 'rtl',
       lookVisible: false,
@@ -396,6 +396,7 @@
       });
       this.lookVisible = false
       this.addBtn = false
+      this.getPlanPageList()
       this.limitGetPlanMeasureInstrument()
     },
     async handleSizeChangePlan(num) {
@@ -520,6 +521,7 @@
       this.reset()
     },
     async getPlanPageList() {
+      console.log(111);
       let param = {
         currentPage: this.currentPage,
         pageSize: this.pageSize,
@@ -531,6 +533,7 @@
       })
       this.measurePlanTable = res.data.list
       this.total = res.data.total
+      console.log(333);
     },
     async lookMeasurement(code) {
     },
diff --git a/src/views/laboratory/role/index.vue b/src/views/laboratory/role/index.vue
index 26da055..56aaaac 100644
--- a/src/views/laboratory/role/index.vue
+++ b/src/views/laboratory/role/index.vue
@@ -10,7 +10,7 @@
           <el-form-item class="rightBtn">
             <el-col>
               <el-button type="primary" @click="searchRole">鏌ヨ</el-button>
-              <el-button type="primary" plain>閲嶇疆</el-button>
+              <el-button type="primary" @click="clear()" plain>閲嶇疆</el-button>
             </el-col>
           </el-form-item>
         </el-form>
@@ -287,6 +287,10 @@
     searchRole() {
       this.start()
     },
+    clear(){
+      this.searchData.roleName=''
+      this.start()
+    },
     clearUPAll() {
       this.updateRole = {
         roleId: null,

--
Gitblit v1.9.3