保安服务企业管理-验收版本
liuyg
2021-09-13 5686f3690a7501edf250dd9167bf44f2f5f01a3b
去除打印,派遣修改
6 files modified
147 ■■■■ changed files
src/views/dispatch/dispatch.vue 88 ●●●● patch | view | raw | blame | history
src/views/securityAnalysis/child/assignment.vue 4 ●●●● patch | view | raw | blame | history
src/views/securityAnalysis/child/certificate.vue 2 ●●● patch | view | raw | blame | history
src/views/securityAnalysis/child/dispatch.vue 49 ●●●● patch | view | raw | blame | history
src/views/securityAnalysis/child/examination.vue 2 ●●● patch | view | raw | blame | history
src/views/securityAnalysis/child/situation.vue 2 ●●● patch | view | raw | blame | history
src/views/dispatch/dispatch.vue
@@ -3,7 +3,8 @@
        <div class="dispatch">
            <!-- <avue-tabs :option="optionTABS" @change="handleChangeTABS"></avue-tabs>
    <span v-if="typeTABS.prop === 'tab1'"> -->
            <avue-crud :option="option"
      <avue-crud
        :option="option"
                       :data="data"
                       :page.sync="page"
                       ref="crudrec"
@@ -16,39 +17,46 @@
                       @row-del="rowDel"
                       @selection-change="selectionChange"
                       @refresh-change="refreshChange"
                       @row-click="rowClick">
        @row-click="rowClick"
      >
                <template slot="menuLeft">
                    <el-button type="danger"
          <el-button
            type="danger"
                               size="small"
                               plain
                               icon="el-icon-delete"
                               @click="handleDelete">删 除
            @click="handleDelete"
            >删 除
                    </el-button>
                    <el-button type="success"
          <el-button
            type="success"
                               size="small"
                               plain
                               icon="el-icon-upload2"
                               @click="handleImport">批量导入
            @click="handleImport"
            >批量导入
                    </el-button>
                </template>
                <template slot-scope="{ row }"
                          slot="jurisdiction">
        <template slot-scope="{ row }" slot="jurisdiction">
                    {{ row.jurisdiction == -1 ? "" : row.jurisdiction }}
                </template>
            </avue-crud>
            <el-dialog title="派遣单位导入"
      <el-dialog
        title="派遣单位导入"
                       append-to-body
                       :visible.sync="excelBox"
                       width="555px">
                <avue-form :option="excelOption"
        width="555px"
      >
        <avue-form
          :option="excelOption"
                           v-model="excelForm"
                           :upload-after="uploadAfter">
          :upload-after="uploadAfter"
        >
                    <template slot="excelTemplate">
                        <el-button type="primary"
                                   @click="handleTemplate">
            <el-button type="primary" @click="handleTemplate">
                            点击下载<i class="el-icon-download el-icon--right"></i>
                        </el-button>
                    </template>
@@ -226,12 +234,9 @@
                        // span: 12,
                        labelWidth: 118,
                    },
                    {
                        label: "保安公司",
                        prop: "deptId",
            prop: "deptName",
                        type: "tree",
                        overHidden: true,
                        dicUrl:
@@ -262,6 +267,40 @@
                        // hide: true,
                        // span: 11,
                    },
          //备用  不删 ↑针对没有depid的公司名字转换
          //   {
          //     label: "保安公司",
          //     prop: "deptId",
          //     type: "tree",
          //     overHidden: true,
          //     dicUrl:
          //       "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
          //     props: {
          //       label: "title",
          //       value: "id",
          //     },
          //     // hide: true,
          //     // hide: !website.tenantMode,
          //     // addDisplay: website.tenantMode,
          //     // editDisplay: website.tenantMode,
          //     // viewDisplay: website.tenantMode,
          //     rules: [
          //       {
          //         required: true,
          //         message: "请选择保安公司",
          //         trigger: "click",
          //       },
          //     ],
          //     labelWidth: 118,
          //     width: 230,
          //     searchLabelWidth: 80,
          //     search: true,
          //     searchSpan: 4,
          //     // editDisplay: false,
          //     // addDisplay: false,
          //     // hide: true,
          //     // span: 11,
          //   },
                    {
                        label: "保安服务类型",
                        prop: "serveType",
@@ -383,7 +422,7 @@
                                trigger: "click",
                            },
                        ],
                    }
          },
                ],
            },
        };
