index.vue 22.5 KB
Newer Older
yaqizhang's avatar
yaqizhang committed
1 2
<template>
    <div class="app-container detail" style="background-color: rgb(238, 241, 245);">
yaqizhang's avatar
yaqizhang committed
3
      <!-- 工单信息 -->
yaqizhang's avatar
yaqizhang committed
4
      <div style="padding-top: 10px;background: #fff;height: 100%;">
yaqizhang's avatar
yaqizhang committed
5
        <div>
6
          <div style="width: 5%;height: 45px;margin-left: 20px;" @click="$router.go(-1)">
yaqizhang's avatar
yaqizhang committed
7 8 9 10 11 12 13 14
            <el-button
            size="medium"
            type="text"
            style="font-size: 18px; color: rgb(7, 63, 112);float: left;"
          >返回</el-button>
          <div style="float: left;margin-top: 8px;margin-left: 5px;"><img src="../../../assets/logo/fanhui.png" style="width: 25px;" alt=""></div>
        </div>
          <el-steps :active="active" finish-status="success" simple prop="orderStatus" style="margin-top: 5px">
yaqizhang's avatar
yaqizhang committed
15 16
              <el-step title="未接收" ></el-step>
              <el-step title="已接收" ></el-step>
yaqizhang's avatar
yaqizhang committed
17
          <!--  <el-step title="进行中" ></el-step>-->
yaqizhang's avatar
yaqizhang committed
18 19 20 21
              <el-step title="已反馈" ></el-step>
              <el-step title="已归档" ></el-step>
          </el-steps>
        </div>
王晓倩's avatar
王晓倩 committed
22

23
        <div style="width: 100%;height: 265px;">
yaqizhang's avatar
yaqizhang committed
24
          <el-divider></el-divider>
25
          <div style="color: #31EAEA;width: 30%;height: 30px;">
yaqizhang's avatar
yaqizhang committed
26 27 28 29
            <ul><li>详细信息</li></ul>
          </div>
          <el-form ref="form" v-model="form" :rules="rules" label-width="100px" style="float: left;margin-left: 50px;">
              <el-form-item label="工单类型:" prop="orderType">
yaqizhang's avatar
yaqizhang committed
30 31 32
                <font v-if="form.orderType == 1">巡检信息</font>
                <font v-if="form.orderType == 2">隐患信息</font>
                <font v-if="form.orderType == 3">报警信息</font>
yaqizhang's avatar
yaqizhang committed
33 34 35 36 37 38 39
              </el-form-item>
              <el-form-item label="工单编号:" prop="orderId">
                <font>{{form.orderId}}</font>
              </el-form-item>
              <el-form-item label="工单名称:" prop="orderName">
                <font>{{form.orderName}}</font>
              </el-form-item>
yaqizhang's avatar
yaqizhang committed
40 41 42
              <el-form-item label="工单状态:" prop="orderStatus">
                <font v-if="form.orderStatus == 0">未接收</font>
                <font v-if="form.orderStatus == 1">已接收</font>
43 44
                <font v-if="form.orderStatus == 2">已反馈</font>
                <font v-if="form.orderStatus == 3">已归档</font>
yaqizhang's avatar
yaqizhang committed
45
              </el-form-item>
yaqizhang's avatar
yaqizhang committed
46 47 48
              <el-form-item label="指定执行人员:" prop="appointInspectorName">
                <font>{{form.appointInspectorName}}</font>
              </el-form-item>
yaqizhang's avatar
yaqizhang committed
49 50
              <el-form-item label="工单描述:" prop="remarks">
                <font>{{form.remarks}}</font>
王晓倩's avatar
王晓倩 committed
51
              </el-form-item>
yaqizhang's avatar
yaqizhang committed
52
          </el-form>
yaqizhang's avatar
yaqizhang committed
53
          <el-form ref="form" v-model="form" :rules="rules" label-width="100px" style="float: left;width: 25%;">
