From 60899fdf2dc70d4db8fd1fde65757096286e02eb Mon Sep 17 00:00:00 2001 From: djz8236 Date: Tue, 27 Jun 2023 00:14:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9dispatch=20ui=E7=9A=84?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=90=8E=E7=AB=AF=E6=96=B9=E5=BC=8F=20?= =?UTF-8?q?=E5=B7=A5=E5=8D=95=E5=A2=9E=E5=8A=A0=E4=BC=81=E4=B8=9A=E7=9A=84?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.env.development | 4 +- .../.env.production | 2 +- .../yxtdispatchcenter/dispatchpatrolplan.js | 6 ++ .../dispatchorderinfoInfo.vue | 45 +++++++------ .../dispatchpatrolplanAdds.vue | 65 ++++++++++++++----- .../dispatchpatrolplanInfos.vue | 18 ++--- 6 files changed, 91 insertions(+), 49 deletions(-) diff --git a/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/.env.development b/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/.env.development index 3a606935..ccf3e06f 100644 --- a/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/.env.development +++ b/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/.env.development @@ -5,7 +5,7 @@ ENV = 'development' VUE_APP_BASE_API = '/api' ## 配置测试和本地开发时的 接口地址 -##VUE_APP_URL = "http://jianguan.yyundong.com" -VUE_APP_URL = "http://127.0.0.1:8112" +VUE_APP_URL = "http://jianguan.yyundong.com" +##VUE_APP_URL = "http://127.0.0.1:8112" #VUE_APP_URL = "http://192.168.1.177:7109" #VUE_APP_URL = "http://8.130.39.13:8112" diff --git a/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/.env.production b/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/.env.production index f9657eff..5d45f122 100644 --- a/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/.env.production +++ b/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/.env.production @@ -5,4 +5,4 @@ ENV = 'production' VUE_APP_BASE_API = '/api' ## 配置 正式接口地址 -VUE_APP_URL = "http://120.46.131.15:8111" +VUE_APP_URL = "http://jianguan.yyundong.com" diff --git a/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/api/yxtdispatchcenter/dispatchpatrolplan.js b/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/api/yxtdispatchcenter/dispatchpatrolplan.js index af30e252..3358293d 100644 --- a/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/api/yxtdispatchcenter/dispatchpatrolplan.js +++ b/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/api/yxtdispatchcenter/dispatchpatrolplan.js @@ -10,6 +10,12 @@ export default { data: params }) }, + entlistPage: function(){ + return request({ + url: '/crm/v1/enterpriseinformation/list', + method: 'post' + }) + }, // 保存新增记录 saveOrUpdate: function(params) { return request({ diff --git a/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchorderinfoInfo.vue b/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchorderinfoInfo.vue index 3906dd5b..18cfd256 100644 --- a/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchorderinfoInfo.vue +++ b/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchorderinfoInfo.vue @@ -19,21 +19,23 @@ *客户名称: - + {{formobj.custname}} - *工单编号: + *工单名称: - - {{formobj.orderno}} + + {{formobj.ordername}} - *工单名称: + *工单编号: - - {{formobj.ordername}} + + {{formobj.orderno}} + + *工单内容: @@ -58,20 +60,6 @@ /> - - - - *现场联系人: - - - {{formobj.receiveperson}} - - - *现场联系人电话: - - - {{formobj.receivetel}} - *巡视类型: @@ -109,6 +97,21 @@ + + + *现场联系人: + + + {{formobj.receiveperson}} + + + *现场联系人电话: + + + {{formobj.receivetel}} + + +
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 ac078bf0..55235326 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 @@ -32,8 +32,29 @@ *客户名称: - + + + + + + + *计划编号: + + + + *巡视类型: @@ -70,14 +91,16 @@ /> - - *用户联系人: - - - - + + + + *用户联系人: + + + + *用户联系人电话: @@ -113,12 +136,7 @@ - - *计划编号: - - - - + @@ -223,6 +241,7 @@ export default { dataList:[], TabList:[], list:[], + custList:[], arr:[{value:'1',type:'计划巡视'},{value:'2',type:'专项巡视'},{value:'3',type:'告警巡视'}], arrList:[{value:'1',type:'一般'},{value:'2',type:'重要'},{value:'3',type:'紧急'},{value:'4',type:'督办'}], rules: { @@ -264,17 +283,29 @@ export default { }, mounted(){ req2.listPage(this.queryParams).then(resp => { - if (resp.success) { - const data = resp.data - this.dataList = data.records - } + if (resp.success) { + const data = resp.data + this.dataList = data.records + } }) + req.entlistPage().then(resp => { + if (resp.success) { + const data = resp.data + this.custList = data + } + }) }, created() {}, methods: { changeValue(value){ this.queryParamsA.params.templateid= value; this.ShowList(); + }, + custnamechangeValue(value){ + let enterpriseName = this.custList.find((item) => { + return item.sid == value; + }).enterpriseName; + this.formobj.custname=enterpriseName; }, handleReturn(isreload) { if (isreload === 'true') this.$emit('reloadlist') diff --git a/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchpatrolplanInfos.vue b/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchpatrolplanInfos.vue index 9a9d6fb8..1c6d20a2 100644 --- a/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchpatrolplanInfos.vue +++ b/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchpatrolplanInfos.vue @@ -28,6 +28,12 @@ {{formobj.custname}} + + *计划编号: + + + {{formobj.planno}} + *巡视类型: @@ -66,14 +72,15 @@ /> + + + *用户联系人: {{formobj.contactperson}} - - *用户联系人电话: @@ -111,12 +118,7 @@ {{formobj.cyclevalue}} - - *计划编号: - - - {{formobj.planno}} - +