| | |
| | | departmentId:'', |
| | | departmentName:'', |
| | | createUserId:'', |
| | | createUserName:'' |
| | | createUserName:'', |
| | | inspectionRouteName:'' |
| | | } |
| | | }, |
| | | _initMethod: function () { |
| | | vc.getDict('pay_fee_config',"fee_type_cd",function(_data){ |
| | | vc.getDict('inspection_plan',"sign_type",function(_data){ |
| | | vc.component.editInspectionPlanInfo.signTypes = _data; |
| | | }); |
| | | vc.getDict('pay_fee_config',"fee_type_cd",function(_data){ |
| | | vc.getDict('inspection_plan',"inspection_plan_period",function(_data){ |
| | | vc.component.editInspectionPlanInfo.inspectionPlanPeriods = _data; |
| | | }); |
| | | vc.getDict('pay_fee_config',"fee_type_cd",function(_data){ |
| | | vc.getDict('inspection_plan',"state",function(_data){ |
| | | vc.component.editInspectionPlanInfo.states = _data; |
| | | }); |
| | | |
| | | }, |
| | | _initEvent: function () { |
| | | vc.component._initEditInspectionPlanDateInfo(); |
| | | vc.on('editInspectionPlan', 'openEditInspectionPlanModal', function (_params) { |
| | | vc.component.refreshEditInspectionPlanInfo(); |
| | | $('#editInspectionPlanModel').modal('show'); |
| | | vc.copyObject(_params, vc.component.editInspectionPlanInfo); |
| | | vc.component.editInspectionPlanInfo.communityId = vc.getCurrentCommunity().communityId; |
| | | //公司select2 |
| | |
| | | |
| | | //部门select2 |
| | | vc.emit('editInspectionPlan', 'departmentSelect2', 'setDepartment', { |
| | | orgId: vc.component.editInspectionPlanInfo.departmentId, |
| | | orgName: vc.component.editInspectionPlanInfo.departmentName, |
| | | departmentId: vc.component.editInspectionPlanInfo.departmentId, |
| | | departmentName: vc.component.editInspectionPlanInfo.departmentName, |
| | | }); |
| | | |
| | | //员工select2 |
| | |
| | | staffId: vc.component.editInspectionPlanInfo.staffId, |
| | | staffName: vc.component.editInspectionPlanInfo.staffName, |
| | | }); |
| | | |
| | | //传输数据到machineSelect2组件 |
| | | vc.emit('editInspectionPlan', 'inspectionRouteSelect2', 'setInspectionRoute', { |
| | | inspectionRouteId: vc.component.editInspectionPlanInfo.inspectionRouteId, |
| | | routeName: vc.component.editInspectionPlanInfo.inspectionRouteName, |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | $('#editInspectionPlanModel').modal('show'); |
| | | |
| | | |
| | | |
| | |
| | | departmentId:'', |
| | | departmentName:'', |
| | | createUserId:'', |
| | | createUserName:'' |
| | | createUserName:'', |
| | | inspectionRouteName:'' |
| | | }; |
| | | vc.component.editInspectionPlanInfo.signTypes = signTypes; |
| | | vc.component.editInspectionPlanInfo.states = states; |
| | | vc.component.editInspectionPlanInfo.inspectionPlanPeriods = inspectionPlanPeriods; |
| | | }, |
| | | _initEditInspectionPlanDateInfo:function(){ |
| | | $('.editInspectionPlanStartTime').datetimepicker({ |
| | | language: 'zh-CN', |
| | | format: 'yyyy-mm-dd hh:ii:ss', |
| | | initTime: true, |
| | | initialDate: new Date(), |
| | | autoClose: 1, |
| | | todayBtn: true |
| | | |
| | | }); |
| | | $('.editInspectionPlanStartTime').datetimepicker() |
| | | .on('changeDate', function (ev) { |
| | | var value = $(".editInspectionPlanStartTime").val(); |
| | | vc.component.editInspectionPlanInfo.startTime = value; |
| | | }); |
| | | $('.editInspectionPlanEndTime').datetimepicker({ |
| | | language: 'zh-CN', |
| | | format: 'yyyy-mm-dd hh:ii:ss', |
| | | initTime: true, |
| | | initialDate: new Date(), |
| | | autoClose: 1, |
| | | todayBtn: true |
| | | }); |
| | | $('.editInspectionPlanEndTime').datetimepicker() |
| | | .on('changeDate', function (ev) { |
| | | var value = $(".editInspectionPlanEndTime").val(); |
| | | vc.component.editInspectionPlanInfo.endTime = value; |
| | | }); |
| | | } |
| | | } |
| | | }); |