王晓倩's avatar
王晓倩 committed
54
              <el-form-item label="设备类型:" prop="deviceType" v-if="form.orderType != 1">
yaqizhang's avatar
yaqizhang committed
55 56 57 58 59
                <font v-if="form.deviceType == 0">管道</font>
                <font v-if="form.deviceType == 1">调压阀</font>
                <font v-if="form.deviceType == 2">阀门井</font>
                <font v-if="form.deviceType == 3">流量计</font>
                <font v-if="form.deviceType == 4">压力表</font>
王晓倩's avatar
王晓倩 committed
60
              </el-form-item>
61 62
              <el-form-item label="设备名称:" prop="deviceName">
                <font v-if="form.orderType != 1">{{form.deviceName}}</font>
yaqizhang's avatar
yaqizhang committed
63
                <el-tree
64 65 66 67 68 69
                  :data="deviceOptions"
                  :props="defaultProps"
                  :expand-on-click-node="false"
                  ref="tree"
                  @node-click="handleNodeClick"
                  v-if="form.orderType == 1"
yaqizhang's avatar
yaqizhang committed
70
                />
yaqizhang's avatar
yaqizhang committed
71
              </el-form-item>
王晓倩's avatar
王晓倩 committed
72
              <el-form-item label="设备位置:" v-if="form.orderType != 1">
yaqizhang's avatar
yaqizhang committed
73
                <font>{{form.address}}</font>
王晓倩's avatar
王晓倩 committed
74 75
              </el-form-item>
              <el-form-item label="工单进度:" v-if="form.orderType == 1">
yaqizhang's avatar
yaqizhang committed
76
                <font>{{form.finishNum}}/{{form.deviceNum}}</font>
yaqizhang's avatar
yaqizhang committed
77
              </el-form-item>
yaqizhang's avatar
yaqizhang committed
78
              <el-form-item label="下发时间:" prop="allotTime">
yaqizhang's avatar
yaqizhang committed
79 80
                <font>{{form.allotTime}}</font>
              </el-form-item>
yaqizhang's avatar
yaqizhang committed
81
              <!-- <el-form-item label="接收时间:" prop="actualTime">
yaqizhang's avatar
yaqizhang committed
82
                <font>{{form.actualTime}}</font>
yaqizhang's avatar
yaqizhang committed
83
              </el-form-item> -->
yaqizhang's avatar
yaqizhang committed
84
          </el-form>
yaqizhang's avatar
yaqizhang committed
85
          <div id="marbox" style="width: 700px;height: 250px;float: left;margin-top: -35px; border: 1px solid rgb(218, 213, 213);">
yaqizhang's avatar
yaqizhang committed
86 87 88
            <div style="width: 100%;height: 100%" id="container"></div>
          </div>
        </div>
89 90
        <!-- 接单信息 -->
        <div v-if="form.actualTime != '' && form.actualTime != null">
yaqizhang's avatar
yaqizhang committed
91 92 93 94 95 96
          <el-divider></el-divider>
          <div style="color: #31EAEA;width: 100%;height: 40px;">
            <ul><li>接单信息</li></ul>
          </div>
          <el-form ref="form" v-model="form" :rules="rules" label-width="100px" style="margin-left: 50px;height: 30px;width: 100%;">
            <el-form-item label="接单人:" prop="actualInspectorName" style="float: left;width: 20%;">
yaqizhang's avatar
yaqizhang committed
97 98
              <font>{{form.actualInspectorName}}</font>
            </el-form-item>
yaqizhang's avatar
yaqizhang committed
99
            <el-form-item label="接单时间:" prop="actualTime" style="float: left;">
yaqizhang's avatar
yaqizhang committed
100
              <font>{{form.actualTime}}</font>
王晓倩's avatar
王晓倩 committed
101
            </el-form-item>
yaqizhang's avatar
yaqizhang committed
102 103
          </el-form>
        </div>
104
        <el-divider></el-divider>
yaqizhang's avatar
yaqizhang committed
105
        <!-- 反馈信息 -->
