Selaa lähdekoodia

前端: 增项申请-审批页面 基建类 服务类 准入范围分页

baichengfei 5 vuotta sitten
vanhempi
commit
93273711b4

+ 34 - 7
src/dashoo.cn/frontend_web/src/pages/oilsupplier/addtionaudit/_opera/basisdataopera.vue

@@ -506,13 +506,25 @@
                 <el-table-column prop="Remark" label="描述" show-overflow-tooltip></el-table-column>
               </el-table>
             </el-card>
-            <el-card class="box-card" style="margin-top: 10px;">
-              <el-table :data="entityList" size="mini" border style="width: 100%" @sort-change="orderby">
+            <el-card class="box-card" style="margin-top: 10px; margin-bottom: 10px">
+              <div slot="header">
+                <span><i class="icon icon-table2"></i> 准入范围</span>
+                <div style="float:right; margin-right: -45px">
+                  <el-input size="mini" v-model="addAccessCodeSearch" style="width:50%;" clearable placeholder="准入编码"></el-input>
+                  &nbsp;
+                  <el-button type="primary" size="mini" @click="getSortList()" >查询</el-button>
+                </div>
+              </div>
+              <el-table :data="entityList" size="mini" border stripe highlight-current-row max-height="calc(100vh - 528px)" style="width: 100%; min-height: 200px" @sort-change="orderby">
                 <el-table-column prop="SortFlag" label="分类标记" v-if="1==2" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
               </el-table>
+              <el-pagination style="float: right" :pager-count="5" @size-change="handleSizeChangeForAddAccess" @current-change="handleCurrentChangeForAddAccess"
+                             :current-page="currentPageAddAccess" :page-sizes="[10, 50, 100, 200, 500]" :page-size="sizeAddAccess"
+                             layout="total, sizes, prev, pager, next, jumper" :total="currentItemCountAddAccess">
+              </el-pagination>
             </el-card>
           </el-tab-pane>
         </el-tabs>
@@ -789,6 +801,11 @@
         }
       }
       return {
+        // 新增准入范围分页参数
+        currentPageAddAccess: 1,
+        sizeAddAccess: 10,
+        currentItemCountAddAccess: 0,
+        addAccessCodeSearch: '', // 新增准入范围查询参数
         dialogVisibleBack: false,
         firOptions: [],
         btnloading: false,
@@ -1216,8 +1233,9 @@
       getSortList () {
         // 分页及列表条件
         let params = {
-          // _currentPage: this.currentPage,
-          // _size: this.size,
+          _currentPage: this.currentPageAddAccess,
+          _size: this.sizeAddAccess,
+          searchCode: this.addAccessCodeSearch,
           // Order: this.Column.Order,
           // Prop: this.Column.Prop,
           SupplierCertAppendId: this.dialogFormData.SupplierCertAppendId,
@@ -1227,8 +1245,8 @@
 
         // 访问接口
         api.getListAppend(params, this.$axios).then(res => {
-          this.entityList = res.data.item
-          // this.currentItemCount = res.data.currentItemCount
+          this.entityList = res.data.items
+          this.currentItemCountAddAccess = res.data.currentItemCount
         }).catch(err => {
           console.error(err)
         })
@@ -2267,7 +2285,6 @@
         this.currentPage = 1
         this.initData()
       },
-
       jstimehandle (val) {
         if (val === '') {
           return '----'
@@ -2281,6 +2298,16 @@
           val = val.replace('T', ' ')
           return val.substring(0, 10)
         }
+      },
+      // 新增准入范围分页
+      handleSizeChangeForAddAccess (value) {
+        this.sizeAddAccess = value
+        this.currentPageAddAccess = 1
+        this.getSortList()
+      },
+      handleCurrentChangeForAddAccess (value) {
+        this.currentPageAddAccess = value
+        this.getSortList()
       }
     }
   }

+ 33 - 8
src/dashoo.cn/frontend_web/src/pages/oilsupplier/addtionaudit/_opera/goodsdataopera.vue

@@ -576,24 +576,33 @@
                 <el-table-column prop="Remark" label="描述" show-overflow-tooltip></el-table-column>
               </el-table>
             </el-card>
-            <el-card class="box-card" style="margin-top: 10px;">
+            <el-card class="box-card" style="margin-top: 10px; margin-bottom: 10px">
               <div slot="header">
                 <span><i class="icon icon-table2"></i> 准入范围</span>
