-
+
-
{{ isSearchShow ? '隐藏查询条件' : '显示查询条件' }}
-
+
{{ searchxianshitit }}
+
-
(巡视计划包含客户信息、仓库等)列表
-
+
巡视工单列表
+
@@ -63,14 +63,14 @@
@@ -104,9 +104,10 @@ export default {
return {
btndisabled: false,
viewState: 1, // 1、列表 2、添加 3、修改 4、查看
- isSearchShow: true,
+ isSearchShow: false,
tableLoading: false,
dataList: [],
+ searchxianshitit: '显示查询条件',
queryParams: {
current: 1,
size: 10,
@@ -162,6 +163,15 @@ export default {
break
}
},
+ // 搜索条件效果
+ clicksearchShow() {
+ this.isSearchShow = !this.isSearchShow
+ if (this.isSearchShow) {
+ this.searchxianshitit = '隐藏查询条件'
+ } else {
+ this.searchxianshitit = '显示查询条件'
+ }
+ },
toAdd(row) {
this.viewState = 2
this.$refs['divadd'].showAdd()
diff --git a/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchpatrolplan/dispatchpatrolplanAdd.vue b/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchpatrolplan/dispatchpatrolplanAdd.vue
index 4e15f298..7392f8ad 100644
--- a/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchpatrolplan/dispatchpatrolplanAdd.vue
+++ b/yxt_supervise/supervise-dispatchcenter/supervise-dispatchcenter-ui/src/views/yxtdispatchcenter/dispatchpatrolplan/dispatchpatrolplanAdd.vue
@@ -15,113 +15,124 @@
-
- (巡视计划包含客户信息、仓库等)
+ {{ searchxianshitit }}
+
+
-
- *计划名称
+
+ *计划名称:
-
+
-
-
-
- *客户标识
+
+ *客户名称:
-
-
+
+
-
-
-
- *监管公司id
+
+ *巡视类型:
-
-
+
+
-
-
-
- *1计划巡视、2专项巡视
-
-
-
+
+ *计划开始日期:
-
-
-
- *计划开始日期
-
-
+
-
- *计划结束日期
+
+ *计划编号:
-
-
+
+
-
-
-
- *用户联系人
+
+ *用户联系人:
-
-
+
+
-
-
-
- *用户联系人电话
+
+ *用户联系人电话:
-
+
-
-
-
- *计划编号
+
+ *计划结束日期:
-
-
+
+
-
- *模板id
+
+ *巡视模板:
-
-
+
+
-
-
-
- *周期类型(固定间隔周期)
+
+ *周期类型:
-
-
+
+
-
-
-
- *巡检周期
+
+ *巡检周期:
-
+
+
+ *周期值:
+
+
+
+
-
- *周期值
+
+ *周期值:
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -134,12 +145,15 @@ export default {
data() {
return {
submitdisabled: false,
+ isSearchShow: false,
viewTitle: '',
+ searchxianshitit: '显示添加条件',
formobj: {
id: '',
sid: '',
planname: '', // 计划名称
custid: '', // 客户标识
+ custname: '', // 客户名称
supervisesid: '', // 监管公司id
patroltype: '', // 1计划巡视、2专项巡视
startdate: '', // 计划开始日期
@@ -150,13 +164,24 @@ export default {
templateid: '', // 模板id
cycletype: '', // 周期类型(固定间隔周期)
cycle: '', // 巡检周期
- cyclevalue: '' // 周期值
+ cyclevalue: '', // 周期值
+ workers:[
+ {
+ principalname:'1',//巡视人名称
+ principalsid:'1',//巡视人sid
+ principalcontact:'1',//联系方式
+ executorname:'1',//是否负责人
+ executornamekey:'1',//是否负责人key
+ workteam:'1',//班组组织
+ workteamid:'110',//班组组织id
+ }
+ ]
},
rules: {
planname: [{ required: true, message: '计划名称不能为空', trigger: 'blur' }], // 计划名称
- custid: [{ 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' }], // 1计划巡视、2专项巡视
+ patroltype: [{ required: true, message: '1计划巡视、2专项巡视不能为空', trigger: 'blur' }], // 计划类型
startdate: [{ required: true, message: '计划开始日期不能为空', trigger: 'blur' }], // 计划开始日期
enddate: [{ required: true, message: '计划结束日期不能为空', trigger: 'blur' }], // 计划结束日期
contactperson: [{ required: true, message: '用户联系人不能为空', trigger: 'blur' }], // 用户联系人
@@ -175,9 +200,9 @@ export default {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj.id = ''
this.formobj.sid = '' // SID
-
this.planname = '' // 计划名称
- this.custid = '' // 客户标识
+ this.custname = '' // 客户名称
+ this.custid = '' // 客户ID
this.supervisesid = '' // 监管公司id
this.patroltype = '' // 1计划巡视、2专项巡视
this.startdate = '' // 计划开始日期
@@ -193,17 +218,26 @@ export default {
this.$refs['form_obj'].resetFields()
this.$emit('doback')
},
+ // 搜索条件效果
+ clicksearchShow() {
+ this.isSearchShow = !this.isSearchShow
+ if (this.isSearchShow) {
+ this.searchxianshitit = '隐藏添加条件'
+ } else {
+ this.searchxianshitit = '显示添加条件'
+ }
+ },
showAdd() {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
- this.viewTitle = '【新增】(巡视计划包含客户信息、仓库等)'
+ this.viewTitle = '【新增】计划'
},
showEdit(row) {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
- this.viewTitle = '【修改】(巡视计划包含客户信息、仓库等)'
+ this.viewTitle = '【修改】计划'
const _this = this
req
.fetchBySid(row.sid)
@@ -212,9 +246,8 @@ export default {
const vdata = resp.data
_this.formobj.id = vdata.id
_this.formobj.sid = vdata.sid // SID
-
_this.formobj.planname = vdata.planname // 计划名称
- _this.formobj.custid = vdata.custid // 客户标识
+ _this.formobj.custname = vdata.custid // 客户标识
_this.formobj.supervisesid = vdata.supervisesid // 监管公司id
_this.formobj.patroltype = vdata.patroltype // 1计划巡视、2专项巡视
_this.formobj.startdate = vdata.startdate // 计划开始日期
@@ -262,4 +295,5 @@ export default {
}
-
+