106
        <div style="width: 100%;font-weight: 600;" v-if="form.feedbackList != null">
yaqizhang's avatar
yaqizhang committed
107 108 109
          <div style="color: #31EAEA;width: 100%;height: 40px;">
            <ul><li>反馈信息</li></ul>
          </div>
110 111
              <div class="block" style="width: 95%;margin-left: 2%;">
                <el-timeline ref="timeline">
yaqizhang's avatar
yaqizhang committed
112
                  <el-timeline-item v-for="(activity, index) in form.feedbackList"  v-show='index>1?false:true' :key="index" :timestamp="activity.feedbackTime">
113 114 115 116 117 118 119 120 121 122 123
                    <el-card>
                    <div style="width: 600px;float: left;">
                      <div style=" width: 600px;">
                        <div style="float: left;margin-left: 50px; width: 250px;">
                          <p>设备类型:
                            <span v-if="activity.deviceType == 0">管道</span>
                            <span v-if="activity.deviceType == 1">调压箱</span>
                            <span v-if="activity.deviceType == 2">阀门井</span>
                            <span v-if="activity.deviceType == 3">流量计</span>
                            <span v-if="activity.deviceType == 4">压力表</span>
                          </p>
124

125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
                          <p>是否有隐患:
                            <span v-if="activity.isHiddenDanger == 1"></span>
                            <span v-if="activity.isHiddenDanger == 2"></span>
                          </p>
                          <p v-if="activity.isHiddenDanger == 1">处理状态:
                            <span v-if="activity.dealStatus == 1">不需要处理</span>
                            <span v-if="activity.dealStatus == 2">已处理完成</span>
                            <span v-if="activity.dealStatus == 3">未处理完成</span>
                          </p>
                          <div style="width: 600px;">
                            <p>反馈信息:
                              <span>{{activity.contents}}</span>
                            </p>
                          </div>
                        </div>
                        <div style="float: left;margin-left: 50px; width: 250px;">
                          <p>设备名称:{{activity.deviceName}}</p>
                          <p>反馈时间:{{activity.feedbackTime}}</p>
143

144
                        </div>
yaqizhang's avatar
yaqizhang committed
145
                      </div>
yaqizhang's avatar
yaqizhang committed
146
                    </div>
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
                      <div class="feedbackTime-div">
                        <div class="feedbackTime">
                          <el-image :src="activity.pictureUrl1" :preview-src-list="[activity.pictureUrl1]" v-if="activity.pictureUrl1 != null && activity.pictureUrl1 != ''" style="width: 90px;"></el-image>
                        </div>
                        <div class="feedbackTime">
                          <el-image :src="activity.pictureUrl2" :preview-src-list="[activity.pictureUrl2]"  v-if="activity.pictureUrl2 != null && activity.pictureUrl2 != ''" style="width: 90px;"></el-image>
                        </div>
                        <div class="feedbackTime">
                          <el-image :src="activity.pictureUrl3" :preview-src-list="[activity.pictureUrl3]"  v-if="activity.pictureUrl3 != null && activity.pictureUrl3 != ''" style="width: 90px;"></el-image>
                        </div>
                      </div>
                    </el-card>
                  </el-timeline-item>
                </el-timeline>
              </div>
yaqizhang's avatar
yaqizhang committed
162 163 164 165 166 167 168 169 170
              <div style="width: 95%;position: relative;" @click="changeDisplay(scope)">
                <!-- <el-button type="primary"> -->
                  <i class="el-icon-arrow-down" v-if="isDisplay==false" style="margin-left: 100px;color: #909399;font-size: 14px;">
                    <span style="text-decoration:underline">显示全部</span>
                  </i>
                  <i class="el-icon-arrow-up" v-else style="color: #909399;font-size: 14px;margin-left: 100px;">
                    <span style="text-decoration:underline">收起</span>
                  </i>
                <!-- </el-button> -->
171

