002390 пре 1 година
родитељ
комит
60724922eb
2 измењених фајлова са 13 додато и 12 уклоњено
  1. 6 5
      src/views/material/requisition/add.vue
  2. 7 7
      src/views/material/requisition/index.vue

+ 6 - 5
src/views/material/requisition/add.vue

@@ -3,17 +3,17 @@
 
     <el-row type="flex" justify="end" style="margin-bottom: 16px;">
       <el-col :span="1.5">
-        <el-button type="primary" size="small" plain @click="save"
+        <el-button type="primary" :size="size" plain @click="save"
                    v-if="pageStu == 'add' || pageStu == 'edit' || pageStu ==='copy' ">保存
         </el-button>
       </el-col>
       <el-col :span="1.5" style="margin: 0 10px;">
-        <el-button type="primary" size="small" plain @click="submit"
+        <el-button type="primary" :size="size" plain @click="submit"
                    v-if="pageStu == 'check' && (row.status == '0' || row.status == '3')">提交
         </el-button>
       </el-col>
       <el-col :span="1.5">
-        <el-button type="primary" size="small" plain @click="back">返回</el-button>
+        <el-button type="primary" :size="size" plain @click="back">返回</el-button>
       </el-col>
     </el-row>
     <el-tabs type="border-card" v-model="tabValue" @tab-click="handleClick">
@@ -535,8 +535,8 @@
         <span>物料类别</span>
         </el-row> -->
         <el-row style="margin-bottom: 12px;">
-          <el-button :disabled="disable" type="primary" size="small" plain @click="addLine">新增</el-button>
-          <el-button :disabled="disable" type="primary" size="small" plain @click="handleDelete">删除</el-button>
+          <el-button :disabled="disable" type="primary" :size="size" plain @click="addLine">新增</el-button>
+          <el-button :disabled="disable" type="primary" :size="size" plain @click="handleDelete">删除</el-button>
           <!-- <el-button :disabled="disable || isControl" type="primary" size="small" plain @click="testsave">暂存</el-button> -->
         </el-row>
         <el-row>
@@ -710,6 +710,7 @@
     },
     data() {
       return {
+        size:'mini',
         testOptions: [],
         factoryOptions: [],
         unitOptions: [],

+ 7 - 7
src/views/material/requisition/index.vue

@@ -1,7 +1,6 @@
 <template>
   <div class="requisition" v-loading="failLoad">
     <div class="applyList" v-if="isList">
-
      
       <el-card>
 
@@ -64,9 +63,8 @@
         </el-dialog>
       </el-row>
 
-
+      <div style="height: 600px;display: flex;">
         <el-super-table
-          style="height: 600px;"
           v-model="tableList"
           :dict="dict"
           :columns="TableColumns"
@@ -81,7 +79,7 @@
           @selection-change="handleSelectionChange"
           @select="handleSelect"
         >
-      <el-table-column
+          <el-table-column
             fixed="right"
             label="操作"
             align="center"
@@ -90,14 +88,16 @@
             <template slot-scope="scope">
               <el-button type="text" :size="size" @click="check(scope.row)">查看</el-button>
               <el-button @click="edit(scope.row)" v-if="scope.row.status == 0 || scope.row.status == 3" type="text"
-                         :size="size">编辑
+                        :size="size">编辑
               </el-button>
               <el-button type="text" :size="size" @click="deleteRow(scope.row)"
-                         v-if="scope.row.status == 0 || scope.row.status == 3">删除
+                        v-if="scope.row.status == 0 || scope.row.status == 3">删除
               </el-button>
             </template>
           </el-table-column>
-      </el-super-table>
+        </el-super-table>
+      </div>
+       
 
       </el-card>
     </div>