From a63c3369e0bf31d956bdc05c93da027dd4b45180 Mon Sep 17 00:00:00 2001 From: bibi <541660090@qq.com> Date: Thu, 3 Mar 2022 15:24:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/operation/inspection/plan.js | 7 + src/views/Basic/Employee/depend/form.vue | 2 +- .../_inspectionExecute/depend/config.js | 94 ++++---- .../_inspectionExecute/depend/detail.vue | 111 ---------- .../_inspectionExecute/depend/form.js | 21 -- .../_inspectionExecute/depend/form.vue | 201 ------------------ .../_inspectionExecute/index.vue | 127 ++--------- .../_inspectionPlan/depend/config.js | 54 ++++- .../_inspectionPlan/depend/form.js | 39 ++-- .../_inspectionPlan/depend/form.vue | 190 +++++++++++++---- .../_inspectionPlan/index.vue | 32 ++- 11 files changed, 316 insertions(+), 562 deletions(-) delete mode 100644 src/views/Operation/InspectionManage/_inspectionExecute/depend/detail.vue delete mode 100644 src/views/Operation/InspectionManage/_inspectionExecute/depend/form.js delete mode 100644 src/views/Operation/InspectionManage/_inspectionExecute/depend/form.vue diff --git a/src/api/operation/inspection/plan.js b/src/api/operation/inspection/plan.js index 037b9f5..1879f37 100644 --- a/src/api/operation/inspection/plan.js +++ b/src/api/operation/inspection/plan.js @@ -14,6 +14,13 @@ export function planisEnable(params) { params: params, }) } +export function routeSelect(params) { + return httpService({ + url: `/user/inspectionRoute/allList`, + method: 'get', + params: params, + }) +} export function planInfo(params) { return httpService({ url: `/user/inspectionPlan/findById`, diff --git a/src/views/Basic/Employee/depend/form.vue b/src/views/Basic/Employee/depend/form.vue index 6a8b7a0..f7b8766 100644 --- a/src/views/Basic/Employee/depend/form.vue +++ b/src/views/Basic/Employee/depend/form.vue @@ -258,7 +258,7 @@ export default { this.positionDisabled(this.treeData) }); }, - // 部门disabled + // 部门禁选 positionDisabled(arr){ arr.forEach((item,index)=>{ if(item.type=== 1 && (item.childList.length===0 || item.childList===null)){ diff --git a/src/views/Operation/InspectionManage/_inspectionExecute/depend/config.js b/src/views/Operation/InspectionManage/_inspectionExecute/depend/config.js index d0b7ea0..f2f8a31 100644 --- a/src/views/Operation/InspectionManage/_inspectionExecute/depend/config.js +++ b/src/views/Operation/InspectionManage/_inspectionExecute/depend/config.js @@ -1,73 +1,79 @@ export const formItem = [ { - type: 'select', - label:'资讯分类', - prop:'categoryId', - option:[], - placeholder:'请选择' - }, - { - type: 'select', - label:'发布状态', - prop:'status', - option:[{ id:1,name:'未发布'},{ id:2,name:'已发布'},], - placeholder:'请选择状态' - }, - { - type: 'time', - label:'创建时间', - start: 'createStartDate', - end:'createEndDate', + type: 'input', + label:'编号', + prop:'code', + placeholder:'请输入' }, { type: 'input', - label:'标题', - prop:'title', + label:'巡检人手机号', + prop:'inspectorTel', placeholder:'请输入' }, + { + type: 'select', + label:'巡检状态', + prop:'inspectionStatus', + placeholder: '请选择', + option:[{ id:1,name:'待巡检'},{ id:2,name:'已巡检'},{ id:3,name:'巡检中'},{ id:4,name:'未巡检'}] + }, ] export const columns = [ { - title: "标题", - dataIndex: "title", - width: "10%", + title: "执行巡检编号", + dataIndex: "code", }, { - title: "分类", - dataIndex: "categoryName", - width: "10%", + title: "执行巡检名称", + dataIndex: "name", }, { - title: "发布状态", + title: "计划当次巡检开始时间", + dataIndex: "beginDate", + }, + { + title: "计划当次巡检结束时间", + dataIndex: "endDate", + }, + { + title: "实际当次巡检开始时间", + dataIndex: "actualBeginDate", + }, + { + title: "实际当次巡检结束时间", + dataIndex: "actualEndDate", + }, + { + title: "状态", dataIndex: "status", - width: "6%", customRender: function (status) { switch (status) { case 1: - return '未发布' + return "待巡检" + break; case 2: - return '已发布' + return "已巡检" + break; + case 3: + return "巡检中" + break; + case 4: + return "未巡检" + break; + default: + break; } } }, { - title: "阅读量", - dataIndex: "viewsNum", - width: "10%", - }, - { - title: "创建时间", - dataIndex: "createDate", - width: "12%", + title: "巡检人姓名", + dataIndex: "inspectorName", }, { - title: "操作", - dataIndex: "action", - key: "action", - width: "180", - fixed: "right", - scopedSlots: { customRender: "action" }, + title: "巡检人手机号", + dataIndex: "inspectorTel", }, ] export const pagination = { diff --git a/src/views/Operation/InspectionManage/_inspectionExecute/depend/detail.vue b/src/views/Operation/InspectionManage/_inspectionExecute/depend/detail.vue deleted file mode 100644 index ee18a80..0000000 --- a/src/views/Operation/InspectionManage/_inspectionExecute/depend/detail.vue +++ /dev/null @@ -1,111 +0,0 @@ - - - - - diff --git a/src/views/Operation/InspectionManage/_inspectionExecute/depend/form.js b/src/views/Operation/InspectionManage/_inspectionExecute/depend/form.js deleted file mode 100644 index 1358dae..0000000 --- a/src/views/Operation/InspectionManage/_inspectionExecute/depend/form.js +++ /dev/null @@ -1,21 +0,0 @@ -export const form = { - id:undefined, - title:undefined, - categoryId:undefined, - status:undefined, - content:undefined, - imgUrls:[] -} -export const rules = { - title:[{required:true,message:'请输入标题',trigger:'blur'}], - categoryId:[{required:true,message:'请选择分类',trigger:'change'}], - status:[{required:true,message:'请选择',trigger:'change'}], - content:[{required:true,message:'请输入',trigger:'blur'}], -} -export const options = { - status:[ - { id:1, name:'未发布' }, - { id:2, name:'已发布' }, - ], - categoryId:[] -} \ No newline at end of file diff --git a/src/views/Operation/InspectionManage/_inspectionExecute/depend/form.vue b/src/views/Operation/InspectionManage/_inspectionExecute/depend/form.vue deleted file mode 100644 index 2bd27a0..0000000 --- a/src/views/Operation/InspectionManage/_inspectionExecute/depend/form.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - - diff --git a/src/views/Operation/InspectionManage/_inspectionExecute/index.vue b/src/views/Operation/InspectionManage/_inspectionExecute/index.vue index 93b6ce6..3fbe6e7 100644 --- a/src/views/Operation/InspectionManage/_inspectionExecute/index.vue +++ b/src/views/Operation/InspectionManage/_inspectionExecute/index.vue @@ -1,15 +1,15 @@