+                <div style="float:right; margin-right: -45px">
+                  <el-input size="mini" v-model="addAccessCodeSearch" style="width:50%;" clearable placeholder="准入编码"></el-input>
+                  &nbsp;
+                  <el-button type="primary" size="mini" @click="getSortList()" >查询</el-button>
+                </div>
               </div>
-              <el-table :data="entityList" size="mini" border style="width: 100%" @sort-change="orderby">
+              <el-table :data="entityList" size="mini" border stripe highlight-current-row max-height="calc(100vh - 528px)" style="width: 100%; min-height: 200px" @sort-change="orderby">
                 <el-table-column prop="SortFlag" label="分类标记" v-if="1==2" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
                 <el-table-column
                   label="是否为制造商" width="100">
                   <template slot-scope="scope">
-                    <el-tag type="info" v-if="scope.row.IsManufacturer == 2">非制造商</el-tag>
-                    <el-tag type="success" v-else-if="scope.row.IsManufacturer == 1">制造商</el-tag>
+                    <el-tag type="info" size="small" v-if="scope.row.IsManufacturer == 2">非制造商</el-tag>
+                    <el-tag type="success" size="small" v-else-if="scope.row.IsManufacturer == 1">制造商</el-tag>
                     <span v-else>——</span>
                   </template>
                 </el-table-column>
                 <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
               </el-table>
+              <el-pagination style="float: right" :pager-count="5" @size-change="handleSizeChangeForAddAccess" @current-change="handleCurrentChangeForAddAccess"
+                             :current-page="currentPageAddAccess" :page-sizes="[10, 50, 100, 200, 500]" :page-size="sizeAddAccess"
+                             layout="total, sizes, prev, pager, next, jumper" :total="currentItemCountAddAccess">
+              </el-pagination>
             </el-card>
           </el-tab-pane>
         </el-tabs>
@@ -874,6 +883,11 @@
         }
       }
       return {
+        // 新增准入范围分页参数
+        currentPageAddAccess: 1,
+        sizeAddAccess: 10,
+        currentItemCountAddAccess: 0,
+        addAccessCodeSearch: '', // 新增准入范围查询参数
         dialogVisibleBack: false,
         firOptions: [],
         btnloading: false,
@@ -1332,8 +1346,9 @@
       getSortList () {
         // 分页及列表条件
         let params = {
-          // _currentPage: this.currentPage,
-          // _size: this.size,
+          _currentPage: this.currentPageAddAccess,
+          _size: this.sizeAddAccess,
+          searchCode: this.addAccessCodeSearch,
           // Order: this.Column.Order,
           // Prop: this.Column.Prop,
           SupplierCertAppendId: this.dialogFormData.SupplierCertAppendId,
@@ -1342,8 +1357,8 @@
         }
         // 访问接口
         api.getListAppend(params, this.$axios).then(res => {
-          this.entityList = res.data.item
-          // this.currentItemCount = res.data.currentItemCount
+          this.entityList = res.data.items
+          this.currentItemCountAddAccess = res.data.currentItemCount
         }).catch(err => {
           console.error(err)
         })
@@ -2437,6 +2452,16 @@
           val = val.replace('T', ' ')
           return val.substring(0, 10)
         }
+      },
+      // 新增准入范围分页
+      handleSizeChangeForAddAccess (value) {
+        this.sizeAddAccess = value
+        this.currentPageAddAccess = 1
+        this.getSortList()
+      },
+      handleCurrentChangeForAddAccess (value) {
+        this.currentPageAddAccess = value
+        this.getSortList()
       }
     }
   }

+ 34 - 6
src/dashoo.cn/frontend_web/src/pages/oilsupplier/addtionaudit/_opera/techdataopera.vue

@@ -490,13 +490,25 @@
                 <el-table-column prop="Remark" label="描述" show-overflow-tooltip></el-table-column>
               </el-table>
             </el-card>
-            <el-card class="box-card" style="margin-top: 10px;">
-              <el-table :data="entityList" highlight-current-row stripe size="mini" border style="width: 100%" @sort-change="orderby">
+            <el-card class="box-card" style="margin-top: 10px; margin-bottom: 10px">
+              <div slot="header">
+                <span><i class="icon icon-table2"></i> 准入范围</span>
+                <div style="float:right; margin-right: -45px">
+                  <el-input size="mini" v-model="addAccessCodeSearch" style="width:50%;" clearable placeholder="准入编码"></el-input>
+                  &nbsp;
+                  <el-button type="primary" size="mini" @click="getSortList()" >查询</el-button>
+                </div>
+              </div>
+              <el-table :data="entityList" highlight-current-row stripe size="mini" border max-height="calc(100vh - 528px)" style="width: 100%; min-height: 200px" @sort-change="orderby">
                 <el-table-column prop="SortFlag" label="分类标记" v-if="1==2" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
               </el-table>
