shuishen
2024-01-09 266793e83a7dba86d1507db5f5d649a2018c30c2
物业管理服务下页面调整
2 files modified
111 ■■■■ changed files
src/views/property/propertyCapitalApply.vue 43 ●●●●● patch | view | raw | blame | history
src/views/task/reportForRepairs.vue 68 ●●●●● patch | view | raw | blame | history
src/views/property/propertyCapitalApply.vue
@@ -7,12 +7,12 @@
            @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
            @refresh-change="refreshChange" @on-load="onLoad">
            <template slot-scope="scope" slot="menu">
                <el-button type="text" size="small" v-if="scope.row.applyStatus === 4" @click="handleWork(scope.row)">调整申请
            <template slot-scope="{ row, size, index }" slot="menu">
                <el-button :size="size" type="text" v-if="scope.row.applyStatus === 4" @click="handleWork(scope.row)">调整申请
                </el-button>
                <el-button type="text" size="small" @click="goDetail(scope.row)">查看申请
                <el-button :size="size" type="text" @click="goDetail(scope.row)">查看申请
                </el-button>
                <el-button type="text" size="small" @click="goDetail(scope.row)">删 除
                <el-button :size="size" type="text" @click="goDetail(scope.row)">删 除
                </el-button>
            </template>
            <!-- <template slot="menuLeft">
