保安监管系统-验收版本
liuyg
2021-11-25 f6d09ede9885c16d26fd1c70f025533668023376
验收文档修改
8 files modified
1 files added
225 ■■■■■ changed files
src/api/securityCompany/securityCompany.js 13 ●●●●● patch | view | raw | blame | history
src/views/commandQuery/taskDistribution.vue 29 ●●●●● patch | view | raw | blame | history
src/views/securityCompany/companyDetails.vue 13 ●●●●● patch | view | raw | blame | history
src/views/securityCompany/computents/enclosure.vue 1 ●●●● patch | view | raw | blame | history
src/views/securityCompany/computents/equipment.vue 3 ●●●● patch | view | raw | blame | history
src/views/securityCompany/computents/punish.vue 3 ●●●● patch | view | raw | blame | history
src/views/securityCompany/computents/service.vue 1 ●●●● patch | view | raw | blame | history
src/views/securityCompany/computents/serviceS.vue 157 ●●●●● patch | view | raw | blame | history
src/views/securityCompany/computents/staff.vue 5 ●●●●● patch | view | raw | blame | history
src/api/securityCompany/securityCompany.js
@@ -51,6 +51,19 @@
    })
}
export const getListedispatcherUnit = (current, size, params, deptId) => {
    return request({
        url: '/api/dispatcherUnit/page',
        method: 'get',
        params: {
            ...params,
            current,
            size,
            deptId
        }
    })
}
export const getListeenclosure = (current, size, params, deptid) => {
    return request({
        url: '/api/blade-resource/attach/list',
src/views/commandQuery/taskDistribution.vue
@@ -2,7 +2,7 @@
 * @Author: Morpheus
 * @Date: 2021-07-07 17:30:05
 * @Last Modified by: liu
 * @Last Modified time: 2021-09-15 16:53:45
 * @Last Modified time: 2021-11-25 10:28:51
 * menu-name 监管信息
 */
<template>
@@ -184,7 +184,26 @@
            //     editDisplay: false,
            //     addDisplay: false
          },
          {
            label: "指令时间",
            prop: "releaseTimeRange",
            type: "datetime",
            format: "yyyy-MM-dd hh:mm:ss",
            valueFormat: "yyyy-MM-dd hh:mm:ss",
            searchRange: true,
            hide: true,
            addDisplay: false,
            editDisplay: false,
            viewDisplay: false,
            search: true,
            rules: [
              {
                required: true,
                message: "请输入指令时间",
                trigger: "blur",
              },
            ],
          },
          {
            label: "接收指令人",
            prop: "receiveName",
@@ -333,6 +352,12 @@
    onLoad(page, params = {}) {
      // this.loading = false;
      this.loading = true;
      if (this.query.releaseTimeRange) {
        this.query["startTime"] = this.query.releaseTimeRange[0];
        this.query["endTime"] = this.query.releaseTimeRange[1];
        delete this.query.releaseTimeRange;
      }
      console.log(Object.assign(params, this.query));
      getLisperetaskDistribution(
        page.currentPage,
        page.pageSize,
src/views/securityCompany/companyDetails.vue
@@ -2,7 +2,7 @@
 * @Author: Morpheus
 * @Date: 2021-07-05 16:31:54
 * @Last Modified by: liu
 * @Last Modified time: 2021-11-24 17:08:40
 * @Last Modified time: 2021-11-25 10:09:07
 * menu-name 保安公司详细资料
 */
<template>
@@ -293,12 +293,15 @@
              <punish :form="form"></punish>
            </el-tab-pane>
            <el-tab-pane label="服务对象" name="eighth">
              <serviceS :form="form"></serviceS>
            </el-tab-pane>
            <el-tab-pane label="派遣信息" name="ninth">
              <service :form="form"></service>
            </el-tab-pane>
            <!-- <el-tab-pane label="其他附件" name="eighth">
              <enclosure :form="form"></enclosure>
            </el-tab-pane> -->
            <el-tab-pane label="营业执照" name="ninth">
            <el-tab-pane label="营业执照" name="tenth">
              <div class="businessLicenses">
                <el-container>
                  <el-main>
@@ -315,7 +318,7 @@
                </el-container>
              </div>
            </el-tab-pane>
            <el-tab-pane label="许可证" name="tenth">
            <el-tab-pane label="许可证" name="eleven">
              <div class="businessLicenses">
                <el-container>
                  <el-main>
@@ -348,7 +351,8 @@
import equipment from "./computents/equipment.vue"; //装备管理
import staff from "./computents/staff.vue"; //保安员信息
import punish from "./computents/punish.vue"; //处罚信息
import service from "./computents/service.vue"; //服务对象
import serviceS from "./computents/serviceS.vue"; //服务对象
import service from "./computents/service.vue"; //派遣
// import enclosure from "./computents/enclosure.vue"; //其他附件
import { getList } from "@/api/securityCompany/security"; //保安公司
@@ -359,6 +363,7 @@
    staff: staff,
    punish: punish,
    service: service,
    serviceS,
    // enclosure: enclosure,
  },
  data() {
src/views/securityCompany/computents/enclosure.vue
@@ -17,6 +17,7 @@
      @current-change="currentChange"
      @size-change="sizeChange"
      @refresh-change="refreshChange"
      @on-load="onLoad"
    >
      <!-- @on-load="onLoad" -->
      <template slot="menuLeft">
src/views/securityCompany/computents/equipment.vue
@@ -12,6 +12,7 @@
    @search-reset="equipmentSearchReset"
    @current-change="equipmentCurrentChange"
    @size-change="equipmentSizeChange"
    @on-load="equipmentOnLoad"
  >
  </avue-crud>
  <!-- @on-load="equipmentOnLoad" -->
@@ -234,7 +235,7 @@
  },
  mounted() {
    console.log(this.form, "equipmentData");
    this.equipmentOnLoad(this.equipmentPage);
    // this.equipmentOnLoad(this.equipmentPage);
  },
  methods: {
    equipmentOnLoad(page, params = {}) {
src/views/securityCompany/computents/punish.vue
@@ -13,6 +13,7 @@
    @current-change="punishCurrentChange"
    @size-change="punishSizeChange"
    @refresh-change="punishRefreshcCange"
    @on-load="punishOnLoad"
  >
  </avue-crud>
  <!-- @on-load="punishOnLoad" -->
@@ -65,7 +66,7 @@
  },
  mounted() {
    // console.log(this.form, "pu");
    this.punishOnLoad(this.punishPage);
    // this.punishOnLoad(this.punishPage);
  },
  methods: {
    punishOnLoad(page, params = {}) {
src/views/securityCompany/computents/service.vue
@@ -12,6 +12,7 @@
    @search-reset="serviceSearchReset"
    @current-change="serviceCurrentChange"
    @size-change="serviceSizeChange"
    @on-load="serviceOnLoad"
  >
  </avue-crud>
  <!-- @on-load="serviceOnLoad" -->
src/views/securityCompany/computents/serviceS.vue
New file
@@ -0,0 +1,157 @@
<template>
  <avue-crud
    class="company-box"
    :option="serviceOption"
    :search.sync="serviceSearch"
    :table-loading="serviceLoading"
    :data="serviceData"
    ref="serviceCrud"
    :page.sync="servicePage"
    @selection-change="serviceSelectionChange"
    @search-change="serviceSearchChange"
    @search-reset="serviceSearchReset"
    @current-change="serviceCurrentChange"
    @size-change="serviceSizeChange"
    @on-load="serviceOnLoad"
  >
  </avue-crud>
  <!-- @on-load="serviceOnLoad" -->
</template>
<script>
import { getListedispatcherUnit } from "@/api/securityCompany/securityCompany";
export default {
  props: ["form"],
  data() {
    return {
      serviceOption: {
        // 操作栏多余按钮去除
        delBtn: false,
        editBtn: false,
        searchShowBtn: false,
        addBtn: false,
        selection: true,
        menu: false,
        border: true,
        align: "center",
        height: "auto",
        calcHeight: 270,
        tip: false,
        searchShow: false,
        searchMenuSpan: 4,
        index: false,
        viewBtn: true,
        //dialogType: 'drawer',
        dialogClickModal: false,
        // 操作栏宽度
        menuWidth: 156,
        column: [
          {
            label: "派遣单位",
            prop: "name",
            search: true,
            searchSpan: 4,
            display: false,
          },
          {
            label: "联系人",
            prop: "linkman",
            display: false,
            width: 120,
            search: true,
            searchSpan: 4,
          },
          {
            label: "联系电话",
            prop: "phone",
            display: false,
            width: 200,
          },
          {
            label: "创建时间",
            prop: "createTime",
            type: "date",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
            mock: {
              type: "datetime",
              format: "yyyy-MM-dd",
            },
            display: false,
            width: 180,
          },
          {
            label: "派遣地址",
            prop: "address",
            display: false,
            width: 280,
          },
        ],
      },
      serviceSearch: {},
      serviceLoading: true,
      serviceData: [],
      servicePage: {
        pageSize: 10,
        currentPage: 1,
        total: 0,
      },
      serviceQuery: {},
      serviceSelectionList: [],
    };
  },
  mounted() {
    console.log(this.form, "serviceData");
    // this.serviceOnLoad(this.servicePage);
  },
  methods: {
    serviceOnLoad(page, params = {}) {
      this.serviceLoading = true;
      getListedispatcherUnit(
        page.currentPage,
        page.pageSize,
        Object.assign(params, this.serviceQuery),
        this.form.departmentid
      ).then((res) => {
        const data = res.data.data;
        this.servicePage.total = data.total;
        this.serviceData = data.records;
        console.log(this.serviceData, "this.serviceData");
        this.serviceLoading = false;
        this.$refs.serviceCrud.refreshTable();
        this.$refs.serviceCrud.doLayout();
        this.serviceSelectionClear();
      });
    },
    serviceSelectionClear() {
      this.serviceSelectionList = [];
      this.$refs.serviceCrud.toggleSelection();
    },
    serviceSelectionChange(list) {
      this.serviceSelectionList = list;
    },
    serviceSearchChange(params, done) {
      this.serviceQuery = params;
      this.servicePage.currentPage = 1;
      this.serviceOnLoad(this.servicePage, params);
      done();
    },
    serviceSearchReset() {
      this.serviceQuery = {};
      this.serviceOnLoad(this.servicePage);
    },
    serviceCurrentChange(currentPage) {
      this.servicePage.currentPage = currentPage;
    },
    serviceSizeChange(pageSize) {
      this.servicePage.pageSize = pageSize;
    },
  },
};
</script>
<style>
</style>
src/views/securityCompany/computents/staff.vue
@@ -12,6 +12,7 @@
    @search-reset="staffSearchReset"
    @current-change="staffCurrentChange"
    @size-change="staffSizeChange"
    @on-load="staffOnLoad"
  >
    <!-- @on-load="staffOnLoad" -->
  </avue-crud>
@@ -254,8 +255,8 @@
    };
  },
  mounted() {
    console.log(this.form, "staff");
    this.staffOnLoad(this.staffPage);
    // console.log(this.form, "staff");
    // this.staffOnLoad(this.staffPage);
  },
  methods: {
    staffOnLoad(page, params = {}) {