Browse Source

编码调整与测试

jonbo 3 days ago
parent
commit
c544d06e64

+ 2 - 1
src/views/mis/codingManagement/chargeChannel-index.vue

@@ -45,6 +45,7 @@ import { ChargeChannel } from '@/views/mis/common/api/codingManagement.js'
 import tfTable from '@/views/mis/common/misTable/index.vue'
 import tfDetail from './chargeChannel-form.vue'
 export default {
+    name: "chargeChannel",
     components: { tfTable, tfDetail },
     props: ['data'],
     data() {
@@ -57,7 +58,7 @@ export default {
             disabledDelete: true,
             editType: true,//编辑类型,true:新增;false:修改
             loading: false,// 控制表格查询时
-            pageInfo: { current: 1, size: 10, tableTotal: 1, 'orders[0].asc': 'true', 'orders[0].column': 'code' }, // 分页数据
+            pageInfo: { current: 1, size: 100, tableTotal: 1, 'orders[0].asc': 'true', 'orders[0].column': 'code' }, // 分页数据
             columns: [
                 {
                     label: '编码',

+ 20 - 77
src/views/mis/codingManagement/meterFactory-index.vue

@@ -5,92 +5,34 @@
       <el-header height="40px">
         <el-row>
           <el-col :span="18">
-            <el-input
-              v-model="queryParams.searchText"
-              size="small"
-              style="width: 300px"
-              placeholder="输入关键字"
-              clearable
-              @keyup.enter.native="clickQuery()"
-            />
-            <el-button
-              type="primary"
-              size="small"
-              icon="el-icon-search"
-              @click="clickQuery()"
-              >查询</el-button
-            >
+            <el-input v-model="queryParams.searchText" size="small" style="width: 300px" placeholder="输入关键字" clearable
+              @keyup.enter.native="clickQuery()" />
+            <el-button type="primary" size="small" icon="el-icon-search" @click="clickQuery()">查询</el-button>
           </el-col>
           <el-col :span="6" class="list-opCol">
-            <el-button
-              type="primary"
-              size="small"
-              icon="el-icon-plus"
-              @click="clickAdd()"
-              >添加</el-button
-            >
-            <el-button
-              type="primary"
-              size="small"
-              icon="el-icon-edit"
-              @click="clickModify()"
-              :disabled="disabledModify"
-              >修改</el-button
-            >
-            <el-button
-              type="danger"
-              size="small"
-              icon="el-icon-delete"
-              @click="clickDelete()"
-              :disabled="disabledDelete"
-              >删除</el-button
-            >
+            <el-button type="primary" size="small" icon="el-icon-plus" @click="clickAdd()">添加</el-button>
+            <el-button type="primary" size="small" icon="el-icon-edit" @click="clickModify()"
+              :disabled="disabledModify">修改</el-button>
+            <el-button type="danger" size="small" icon="el-icon-delete" @click="clickDelete()"
+              :disabled="disabledDelete">删除</el-button>
           </el-col>
         </el-row>
       </el-header>
       <el-main>
-        <tfTable
-          :table-data="dataList"
-          :column="columns"
-          :for-id="false"
-          :pagination="false"
-          :currentpage="pageInfo.current"
-          :pagesize="pageInfo.size"
-          :total="pageInfo.tableTotal"
-          :border="true"
-          :multiple="true"
-          :fixed="true"
-          :isdelete="false"
-          :is-select="false"
-          :stripe="true"
-          @handleCurrentChange="handleCurrentChange"
-          @handleSizeChange="handleSizeChange"
-          @handleSelectionChange="handleSelectionChange"
-          @rowDblclick="showDetail"
-          @detail="showDetail"
-        />
+        <tfTable :table-data="dataList" :column="columns" :for-id="false" :pagination="false"
+          :currentpage="pageInfo.current" :pagesize="pageInfo.size" :total="pageInfo.tableTotal" :border="true"
+          :multiple="true" :fixed="true" :isdelete="false" :is-select="false" :stripe="true"
+          @handleCurrentChange="handleCurrentChange" @handleSizeChange="handleSizeChange"
+          @handleSelectionChange="handleSelectionChange" @rowDblclick="showDetail" @detail="showDetail" />
       </el-main>
     </el-container>
     <!-- 详情页 -->
-    <el-dialog
-      v-if="dialogVisible"
-      v-dialogDrag
-      top="20vh"
-      :title="dialogTitle"
-      :visible.sync="dialogVisible"
-      width="800px"
-      class="dialog"
-    >
+    <el-dialog v-if="dialogVisible" v-dialogDrag top="20vh" :title="dialogTitle" :visible.sync="dialogVisible"
+      width="800px" class="dialog">
       <tfDetail :detailData="detailData" :editState="editState" ref="dForm" />
       <template slot="footer">
-        <el-button
-          type="warning"
-          icon="el-icon-check"
-          @click="clickSave()"
-          v-if="!editState"
-          >确 定</el-button
-        >
-        <el-button   type="warning" icon="el-icon-close" @click="clickCancel()">关 闭</el-button>
+        <el-button type="warning" icon="el-icon-check" @click="clickSave()" v-if="!editState">确 定</el-button>
+        <el-button type="warning" icon="el-icon-close" @click="clickCancel()">关 闭</el-button>
       </template>
     </el-dialog>
   </div>
@@ -103,6 +45,7 @@ import { MeterFactory } from "@/views/mis/common/api/codingManagement.js";
 import tfTable from "@/views/mis/common/misTable/index.vue";
 import tfDetail from "./meterFactory-form.vue";
 export default {
+  name: "meterFactory",
   components: { tfTable, tfDetail },
   props: ["data"],
   data() {
@@ -117,7 +60,7 @@ export default {
       loading: false, // 控制表格查询时
       pageInfo: {
         current: 1,
-        size: 10,
+        size: 100,
         tableTotal: 1,
         "orders[0].asc": "true",
         "orders[0].column": "code",
@@ -194,7 +137,7 @@ export default {
       }
     },
   },
-  created() {},
+  created() { },
   mounted() {
     this.bindList();
   },

+ 20 - 77
src/views/mis/codingManagement/meterModel-index.vue

@@ -5,92 +5,34 @@
       <el-header height="40px">
         <el-row>
           <el-col :span="18">
-            <el-input
-              v-model="queryParams.searchText"
-              size="small"
-              style="width: 300px"
-              placeholder="输入关键字"
-              clearable
-              @keyup.enter.native="clickQuery()"
-            />
-            <el-button
-              type="primary"
-              size="small"
-              icon="el-icon-search"
-              @click="clickQuery()"
-              >查询</el-button
-            >
+            <el-input v-model="queryParams.searchText" size="small" style="width: 300px" placeholder="输入关键字" clearable
+              @keyup.enter.native="clickQuery()" />
+            <el-button type="primary" size="small" icon="el-icon-search" @click="clickQuery()">查询</el-button>
           </el-col>
           <el-col :span="6" class="list-opCol">
-            <el-button
-               type="primary"
-              size="small"
-              icon="el-icon-plus"
-              @click="clickAdd()"
-              >添加</el-button
-            >
-            <el-button
-               type="primary"
-              size="small"
-              icon="el-icon-edit"
-              @click="clickModify()"
-              :disabled="disabledModify"
-              >修改</el-button
-            >
-            <el-button
-              type="danger"
-              size="small"
-              icon="el-icon-delete"
-              @click="clickDelete()"
-              :disabled="disabledDelete"
-              >删除</el-button
-            >
+            <el-button type="primary" size="small" icon="el-icon-plus" @click="clickAdd()">添加</el-button>
+            <el-button type="primary" size="small" icon="el-icon-edit" @click="clickModify()"
+              :disabled="disabledModify">修改</el-button>
+            <el-button type="danger" size="small" icon="el-icon-delete" @click="clickDelete()"
+              :disabled="disabledDelete">删除</el-button>
           </el-col>
         </el-row>
       </el-header>
       <el-main>
-        <tfTable
-          :table-data="dataList"
-          :column="columns"
-          :for-id="false"
-          :pagination="false"
-          :currentpage="pageInfo.current"
-          :pagesize="pageInfo.size"
-          :total="pageInfo.tableTotal"
-          :border="true"
-          :multiple="true"
-          :fixed="true"
-          :isdelete="false"
-          :is-select="false"
-          :stripe="true"
-          @handleCurrentChange="handleCurrentChange"
-          @handleSizeChange="handleSizeChange"
-          @handleSelectionChange="handleSelectionChange"
-          @rowDblclick="showDetail"
-          @detail="showDetail"
-        />
+        <tfTable :table-data="dataList" :column="columns" :for-id="false" :pagination="false"
+          :currentpage="pageInfo.current" :pagesize="pageInfo.size" :total="pageInfo.tableTotal" :border="true"
+          :multiple="true" :fixed="true" :isdelete="false" :is-select="false" :stripe="true"
+          @handleCurrentChange="handleCurrentChange" @handleSizeChange="handleSizeChange"
+          @handleSelectionChange="handleSelectionChange" @rowDblclick="showDetail" @detail="showDetail" />
       </el-main>
     </el-container>
     <!-- 详情页 -->
-    <el-dialog
-      v-if="dialogVisible"
-      v-dialogDrag
-      top="20vh"
-      :title="dialogTitle"
-      :visible.sync="dialogVisible"
-      width="800px"
-      class="dialog"
-    >
+    <el-dialog v-if="dialogVisible" v-dialogDrag top="20vh" :title="dialogTitle" :visible.sync="dialogVisible"
+      width="800px" class="dialog">
       <tfDetail :detailData="detailData" :editState="editState" ref="dForm" />
       <template slot="footer">
-        <el-button
-          type="warning"
-          icon="el-icon-check"
-          @click="clickSave()"
-          v-if="!editState"
-          >确 定</el-button
-        >
-        <el-button   type="warning" icon="el-icon-close" @click="clickCancel()">关 闭</el-button>
+        <el-button type="warning" icon="el-icon-check" @click="clickSave()" v-if="!editState">确 定</el-button>
+        <el-button type="warning" icon="el-icon-close" @click="clickCancel()">关 闭</el-button>
       </template>
     </el-dialog>
   </div>
@@ -103,6 +45,7 @@ import { MeterModel } from "@/views/mis/common/api/codingManagement.js";
 import tfTable from "@/views/mis/common/misTable/index.vue";
 import tfDetail from "./meterModel-form.vue";
 export default {
+  name: "meterModel",
   components: { tfTable, tfDetail },
   props: ["data"],
   data() {
@@ -117,7 +60,7 @@ export default {
       loading: false, // 控制表格查询时
       pageInfo: {
         current: 1,
-        size: 10,
+        size: 100,
         tableTotal: 1,
         "orders[0].asc": "true",
         "orders[0].column": "code",
@@ -201,7 +144,7 @@ export default {
       }
     },
   },
-  created() {},
+  created() { },
   mounted() {
     this.bindList();
   },

+ 21 - 78
src/views/mis/codingManagement/meterType-index.vue

@@ -5,92 +5,34 @@
       <el-header height="40px">
         <el-row>
           <el-col :span="18">
-            <el-input
-              v-model="queryParams.searchText"
-              size="small"
-              style="width: 300px"
-              placeholder="输入关键字"
-              clearable
-              @keyup.enter.native="clickQuery()"
-            />
-            <el-button
-              type="primary"
-              size="small"
-              icon="el-icon-search"
-              @click="clickQuery()"
-              >查询</el-button
-            >
+            <el-input v-model="queryParams.searchText" size="small" style="width: 300px" placeholder="输入关键字" clearable
+              @keyup.enter.native="clickQuery()" />
+            <el-button type="primary" size="small" icon="el-icon-search" @click="clickQuery()">查询</el-button>
           </el-col>
           <el-col :span="6" class="list-opCol">
-            <el-button
-              type="primary"
-              size="small"
-              icon="el-icon-plus"
-              @click="clickAdd()"
-              >添加</el-button
-            >
-            <el-button
-              type="primary"
-              size="small"
-              icon="el-icon-edit"
-              @click="clickModify()"
-              :disabled="disabledModify"
-              >修改</el-button
-            >
-            <el-button
-              type="danger"
-              size="small"
-              icon="el-icon-delete"
-              @click="clickDelete()"
-              :disabled="disabledDelete"
-              >删除</el-button
-            >
+            <!-- <el-button type="primary" size="small" icon="el-icon-plus" @click="clickAdd()">添加</el-button> -->
+            <el-button type="primary" size="small" icon="el-icon-edit" @click="clickModify()"
+              :disabled="disabledModify">修改</el-button>
+            <el-button type="danger" size="small" icon="el-icon-delete" @click="clickDelete()"
+              :disabled="disabledDelete">删除</el-button>
           </el-col>
         </el-row>
       </el-header>
       <el-main>
-        <tfTable
-          :table-data="dataList"
-          :column="columns"
-          :for-id="false"
-          :pagination="false"
-          :currentpage="pageInfo.current"
-          :pagesize="pageInfo.size"
-          :total="pageInfo.tableTotal"
-          :border="true"
-          :multiple="true"
-          :fixed="true"
-          :isdelete="false"
-          :is-select="false"
-          :stripe="true"
-          @handleCurrentChange="handleCurrentChange"
-          @handleSizeChange="handleSizeChange"
-          @handleSelectionChange="handleSelectionChange"
-          @rowDblclick="showDetail"
-          @detail="showDetail"
-        />
+        <tfTable :table-data="dataList" :column="columns" :for-id="false" :pagination="false"
+          :currentpage="pageInfo.current" :pagesize="pageInfo.size" :total="pageInfo.tableTotal" :border="true"
+          :multiple="true" :fixed="true" :isdelete="false" :is-select="false" :stripe="true"
+          @handleCurrentChange="handleCurrentChange" @handleSizeChange="handleSizeChange"
+          @handleSelectionChange="handleSelectionChange" @rowDblclick="showDetail" @detail="showDetail" />
       </el-main>
     </el-container>
     <!-- 详情页 -->
-    <el-dialog
-      v-if="dialogVisible"
-      v-dialogDrag
-      top="20vh"
-      :title="dialogTitle"
-      :visible.sync="dialogVisible"
-      width="800px"
-      class="dialog"
-    >
+    <el-dialog v-if="dialogVisible" v-dialogDrag top="20vh" :title="dialogTitle" :visible.sync="dialogVisible"
+      width="800px" class="dialog">
       <tfDetail :detailData="detailData" :editState="editState" ref="dForm" />
       <template slot="footer">
-        <el-button
-          type="warning"
-          icon="el-icon-check"
-          @click="clickSave()"
-          v-if="!editState"
-          >确 定</el-button
-        >
-        <el-button   type="warning" icon="el-icon-close" @click="clickCancel()">关 闭</el-button>
+        <el-button type="warning" icon="el-icon-check" @click="clickSave()" v-if="!editState">确 定</el-button>
+        <el-button type="warning" icon="el-icon-close" @click="clickCancel()">关 闭</el-button>
       </template>
     </el-dialog>
   </div>
@@ -103,13 +45,14 @@ import { MeterType } from "@/views/mis/common/api/codingManagement.js";
 import tfTable from "@/views/mis/common/misTable/index.vue";
 import tfDetail from "./meterType-form.vue";
 export default {
+  name: "meterType",
   components: { tfTable, tfDetail },
   props: ["data"],
   data() {
     return {
       /* ----- 主页 ----- */
       queryParams: {
-        searchText: "",
+        searchText: ""
       },
       disabledModify: true,
       disabledDelete: true,
@@ -117,7 +60,7 @@ export default {
       loading: false, // 控制表格查询时
       pageInfo: {
         current: 1,
-        size: 10,
+        size: 100,
         tableTotal: 1,
         "orders[0].asc": "true",
         "orders[0].column": "code",
@@ -171,7 +114,7 @@ export default {
       }
     },
   },
-  created() {},
+  created() { },
   mounted() {
     this.bindList();
   },

+ 3 - 3
src/views/mis/codingManagement/payMode-form.vue

@@ -15,12 +15,12 @@
           inactive-color="lightgray">
         </el-switch>
       </el-descriptions-item>
-      <el-descriptions-item label="档案是否启用" span="2">
+      <el-descriptions-item label="档案是否启用" span="2" v-if="false">
         <el-switch v-model="detailData.yhIsdisabled" active-text="是" inactive-text="否" active-value="1" inactive-value="0"
           inactive-color="lightgray">
         </el-switch>
       </el-descriptions-item>
-      <el-descriptions-item label="余额滚动标志" span="2">
+      <el-descriptions-item label="余额滚动标志" span="2" v-if="false">
         <el-switch v-model="detailData.yegdbz" active-text="参与滚动" inactive-text="不参与滚动" active-value="1"
           inactive-value="0" inactive-color="lightgray">
         </el-switch>
@@ -28,7 +28,7 @@
       <el-descriptions-item label="操作人员">
         <el-input v-model="detailData.oname" disabled></el-input>
       </el-descriptions-item>
-      <el-descriptions-item label="操作时间">
+      <el-descriptions-item label="操作时间" v-if="false">
         <el-input v-model="detailData.cdate" disabled></el-input>
       </el-descriptions-item>
     </el-descriptions>

+ 20 - 77
src/views/mis/codingManagement/payMode-index.vue

@@ -5,92 +5,34 @@
       <el-header height="40px">
         <el-row>
           <el-col :span="18">
-            <el-input
-              v-model="queryParams.searchText"
-              size="small"
-              style="width: 300px"
-              placeholder="输入关键字"
-              clearable
-              @keyup.enter.native="clickQuery()"
-            />
-            <el-button
-              type="primary"
-              size="small"
-              icon="el-icon-search"
-              @click="clickQuery()"
-              >查询</el-button
-            >
+            <el-input v-model="queryParams.searchText" size="small" style="width: 300px" placeholder="输入关键字" clearable
+              @keyup.enter.native="clickQuery()" />
+            <el-button type="primary" size="small" icon="el-icon-search" @click="clickQuery()">查询</el-button>
           </el-col>
           <el-col :span="6" class="list-opCol">
-            <el-button
-              type="primary"
-              size="small"
-              icon="el-icon-plus"
-              @click="clickAdd()"
-              >添加</el-button
-            >
-            <el-button
-              type="primary"
-              size="small"
-              icon="el-icon-edit"
-              @click="clickModify()"
-              :disabled="disabledModify"
-              >修改</el-button
-            >
-            <el-button
-              type="danger"
-              size="small"
-              icon="el-icon-delete"
-              @click="clickDelete()"
-              :disabled="disabledDelete"
-              >删除</el-button
-            >
+            <!-- <el-button type="primary" size="small" icon="el-icon-plus" @click="clickAdd()">添加</el-button> -->
+            <el-button type="primary" size="small" icon="el-icon-edit" @click="clickModify()"
+              :disabled="disabledModify">修改</el-button>
+            <el-button type="danger" size="small" icon="el-icon-delete" @click="clickDelete()"
+              :disabled="disabledDelete">删除</el-button>
           </el-col>
         </el-row>
       </el-header>
       <el-main>
-        <tfTable
-          :table-data="dataList"
-          :column="columns"
-          :for-id="false"
-          :pagination="false"
-          :currentpage="pageInfo.current"
-          :pagesize="pageInfo.size"
-          :total="pageInfo.tableTotal"
-          :border="true"
-          :multiple="true"
-          :fixed="true"
-          :isdelete="false"
-          :is-select="false"
-          :stripe="true"
-          @handleCurrentChange="handleCurrentChange"
-          @handleSizeChange="handleSizeChange"
-          @handleSelectionChange="handleSelectionChange"
-          @rowDblclick="showDetail"
-          @detail="showDetail"
-        />
+        <tfTable :table-data="dataList" :column="columns" :for-id="false" :pagination="false"
+          :currentpage="pageInfo.current" :pagesize="pageInfo.size" :total="pageInfo.tableTotal" :border="true"
+          :multiple="true" :fixed="true" :isdelete="false" :is-select="false" :stripe="true"
+          @handleCurrentChange="handleCurrentChange" @handleSizeChange="handleSizeChange"
+          @handleSelectionChange="handleSelectionChange" @rowDblclick="showDetail" @detail="showDetail" />
       </el-main>
     </el-container>
     <!-- 详情页 -->
-    <el-dialog
-      v-if="dialogVisible"
-      v-dialogDrag
-      top="20vh"
-      :title="dialogTitle"
-      :visible.sync="dialogVisible"
-      width="800px"
-      class="dialog"
-    >
+    <el-dialog v-if="dialogVisible" v-dialogDrag top="20vh" :title="dialogTitle" :visible.sync="dialogVisible"
+      width="800px" class="dialog">
       <tfDetail :detailData="detailData" :editState="editState" ref="dForm" />
       <template slot="footer">
-        <el-button
-          type="warning"
-          icon="el-icon-check"
-          @click="clickSave()"
-          v-if="!editState"
-          >确 定</el-button
-        >
-        <el-button  type="warning" icon="el-icon-close" @click="clickCancel()">关 闭</el-button>
+        <el-button type="warning" icon="el-icon-check" @click="clickSave()" v-if="!editState">确 定</el-button>
+        <el-button type="warning" icon="el-icon-close" @click="clickCancel()">关 闭</el-button>
       </template>
     </el-dialog>
   </div>
@@ -103,6 +45,7 @@ import { PayMode } from "@/views/mis/common/api/codingManagement.js";
 import tfTable from "@/views/mis/common/misTable/index.vue";
 import tfDetail from "./payMode-form.vue";
 export default {
+  name: "payMode",
   components: { tfTable, tfDetail },
   props: ["data"],
   data() {
@@ -117,7 +60,7 @@ export default {
       loading: false, // 控制表格查询时
       pageInfo: {
         current: 1,
-        size: 10,
+        size: 100,
         tableTotal: 1,
         "orders[0].asc": "true",
         "orders[0].column": "code",
@@ -193,7 +136,7 @@ export default {
       }
     },
   },
-  created() {},
+  created() { },
   mounted() {
     this.bindList();
   },