yaqizhang's avatar
yaqizhang committed
172
              </div>
王晓倩's avatar
王晓倩 committed
173
        </div>
王晓倩's avatar
王晓倩 committed
174

yaqizhang's avatar
yaqizhang committed
175
        <!-- 归档 -->
176

yaqizhang's avatar
yaqizhang committed
177 178 179 180 181 182 183
        <div class="" style="width: 95%; height: 60px;margin-left: 50px;text-align: center;">
          <el-button
            type="primary"
            size="normal"
            icon="el-icon-edit"
            @click="handleUpdate(form.orderId)"
            v-hasPermi="['workOrder:basicsInfo:edit']"
184
            v-if="form.orderStatus == 0"
yaqizhang's avatar
yaqizhang committed
185 186 187 188 189 190 191
          >修改</el-button>
            <el-button
              type="primary"
              size="normal"
              icon="el-icon-edit"
              @click="handleFinish(form.orderId)"
              v-hasPermi="['workOrder:basicsInfo:editStatus']"
192
              v-if="form.orderStatus == 2"
yaqizhang's avatar
yaqizhang committed
193 194 195 196 197 198 199 200
            >归档</el-button>
            <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
              <el-form ref="form" :model="form" :rules="rules" label-width="100px">
                <div v-if="this.title == '工单信息修改'">
                  <el-form-item label="工单名称" prop="orderName">
                    <el-input v-model="form.orderName" placeholder="请输入工单名称" />
                  </el-form-item>
                  <el-form-item label="指定执行人员" prop="appointInspector">
201
                    <el-select v-model="form.appointInspector" placeholder="请选择执行人员" clearable size="small" @change="setUserId">
yaqizhang's avatar
yaqizhang committed
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236
                      <el-option
                        v-for="item in inspector"
                        :key="item.userId"
                        :label="item.nickName"
                        :value="item.userId"
                      ></el-option>
                    </el-select>
                  </el-form-item>
                  <el-form-item label="工单描述" prop="remarks">
                    <el-input v-model="form.remarks" type="textarea" placeholder="请输入工单描述" />
                  </el-form-item>
                </div>
                <div v-if="this.title == '工单信息归档'">
                  <el-form-item label="工单名称" prop="orderName">
                    <font>{{form.orderName}}</font>
                  </el-form-item>
                  <el-form-item label="工单类型" prop="orderType">
                    <span type="primary" v-if="form.orderType == 1">巡检信息</span>
                    <span type="primary" v-if="form.orderType == 2">隐患信息</span>
                    <span type="primary" v-if="form.orderType == 3">报警信息</span>
                  </el-form-item>
                  <el-form-item label="工单编号" prop="orderId">
                    <font>{{form.orderId}}</font>
                  </el-form-item>
                  <el-form-item label="归档信息" prop="archiving">
                    <el-input v-model="form.archiving" type="textarea" placeholder="请输入归档信息" />
                  </el-form-item>
                </div>
              </el-form>
              <div slot="footer" class="dialog-footer">
                <el-button type="primary" @click="submitForm">确 定</el-button>
                <el-button @click="cancel">取 消</el-button>
              </div>
            </el-dialog>
        </div>
yaqizhang's avatar
yaqizhang committed
237
      </div>
王晓倩's avatar
王晓倩 committed
238
    </div>
yaqizhang's avatar
yaqizhang committed
239
  </template>
王晓倩's avatar
王晓倩 committed
240

yaqizhang's avatar
yaqizhang committed
241
  <script>
王晓倩's avatar
王晓倩 committed
242

243
  import { listBasicsInfo, getBasicsInfo, delBasicsInfo, addBasicsInfo, updateBasicsInfo, updateOrderStatus, exportBasicsInfo } from "@/api/workOrder/basicsInfo";
244 245 246
  import { deviceTree } from "@/api/device/deviceInfo";
  import gaodeMap from "utils/gaodeMap.js";
  import {map, DEVICE_TYPE} from "utils/gaodeMap.js";
