From 8ff8b4dbccd93d4dbc7976b50148088fef77af0b Mon Sep 17 00:00:00 2001
From: 叶松 <2217086471@qq.com>
Date: 星期五, 08 十二月 2023 08:56:26 +0800
Subject: [PATCH] Merge branch 'master' of http://111.30.93.211:10101/r/supipe

---
 web/src/views/GoodManage/MixRatioScreen.vue |   50 ++++++++++++++++++++++++++------------------------
 1 files changed, 26 insertions(+), 24 deletions(-)

diff --git a/web/src/views/GoodManage/MixRatioScreen.vue b/web/src/views/GoodManage/MixRatioScreen.vue
index 74f6fb2..16cdfa1 100644
--- a/web/src/views/GoodManage/MixRatioScreen.vue
+++ b/web/src/views/GoodManage/MixRatioScreen.vue
@@ -64,8 +64,8 @@
           </div>
 
           <div class="row" v-for="sub in item.dataLists" :key="sub.name">
-            <div class="name">{{ sub.name }}</div>
             <div class="column">
+              <div class="name">{{ sub.name }}</div>
               <div class="column-item" v-for="(sub, index) in sub.value" :key="index">{{ sub }}</div>
             </div>
           </div>
@@ -110,10 +110,11 @@
         <div style="display: flex;">
           <div style="margin-right: 10px;" v-for="(item, index) in  ruleForm.infos " :key="index">
             <el-form-item :label="index === 0 ? '材料名称' : ''" :prop="`infos.${index}.dictId`">
-              <el-select v-model="item.dictId" size="mini" placeholder="请选择材料名称">
+              <!-- <el-select v-model="item.dictId" size="mini" placeholder="请选择材料名称">
                 <el-option v-for="item in selects.materials" :key="item.value" :label="item.label"
                   :value="item.value"></el-option>
-              </el-select>
+              </el-select> -->
+              <el-input v-model="item.dictId" size="mini" placeholder="请输入" clearable></el-input>
             </el-form-item>
             <el-form-item :label="index === 0 ? '规格型号' : ''" :prop="`infos.${index}.spec`">
               <el-input v-model="item.spec" size="mini" placeholder="请输入" clearable></el-input>
@@ -153,7 +154,7 @@
       times: [], // 时间范围
       selects: {
         screenNames: [], // 配合比屏
-        materials: [] // 材料名称
+        // materials: [] // 材料名称[先改成输入,,字典表材料不匹配]
       }, // 下拉框状态选择汇总
       tableData: [{
         inType: '', // 录入方式
@@ -166,7 +167,7 @@
         construction: '',  // 施工部位
         mixingConsumeId: '', // 每个材料id
         dataLists: [
-          {name: '材料名称', type: 'dictName', value: []}, // 材料名称
+          {name: '材料名称', type: 'dictId', value: []}, // 材料名称
           {name: '规格型号', type: 'spec', value: []}, // 规格型号
           {name: '生产厂家', type: 'manufacturer', value: []}, // 生产厂家
           {name: '材料含水率(%)', type: 'watFull', value: []}, // 含水率
@@ -252,7 +253,7 @@
           construction: '',  // 施工部位
           mixingConsumeId: '', // 每个材料id
           dataLists: [
-            {name: '材料名称', type: 'dictName', value: []}, // 材料名称
+            {name: '材料名称', type: 'dictId', value: []}, // 材料名称
             {name: '规格型号', type: 'spec', value: []}, // 规格型号
             {name: '生产厂家', type: 'manufacturer', value: []}, // 生产厂家
             {name: '材料含水率(%)', type: 'watFull', value: []}, // 含水率
@@ -307,18 +308,18 @@
       })
     },
     //获取字典表材料名称
-    async getDicFilteredData() {
-      let params = {pageNum: 1, pageSize: 100000000}
-      let {data} = await this.$api.Dictionary.searchDictionary(params)
-      data.list.forEach(item => {
-        if (item.dictType === 'pipe_materials') {
-          this.selects.materials.push({
-            label: item.dictName,
-            value: item.dictId,
-          })
-        }
-      })
-    },
+    // async getDicFilteredData() {
+    //   let params = {pageNum: 1, pageSize: 100000000}
+    //   let {data} = await this.$api.Dictionary.searchDictionary(params)
+    //   data.list.forEach(item => {
+    //     if (item.dictType === 'pipe_materials') {
+    //       this.selects.materials.push({
+    //         label: item.dictName,
+    //         value: item.dictId,
+    //       })
+    //     }
+    //   })
+    // },
     // 获取配比屏名称
     async getScreenNames() {
       const params = {pageNum: 1, pageSize: 9999}
@@ -351,9 +352,9 @@
         if (!this.isRenderDialog) {
           this.isRenderDialog = true
         }
-        if (!this.selects.materials.length) {
-          await this.getDicFilteredData()
-        }
+        // if (!this.selects.materials.length) {
+        //   await this.getDicFilteredData()
+        // }
         this.asyncVisible = true
         this.$nextTick(() => {
           resolve()
@@ -463,7 +464,6 @@
     changeSelectForm(val) {
       let item = this.selects.screenNames.find(obj => obj.value === val)
       this.ruleForm.proName = item.proName
-      this.ruleForm.constructionUnit = item.constructionUnit
     }
   }
 }
@@ -507,7 +507,7 @@
     .row {
       flex: 1;
       width: 100%;
-      height: 40px;
+      min-height: 40px;
       margin: 0 -1px -1px 0;
       text-align: center;
       line-height: 40px;
@@ -519,7 +519,6 @@
         align-items: center;
         float: left;
         width: 160px;
-        height: 100%;
         margin: -1px -1px -1px 0;
         color: #BEE2F0;
         border: 1px solid #01B3EF;
@@ -544,8 +543,11 @@
           justify-content: center;
           align-items: center;
           flex: 1;
+          padding: 0 4px;
+          line-height: 24px;
           margin: -1px -1px -1px 0;
           border: 1px solid #01B3EF;
+          word-break: break-all;
         }
       }
     }

--
Gitblit v1.9.3