@@ -56,13 +56,16 @@
            datetime: "",
            selectionList: [],
            option: {
                labelWidth: 154,
                searchLabelWidth: 96,
                searchShow: true,
                searchMenuSpan: 3,
                menuWidth: 140,
                height: "auto",
                calcHeight: 54,
                dialogWidth: 1150,
                tip: false,
                searchShow: true,
                searchMenuSpan: 3,
                menuWidth: 350,
                border: true,
                //stripe:true,
                index: true,
@@ -103,7 +106,6 @@
                        },
                        defaultExpandedKeys: ["361102003"],
                        span: 12,
                        labelWidth: 120,
                        width: 260,
                        rules: [{
                            required: true,
@@ -115,11 +117,10 @@
                    {
                        label: '维修项目名称',
                        prop: 'name',
                        searchLabelWidth: 120,
                        searchSpan: 5,
                        searchLabelWidth: 124,
                        search: true,
                        span: 12,
                        labelWidth: 140,
                        rules: [{
                            required: true,
                            message: "请输入维修项目名称",
@@ -127,10 +128,10 @@
                        },],
                    },
                    {
                        width: 100,
                        label: "预计开工时间",
                        prop: "runTime",
                        span: 12,
                        labelWidth: 140,
                        type: "date",
                        format: "yyyy-MM-dd",
                        valueFormat: "yyyy-MM-dd",
@@ -141,9 +142,9 @@
                        },],
                    },
                    {
                        width: 100,
                        label: "预计竣工时间",
                        prop: "completedTime",
                        labelWidth: 140,
                        span: 12,
                        type: "date",
                        format: "yyyy-MM-dd",
@@ -157,18 +158,18 @@
                    {
                        label: "项目分摊方式",
                        prop: "allocationWay",
                        labelWidth: 140,
                        value: '按建筑面积分摊',
                        span: 14,
                        row: true,
                    },
                    {
                        width: 110,
                        label: '联系人',
                        prop: 'linkman',
                        span: 12,
                        labelWidth: 120,
                        search: true,
                        searchSpan: 4,
                        searchLabelWidth: 80,
                        search: true,
                        rules: [{
                            required: true,
                            message: "请输入联系人",
@@ -176,10 +177,10 @@
                        },],
                    },
                    {
                        width: 120,
                        label: '联系方式',
                        prop: 'linkPhone',
                        span: 12,
                        labelWidth: 140,
                        rules: [{
                            required: true,
                            message: "请输入联系方式",
@@ -187,16 +188,15 @@
                        },],
                    },
                    {
                        width: 100,
                        label: '申请时间',
                        prop: 'applyTime',
                        span: 12,
                        labelWidth: 160,
                        display: false,
                    }, {
                        label: '审核进度',
                        prop: 'applyStatus',
                        span: 12,
                        labelWidth: 140,
                        display: false,
                        dicData: [{
                            label: "待审核",
@@ -226,7 +226,6 @@
                        prop: "budgetAmount",
                        span: 12,
                        hide: true,
                        labelWidth: 140,
                        type: 'number',
                        precision: 2,
                        value: '0.00'
@@ -236,7 +235,6 @@
                        prop: "actualAmount",
                        span: 12,
                        hide: true,
                        labelWidth: 140,
                        type: 'number',
                        precision: 2,
                        value: '0.00'
@@ -246,7 +244,6 @@
                        prop: "selfAmount",
                        span: 12,
                        hide: true,
                        labelWidth: 140,
                        type: 'number',
                        precision: 2,
                        value: '0.00'
@@ -256,7 +253,6 @@
                        prop: "budgetAppropriateAmount",
                        span: 12,
                        hide: true,
                        labelWidth: 140,
                        type: 'number',
                        precision: 2,
                        value: '0.00'
@@ -267,7 +263,6 @@
                        hide: true,
                        prop: "projectDigest",
                        placeholder: "例如:“XX小区XX栋XX设施设备维修,总的预算金额是X,是否含有审价,本次维修涉及范围共XX户,总面积的建筑面积为XX平方米”",
                        labelWidth: 140,
                        type: "textarea"
                    },
                    {
@@ -275,7 +270,6 @@
                        span: 24,
                        hide: true,
                        prop: "projectDescribe",
                        labelWidth: 140,
                        type: "textarea"
                    },
                    {
@@ -284,7 +278,6 @@
                        type: 'upload',
                        span: 24,
                        hide: true,
                        labelWidth: 140,
                        multiple: true,
                        // showFileList: true,
                        propsHttp: {
src/views/task/reportForRepairs.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2023-12-14 17:10:00
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-01-06 15:01:25
 * @LastEditTime: 2024-01-09 18:31:13
 * @FilePath: \jczz_web\src\views\task\reportForRepairs.vue
 * @Description:
 *
@@ -12,16 +12,17 @@
<template>
  <basic-container>
    <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" @row-del="rowDel"
      v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen"
      @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"
      @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
            v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave"
            :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset"
            @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
            @refresh-change="refreshChange" @on-load="onLoad">
      <template slot="confirmFlag" slot-scope="{row}">
        <el-tag size="small" :type="showConfirmFlag(row.confirmFlag).type">
          {{ showConfirmFlag(row.confirmFlag).text }}
        </el-tag>
      </template>
      <template slot="expand" slot-scope="{row}">
            <template slot="expand" slot-scope="{row, size}">
        <el-timeline>
          <el-timeline-item v-for="(item, index) in timeLineData(row)" :key="index" :timestamp="item.createTime"
            :icon="item.icon" :color="item.color" :hide-timestamp="item.contentType == 3" placement="top">
@@ -66,24 +67,24 @@
        </el-timeline>
      </template>
      <template slot-scope="scope" slot="menu">
        <el-button v-if="permission.report_for_repairs_details" size="small" type="text" icon="el-icon-document-remove"
          @click="rowExpansion(scope.row)">
            <template slot-scope="{row, size, index}" slot="menu">
                <el-button :size="size" v-if="permission.report_for_repairs_details" type="text"
                    icon="el-icon-document-remove" @click="rowExpansion(row)">
          详情
        </el-button>
        <el-button v-if="permission.report_for_repairs_reply" size="small" type="text" icon="el-icon-chat-dot-square"
          :disabled="scope.row.confirmFlag === 3" @click="replyBtnClick(scope.row)">
                <el-button :size="size" v-if="permission.report_for_repairs_reply" type="text"
                    icon="el-icon-chat-dot-square" :disabled="row.confirmFlag === 3" @click="replyBtnClick(row)">
          回复
        </el-button>
        <el-button v-if="permission.report_for_repairs_turn_over" size="small" type="text" icon="el-icon-document-copy"
          :disabled="scope.row.confirmFlag === 3" @click="turnOverBtnClick(scope.row)">
                <el-button :size="size" v-if="permission.report_for_repairs_turn_over" type="text"
                    icon="el-icon-document-copy" :disabled="row.confirmFlag === 3" @click="turnOverBtnClick(row)">
          移交
        </el-button>
        <el-button v-if="permission.report_for_repairs_del" size="small" type="text" icon="el-icon-delete"
          @click="rowDel(scope.row)">
                <el-button :size="size" v-if="permission.report_for_repairs_del" type="text" icon="el-icon-delete"
                    @click="rowDel(row)">
          删除
        </el-button>
      </template>
@@ -99,9 +100,10 @@
      <avue-form ref="replyForm" :option="replyOption" v-model="replyForm" @submit="handleSubmit"
        @reset-change="handleReset">
        <template slot-scope="{row}" slot="videoList">
          <el-upload class="video-uploader" action="/api/blade-resource/oss/endpoint/put-file" :file-list="fileList"
            :headers="updateHeader" :show-file-list="true" :limit="1" :on-change="getFile" :on-exceed="handleExceed"
            :on-success="uploadVideoProcess" :before-upload="beforeUploadVideo" :before-remove="beforeRemove">
                    <el-upload class="video-uploader" action="/api/blade-resource/oss/endpoint/put-file"
                        :file-list="fileList" :headers="updateHeader" :show-file-list="true" :limit="1" :on-change="getFile"
                        :on-exceed="handleExceed" :on-success="uploadVideoProcess" :before-upload="beforeUploadVideo"
                        :before-remove="beforeRemove">
            <el-button size="small" type="primary">点击上传</el-button>
            <div slot="tip" class="el-upload__tip">上传视频只能是 mp4 格式,且大小不能超过 50MB</div>
          </el-upload>
@@ -163,6 +165,12 @@
        datetime: "",
        selectionList: [],
        option: {
                labelWidth: 96,
                searchLabelWidth: 96,
                searchShow: true,
                searchMenuSpan: 3,
                menuWidth: 280,
          viewBtn: false,
          editBtn: false,
          delBtn: false,
@@ -173,19 +181,19 @@
          calcHeight: 54,
          dialogWidth: 950,
          tip: false,
          searchShow: true,
          searchMenuSpan: 3,
          menuWidth: 272,
          border: true,
          //stripe:true,
          // excelBtn: true,
          dialogClickModal: false,
          column: [{
              width: 96,
                column: [
                    {
                        width: 100,
              label: "类型",
              prop: "type",
              span: 12,
                        searchLabelWidth: 66,
              searchSpan: 4,
                        search: true,
              dataType: "number",
              type: "select",
              dicUrl: "/api/blade-system/dict-biz/dictionary?code=reportForRepairsType",
@@ -193,23 +201,23 @@
                label: "dictValue",
                value: "dictKey",
              },
              search: true,
            },
            {
              width: 96,
                        width: 110,
              label: "姓名",
              prop: "realName",
              span: 12,
              searchSpan: 4,
                        searchLabelWidth: 66,
              search: true,
            },
            {
              width: 96,
                        width: 120,
              label: "手机号码",
              prop: "phone",
              search: true,
              searchSpan: 3,
                        searchSpan: 4,
              slot: true,
              rules: [{
                validator: validatorPhone,
@@ -234,23 +242,23 @@
              span: 24,
            },
            {
                        overHidden: true,
              label: "地点",
              prop: "addressName",
              overHidden: true
            },
            {
              width: 100,
                        label: "状态",
              addDisplay: false,
              editDisplay: false,
              slot: true,
              label: "状态",
              prop: "confirmFlag",
              overHidden: true
            },
            {
                        width: 144,
              label: "上报时间",
              prop: "createTime",
              width: 160,
              addDisplay: false,
              editDisplay: false,
              type: "date",
@@ -258,9 +266,9 @@
              valueFormat: "yyyy-MM-dd HH:mm:ss",
            },
            {
                        width: 144,
              label: "处理时间",
              prop: "confirmTime",
              width: 160,
              addDisplay: false,
              editDisplay: false,
              type: "date",