yaqizhang's avatar
yaqizhang committed
247
  import { inspectorList } from "@/api/system/user";
248

yaqizhang's avatar
yaqizhang committed
249 250 251 252 253 254
export default {
    name: "BasicsInfo",
    components: {
    },
    data() {
      return {
yaqizhang's avatar
yaqizhang committed
255
        inspector: [],
256
        isDisplay:false,
yaqizhang's avatar
yaqizhang committed
257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276
        dialogImageUrl: '',
        dialogVisible: false,
        disabled: false,
        imageUrl: '',
        // 遮罩层
        loading: true,
        // 导出遮罩层
        exportLoading: false,
        // 选中数组
        ids: [],
        // 非单个禁用
        single: true,
        // 非多个禁用
        multiple: true,
        // 显示搜索条件
        showSearch: true,
        // 总条数
        total: 0,
        // 工单基础信息表格数据
        basicsInfoList: [],
yaqizhang's avatar
yaqizhang committed
277
        // feedbackList: [],
yaqizhang's avatar
yaqizhang committed
278 279 280 281 282 283 284 285 286
        // 弹出层标题
        title: "",
        // 是否显示弹出层
        open: false,
        // 工单状态字典
        typeOptions: [],
        pickerOptions:[],
        // 工单类型字典
        ordertypeOptions: [],
287 288 289 290 291 292 293 294 295 296 297
        // 设备树选项
        deviceOptions: [
          {
            label: "设备列表",
            childList: []
          }
        ],
        defaultProps: {
          children: "childList",
          label: "label"
        },
yaqizhang's avatar
yaqizhang committed
298 299 300 301 302 303 304 305 306 307 308 309 310 311 312
        // 查询参数
        queryParams: {
          pageNum: 1,
          pageSize: 10,
          orderType: null,
          orderName: null,
          orderStatus: null,
          appointInspector: null,
          allotTime: null,
          actualInspector: null,
          actualTime: null,
          remarks: null
        },
        // 表单参数
        form: {},
313
        activity: {},
yaqizhang's avatar
yaqizhang committed
314 315 316 317
        // 表单校验
        rules: {
        },
        active : 0,
318 319
        orderId : "",
        showAndHide : false
yaqizhang's avatar
yaqizhang committed
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335
      };
    },
    created() {
      // 如果是跳转来的,则接受初始化参数
      // this.user_id = this.$route.query.id; //详细信息页接收参数
      this.orderId = this.$route.query.orderId;
      this.getList();
      this.getDicts("t_order_status").then(response => {
        this.typeOptions = response.data;
      });
      this.getDicts("t_order_type").then(response => {
        this.ordertypeOptions = response.data;
      });
      this.getBasicsInfo();
    },
    mounted(){
yaqizhang's avatar
yaqizhang committed
336 337 338
      let gaoMap =  new gaodeMap("石家庄");
      this.gaoMap = gaoMap;
      this.getBasicsInfo();
yaqizhang's avatar
yaqizhang committed
339 340
    },
    methods: {
yaqizhang's avatar
yaqizhang committed
341 342 343 344 345 346 347
      getInspectorList(){
        this.loading = true;
        inspectorList().then(response => {
          this.inspector = response.data;
          this.loading = false;
        });
      },
348 349 350 351 352 353
      // 点击按钮显示隐藏
      changeDisplay(e){
        this.isDisplay = !this.isDisplay
        let $timeline = this.$refs.timeline;
        if(!this.showAndHide){
          for(let i = 0; i< $timeline.$children.length; i++){
yaqizhang's avatar
yaqizhang committed
354
            if(i>1){
355 356 357 358 359 360
              $timeline.$children[i].$el.style.display = "block";
            }
          }
          this.showAndHide = true;
        }else{
          for(let i = 0; i< $timeline.$children.length; i++){
yaqizhang's avatar
yaqizhang committed
361
            if(i>1){
362 363 364 365 366
              $timeline.$children[i].$el.style.display = "none";
            }
          }
          this.showAndHide = false;
        }
367 368


369 370 371 372
        //$timeline.toggleRowExpansion(row,true)
      },


yaqizhang's avatar
yaqizhang committed
373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395
      handleRemove(file) {
        console.log(file);
      },
      handlePictureCardPreview(file) {
        this.dialogImageUrl = file.url;
        this.dialogVisible = true;
      },
      handleDownload(file) {
        console.log(file);
      },
      /** 查询工单基础信息列表 */
      getList() {
        this.loading = true;
        listBasicsInfo(this.queryParams).then(response => {
          this.basicsInfoList = response.rows;
          this.total = response.total;
          this.loading = false;
        });
      },
      getBasicsInfo (){
        getBasicsInfo(this.orderId).then(response =>{
          this.form = response.data;
          this.active = parseInt(response.data.orderStatus) + 1;
yaqizhang's avatar
yaqizhang committed
396
          if(this.form.deviceInfoList.length>0){
yaqizhang's avatar
yaqizhang committed
397
            console.log("this.form.deviceInfoList",this.form.deviceInfoList)
yaqizhang's avatar
yaqizhang committed
398 399
            this.gaoMap.resetMapCenter([this.form.deviceInfoList[0].longitude,this.form.deviceInfoList[0].latitude]);
          }
yaqizhang's avatar
yaqizhang committed
400 401 402
          for(var i = 0; i < this.form.deviceInfoList.length; i++){
            let obj = this.form.deviceInfoList[i];
            this.gaoMap.addMarker(DEVICE_TYPE.WORKORDER, obj)
403
          }
王晓倩's avatar
王晓倩 committed
404

405 406
          if(this.form.orderType == '1') {
            // 获取设备列表树
407 408 409 410
            let data = {
              key1:this.form.deviceInfoList,
              key2:this.form.pipeList
            };
411 412 413
            deviceTree(data).then(response => {
              this.deviceOptions[0].childList = response.data;
            });
yaqizhang's avatar
yaqizhang committed
414
          }
yaqizhang's avatar
yaqizhang committed
415
        });
416 417 418 419 420 421 422 423
      },
      // 筛选节点
      // filterNode(value, data) {
      //   if (!value) return true;
      //   return data.label.indexOf(value) !== -1;
      // },
      // 节点单击事件
      handleNodeClick(data) {
yaqizhang's avatar
yaqizhang committed
424

425 426 427
      },
      setUserId(val){
        this.form.appointInspector = val;
yaqizhang's avatar
yaqizhang committed
428 429 430 431
      },
      // 取消按钮
      cancel() {
        this.open = false;
yaqizhang's avatar
yaqizhang committed
432
        // this.reset();
yaqizhang's avatar
yaqizhang committed
433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471
      },
      // 表单重置
      reset() {
        this.form = {
          orderId: null,
          orderType: null,
          orderName: null,
          orderStatus: "0",
          createTime: null,
          appointInspector: null,
          allotTime: null,
          actualInspector: null,
          actualTime: null,
          remarks: null
        };
        this.resetForm("form");
      },
      /** 搜索按钮操作 */
      handleQuery() {
        this.queryParams.pageNum = 1;
        this.getList();
      },
      /** 重置按钮操作 */
      resetQuery() {
        this.resetForm("queryForm");
        this.handleQuery();
      },
      // 多选框选中数据
      handleSelectionChange(selection) {
        this.ids = selection.map(item => item.orderId)
        this.single = selection.length!==1
        this.multiple = !selection.length
      },
      /** 新增按钮操作 */
      handleAdd() {
        this.reset();
        this.open = true;
        this.title = "添加工单基础信息";
      },
yaqizhang's avatar
yaqizhang committed
472
      /** 归档按钮操作 */
473 474 475 476 477 478 479 480
      handleFinish(res) {
        // this.reset();
        getBasicsInfo(res).then(response => {
          this.form = response.data;
          this.open = true;
          this.title = "工单信息归档";
        });
      },
yaqizhang's avatar
yaqizhang committed
481
      /** 修改按钮操作 */
yaqizhang's avatar
yaqizhang committed
482
      handleUpdate(res) {
483 484 485 486 487 488 489 490
        // this.reset();
        this.getInspectorList();
        getBasicsInfo(this.orderId).then(response => {
          this.form = response.data;
          this.open = true;
          this.title = "工单信息修改";
        });
      },
yaqizhang's avatar
yaqizhang committed
491
       /** 提交按钮 */
492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507
      submitForm() {
        this.$refs["form"].validate(valid => {
          if (valid) {
            if (this.form.orderStatus == '0') {
              updateBasicsInfo(this.form).then(response => {
                this.msgSuccess("修改成功");
                this.open = false;
                location.reload();
              });
            } else if(this.form.orderStatus == '2'){
              updateOrderStatus(this.form).then(response => {
                this.msgSuccess("操作成功");
                this.open = false;
                location.reload();
              });
            }
yaqizhang's avatar
yaqizhang committed
508
          }
509 510
        });
      },
yaqizhang's avatar
yaqizhang committed
511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543
      /** 删除按钮操作 */
      handleDelete(row) {
        const orderIds = row.orderId || this.ids;
        this.$confirm('是否确认删除工单基础信息编号为"' + orderIds + '"的数据项?', "警告", {
            confirmButtonText: "确定",
            cancelButtonText: "取消",
            type: "warning"
          }).then(function() {
            return delBasicsInfo(orderIds);
          }).then(() => {
            this.getList();
            this.msgSuccess("删除成功");
          }).catch(() => {});
      },
      /** 导出按钮操作 */
      handleExport() {
        const queryParams = this.queryParams;
        this.$confirm('是否确认导出所有工单基础信息数据项?', "警告", {
            confirmButtonText: "确定",
            cancelButtonText: "取消",
            type: "warning"
          }).then(() => {
            this.exportLoading = true;
            return exportBasicsInfo(queryParams);
          }).then(response => {
            this.download(response.msg);
            this.exportLoading = false;
          }).catch(() => {});
      }
    }
  }
  </script>
  <style>