+              <el-pagination style="float: right" :pager-count="5" @size-change="handleSizeChangeForAddAccess" @current-change="handleCurrentChangeForAddAccess"
+                             :current-page="currentPageAddAccess" :page-sizes="[10, 50, 100, 200, 500]" :page-size="sizeAddAccess"
+                             layout="total, sizes, prev, pager, next, jumper" :total="currentItemCountAddAccess">
+              </el-pagination>
             </el-card>
           </el-tab-pane>
         </el-tabs>
@@ -770,6 +782,11 @@
         }
       }
       return {
+        // 新增准入范围分页参数
+        currentPageAddAccess: 1,
+        sizeAddAccess: 10,
+        currentItemCountAddAccess: 0,
+        addAccessCodeSearch: '', // 新增准入范围查询参数
         dialogVisibleBack: false,
         firOptions: [],
         btnloading: false,
@@ -1248,8 +1265,9 @@
       getSortList () {
         // 分页及列表条件
         let params = {
-          // _currentPage: this.currentPage,
-          // _size: this.size,
+          _currentPage: this.currentPageAddAccess,
+          _size: this.sizeAddAccess,
+          searchCode: this.addAccessCodeSearch,
           // Order: this.Column.Order,
           // Prop: this.Column.Prop,
           SupplierCertAppendId: this.dialogFormData.SupplierCertAppendId,
@@ -1258,8 +1276,8 @@
         }
         // 访问接口
         api.getListAppend(params, this.$axios).then(res => {
-          this.entityList = res.data.item
-          // this.currentItemCount = res.data.currentItemCount
+          this.entityList = res.data.items
+          this.currentItemCountAddAccess = res.data.currentItemCount
         }).catch(err => {
           console.error(err)
         })
@@ -2277,6 +2295,16 @@
           val = val.replace('T', ' ')
           return val.substring(0, 10)
         }
+      },
+      // 新增准入范围分页
+      handleSizeChangeForAddAccess (value) {
+        this.sizeAddAccess = value
+        this.currentPageAddAccess = 1
+        this.getSortList()
+      },
+      handleCurrentChangeForAddAccess (value) {
+        this.currentPageAddAccess = value
+        this.getSortList()
       }
     }
   }

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/basisdataopera.vue

@@ -580,7 +580,7 @@
                     <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
                     <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
                   </el-table>
-                  <el-pagination :pager-count="5" @size-change="handleSizeChangeForAddAccess" @current-change="handleCurrentChangeForAddAccess"
+                  <el-pagination style="float: right" :pager-count="5" @size-change="handleSizeChangeForAddAccess" @current-change="handleCurrentChangeForAddAccess"
                                  :current-page="currentPageAddAccess" :page-sizes="[10, 50, 100, 200, 500]" :page-size="sizeAddAccess"
                                  layout="total, sizes, prev, pager, next, jumper" :total="currentItemCountAddAccess">
                   </el-pagination>

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/goodsdataopera.vue

@@ -615,7 +615,7 @@
                     </el-table-column>
                     <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
                   </el-table>
-                  <el-pagination :pager-count="5" @size-change="handleSizeChangeForAllAccess" @current-change="handleCurrentChangeForAllAccess"
+                  <el-pagination style="float: right" :pager-count="5" @size-change="handleSizeChangeForAllAccess" @current-change="handleCurrentChangeForAllAccess"
                     :current-page="currentPageAllAccess" :page-sizes="[10, 50, 100, 200, 500]" :page-size="sizeAllAccess"
                     layout="total, sizes, prev, pager, next, jumper" :total="currentItemCountAllAccess">
                   </el-pagination>

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/techdataopera.vue

@@ -548,7 +548,7 @@
                     <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
                     <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
                   </el-table>
-                  <el-pagination :pager-count="5" @size-change="handleSizeChangeForAllAccess" @current-change="handleCurrentChangeForAllAccess"
+                  <el-pagination style="float: right" :pager-count="5" @size-change="handleSizeChangeForAllAccess" @current-change="handleCurrentChangeForAllAccess"
                                  :current-page="currentPageAllAccess" :page-sizes="[10, 50, 100, 200, 500]" :page-size="sizeAllAccess"
                                  layout="total, sizes, prev, pager, next, jumper" :total="currentItemCountAllAccess">
                   </el-pagination>