From af5e92df80064c23b32df1cdce651a8bc5d224ec Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期四, 05 十二月 2024 12:50:27 +0800
Subject: [PATCH] 修改整体表格样式

---
 north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCard.vue |  161 ++++++++++++++++++++++++++++-------------------------
 1 files changed, 86 insertions(+), 75 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCard.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCard.vue
index a1c8660..1c707e4 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCard.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/PrintFlowCard.vue
@@ -655,87 +655,92 @@
 </script>
 
 <template>
-  <div class="main-div-customer">
-    <el-input v-show="isVisible" v-model="printMerge" :placeholder="$t('processCard.mergePrinting')" clearable
-              style="width: 90px"></el-input>
-    &nbsp;
-    <label>{{ $t('processCard.labelStyle') }}锛�</label>
-    <el-select v-model="printType" :placeholder="$t('processCard.pleaseSelect')" clearable default-value="default_city"
-               style="width: 120px">
-      <el-option
-          v-for="item in titleSelectJson['dataType']"
-          :key="item.id"
-          :label="item.name"
-          :value="item.name"
-      />
-    </el-select>
-    &nbsp;
-    <el-select v-model="lableType" :placeholder="lableTypeOptions[0].label" class="m-2" style="width: 140px">
-      <el-option
-          v-for="item in filteredOptions"
-          :key="item.value"
-          :label="item.label"
-          :value="item.value"
-      />
-    </el-select>
-    &nbsp;
-    <el-select v-model="stateValue" :placeholder="$t('processCard.pleaseSelect')" allow-create class="m-2" clearable
-               filterable style="width: 140px">
-      <el-option
-          v-for="item in stateOptions"
-          :key="item.value"
-          :label="item.label"
-          :value="item.value"
-      />
-    </el-select>
-    <vxe-grid
-        ref="xGrid"
-        :checkbox-config="{labelField: 'name', highlight: true, range: true}"
-        class="mytable-scrollbar"
-        height="100%"
-        v-bind="gridOptions"
-        v-on="gridEvents"
+  <div  style="width: 100%;height: 100%">
+    <div class="head">
+      <el-input v-show="isVisible" v-model="printMerge" :placeholder="$t('processCard.mergePrinting')" clearable
+                style="width: 90px"></el-input>
+      &nbsp;
+      <label>{{ $t('processCard.labelStyle') }}锛�</label>
+      <el-select v-model="printType" :placeholder="$t('processCard.pleaseSelect')" clearable default-value="default_city"
+                 style="width: 120px">
+        <el-option
+            v-for="item in titleSelectJson['dataType']"
+            :key="item.id"
+            :label="item.name"
+            :value="item.name"
+        />
+      </el-select>
+      &nbsp;
+      <el-select v-model="lableType" :placeholder="lableTypeOptions[0].label" class="m-2" style="width: 140px">
+        <el-option
+            v-for="item in filteredOptions"
+            :key="item.value"
+            :label="item.label"
+            :value="item.value"
+        />
+      </el-select>
+      &nbsp;
+      <el-select v-model="stateValue" :placeholder="$t('processCard.pleaseSelect')" allow-create class="m-2" clearable
+                 filterable style="width: 140px">
+        <el-option
+            v-for="item in stateOptions"
+            :key="item.value"
+            :label="item.label"
+            :value="item.value"
+        />
+      </el-select>
+    </div>
+
+    <div class="main-table">
+      <vxe-grid
+          ref="xGrid"
+          :checkbox-config="{labelField: 'name', highlight: true, range: true}"
+          class="mytable-scrollbar"
+          height="100%"
+          v-bind="gridOptions"
+          v-on="gridEvents"
 
 
-    >
-      <!--      @toolbar-button-click="toolbarButtonClickEvent"-->
-      <!--      涓嬫媺鏄剧ず鎵�鏈変俊鎭彃妲�-->
-      <template #content="{ row }">
-        <ul class="expand-wrapper">
-          <li v-for="(item,index) in gridOptions.columns" v-show="item.field!=undefined ">
-            <span style="font-weight: bold">{{ item.title + ':  ' }}</span>
-            <span v-if="hasDecimal(item.field)">{{ row[item.field.split('.')[0]][item.field.split('.')[1]] }}</span>
-            <span v-else>{{ row[item.field] }}</span>
+      >
+        <!--      @toolbar-button-click="toolbarButtonClickEvent"-->
+        <!--      涓嬫媺鏄剧ず鎵�鏈変俊鎭彃妲�-->
+        <template #content="{ row }">
+          <ul class="expand-wrapper">
+            <li v-for="(item,index) in gridOptions.columns" v-show="item.field!=undefined ">
+              <span style="font-weight: bold">{{ item.title + ':  ' }}</span>
+              <span v-if="hasDecimal(item.field)">{{ row[item.field.split('.')[0]][item.field.split('.')[1]] }}</span>
+              <span v-else>{{ row[item.field] }}</span>
 
-          </li>
-        </ul>
-      </template>
+            </li>
+          </ul>
+        </template>
 
-      <!--宸﹁竟鍥哄畾鏄剧ず鐨勬彃妲�-->
-      <!--      v-if="userStore.user.permissions.indexOf('SelectProductionBasicData.edit') > -1"-->
-      <template #button_slot="{ row }">
-        <el-button link
-                   size="small"
-                   type="primary"
-                   @click="getTableRow(row,'edit')">
-          {{ $t('basicData.edit') }}
-        </el-button>
+        <!--宸﹁竟鍥哄畾鏄剧ず鐨勬彃妲�-->
+        <!--      v-if="userStore.user.permissions.indexOf('SelectProductionBasicData.edit') > -1"-->
+        <template #button_slot="{ row }">
+          <el-button link
+                     size="small"
+                     type="primary"
+                     @click="getTableRow(row,'edit')">
+            {{ $t('basicData.edit') }}
+          </el-button>
 
-      </template>
+        </template>
 
-      <template #num1_filter="{ column, $panel }">
-        <div>
-          <div v-for="(option, index) in column.filters" :key="index">
-            <input v-model="option.data"
-                   type="text"
-                   @keyup.enter.native="$panel.confirmFilter()"
-                   @input="changeFilterEvent($event, option, $panel)"/>
+        <template #num1_filter="{ column, $panel }">
+          <div>
+            <div v-for="(option, index) in column.filters" :key="index">
+              <input v-model="option.data"
+                     type="text"
+                     @keyup.enter.native="$panel.confirmFilter()"
+                     @input="changeFilterEvent($event, option, $panel)"/>
+            </div>
           </div>
-        </div>
-      </template>
+        </template>
 
 
-    </vxe-grid>
+      </vxe-grid>
+    </div>
     <!--  娴佺▼鍗℃墦鍗�  -->
     <el-dialog
         id="sizePrintCalrd"
@@ -847,9 +852,15 @@
 </template>
 
 <style scoped>
-.main-div-customer {
-  width: 99%;
-  height: 92%;
+
+.head{
+  width: 100%;
+  height: 35px;
+}
+
+.main-table{
+  width: 100%;
+  height: calc(100% - 35px);
 }
 
 

--
Gitblit v1.8.0