544 545 546 547 548 549 550 551 552
    .el-tree-node__content{
      width: 150px;
    }
    .el-divider--horizontal {
      display: block;
      height: 1px;
      width: 100%;
      margin: 20px 0;
    }
yaqizhang's avatar
yaqizhang committed
553 554 555 556
    .feedbackTime-div{
      float: left;margin-left: 150px;margin-top: 10px;
    }
    .feedbackTime{
yaqizhang's avatar
yaqizhang committed
557 558
      height: 120px;
      width: 120px;
yaqizhang's avatar
yaqizhang committed
559 560
      float: left;
      margin-left: 15px;
yaqizhang's avatar
yaqizhang committed
561
      margin-top: 5px;
yaqizhang's avatar
yaqizhang committed
562 563 564 565 566 567 568 569
      margin-bottom: 15px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .el-card__body {
      padding: 5px 20px 20px 20px;
    }
yaqizhang's avatar
yaqizhang committed
570 571 572 573 574 575
    .detail .el-form{
        width: 20%;
    }
    .detail .el-form-item{
        margin-bottom: 0px;
    }
yaqizhang's avatar
yaqizhang committed
576 577 578
    .el-tree{
      margin-top: 5px;
    }
yaqizhang's avatar
yaqizhang committed
579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609
    .avatar-uploader{
        width: 25%;
        float: left;
    }
    .avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  .avatar-uploader .el-upload:hover {
    border-color: #409EFF;
  }
  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 178px;
    height: 178px;
    line-height: 178px;
    text-align: center;
  }
  .avatar {
    width: 178px;
    height: 178px;
    display: block;
  }
  li{
    font-size: 15px;
    font-weight: 900;
  }
王晓倩's avatar
王晓倩 committed
610
  </style>