shuishen
2024-04-18 4522ab3fe8bd45ee753ef187448c1e884bbc601f
src/views/place/residencePermitApply.vue
@@ -23,19 +23,15 @@
        </el-tag>
      </template>
      <!--   <template slot="menuLeft">
        <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出
        </el-button>
      </template> -->
      <template slot-scope="{row, size}" slot="phoneNumber">
        <el-button :size="size" type="text" @click="showStringDispose(row, 'phoneNumberflag')"
          v-text="textDispose(row, 'phoneNumberflag', 'phoneNumber')">
        </el-button>
      <template slot-scope="{row, size}" slot="minors">
        <el-tag :size="size">{{
      row.minors == 2?'是':'否'
    }}</el-tag>
      </template>
      <template slot-scope="{row, size}" slot="transactionObjectTel">
        <el-button :size="size" type="text" @click="showStringDispose(row, 'transactionObjectTelflag')"
          v-text="textDispose(row, 'transactionObjectTelflag', 'transactionObjectTel')">
      <template slot-scope="{row, size}" slot="phone">
        <el-button :size="size" type="text" @click="showStringDispose(row, 'phoneflag')"
          v-text="textDispose(row, 'phoneflag', 'phone')">
        </el-button>
      </template>
      <template slot-scope="{row, size}" slot="idCard">
@@ -62,8 +58,9 @@
<script>
  import {
    getList,
    remove,
    updateAuditing
  } from "@/api/task/residencePermitApply"
  import NProgress from 'nprogress'
  import 'nprogress/nprogress.css'
  import Qs from "qs"
  import {
@@ -137,45 +134,34 @@
          searchShow: true,
          searchMenuSpan: 3,
          menuWidth: 190,
          selection: true,
          height: "auto",
          calcHeight: 54,
          dialogWidth: 950,
          tip: false,
          // menu: false,
          border: true,
          //stripe:true,
          stripe: true,
          index: true,
          viewBtn: true,
          addBtn: false,
          editBtn: false,
          delBtn: false,
          refreshBtn: false,
          menuFixed: 'right',
          searchShowBtn: false,
          columnBtn: false,
          selection: true,
          dialogClickModal: false,
          column: [{
              width: 110,
              span: 12,
              label: "名称",
              prop: "districtName",
              label: "姓名",
              prop: "name",
              searchSpan: 4,
              searchLabelWidth: 100,
              searchLabelWidth: 60,
              search: true,
              align: 'center',
              labelWidth: 110,
            },
            {
              width: 110,
              span: 12,
              label: "地址",
              prop: "address",
              searchSpan: 4,
              searchLabelWidth: 110,
              search: true,
              align: 'center',
              labelWidth: 110,
            }, {
              width: 120,
              span: 12,
              label: "联系电话",
@@ -191,17 +177,7 @@
              slot: true,
              labelWidth: 110,
            },
            // {
            //   width: 110,
            //   span: 12,
            //   label: "物品名称",
            //   prop: "transactionObject",
            //   searchSpan: 4,
            //   searchLabelWidth: 96,
            //   search: true,
            //   align: 'center',
            //   labelWidth: 110,
            // },
            {
              width: 160,
              span: 12,
@@ -214,17 +190,26 @@
              labelWidth: 110,
            },
            {
              minWidth: 150,
              span: 12,
              label: "地址",
              prop: "address",
              align: 'center',
              labelWidth: 110,
              overHidden: true,
            },
            {
              width: 110,
              span: 12,
              label: "申请事由",
              prop: "remark",
              prop: "remak",
              align: 'center',
              labelWidth: 110,
            },
            {
              width: 140,
              span: 12,
              label: "创建时间",
              label: "申请时间",
              prop: "createTime",
              align: 'center',
              labelWidth: 110,
@@ -232,8 +217,6 @@
            {
              width: 110,
              label: "所属街道",
              // hide: true,
              // search: true,
              parent: false,
              searchSpan: 4,
              prop: "streetName",
@@ -249,26 +232,45 @@
              labelWidth: 110,
            },
            {
              width: 80,
              labelWidth: 110,
              searchSpan: 3,
              searchLabelWidth: 70,
              label: "未成年",
              search: true,
              prop: "minors",
              type: "select",
              align: "center",
              dicData: [{
                  label: "全部",
                  value: ""
                }, {
                  label: "是",
                  value: 2
                },
                {
                  label: "否",
                  value: 1
                },
              ],
            },
            {
              width: 100,
              addDisplay: false,
              editDisplay: false,
              viewDisplay: false,
              label: '审核状态',
              prop: 'confirmFlag',
              type: 'radio',
              type: 'select',
              slot: true,
              dicData: [{
                label: '待审核',
                value: 1
              }, {
                label: '已审核',
                label: '通过',
                value: 2
              }, {
                label: '未通过',
                label: '驳回',
                value: 3
              }, {
                label: '待完成',
                value: 4
              }],
              align: 'center',
              labelWidth: 110,
@@ -321,18 +323,13 @@
            }
          } else if (data == 2) {
            tags = {
              type: 'success',
              text: '已审核'
              type: 'danger',
              text: '通过'
            }
          } else if (data == 3) {
            tags = {
              type: 'danger',
              text: '未通过'
            }
          } else if (data == 4) {
            tags = {
              type: 'warning',
              text: '待完成'
              text: '驳回'
            }
          }
@@ -394,12 +391,10 @@
      // 确认提交审核
      submitAudit(form) {
        let auditForm = {
          status: form.status == '1' ? '2' : '3',
          remark: form.confirmNotion,
          reportType: 5
          confirmFlag: form.status == '1' ? 3 : 4,
          confirmNotion: form.confirmNotion,
        }
        applyTaskExamine(Object.assign(this.auditParams, auditForm)).then(res => {
        updateAuditing(Object.assign(this.auditParams, auditForm)).then(res => {
          if (res.data.code == 200) {
            this.$message.warning("审核成功")
            this.onLoad(this.page)
@@ -411,8 +406,7 @@
      // 审核按钮
      goAudit(row) {
        this.auditParams = {
          id: row.taskId,
          reportType: 5
          id: row.id,
        }
        this.visible = true
      },
@@ -541,12 +535,10 @@
            type: "warning",
          })
          .then(() => {
            row.isDeleted = 1
            return removeTask(row)
            return remove(row.id)
          })
          .then(() => {
            this.onLoad(this.page)
            this.$message({
              type: "success",
              message: "操作成功!",
@@ -626,15 +618,6 @@
        let values = {
          ...params,
        }
        // if (dateTime) {
        //   values = {
        //     ...params,
        //     startTime: dateTime[0],
        //     endTime: dateTime[1],
        //     ...this.query,
        //   }
        //   values.dateTime = null
        // }
        values.reportType = 2
        this.loading = true
        getList(page.currentPage, page.pageSize, values).then((res) => {