@@ -416,7 +455,7 @@
        },
        ...mapState({
            userInfo: (state) => state.user.userInfo,
        })
    }),
    },
    methods: {
        handleChangeTABS (column) {
@@ -463,6 +502,11 @@
            // }
        },
        searchChange (params, done) {
      if (params.deptName) {
        params.deptId = params.deptName;
      }
      delete params.deptName;
      //   console.log(params);
            this.query = params;
            this.page.currentPage = 1;
            this.onLoad(this.page, params);
@@ -585,7 +629,7 @@
                };
            }
            console.log(values);
      // console.log(values);
            getdata(
                page.currentPage,
@@ -593,10 +637,10 @@
                // Object.assign(params, this.query)
                values
            ).then((res) => {
                // console.log(res);
                const data = res.data.data;
                this.page.total = data.total;
                this.data = data.records;
        console.log(this.data);
                for (var k in this.data) {
                    // this.data[k]["deptId"] = that.userInfo.dept_id;
                    this.data[k]["tenantName"] = that.userInfo.user_name;
src/views/securityAnalysis/child/assignment.vue
@@ -274,7 +274,7 @@
      if (this.card.jurisdiction == 1123598813738675201) {
        this.card.jurisdiction = "";
      }
      console.log(this.query1);
      // console.log(this.query1);
      const releaseTimeRange = this.query1.releaseTimeRange;
      if (releaseTimeRange) {
        params = {
@@ -316,7 +316,7 @@
      this.query1 = {};
      this.page1.currentPage = 1;
      this.refreshChange();
      console.log(212);
      // console.log(212);
    },
  },
};
src/views/securityAnalysis/child/certificate.vue
@@ -200,7 +200,7 @@
      this.query1 = {};
      this.page1.currentPage = 1;
      this.refreshChange();
      console.log(212);
      // console.log(212);
    },
  },
};
src/views/securityAnalysis/child/dispatch.vue
@@ -75,15 +75,13 @@
            // span: 12,
            labelWidth: 118,
          },
          {
            label: "保安公司",
            prop: "deptId",
            prop: "deptName",
            type: "tree",
            overHidden: true,
            dicUrl:
              "/api/blade-system/dept/security_lazy-tree?jurisdiction=" +
              jurisdiction,
              "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
            props: {
              label: "title",
              value: "id",
@@ -110,6 +108,41 @@
            // hide: true,
            // span: 11,
          },
          //备用  不删 ↑针对没有depid的公司名字转换
          // {
          //   label: "保安公司",
          //   prop: "deptId",
          //   type: "tree",
          //   overHidden: true,
          //   dicUrl:
          //     "/api/blade-system/dept/security_lazy-tree?jurisdiction=" +
          //     jurisdiction,
          //   props: {
          //     label: "title",
          //     value: "id",
          //   },
          //   // hide: true,
          //   // hide: !website.tenantMode,
          //   // addDisplay: website.tenantMode,
          //   // editDisplay: website.tenantMode,
          //   // viewDisplay: website.tenantMode,
          //   rules: [
          //     {
          //       required: true,
          //       message: "请选择保安公司",
          //       trigger: "click",
          //     },
          //   ],
          //   labelWidth: 118,
          //   width: 230,
          //   searchLabelWidth: 80,
          //   search: true,
          //   searchSpan: 4,
          //   // editDisplay: false,
          //   // addDisplay: false,
          //   // hide: true,
          //   // span: 11,
          // },
          {
            label: "保安服务类型",
            prop: "serveType",
@@ -274,7 +307,7 @@
      if (this.card.jurisdiction == 1123598813738675201) {
        this.card.jurisdiction = "";
      }
      console.log(this.query1);
      // console.log(this.query1);
      const releaseTimeRange = this.query1.releaseTimeRange;
      if (releaseTimeRange) {
        params = {
@@ -307,6 +340,10 @@
      this.getPractitionersPageInfo(this.page1, this.query1);
    },
    searchChange(params, done) {
      if (params.deptName) {
        params.deptId = params.deptName;
      }
      delete params.deptName;
      this.query1 = params;
      this.page1.currentPage = 1;
      this.refreshChange();
@@ -316,7 +353,7 @@
      this.query1 = {};
      this.page1.currentPage = 1;
      this.refreshChange();
      console.log(212);
      // console.log(212);
    },
  },
};
src/views/securityAnalysis/child/examination.vue
@@ -78,7 +78,7 @@
  methods: {
    getPractitionersPageInfo(page, params = {}) {
      // this.data1 = this.czdata;
      console.log(page);
      // console.log(page);
      params = {
        ...params,
        ...this.card,
src/views/securityAnalysis/child/situation.vue
@@ -196,7 +196,7 @@
      this.query1 = {};
      this.page1.currentPage = 1;
      this.refreshChange();
      console.log(212);
      // console.log(212);
    },
  },
};