liukangdong
2024-05-16 f30ccbaa6b7fd1292bcb61afd6d5dd0c7b6bf410
‘’
已添加3个文件
已修改4个文件
1491 ■■■■ 文件已修改
admin/package-lock.json 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/package.json 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/assets/style/style.scss 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/views/business/approvalConfiguration.vue 844 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/views/business/page-components/ReportDetail.vue 422 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/views/business/reportRecord.vue 85 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/views/business/visitOrigin.vue 105 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/package-lock.json
@@ -2855,8 +2855,7 @@
    "big.js": {
      "version": "5.2.2",
      "resolved": "https://registry.nlark.com/big.js/download/big.js-5.2.2.tgz?cache=0&sync_timestamp=1620132748267&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fbig.js%2Fdownload%2Fbig.js-5.2.2.tgz",
      "integrity": "sha1-ZfCvOC9Xi83HQr2cKB6cstd2gyg=",
      "dev": true
      "integrity": "sha1-ZfCvOC9Xi83HQr2cKB6cstd2gyg="
    },
    "binary-extensions": {
      "version": "2.2.0",
@@ -4527,6 +4526,11 @@
      "integrity": "sha1-LnG/CxGRU9u0zE6I2epaz7UNwFw=",
      "dev": true
    },
    "dayjs": {
      "version": "1.11.11",
      "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.11.tgz",
      "integrity": "sha512-okzr3f11N6WuqYtZSvm+F776mB41wRZMhKP+hc34YdW+KmtYYK9iqvHSwo2k9FEH3fhGXvOPV6yz2IcSrfRUDg=="
    },
    "de-indent": {
      "version": "1.0.2",
      "resolved": "https://registry.npm.taobao.org/de-indent/download/de-indent-1.0.2.tgz",
@@ -5057,6 +5061,15 @@
      "resolved": "https://registry.npm.taobao.org/ejs/download/ejs-2.7.4.tgz?cache=0&sync_timestamp=1612643435705&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fejs%2Fdownload%2Fejs-2.7.4.tgz",
      "integrity": "sha1-SGYSh1c9zFPjZsehrlLDoSDuybo=",
      "dev": true
    },
    "el-tree-transfer": {
      "version": "2.4.7",
      "resolved": "https://registry.npmjs.org/el-tree-transfer/-/el-tree-transfer-2.4.7.tgz",
      "integrity": "sha512-wcjQyqzmiJMDhF3qHR1NcqXp27Q65Td1EsMOVkqqOo9Z2mkVC+cGJEu3V4L90x8c1XgEciQL7tMuSjCP7/8G4g==",
      "requires": {
        "lodash": "^4.17.20",
        "wl-core": "^1.1.4"
      }
    },
    "electron-to-chromium": {
      "version": "1.3.728",
@@ -14739,6 +14752,15 @@
      "resolved": "https://registry.npmmirror.com/wildcard/-/wildcard-1.1.2.tgz",
      "integrity": "sha512-DXukZJxpHA8LuotRwL0pP1+rS6CS7FF2qStDDE1C7DDg2rLud2PXRMuEDYIPhgEezwnlHNL4c+N6MfMTjCGTng=="
    },
    "wl-core": {
      "version": "1.1.9",
      "resolved": "https://registry.npmjs.org/wl-core/-/wl-core-1.1.9.tgz",
      "integrity": "sha512-7L83qEnrVW3YmPVqSwnlagoWJyVq/uSXkCFzND64nwtSdDm7o1RZQWiVgQcEilZxE0qLrRQKmjuAihNT6fWCjA==",
      "requires": {
        "big.js": "^5.2.2",
        "dayjs": "^1.8.25"
      }
    },
    "word-wrap": {
      "version": "1.2.3",
      "resolved": "https://registry.npm.taobao.org/word-wrap/download/word-wrap-1.2.3.tgz",
admin/package.json
@@ -16,6 +16,7 @@
    "axios": "^0.21.1",
    "core-js": "^3.6.5",
    "echarts": "^5.4.3",
    "el-tree-transfer": "^2.4.7",
    "element-tiptap": "^1.27.1",
    "element-ui": "^2.3.6",
    "js-cookie": "^2.2.1",
admin/src/assets/style/style.scss
@@ -210,7 +210,13 @@
.mb20 {
  margin-bottom: 20px;
}
.red{
  color: red !important;
}
.table_btns{
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.ml20 {
  margin-left: 20px;
}
admin/src/views/business/approvalConfiguration.vue
@@ -1,132 +1,201 @@
<template>
    <TableLayout>
        <template v-slot:table-wrap>
            <div class="config">
                <div class="config_list">
                    <div class="config_list_head">
                        <span>配置流程</span>
                        <el-button style="background: #435EBE;" type="primary">发布</el-button>
                    </div>
                    <div class="config_list_list">
                        <div class="item">
                            <div class="item_label">发起人</div>
                            <div class="item_child">
                                <div class="item_child_label">程春林</div>
                                <div class="item_child_val">访客</div>
                            </div>
                            <div class="item_down">
                                <div class="item_down_x">
                                    <img src="@/assets/images/peizhi_ar@2x.png" alt="" />
                                </div>
                            </div>
                        </div>
                        <div :class="item.active ? 'item yellow active' : 'item yellow'" v-for="(item, index) in list" :key="index" @click="seleItem(index)">
                            <div class="item_label">审批人</div>
                            <div class="item_child" style="cursor: pointer;">
                                <img class="item_child_right" src="@/assets/images/ar_more@2x.png" />
                                <div class="item_child_label">被访人</div>
                                <div class="item_child_val">访客</div>
                            </div>
                            <div class="item_down">
                                <img class="item_down_add" v-if="list.length - 1 === index" src="@/assets/images/peizhi_add@2x.png" @click.stop="add" />
                                <div class="item_down_x">
                                    <img src="@/assets/images/peizhi_ar@2x.png" alt="" />
                                </div>
                            </div>
                        </div>
                        <div class="item blue" style="height: 81px;">
                            <div class="item_label">抄送人</div>
                            <div class="item_child" style="cursor: pointer;height: 40px;">
                                <img class="item_child_right" src="@/assets/images/ar_more@2x.png" />
                                <div class="item_child_val" style="margin-top: 3px;">请设置抄送人</div>
                            </div>
                            <div class="item_down">
                                <div class="item_down_x">
                                    <img src="@/assets/images/peizhi_ar@2x.png" alt="" />
                                </div>
                            </div>
                        </div>
                        <div class="footer">
                            <span>流程结束</span>
                        </div>
                    </div>
  <TableLayout>
    <template v-slot:table-wrap>
      <el-tabs v-model="activeName">
        <el-tab-pane label="普通访客" name="first"></el-tab-pane>
        <el-tab-pane label="施工访客" name="second"></el-tab-pane>
      </el-tabs>
      <div class="config">
        <div class="config_list">
          <div class="config_list_head">
            <span>配置流程</span>
            <el-button style="background: #435ebe" type="primary"
              >发布</el-button
            >
          </div>
          <div class="config_list_list">
            <div class="item">
              <div class="item_label">发起人</div>
              <div class="item_child">
                <div class="item_child_label">程春林</div>
                <div class="item_child_val">访客</div>
              </div>
              <div class="item_down">
                <div class="item_down_x">
                  <img src="@/assets/images/peizhi_ar@2x.png" alt="" />
                </div>
                <div class="config_data">
                    <div class="config_data_item">
                        <div class="config_data_item_label">
                            é€‰æ‹©è¯¥èŠ‚ç‚¹çš„å®¡æ‰¹äºº
                        </div>
                        <el-radio-group v-model="radio">
                            <el-radio :label="0">被访人</el-radio>
                            <el-radio :label="1">指定人员</el-radio>
                            <el-radio :label="2">部门主管</el-radio>
                        </el-radio-group>
                        <div class="config_data_item_reviewed" v-if="radio === 1">
                            <div class="config_data_item_reviewed_label">
                                <span>指定审核人</span>
                                <span>不超过20人</span>
                            </div>
                            <div class="config_data_item_reviewed_content">
                                <div class="config_data_item_reviewed_content_item">
                                    <span>栓子哥</span>
                                    <i class="el-icon-close"></i>
                                </div>
                                <span class="add">+添加</span>
                            </div>
                        </div>
                        <div class="config_data_item_reviewed" v-if="radio === 2">
                            <div class="config_data_item_reviewed_label">
                                <span>部门主管</span>
                            </div>
                            <div class="config_data_item_reviewed_r">
                                <span>被访人的</span>
                                <el-select v-model="value" placeholder="请选择" style="margin: 0 20px 0 10px;">
                                    <el-option
                                        v-for="item in options"
                                        :key="item.value"
                                        :label="item.label"
                                        :value="item.value">
                                    </el-option>
                                </el-select>
                                <el-checkbox v-model="checked">找不到主管时,由上级主管代审核</el-checkbox>
                            </div>
                        </div>
                    </div>
                    <div class="config_data_item" v-if="radio !== 0">
                        <div class="config_data_item_label">
                            å®¡æ‰¹æ–¹å¼
                            <span>审批人为多个时,采用的审批方式</span>
                        </div>
                        <el-radio-group v-model="radio1" style="display: flex; flex-direction: column;">
                            <el-radio :label="0" style="margin-bottom: 20px;">或签(其中一名审批人同意或拒绝即可)</el-radio>
                            <el-radio :label="1">会签(所有审批人都同意才可通过)</el-radio>
                        </el-radio-group>
                    </div>
                    <div class="config_data_item" v-if="radio === 2">
                        <div class="config_data_item_label">
                            å®¡æ‰¹äººä¸ºç©ºæ—¶
                        </div>
                        <el-checkbox-group v-model="checkList" style="display: flex; flex-direction: column;">
                            <el-checkbox label="复选框 A" style="margin-bottom: 20px;"></el-checkbox>
                            <el-checkbox label="复选框 B" style="margin-bottom: 20px;"></el-checkbox>
                            <el-checkbox label="复选框 C"></el-checkbox>
                        </el-checkbox-group>
                    </div>
                    <div class="config_data_submit" v-if="radio !== 0">
                        <el-button style="background: #435EBE;" type="primary">保持配置项</el-button>
                    </div>
                </div>
              </div>
            </div>
        </template>
    </TableLayout>
            <div
              :class="item.active ? 'item yellow active' : 'item yellow'"
              v-for="(item, index) in list"
              :key="index"
              @click="seleItem(index)"
            >
              <div class="item_label">审批人</div>
              <div class="item_child" style="cursor: pointer">
                <img
                  class="item_child_right"
                  src="@/assets/images/ar_more@2x.png"
                />
                <div class="item_child_label">被访人</div>
                <div class="item_child_val">访客</div>
              </div>
              <div class="item_down">
                <!-- <img
                  class="item_down_add"
                  v-if="list.length - 1 === index"
                  src="@/assets/images/peizhi_add@2x.png"
                  @click.stop="add"
                /> -->
                <div class="item_down_x">
                  <img src="@/assets/images/peizhi_ar@2x.png" alt="" />
                </div>
              </div>
            </div>
            <div class="item blue" style="height: 81px">
              <div class="item_label">抄送人</div>
              <div class="item_child" style="cursor: pointer; height: 40px">
                <img
                  class="item_child_right"
                  src="@/assets/images/ar_more@2x.png"
                />
                <div class="item_child_val" style="margin-top: 3px">
                  è¯·è®¾ç½®æŠ„送人
                </div>
              </div>
              <div class="item_down">
                <div class="item_down_x">
                  <img src="@/assets/images/peizhi_ar@2x.png" alt="" />
                </div>
              </div>
            </div>
            <div class="footer">
              <span>流程结束</span>
            </div>
          </div>
        </div>
        <div class="config_data">
          <div class="config_data_item">
            <div class="config_data_item_label">选择该节点的审批人</div>
            <el-radio-group v-model="radio">
              <el-radio :label="0">被访人</el-radio>
              <el-radio :label="1">指定人员</el-radio>
              <el-radio :label="2">部门主管</el-radio>
            </el-radio-group>
            <div class="config_data_item_reviewed" v-if="radio === 1">
              <div class="config_data_item_reviewed_label">
                <span>指定审核人</span>
                <span>不超过20人</span>
              </div>
              <div class="config_data_item_reviewed_content">
                <div class="config_data_item_reviewed_content_item">
                  <span>栓子哥</span>
                  <i class="el-icon-close"></i>
                </div>
                <span class="add" @click="selStaff">+添加</span>
              </div>
            </div>
            <div class="config_data_item_reviewed" v-if="radio === 2">
              <div class="config_data_item_reviewed_label">
                <span>部门主管</span>
              </div>
              <div class="config_data_item_reviewed_r">
                <span>被访人的</span>
                <el-select
                  v-model="value"
                  placeholder="请选择"
                  style="margin: 0 20px 0 10px"
                >
                  <el-option
                    v-for="item in options"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  >
                  </el-option>
                </el-select>
                <el-checkbox v-model="checked"
                  >找不到主管时,由上级主管代审核</el-checkbox
                >
              </div>
            </div>
          </div>
          <div class="config_data_item" v-if="radio !== 0">
            <div class="config_data_item_label">
              å®¡æ‰¹æ–¹å¼
              <span>审批人为多个时,采用的审批方式</span>
            </div>
            <el-radio-group
              v-model="radio1"
              style="display: flex; flex-direction: column"
            >
              <el-radio :label="0" style="margin-bottom: 20px"
                >或签(其中一名审批人同意或拒绝即可)</el-radio
              >
              <el-radio :label="1">会签(所有审批人都同意才可通过)</el-radio>
            </el-radio-group>
          </div>
          <div class="config_data_item" v-if="radio === 2">
            <div class="config_data_item_label">审批人为空时</div>
            <el-checkbox-group
              v-model="checkList"
              style="display: flex; flex-direction: column"
            >
              <el-checkbox
                label="复选框 A"
                style="margin-bottom: 20px"
              ></el-checkbox>
              <el-checkbox
                label="复选框 B"
                style="margin-bottom: 20px"
              ></el-checkbox>
              <el-checkbox label="复选框 C"></el-checkbox>
            </el-checkbox-group>
          </div>
          <div class="config_data_submit" v-if="radio !== 0">
            <el-button style="background: #435ebe" type="primary"
              >保持配置项</el-button
            >
          </div>
        </div>
      </div>
    </template>
    <!--  -->
    <el-dialog title="选择员工" :visible.sync="isShowTransfer" width="800px">
      <tree-transfer
        v-model="param.menuIds"
        :title="['未选', '已选']"
        :from_data="fromData"
        :to_data="selData"
        :defaultProps="{ label: 'label' }"
        mode="transfer"
        height="500px"
        filter
        openAll
        ref="treeTransfer"
      >
      </tree-transfer>
      <span slot="footer" class="dialog-footer">
        <el-button @click="isShowTransfer = false">取 æ¶ˆ</el-button>
        <el-button type="primary" @click="isShowTransfer = false"
          >ç¡® å®š</el-button
        >
      </span>
    </el-dialog>
  </TableLayout>
</template>
<script>
import TableLayout from '@/layouts/TableLayout'
import treeTransfer from 'el-tree-transfer'
export default {
  name: 'config',
  components: { TableLayout },
  data () {
  components: {
    TableLayout,
    treeTransfer
  },
  data() {
    return {
      list: [
        {
@@ -139,17 +208,60 @@
      radio: 0,
      radio1: 0,
      checked: '',
      checkList: []
      checkList: [],
      param: {},
      activeName: 'first',
      isShowTransfer: false,
      fromData: [
        {
          id: '1',
          pid: 0,
          label: '一级 1',
          children: [
            {
              id: '1-1',
              pid: '1',
              label: '二级 1-1',
              disabled: true,
              children: []
            },
            {
              id: '1-2',
              pid: '1',
              label: '二级 1-2',
              children: [
                {
                  id: '1-2-1',
                  pid: '1-2',
                  children: [],
                  label: '二级 1-2-1'
                },
                {
                  id: '1-2-2',
                  pid: '1-2',
                  children: [],
                  label: '二级 1-2-2'
                }
              ]
            }
          ]
        }
      ],
      selData: []
    }
  },
  methods: {
    add () {
    add() {
      this.list.push({
        name: '',
        active: false
      })
    },
    seleItem (i) {
    selStaff() {
      this.isShowTransfer = true
    },
    seleItem(i) {
      this.list.forEach((item, index) => {
        item.active = index === i
      })
@@ -159,254 +271,254 @@
</script>
<style lang="scss" scoped>
    .config {
        width: 100%;
        padding-bottom: 20px;
        box-sizing: border-box;
        height: calc(100vh - 140px);
.config {
  width: 100%;
  padding-bottom: 20px;
  box-sizing: border-box;
  height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  .config_list {
    width: 543px;
    height: 100%;
    flex-shrink: 0;
    border-radius: 2px;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #eeeeee;
    background: #f7f7f7;
    .config_list_head {
      width: 100%;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      span {
        font-size: 18px;
        font-weight: 500;
        color: #222222;
      }
    }
    .config_list_list {
      width: 100%;
      height: calc(100% - 40px);
      padding-top: 45px;
      box-sizing: border-box;
      overflow-y: scroll;
      display: flex;
      align-items: center;
      flex-direction: column;
      &::-webkit-scrollbar {
        width: 0;
      }
      .active {
        border: 2px solid #e84a08 !important;
      }
      .yellow {
        background: #ee8921 !important;
      }
      .blue {
        background: #435ebe !important;
      }
      .footer {
        width: 106px;
        height: 41px;
        background: #ffffff;
        box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
        border-radius: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        span {
          font-size: 15px;
          font-weight: 400;
          color: #333333;
        }
      }
      .item {
        width: 200px;
        height: 102px;
        background: #7999d9;
        box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        padding: 4px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        .config_list {
            width: 543px;
            height: 100%;
            flex-shrink: 0;
            border-radius: 2px;
            padding: 20px;
            box-sizing: border-box;
            border: 1px solid #EEEEEE;
            background: #F7F7F7;
            .config_list_head {
                width: 100%;
                height: 40px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                span {
                    font-size: 18px;
                    font-weight: 500;
                    color: #222222;
                }
            }
            .config_list_list {
                width: 100%;
                height: calc(100% - 40px);
                padding-top: 45px;
                box-sizing: border-box;
                overflow-y: scroll;
                display: flex;
                align-items: center;
                flex-direction: column;
                &::-webkit-scrollbar {
                    width: 0;
                }
                .active {
                    border: 2px solid #E84A08 !important;
                }
                .yellow {
                    background: #EE8921 !important;
                }
                .blue {
                    background: #435EBE !important;
                }
                .footer {
                    width: 106px;
                    height: 41px;
                    background: #FFFFFF;
                    box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.1);
                    border-radius: 25px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    span {
                        font-size: 15px;
                        font-weight: 400;
                        color: #333333;
                    }
                }
                .item {
                    width: 200px;
                    height: 102px;
                    background: #7999D9;
                    box-shadow: 0 0 8px 0 rgba(0,0,0,0.1);
                    border-radius: 4px;
                    padding: 4px;
                    box-sizing: border-box;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    position: relative;
                    margin-bottom: 60px;
                    &:last-child {
                        margin: 0 !important;
                    }
                    .item_down {
                        position: absolute;
                        bottom: -60px;
                        width: 100%;
                        height: 60px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        .item_down_add {
                            width: 46px;
                            height: 46px;
                            position: absolute;
                            z-index: 3;
                            top: 5px;
                            cursor: pointer;
                        }
                        .item_down_x {
                            width: 1px;
                            height: 60px;
                            background: #B2B2B2;
                            position: relative;
                            img {
                                position: absolute;
                                bottom: 0;
                                left: -4px;
                                width: 9px;
                                height: 9px;
                            }
                        }
                    }
                    .item_label {
                        width: 100%;
                        height: 30px;
                        display: flex;
                        align-items: center;
                        font-size: 15px;
                        font-weight: 400;
                        color: #FFFFFF;
                    }
                    .item_child {
                        width: 100%;
                        height: 61px;
                        padding: 10px;
                        box-sizing: border-box;
                        background: #FFFFFF;
                        border-radius: 4px;
                        position: relative;
                        .item_child_right {
                            position: absolute;
                            right: 10px;
                            top: 13px;
                            width: 8px;
                            height: 14px;
                        }
                        .item_child_label {
                            font-size: 14px;
                            font-weight: 400;
                            color: #333333;
                            margin-bottom: 4px;
                        }
                        .item_child_val {
                            font-size: 12px;
                            font-weight: 400;
                            color: #999999;
                        }
                    }
                }
            }
        position: relative;
        margin-bottom: 60px;
        &:last-child {
          margin: 0 !important;
        }
        .config_data {
            flex: 1;
            height: 100%;
            margin-left: 20px;
            .config_data_submit {
                margin-top: 50px;
        .item_down {
          position: absolute;
          bottom: -60px;
          width: 100%;
          height: 60px;
          display: flex;
          align-items: center;
          justify-content: center;
          .item_down_add {
            width: 46px;
            height: 46px;
            position: absolute;
            z-index: 3;
            top: 5px;
            cursor: pointer;
          }
          .item_down_x {
            width: 1px;
            height: 60px;
            background: #b2b2b2;
            position: relative;
            img {
              position: absolute;
              bottom: 0;
              left: -4px;
              width: 9px;
              height: 9px;
            }
            .config_data_item {
                width: 100%;
                display: flex;
                flex-direction: column;
                margin-bottom: 30px;
                &:last-child {
                    margin: 0 !important;
                }
                .config_data_item_label {
                    font-size: 16px;
                    font-weight: 500;
                    color: #222222;
                    margin-bottom: 20px;
                    span {
                        font-size: 12px;
                        font-weight: 400;
                        color: #999999;
                        margin-left: 10px;
                    }
                }
                .config_data_item_reviewed {
                    width: 100%;
                    margin-top: 20px;
                    .config_data_item_reviewed_r {
                        margin-top: 10px;
                        width: 100%;
                        display: flex;
                        align-items: center;
                        span {
                            flex-shrink: 0;
                            font-size: 14px;
                            font-weight: 400;
                            color: #666666;
                        }
                    }
                    .config_data_item_reviewed_label {
                        display: flex;
                        align-items: center;
                        span {
                            &:nth-child(1) {
                                font-size: 14px;
                                font-weight: 400;
                                color: #222222;
                            }
                            &:nth-child(2) {
                                font-size: 12px;
                                font-weight: 400;
                                color: #999999;
                                margin-left: 8px;
                            }
                        }
                    }
                    .config_data_item_reviewed_content {
                        width: 400px;
                        margin-top: 10px;
                        height: 110px;
                        padding: 12px;
                        box-sizing: border-box;
                        border-radius: 2px;
                        border: 1px solid #DFE2E8;
                        display: flex;
                        align-items: flex-start;
                        flex-wrap: wrap;
                        .add {
                            font-size: 12px;
                            font-weight: 400;
                            color: #435EBE;
                            cursor: pointer;
                            margin-top: 3px;
                        }
                        .config_data_item_reviewed_content_item {
                            padding: 3px 5px;
                            background: #F4F7FC;
                            border-radius: 2px;
                            box-sizing: border-box;
                            margin-right: 10px;
                            margin-bottom: 10px;
                            span {
                                font-size: 12px;
                                font-weight: 400;
                                color: #333333;
                            }
                            i {
                                color: #949BA2;
                                margin-left: 10px;
                                cursor: pointer;
                            }
                        }
                    }
                }
            }
          }
        }
        .item_label {
          width: 100%;
          height: 30px;
          display: flex;
          align-items: center;
          font-size: 15px;
          font-weight: 400;
          color: #ffffff;
        }
        .item_child {
          width: 100%;
          height: 61px;
          padding: 10px;
          box-sizing: border-box;
          background: #ffffff;
          border-radius: 4px;
          position: relative;
          .item_child_right {
            position: absolute;
            right: 10px;
            top: 13px;
            width: 8px;
            height: 14px;
          }
          .item_child_label {
            font-size: 14px;
            font-weight: 400;
            color: #333333;
            margin-bottom: 4px;
          }
          .item_child_val {
            font-size: 12px;
            font-weight: 400;
            color: #999999;
          }
        }
      }
    }
  }
  .config_data {
    flex: 1;
    height: 100%;
    margin-left: 20px;
    .config_data_submit {
      margin-top: 50px;
    }
    .config_data_item {
      width: 100%;
      display: flex;
      flex-direction: column;
      margin-bottom: 30px;
      &:last-child {
        margin: 0 !important;
      }
      .config_data_item_label {
        font-size: 16px;
        font-weight: 500;
        color: #222222;
        margin-bottom: 20px;
        span {
          font-size: 12px;
          font-weight: 400;
          color: #999999;
          margin-left: 10px;
        }
      }
      .config_data_item_reviewed {
        width: 100%;
        margin-top: 20px;
        .config_data_item_reviewed_r {
          margin-top: 10px;
          width: 100%;
          display: flex;
          align-items: center;
          span {
            flex-shrink: 0;
            font-size: 14px;
            font-weight: 400;
            color: #666666;
          }
        }
        .config_data_item_reviewed_label {
          display: flex;
          align-items: center;
          span {
            &:nth-child(1) {
              font-size: 14px;
              font-weight: 400;
              color: #222222;
            }
            &:nth-child(2) {
              font-size: 12px;
              font-weight: 400;
              color: #999999;
              margin-left: 8px;
            }
          }
        }
        .config_data_item_reviewed_content {
          width: 400px;
          margin-top: 10px;
          height: 110px;
          padding: 12px;
          box-sizing: border-box;
          border-radius: 2px;
          border: 1px solid #dfe2e8;
          display: flex;
          align-items: flex-start;
          flex-wrap: wrap;
          .add {
            font-size: 12px;
            font-weight: 400;
            color: #435ebe;
            cursor: pointer;
            margin-top: 3px;
          }
          .config_data_item_reviewed_content_item {
            padding: 3px 5px;
            background: #f4f7fc;
            border-radius: 2px;
            box-sizing: border-box;
            margin-right: 10px;
            margin-bottom: 10px;
            span {
              font-size: 12px;
              font-weight: 400;
              color: #333333;
            }
            i {
              color: #949ba2;
              margin-left: 10px;
              cursor: pointer;
            }
          }
        }
      }
    }
  }
}
</style>
admin/src/views/business/page-components/ReportDetail.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,422 @@
<template>
  <GlobalWindow
    :title="title"
    text="同意"
    backText="拒绝"
    :visible.sync="isShowModal"
    @confirm="confirm"
    @close="reject"
  >
    <div class="modal_wrap">
      <div class="modal_content">
        <div class="header">
          <div class="left">
            <div class="h1">访客预约</div>
            <div class="time">提交时间:</div>
          </div>
          <div class="right">待审核</div>
        </div>
        <div class="info">
          <div class="title">访客报备详情</div>
          <div class="list">
            <div class="item">
              <div class="label">被访人</div>
              <div class="value"></div>
            </div>
            <div class="item">
              <div class="label">拜访时间</div>
              <div class="value"></div>
            </div>
            <div class="item">
              <div class="label">入园车辆</div>
              <div class="value"></div>
            </div>
            <div class="item">
              <div class="label">来访单位</div>
              <div class="value"></div>
            </div>
            <div class="item">
              <div class="label">联系人</div>
              <div class="value"></div>
            </div>
            <div class="item">
              <div class="label">随车人数</div>
              <div class="value"></div>
            </div>
            <div class="item">
              <div class="label">来访事由</div>
              <div class="value"></div>
            </div>
          </div>
        </div>
        <div class="table_info">
          <div class="title">访客信息</div>
          <el-table :data="detail.datalist" border fit>
            <el-table-column label="姓名" prop="" min-width="150">
              <template slot-scope="{ row }">
                <div class="name_wrap">
                  <image src="" class="avatar" mode="" />
                  <div class="content">
                    <div class="line">
                      <div class="name">李东</div>
                      <div class="tag">申请人</div>
                    </div>
                    <div class="line placeholder9">1888888</div>
                  </div>
                </div>
              </template>
            </el-table-column>
            <el-table-column label="性别" prop="" min-width="40" />
            <el-table-column label="证件类型" prop="" min-width="80" />
            <el-table-column label="证件号码" prop="" min-width="120" />
            <el-table-column label="公司名称" prop="" min-width="120" />
            <el-table-column label="人脸照片" prop="" min-width="80">
              <template slot-scope="{ row }">
                <el-image :src="row.url" :preview-src-list="[row.url]">
                </el-image>
              </template>
            </el-table-column>
          </el-table>
        </div>
      </div>
      <div class="side">
        <div class="side_title">审批流程</div>
        <div class="list">
          <div class="item">
            <div class="separate"></div>
            <div class="info">
              <i class="el-icon-success icon"></i>
              <img src="" class="avatar" alt="" />
              <div class="content">
                <div class="line">
                  <div class="name">刘某刘某</div>
                  <div class="time">2020-02-02 12:20</div>
                </div>
                <div class="line">
                  <div class="company">中国移动有限公司</div>
                </div>
              </div>
            </div>
          </div>
          <div class="item">
            <!-- <div v-if="" class="separate"></div> -->
            <div class="info">
              <i class="el-icon-success icon"></i>
              <img src="" class="avatar" alt="" />
              <div class="content">
                <div class="line">
                  <div class="name">刘某刘某</div>
                  <div class="time">2020-02-02 12:20</div>
                </div>
                <div class="line">
                  <div class="company">
                    ä¸­å›½ç§»åŠ¨æœ‰é™å…¬å¸( <span class="status">已同意</span> )
                  </div>
                </div>
              </div>
            </div>
            <div class="remark">提交约好的</div>
          </div>
        </div>
      </div>
    </div>
    <!--  -->
    <template #btns>
      <el-button type="primary" plain @click="handleTransfer">转交</el-button>
    </template>
    <!--  åŒæ„/拒绝 -->
    <el-dialog
      append-to-body
      :title="apprTitle"
      :visible.sync="isShowAppr"
      width="480px"
    >
      <el-input
        type="textarea"
        :placeholder="apprTitle + '说明,非必填'"
        :rows="4"
        v-model="param.explain"
      />
      <span slot="footer" class="dialog-footer">
        <el-button @click="isShowAppr = false">取消</el-button>
        <el-button type="primary" @click="isShowAppr = false">确定</el-button>
      </span>
    </el-dialog>
    <!-- é𐿂£ -->
    <el-dialog
      append-to-body
      title="隐患"
      :visible.sync="isShowProblem"
      width="480px"
    >
      <el-form :model="param" :rules="rules" ref="ruleForm" label-width="100px">
        <el-form-item label="退回时间">
          <el-date-picker
            class="w300"
            value-format="yyyy-MM-dd"
            type="date"
            placeholder="选择日期"
            v-model="param.date"
          />
        </el-form-item>
        <el-form-item label="整改前">
          <div class="df_ac">
            <img src="@/assets/avatar/man.png" />
            <el-upload
              class="avatar-uploader"
              action="https://jsonplaceholder.typicode.com/posts/"
              :show-file-list="false"
              :on-success="handleAvatarSuccess"
              :before-upload="beforeAvatarUpload"
            >
              <img v-if="param.url" :src="param.url" class="avatar" />
              <div v-else class="upload_box">
                <el-icon class="el-icon-plus icon" />
                <div class="text">图片/视频</div>
              </div>
            </el-upload>
          </div>
        </el-form-item>
        <el-form-item label="退回说明">
          <el-input
            type="textarea"
            placeholder="请填写说明"
            :rows="4"
            v-model="param.explain"
          />
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="isShowProblem = false">取消</el-button>
        <el-button type="primary" @click="isShowProblem = false"
          >确定</el-button
        >
      </span>
    </el-dialog>
  </GlobalWindow>
</template>
<script>
import GlobalWindow from '@/components/common/GlobalWindow'
export default {
  components: { GlobalWindow },
  data() {
    return {
      title: '访客预约详情',
      isShowModal: false,
      detail: {
        datalist: [{}]
      },
      isShowAppr: false,
      apprTitle: '同意',
      param: {},
      isShowProblem: false,
      rules: {}
    }
  },
  methods: {
    confirm() {
      console.log('--')
    },
    handleTransfer() {
      this.isShowProblem = true
    },
    reject() { },
    handleAvatarSuccess() { },
    beforeAvatarUpload() { }
  }
}
</script>
<style lang="scss" scoped>
.upload_box {
  width: 84px;
  height: 84px;
  border-radius: 4px;
  background-color: #f7f7f7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #999999;
  border: 1px solid #e4e4e4;
  .icon {
    font-size: 24px;
  }
  .text {
    font-size: 12px;
  }
}
.modal_wrap {
  display: flex;
  height: 100%;
  .modal_content {
    flex: 1;
    padding: 0px 30px;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    .title {
      font-weight: 600;
      font-size: 18px;
      color: #333333;
      margin-bottom: 20px;
      margin-top: 30px;
    }
    .info {
      .list {
        display: flex;
        flex-wrap: wrap;
        .item {
          display: flex;
          width: 40%;
          margin-bottom: 20px;
          &:nth-of-type(2n) {
            width: 60%;
          }
          .label {
            color: #888888;
            width: 68px;
          }
          .value {
            color: #111111;
          }
        }
      }
    }
    .header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 30px;
      margin: 0 -30px;
      border-radius: 8px 8px 0 0;
      background: linear-gradient(to right, #f2f6fe, #cadffa);
      .h1 {
        font-weight: 600;
        font-size: 22px;
        color: #111111;
        margin-bottom: 8px;
      }
      .time {
        font-size: 14px;
        color: #999999;
      }
      .right {
        height: 40px;
        font-size: 16px;
        color: #ffffff;
        line-height: 40px;
        padding: 0 20px;
        background: #207ff7;
        box-shadow: 4px 4px 0px 0px rgba(32, 127, 247, 0.16);
        border-radius: 16px 0px 16px 0px;
      }
    }
    .table_info {
      .name_wrap {
        display: flex;
        align-items: center;
        .avatar {
          width: 40px;
          height: 40px;
          border-radius: 50%;
          margin-right: 12px;
        }
        .content {
          .line {
            display: flex;
          }
          .tag {
            color: #b2cbf9;
            border: 1px solid #b2cbf9;
            padding: 0px 4px;
            border-radius: 4px;
            margin-left: 6px;
          }
        }
      }
    }
  }
  .side {
    height: 100%;
    width: 420px;
    background: #ffffff;
    border-left: 20px solid #f7f7f7;
    .list {
      .item {
        padding: 8px 0;
        position: relative;
        .separate {
          position: absolute;
          border-left: 2px dashed #cccccc;
          left: 51px;
          height: calc(100% - 24px);
          top: 46px;
        }
        .info {
          display: flex;
          align-items: center;
          margin-left: 40px;
          .icon {
            position: relative;
            z-index: 11;
            color: #53b76f;
            font-size: 24px;
          }
          .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin: 0 12px 0 16px;
            border: 1px solid;
          }
          .content {
            flex: 1;
            .line {
              display: flex;
              justify-content: space-between;
              align-content: center;
              margin-bottom: 6px;
              .name {
                font-weight: 600;
                font-size: 16px;
                color: #111111;
              }
              .time {
                color: #888888;
              }
              .company {
                font-size: 13px;
                color: #888888;
                .status {
                  color: #00ba67;
                }
              }
            }
          }
        }
        .remark {
          background: #f7f7f7;
          border-radius: 4px;
          padding: 13px 15px;
          color: #666666;
          margin-left: 120px;
        }
      }
    }
  }
}
</style>
admin/src/views/business/reportRecord.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,85 @@
<template>
  <div class="main_app">
    <QueryForm v-model="filters" :query-form-config="queryFormConfig" @handleQuery="getList(1)" @clear="clear" />
    <el-table v-loading="loading" :data="list" stripe row-key="id" default-expand-all>
      <el-table-column prop="" label="入园车辆" min-width="100" show-overflow-tooltip></el-table-column>
      <el-table-column prop="" label="公司名称" min-width="120" show-overflow-tooltip></el-table-column>
      <el-table-column prop="" label="联系人信息" min-width="100" show-overflow-tooltip></el-table-column>
      <el-table-column prop="" label="手机号" min-width="120" show-overflow-tooltip></el-table-column>
      <el-table-column prop="" label="被访人" min-width="120" show-overflow-tooltip></el-table-column>
      <el-table-column prop="" label="拜访时间" min-width="120" show-overflow-tooltip></el-table-column>
      <el-table-column prop="" label="拜访事由" min-width="80" show-overflow-tooltip></el-table-column>
      <el-table-column prop="" fixed="right" label="状态" min-width="100"></el-table-column>
      <el-table-column label="操作" width="230" fixed="right">
        <template slot-scope="{row}">
          <el-button type="text" @click="handleDetail(row)" v-permissions="['business:company:update']">查看详情</el-button>
        </template>
      </el-table-column>
    </el-table>
    <pagination @size-change="handleSizeChange" @current-change="getList" :pagination="pagination" />
    <ReportDetail v-if="isShowDetail" ref="DetailRef" />
  </div>
</template>
<script>
import Pagination from '@/components/common/Pagination'
import QueryForm from '@/components/common/QueryForm'
import ReportDetail from './page-components/ReportDetail.vue'
export default {
  components: {
    ReportDetail,
    QueryForm,
    Pagination
  },
  data () {
    return {
      isShowDetail: false,
      activeTab: '0',
      filters: {},
      queryFormConfig: {
        formItems: [
          {
            filed: 'idCard',
            type: 'input',
            label: '车牌号'
          },
          {
            filed: 'name',
            type: 'input',
            label: '公司名称'
          }
        ],
        online: true
      },
      loading: false,
      sorting: false,
      searchForm: {
        // type: 1
      },
      pagination: {
        capacity: 10,
        page: 1
      },
      list: [{}],
      total: 0
    }
  },
  methods: {
    handleDetail () {
      this.isShowDetail = true
      this.$nextTick(() => {
        this.$refs.DetailRef.isShowModal = true
      })
    },
    getList (page) {},
    clear () { },
    handleSizeChange (capacity) {
      this.pagination.capacity = capacity
    }
  }
}
</script>
<style lang="scss" scoped>
</style>
admin/src/views/business/visitOrigin.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,105 @@
<template>
  <div class="main_app">
    <div class="table_btns">
      <el-button icon="el-icon-plus" @click="handleEdit()" type="primary"
        >新建</el-button
      >
    </div>
    <el-table v-loading="loading" :data="list" stripe>
      <el-table-column
        prop="name"
        label="拜访事由"
        min-width="100"
      ></el-table-column>
      <el-table-column
        prop="name"
        label="排序码"
        min-width="80"
      ></el-table-column>
      <el-table-column label="操作" width="230" fixed="right">
        <!-- v-permissions="['business:company:update']" -->
        <template slot-scope="{ row }">
          <el-button type="text" icon="el-icon-edit" @click="handleEdit(row)"
            >编辑</el-button
          >
          <el-button
            type="text"
            icon="el-icon-delete"
            @click="handleDetail(row)"
            class="red"
            >删除</el-button
          >
        </template>
      </el-table-column>
    </el-table>
    <pagination
      @size-change="handleSizeChange"
      @current-change="getList"
      :pagination="pagination"
    />
    <!--  -->
    <el-dialog title="拜访事由" :visible.sync="isShowEdit" width="480px">
      <el-form :model="param" :rules="rules" ref="ruleForm" label-width="100px">
        <el-form-item label="拜访事由">
          <el-input type="text" placeholder="请输入" v-model="param.explain" />
        </el-form-item>
        <el-form-item label="排序码">
          <el-input
            type="text"
            placeholder="请输入"
            oninput="value=value.replace(/^(0+)|[^\d]+/g, '').slice(0, 6)"
            v-model="param.sortNum"
          />
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="isShowEdit = false">取消</el-button>
        <el-button type="primary" @click="handleSub">确定</el-button>
      </span>
    </el-dialog>
  </div>
</template>
<script>
import Pagination from '@/components/common/Pagination'
export default {
  components: {
    Pagination
  },
  data() {
    return {
      loading: false,
      pagination: {
        capacity: 10,
        page: 1
      },
      list: [{}],
      total: 0,
      isShowEdit: false,
      param: {},
      rules: {}
    }
  },
  methods: {
    handleSub() {
      this.$refs.ruleForm.validate((valid) => {
        if (valid) {
          alert('submit!')
        }
      })
    },
    handleEdit() {
      this.isShowEdit = true
    },
    getList(page) { },
    clear() { },
    handleSizeChange(capacity) {
      this.pagination.capacity = capacity
    }
  }
}
</script>
<style>
</style>