- {{ searchxianshitit }} - +
巡视工单信息
@@ -50,7 +49,7 @@ *模板: - @@ -116,16 +115,14 @@
-
-
+
+
巡视人员
新增
-
- +
+ > - @@ -75,7 +160,31 @@ export default { name: 'DispatchOrderinfoInfo', data() { return { - formobj: {} + formobj: {}, + list:[], + TabList:[], + dataList:[], + arr:[{value:1,type:'计划巡视'},{value:2,type:'专项巡视'},{value:3,type:'告警巡视'}], + arrList:[{value:1,type:'一般'},{value:2,type:'重要'},{value:3,type:'紧急'},{value:4,type:'督办'}], + queryParams: { + current: 1, + size: 100, + total: 0, + params: { + sids: [], + templateid: '', + taskid: '' + } + }, + queryParamsA: { + current: 1, + size: 10, + total: 0, + params: { + orderid:'', + templateid:'' + } + } } }, methods: { @@ -84,32 +193,59 @@ export default { this.$emit('doback') }, showInfo(row) { - req - .fetchBySid(row.sid) - .then(resp => { - if (resp.success) { - const vdata = resp.data - _this.formobj.id = vdata.id - _this.formobj.sid = vdata.sid // SID - _this.formobj.custid = vdata.custid // 客户ID - _this.formobj.custname = vdata.custname // 客户名称 - _this.formobj.supervisesid = vdata.supervisesid // 监管公司id - _this.formobj.orderno = vdata.orderno // 用法说明:工单编号规则。 - _this.formobj.ordername = vdata.ordername // 工单名称 - _this.formobj.orderdegree = vdata.orderdegree // 描述:1-一般;2-重要; 3-紧急;4-督办。 - _this.formobj.ordertype = vdata.ordertype // 描述:1-计划巡视; - _this.formobj.ordercontent = vdata.ordercontent // 工单内容 - _this.formobj.arrivetime = vdata.arrivetime // 到达现场时间 - _this.formobj.planfinishtime = vdata.planfinishtime // 完成时间 - _this.formobj.operationcontent = vdata.operationcontent // 处理情况 - _this.formobj.receiveperson = vdata.receiveperson // 现场联系人 - _this.formobj.receivetel = vdata.receivetel // 现场联系人电话 - } - }) - .catch(e => { - _this.formobj = row - }) - } + this.$nextTick(() => { + this.$refs['form_obj'].clearValidate() + }) + this.searchxianshitit = '显示添加条件' + this.isSearchShow = true + this.viewTitle = '【修改】工单数据' + const _this = this + req + .fetchBySid(row.sid) + .then(resp => { + if (resp.code==200) { + const vdata = resp.data + _this.formobj.id = vdata.id + _this.formobj.sid = vdata.sid // SID + _this.formobj.custid = vdata.custid // 客户ID + _this.formobj.custname = vdata.custname // 客户名称 + _this.formobj.supervisesid = vdata.supervisesid // 监管公司id + _this.formobj.orderno = vdata.orderno // 工单编号 + _this.formobj.ordername = vdata.ordername // 工单名称 + _this.formobj.orderdegree = vdata.orderdegree // 描述:1-一般;2-重要; 3-紧急;4-督办。 + _this.formobj.ordertype = vdata.ordertype // 描述:1-计划巡视; + _this.formobj.ordercontent = vdata.ordercontent // 工单内容 + _this.formobj.receiveperson = vdata.receiveperson // 现场联系人 + _this.formobj.receivetel = vdata.receivetel // 现场联系人电话 + _this.formobj.templatesid = vdata.templatesid // 模板sid + this.queryParamsA.params.templateid= vdata.templatesid // 模板sid + // _this.formobj.workers = vdata.workers // 现场联系人电话 + } else { + // 根据resp.code进行异常情况处理 + } + }) + .catch(e => { + this.formobj = row + }) + this.queryParamsA.params.orderid= row.sid + this.ShowList() + this.ShowYunwei() + }, + ShowYunwei(){ + req.listPageB(this.queryParamsA).then((res)=>{ + this.TabList= res.data.records + }) + }, + // 查询任务项列表信息 + ShowList(){ + var templateid=this.queryParamsA.params.templateid; + if (templateid==''){ + return; + } + req.listPageA(this.queryParamsA).then((res)=>{ + this.list = res.data.records + }) + } } } diff --git a/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchpatrolplan.vue b/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchpatrolplan.vue index 2f48171c..01c9bccd 100644 --- a/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchpatrolplan.vue +++ b/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchpatrolplan.vue @@ -42,7 +42,7 @@ - + @@ -83,7 +83,7 @@ {{ TableList.startdate }} {{ TableList.enddate }} -
+
@@ -128,7 +128,7 @@ export default { params: { planname: '', // 计划名称 custid: '', // 客户标识 - planno: '', // 计划编号 + planno: '' // 计划编号 } }, multipleSelection: [], @@ -199,7 +199,7 @@ export default { .then(resp => { console.log(resp) this.btndisabled = false - if (resp.success) { + if (resp.success) { // 加提交后的逻辑 } else { // 根据resp.code进行异常情况处理 @@ -249,7 +249,7 @@ export default { .listPage(this.queryParams) .then(resp => { _this.tableLoading = false - if (resp.success) { + if (resp.success) { const data = resp.data _this.queryParams.total = data.total _this.dataList = data.records @@ -278,10 +278,8 @@ export default { this.$store.dispatch('tagsView/delView', this.$route) this.$router.go(-1) }, - purchase(row){ - this.drawer=true - this.TableList=row - console.log(row); + purchase(row){ + this.viewState=4 }, } } diff --git a/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchpatrolplanAdds.vue b/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchpatrolplanAdds.vue index 8afda781..ac078bf0 100644 --- a/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchpatrolplanAdds.vue +++ b/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchpatrolplanAdds.vue @@ -38,13 +38,25 @@ *巡视类型: - + + + *巡视模板: - @@ -72,22 +84,20 @@ - + *周期类型: - + size="small" > @@ -133,10 +143,8 @@ 新增