Hwt 3 anni fa
parent
commit
1651eb31c6

+ 2 - 2
operationSupport/src/router/dynamicMuen.js

@@ -77,8 +77,8 @@ const staticMuen = [
     //     component: () => import(/* webpackChunkName: "404" */ '@views/payService/landlordBill/index.vue')
     // },
     {
-        path: '/receivableExamine',
-        component: () => import(/* webpackChunkName: "404" */ '@views/payService/receivableExamine/index.vue')
+        path: '/patrolStandard',
+        component: () => import(/* webpackChunkName: "404" */ '@views/patrolManagement/patrolStandard.vue')
     },
     {
         path: '*',

+ 0 - 1
operationSupport/src/views/assetManagement/housingManagement/saveEdits.vue

@@ -432,7 +432,6 @@ export default {
         });
     },
     unitNameList () {
-
       this.unitList = [];
       this.$http.get('/czc-community/assets/building/house/find', { id: this.ruleForm.buildingId }).then((res) => {
 

+ 88 - 0
operationSupport/src/views/patrolManagement/components/communityTree.vue

@@ -0,0 +1,88 @@
+<template>
+  <div class="organ-tree">
+    <el-input
+      v-model="filterText"
+      placeholder="请输入关键字"
+      suffix-icon="el-icon-search"
+    ></el-input>
+    <div class="tree-style-box no-scrollbar">
+      <el-tree
+        class="tree-style"
+        :data="organList"
+        ref="tree"
+        node-key="id"
+        :highlight-current="true"
+        :props="defaultProps"
+        :expand-on-click-node="false"
+        @node-click="treeClick"
+        default-expand-all
+        :filter-node-method="filterNode"
+      >
+      </el-tree>
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'organTree',
+  data () {
+    return {
+      filterText: '',
+      organList: [],
+      defaultProps: {
+        label: 'communityName'
+      }
+    };
+  },
+  watch: {
+    filterText (val) {
+      this.$refs.tree.filter(val);
+    }
+  },
+  methods: {
+    getOrgTreeList () {
+      this.$http.get('/czc-community/assets/community/list').then(({ status, data, msg }) => {
+        if (status === 0 && data) {
+          this.organList = data;
+          this.$nextTick().then(() => {
+            const firstNode = document.querySelector('.el-tree-node');
+            firstNode.click();
+          });
+        }
+      });
+    },
+
+    filterNode (value, data) {
+      if (!value) return true;
+      return data.communityName.indexOf(value) !== -1;
+    },
+    treeClick (e) {
+      this.$emit('organId', e);
+    }
+  },
+  created () {
+    this.getOrgTreeList();
+  }
+};
+</script>
+
+<style lang="scss" scoped>
+.organ-tree {
+    width: 260px;
+    background: #ffffff;
+    padding: 20px;
+    box-sizing: border-box;
+    float: left;
+    height: 100%;
+    overflow: auto;
+    &::before {
+        clear: both;
+    }
+    .tree-style-box {
+        margin-top: 20px;
+        max-height: calc(100vh - 200px);
+        overflow: scroll;
+    }
+}
+</style>

+ 213 - 0
operationSupport/src/views/patrolManagement/patrolStandard.vue

@@ -0,0 +1,213 @@
+<template>
+  <div class="content main">
+    <community-tree @organId="currentOrganId"></community-tree>
+    <div class="content-right">
+      <div class="search">
+
+        <el-select
+          v-model="mixins_query.patrolType"
+          placeholder="请选择巡更类型"
+        >
+          <el-option
+            v-for="(item,index) in patrolTypeList"
+            :key="index"
+            :label="item.label"
+            :value="item.value"
+          >
+          </el-option>
+        </el-select>
+        <el-button
+          class="search-btn"
+          type="primary"
+          @click="mixins_search()"
+          :disabled="mixins_onQuery"
+          :loading="mixins_onQuery"
+          icon="el-icon-search"
+        >搜索</el-button>
+        <div class="search-icon">
+          <template>
+            <el-dropdown
+              type="primary"
+              @command="addCommand"
+            >
+              <span class="zoniot_font zoniot-icon-tianjia2"></span>
+              <el-dropdown-menu
+                slot="dropdown"
+                hide-on-click="false"
+                class="device-search-dropdown"
+              >
+                <el-dropdown-item command="add">单个添加</el-dropdown-item>
+                <el-dropdown-item command="batchAdd">
+                  <div class="upload_div">
+                    <xk-upload
+                      class="upload_class"
+                      @callback="mixins_search"
+                      :params="{ importType: 'LANDLORD' }"
+                    >
+                      <span slot="content">批量添加</span>
+                    </xk-upload>
+                  </div>
+                </el-dropdown-item>
+                <el-dropdown-item command="template">下载模板</el-dropdown-item>
+              </el-dropdown-menu>
+            </el-dropdown>
+          </template>
+          <el-tooltip
+            class="item"
+            effect="light"
+            placement="bottom"
+            content="删除"
+          >
+            <i
+              class="zoniot_font zoniot-icon-shanchu2"
+              @click="deluserbyidsFn"
+            ></i>
+          </el-tooltip>
+        </div>
+
+      </div>
+      <zz-table
+        :settings="{ showCheckbox: true, showIndex: true, stripe: true }"
+        :cols="cols"
+        :loading="mixins_onQuery"
+        :data="mixins_list"
+        :pageset="mixins_pageset"
+        @page-change="pageChange"
+        @selection-change="selectionChange"
+      ></zz-table>
+    </div>
+  </div>
+</template>
+
+
+
+<script>
+import communityTree from './components/communityTree.vue';
+import list from '@/js/list.js';
+export default {
+  mixins: [list],
+  components: {
+    communityTree
+  },
+  data () {
+    return {
+      patrolTypeList: [
+        {
+          label: '市容市貌',
+          value: '1'
+        },
+        {
+          label: '环境卫生',
+          value: '2'
+        },
+        {
+          label: '公共秩序',
+          value: '3'
+        },
+        {
+          label: '设备实施',
+          value: '4'
+        },
+        {
+          label: '消防安全',
+          value: '5'
+        },
+
+      ],
+      cols: [
+        {
+          label: '所属社区',
+          prop: 'communityName'
+        },
+        {
+          label: '巡更类型',
+          prop: 'patrolType',
+          format (val) {
+            if (val == '1') {
+              return '市容市貌'
+            } else if (val == '2') {
+              return '环境卫生'
+            } else if (val == '3') {
+              return '公共秩序'
+            } else if (val == '4') {
+              return '设备实施'
+            } else if (val == '5') {
+              return '消防安全'
+            }
+          }
+        },
+        {
+          label: '巡更内容',
+          prop: 'content',
+        },
+        {
+          label: '操作',
+          slot: 'opt',
+        },
+      ],
+      mixins_post: 'post',
+      currentId: ''
+    }
+  },
+  methods: {
+    currentOrganId (data) {
+      this.currentId = data.id || '';
+      this.getData();
+    },
+    getData () {
+      let instaData = { communityId: this.currentId, patrolType: this.mixins_query.patrolType, pageNum: 1, pageSize: 10 };
+      this.$http.post('/czc-community/patrol/standard/page', instaData).then(({ data, msg, status }) => {
+        // debugger
+      })
+    },
+    addCommand (command) {
+      if (command == 'add') {
+        new Promise((resolve) => {
+          this.$store.dispatch('addPopup', {
+            url: '/patrolManagement/popups/patrolAdd.vue',
+            width: '850px',
+            height: '581px',
+            props: {
+              // id: row.id,
+              callback: resolve
+            },
+            showConfirmButton: true,
+            showCancelButton: true,
+            // hideStar: true,
+            title: '添加巡更类型'
+          });
+        }).then(() => {
+          this.mixins_search();
+        });
+      } else if (command == 'template') {
+        alert('下载模板')
+      }
+    },
+    deluserbyidsFn () {
+      let ids = [];
+      if (!this.selectRow.length) {
+        this.$message.error('您尚未选择要删除的记录,请选择后再操作批量删除');
+        return;
+      }
+      this.selectRow.forEach((v) => {
+        ids.push(v.id);
+      });
+      this.$msgBox(`删除`, '删除后将无法恢复,请问是否继续?')
+        .then(() => {
+          this.$http.post('/czc-community/patrol/standard/delete', ids).then(({ status, data, msg }) => {
+            if (0 === status) {
+              this.$message({
+                type: 'success',
+                message: '删除成功!'
+              });
+              this.mixins_search();
+            }
+          });
+        })
+        .catch(() => { });
+    },
+  },
+  created () {
+  }
+}
+</script>

+ 3 - 5
operationSupport/src/views/patrolManagement/popups/pathSimplifierIns.js

@@ -84,7 +84,7 @@ export default {
             let _this = this;
             let that = this;
 
-            AMapUI.load(['ui/misc/PathSimplifier'], PathSimplifier => {
+            AMapUI.load(['ui/misc/PathSimplifier'], (PathSimplifier) => {
                 if (!PathSimplifier.supportCanvas) {
                     alert('当前环境不支持 Canvas!');
                     return;
@@ -210,7 +210,6 @@ export default {
                 // 如果已经到了终点,重新定位坐标
                 if (this.isCursorAtPathEnd && this.actualList.length > 0) {
                     this.map.setCenter(this.actualList[0]);
-
                 }
             } else if (type === 'pause') {
                 this.isPlay = true;
@@ -218,7 +217,7 @@ export default {
             }
             this.navgtr[type]();
             this.map.setFitView();
-        },
+        }
         // carReLocate() {
         //     // 鼠标从滑动条抬起时,重新定位
         //     if (this.currentPoint) {
@@ -234,6 +233,5 @@ export default {
         // s.style = 'text/javascript';
         // s.src = 'https://webapi.amap.com/ui/1.1/main.js';
         // document.body.appendChild(s);
-
     }
-};
+};

+ 74 - 0
operationSupport/src/views/patrolManagement/popups/patrolAdd.vue

@@ -0,0 +1,74 @@
+<template>
+  <div class="formContent">
+    <el-form
+      ref="formData"
+      :model="formData"
+      :rules="rules"
+      label-width="85px"
+      class="demo-ruleForm"
+    >
+
+      <div class="formContent-item_title">巡更类型定义</div>
+      <el-row>
+        <el-col :span="8">
+          <el-form-item
+            label="所属社区"
+            prop="communityId"
+            class="show-required-icon-star"
+          >
+
+            <el-select
+              v-model="formData.communityId"
+              placeholder="请选择社区"
+            >
+              <el-option
+                v-for="(item,index) in communityList"
+                :value="itme.value"
+                :label="item.label"
+                :key="index"
+              >
+              </el-option>
+            </el-select>
+
+          </el-form-item>
+        </el-col>
+      </el-row>
+    </el-form>
+  </div>
+</template>
+
+<script>
+export default {
+  props: ['params'],
+  data () {
+    return {
+      formData: {
+        communityId: '',
+      },
+      communityList: [],
+    }
+  },
+  methods: {
+    getOrgTreeList () {
+      this.$http.get('/czc-community/assets/community/list').then(({ status, data, msg }) => {
+        debugger
+        if (status == 0) {
+          this.communityList = [];
+          data.map((item, index) => {
+            this.communityList.push({
+              label: item.communityName,
+              value: item.id
+            })
+          });
+
+        }
+      })
+    }
+  },
+  created () {
+    this.getOrgTreeList();//获取社区内容
+  }
+}
+
+
+</script>

+ 10 - 1
operationSupport/src/views/payService/landlordBill/stePage/editAmount.vue

@@ -10,8 +10,10 @@
       prop="receivableAmount"
     >
       <el-input
-        v-model.number="formData.receivableAmount"
+        v-model="formData.receivableAmount"
         placeholder="请输入应收金额"
+        type="number"
+        class="Number"
       ></el-input>
     </el-form-item>
   </el-form>
@@ -66,4 +68,11 @@ export default {
 };
 </script>
 <style lang="scss" scoped>
+/deep/.Number input::-webkit-outer-spin-button,
+/deep/.Number input::-webkit-inner-spin-button {
+    -webkit-appearance: none;
+}
+/deep/.Number input[type='number'] {
+    -moz-appearance: textfield;
+}
 </style>

+ 10 - 1
operationSupport/src/views/payService/propertyFee/stepPage/editAmount.vue

@@ -10,8 +10,10 @@
       prop="receivableAmount"
     >
       <el-input
-        v-model.number="formData.receivableAmount"
+        v-model="formData.receivableAmount"
         placeholder="请输入应收金额"
+        type="number"
+        class="Number"
       ></el-input>
     </el-form-item>
   </el-form>
@@ -65,4 +67,11 @@ export default {
 };
 </script>
 <style lang="scss" scoped>
+/deep/.Number input::-webkit-outer-spin-button,
+/deep/.Number input::-webkit-inner-spin-button {
+    -webkit-appearance: none;
+}
+/deep/.Number input[type='number'] {
+    -moz-appearance: textfield;
+}
 </style>