-
@@ -216,11 +223,13 @@ export default {
dataList:[],
TabList:[],
list:[],
+ arr:[{value:'1',type:'计划巡视'},{value:'2',type:'专项巡视'},{value:'3',type:'告警巡视'}],
+ arrList:[{value:'1',type:'一般'},{value:'2',type:'重要'},{value:'3',type:'紧急'},{value:'4',type:'督办'}],
rules: {
planname: [{ required: true, message: '计划名称不能为空', trigger: 'blur' }], // 计划名称
custname: [{ required: true, message: '客户标识不能为空', trigger: 'blur' }], // 客户名称
supervisesid: [{ required: true, message: '监管公司id不能为空', trigger: 'blur' }], // 监管公司id
- patroltype: [{ required: true, message: '1计划巡视、2专项巡视不能为空', trigger: 'blur' }], // 计划类型
+ patroltype: [{ required: true, message: '巡视类型不能为空', trigger: 'blur' }], // 计划类型
startdate: [{ required: true, message: '计划开始日期不能为空', trigger: 'blur' }], // 计划开始日期
enddate: [{ required: true, message: '计划结束日期不能为空', trigger: 'blur' }], // 计划结束日期
contactperson: [{ required: true, message: '用户联系人不能为空', trigger: 'blur' }], // 用户联系人
@@ -231,14 +240,14 @@ export default {
cycle: [{ required: true, message: '巡检周期不能为空', trigger: 'blur' }], // 巡检周期
cyclevalue: [{ required: true, message: '周期值不能为空', trigger: 'blur' }] // 周期值
},
- period:[{value:1,type:'日'},{value:2,type:'月'}],
+ period:[{value:'1',type:'日'},{value:'2',type:'月'}],
queryParams: {
current: 1,
size: 100,
total: 0,
params: {
- sids: [],
- templateid: '',
+ sids: [],
+ templateid: '',
taskid: ''
}
},
@@ -247,14 +256,15 @@ export default {
size: 10,
total: 0,
params: {
- orderId:''
+ planid:'',
+ templateid:''
}
- },
+ }
}
},
mounted(){
req2.listPage(this.queryParams).then(resp => {
- if (resp.success) {
+ if (resp.success) {
const data = resp.data
this.dataList = data.records
}
@@ -262,6 +272,10 @@ export default {
},
created() {},
methods: {
+ changeValue(value){
+ this.queryParamsA.params.templateid= value;
+ this.ShowList();
+ },
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj.id = ''
@@ -280,7 +294,7 @@ export default {
this.formobj.cycletype = '' // 周期类型(固定间隔周期)
this.formobj.cycle = '' // 巡检周期
this.formobj.cyclevalue = '' // 周期值
- this.queryParamsA.params.orderId=''
+ this.queryParamsA.params.planid=''
this.$refs['form_obj'].resetFields()
this.$emit('doback')
},
@@ -316,7 +330,8 @@ export default {
_this.formobj.id = vdata.id
_this.formobj.sid = vdata.sid // SID
_this.formobj.planname = vdata.planname // 计划名称
- _this.formobj.custname = vdata.custid // 客户标识
+ _this.formobj.custname = vdata.custname // 客户标识
+ _this.formobj.custid = vdata.custid // 客户标识
_this.formobj.supervisesid = vdata.supervisesid // 监管公司id
_this.formobj.patroltype = vdata.patroltype // 1计划巡视、2专项巡视
_this.formobj.startdate = vdata.startdate // 计划开始日期
@@ -335,15 +350,14 @@ export default {
.catch(e => {
this.formobj = row
})
- this.queryParamsA.params.orderId=row.sid
+ this.queryParamsA.params.templateid=row.templateid
+ this.queryParamsA.params.planid=row.sid
this.ShowList()
+ this.ShowYunwei();
},
saveOrUpdate() {
- if (this.formobj.workers.length === 0) {
- this.$message({ showClose: true, type: 'error', message: '请选择一条巡视人员进行添加' })
- return
- }
const _this = this
+ this.formobj.workers=this.$refs.table.data;
this.$refs['form_obj'].validate(valid => {
if (valid) {
this.submitdisabled = true
@@ -354,7 +368,7 @@ export default {
if (resp.success) {
_this.$message({ showClose: true, type: 'success', message: resp.msg })
_this.handleReturn('true')
- _this.queryParamsA.params.orderId=''
+ _this.queryParamsA.params.planid=''
} else {
// 根据resp.code进行异常情况处理
}
@@ -392,16 +406,20 @@ export default {
}
},
// 查询运维人员信息
- ShowYunwei(){
- req3.listPageB(this.queryParamsA).then((res)=>{
- console.log(res);
- })
- },
+ ShowYunwei(){
+ req.listPageB(this.queryParamsA).then((res)=>{
+ this.TabList= res.data.records
+ })
+ },
ShowList(){
- req3.listPageA(this.queryParamsA).then((res)=>{
- this.list = res.data.records
- })
- },
+ 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/dispatchpatrolplanInfos.vue b/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchorderinfo/dispatchpatrolplanInfos.vue
index c62d62c8..9a9d6fb8 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
@@ -3,68 +3,179 @@
-
- (巡视计划包含客户信息、仓库等)
-
- 计划名称
- {{ formobj.planname }}
-
-
- 客户标识
- {{ formobj.custid }}
-
-
- 监管公司id
- {{ formobj.supervisesid }}
-
-
- 1计划巡视、2专项巡视
- {{ formobj.patroltype }}
-
-
- 计划开始日期
- {{ formobj.startdate }}
-
-
- 计划结束日期
- {{ formobj.enddate }}
-
-
- 用户联系人
- {{ formobj.contactperson }}
-
-
- 用户联系人电话
- {{ formobj.contactphone }}
-
-
- 计划编号
- {{ formobj.planno }}
-
-
- 模板id
- {{ formobj.templateid }}
-
-
- 周期类型(固定间隔周期)
- {{ formobj.cycletype }}
-
-
- 巡检周期
- {{ formobj.cycle }}
-
-
- 周期值
- {{ formobj.cyclevalue }}
-
-
+
+
+
+
+
+ *计划名称:
+
+
+ {{formobj.planname}}
+
+
+ *客户名称:
+
+
+ {{formobj.custname}}
+
+
+ *巡视类型:
+
+
+
+
+
+
+
+ *巡视模板:
+
+
+
+
+
+
+
+ *用户联系人:
+
+
+ {{formobj.contactperson}}
+
+
+
+
+ *用户联系人电话:
+
+
+ {{formobj.contactphone}}
+
+
+
+ *周期类型:
+
+
+
+
+
+
+
+ *巡检周期:
+
+
+ {{formobj.cycle}}
+
+
+ *周期值:
+
+
+ {{formobj.cyclevalue}}
+
+
+ *计划编号:
+
+
+ {{formobj.planno}}
+
+
+
+
+ *计划开始日期:
+
+
+
+ {{formobj.startdate }}
+
+
+
+ *计划结束日期:
+
+
+ {{formobj.enddate}}
+
+
+
+
+
+
+
+ >
+
+
+
+ {{scope.row.principalname}}
+
+
+
+
+ {{scope.row.principalcontact}}
+
+
+
+
+ {{scope.row.workteam}}
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+
+
+
+
+
+