(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-apply-subPages-HM-1riskTaskEdit"],{"1aec":function(t,e,n){"use strict";var o=n("f9f6"),i=n.n(o);i.a},"26f9":function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getAllLists=function(t){return new Promise((function(e,n){i.default.post("/FM/User/OrderEntities",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.getCertificateLists=function(t){return new Promise((function(e,n){i.default.post("/FO/FOCrucialLicenseJob/GetAnalyzePersonCertificate",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.getDepartmentLists=function(t){return new Promise((function(e,n){i.default.post("/FM/Department/OrderPaged",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.getDetailLists=function(t){return new Promise((function(e,n){i.default.post("/FO/FOCrucialLicenseJob/GetAnalyzeDetail",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.getJobActivityRecordSign=function(t){return t.IgnoreDataRule=!0,new Promise((function(e,n){i.default.post("/FO/FOJobActivityRecord/PersonalAgree",t).then((function(t){t.IsSuccessful&&e(t.Data)})).catch((function(t){n(t)}))}))},e.getJobEventRecordSign=function(t){return t.IgnoreDataRule=!0,new Promise((function(e,n){i.default.post("/FO/FOJobEventRecord/PersonalAgree",t).then((function(t){t.IsSuccessful&&e(t.Data)})).catch((function(t){n(t)}))}))},e.getJobRecordSign=function(t){return t.IgnoreDataRule=!0,new Promise((function(e,n){i.default.post("/FO/FOCrucialLicenseJob/IdentityUpdateNew",t).then((function(t){t.IsSuccessful&&e(t.Data)})).catch((function(t){n(t)}))}))},e.getOperSchRecordSign=function(t){return t.IgnoreDataRule=!0,new Promise((function(e,n){i.default.post("/FO/FOPreOperSch/PersonalAgree",t).then((function(t){t.IsSuccessful&&e(t.Data)})).catch((function(t){n(t)}))}))},e.getRelatedLists=function(t){return new Promise((function(e,n){i.default.post("/OG/Related/OrderPaged",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.getRelatedUserLists=function(t){return new Promise((function(e,n){i.default.post("/OG/RelatedUser/OrderPaged",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.getRequest=function(t,e){return t.IgnoreDataRule=!0,new Promise((function(n,o){i.default.post(e,t).then((function(t){t.IsSuccessful&&n(t.Data)})).catch((function(t){o(t)}))}))},e.getRequestOrderPage=function(t,e){return t.IgnoreDataRule=!0,new Promise((function(n,o){i.default.post(e,t).then((function(t){t.IsSuccessful&&n(t)})).catch((function(t){o(t)}))}))},e.getStepLists=function(t){return new Promise((function(e,n){i.default.post("/FO/FOCrucialLicenseJob/GetNameList",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.getTeamUsers=function(t){return t.IgnoreDataRule=!0,new Promise((function(e,n){i.default.post("/FM/FMTeam/TeamOrderPaged",t).then((function(t){t.IsSuccessful&&e(t.Data)})).catch((function(t){n(t)}))}))},e.getTechRecordSign=function(t){return t.IgnoreDataRule=!0,new Promise((function(e,n){i.default.post("/FO/FOTechDisclosureFrom/PersonalAgree",t).then((function(t){t.IsSuccessful&&e(t.Data)})).catch((function(t){n(t)}))}))},e.getUserLists=function(t){return new Promise((function(e,n){i.default.post("/FM/User/OrderPaged",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.saveJobActivityRecord=function(t){return new Promise((function(e,n){i.default.post("/FO/FOJobActivityRecord/FullUpdate",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.saveJobEventRecord=function(t){return new Promise((function(e,n){i.default.post("/FO/FOJobEventRecord/FullUpdate",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.saveJobOutsourceRecord=function(t){return new Promise((function(e,n){i.default.post("/FO/FOCrucialLicenseJobOutsource/FullUpdate",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.saveJobRecord=function(t){return new Promise((function(e,n){i.default.post("/FO/FOCrucialLicenseJob/FullUpdateNew",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.savePreOperSchRecord=function(t){return new Promise((function(e,n){i.default.post("/FO/FOPreOperSch/FullUpdate",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.saveTechRecord=function(t){return new Promise((function(e,n){i.default.post("/FO/FOTechDisclosureFrom/FullUpdate",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},n("d3b7");var i=o(n("a7f0"))},"2a06":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var o={uniCard:n("f9ea").default,"u-Form":n("6f92").default,uFormItem:n("b41e").default,"u-Textarea":n("53f2").default,"u-Input":n("1662").default,"u-Text":n("1904").default,uIcon:n("f7d8").default,uSticky:n("646b").default,uniCollapse:n("3e62").default,uniCollapseItem:n("08dd").default,uniIcons:n("baac").default,uniTag:n("e4dc").default,uModal:n("da7e").default,uPicker:n("96f2").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"todo-page"},[n("uni-card",{attrs:{margin:"0","is-shadow":!0}},[n("u--form",{attrs:{labelPosition:"left",labelWidth:"auto",labelAlign:"center",model:t.model}},[9==t.model.STATUS?n("u-form-item",{attrs:{label:"审核意见:",prop:"AUDIT_OPINION",borderBottom:!0}}):t._e(),9==t.model.STATUS?n("u--textarea",{attrs:{border:"surround",disabled:!0},domProps:{innerHTML:t._s(t.AUDIT_OPINION)}}):t._e(),1!=t.isAdd?n("u-form-item",{attrs:{label:"层级:",prop:"LEVEL_SHOW",borderBottom:!0}},[n("u--input",{attrs:{slot:"right",border:"none",inputAlign:"right",disabled:!0,disabledColor:"#fff"},slot:"right",model:{value:t.model.LEVEL_SHOW,callback:function(e){t.$set(t.model,"LEVEL_SHOW",e)},expression:"model.LEVEL_SHOW"}})],1):t._e(),n("u-form-item",{attrs:{label:"开始时间:",prop:"START_TIME",borderBottom:!0}},[n("u--input",{attrs:{slot:"right",border:"none",inputAlign:"right"},slot:"right",model:{value:t.model.START_TIME,callback:function(e){t.$set(t.model,"START_TIME",e)},expression:"model.START_TIME"}})],1),n("u-form-item",{attrs:{label:"结束时间:",prop:"END_TIME",borderBottom:!0}},[n("u--input",{attrs:{slot:"right",border:"none",inputAlign:"right"},slot:"right",model:{value:t.model.END_TIME,callback:function(e){t.$set(t.model,"END_TIME",e)},expression:"model.END_TIME"}})],1),n("u-form-item",{attrs:{label:"制定人:",prop:"Nav_LiableUser.NAME",borderBottom:!0}},[n("u--input",{attrs:{slot:"right",border:"none",inputAlign:"right",disabled:!0,disabledColor:"#fff"},slot:"right",model:{value:t.model.Nav_LiableUser.NAME,callback:function(e){t.$set(t.model.Nav_LiableUser,"NAME",e)},expression:"model.Nav_LiableUser.NAME"}})],1),1!=t.isAdd?n("u-form-item",{attrs:{label:"辨识区域:",prop:"Areas",borderBottom:!0}}):t._e(),1!=t.isAdd?n("u--textarea",{attrs:{autoHeight:!0,border:"none",inputAlign:"right",disabled:!0},model:{value:t.model.Areas,callback:function(e){t.$set(t.model,"Areas",e)},expression:"model.Areas"}}):t._e(),n("u-form-item",{attrs:{label:"辨识要求:",prop:"Nav_Request.NAME",borderBottom:!0}}),n("u--textarea",{attrs:{autoHeight:!0,border:"none",inputAlign:"right",disabled:!0,disabledColor:"#fff"},model:{value:t.model.Nav_Request.NAME,callback:function(e){t.$set(t.model.Nav_Request,"NAME",e)},expression:"model.Nav_Request.NAME"}}),n("u-form-item",{staticClass:"custom-form-item",attrs:{required:!0,label:"辨识对象",prop:"DetailPost",borderBottom:!1},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleQuerySelect({formIndex:"Nav_Identifyings",isMultiple:!0})}}},[n("v-uni-view",{staticClass:"custom-form-item-right",attrs:{slot:"right"},slot:"right"},[n("v-uni-view",{staticClass:"multi"},t._l(t.model.Nav_Identifyings,(function(t,e){return n("u--text",{key:e,staticClass:"item",attrs:{text:e+1+". "+t.Nav_Identifying.NAME}})})),1),n("u-icon",{staticClass:"icon",attrs:{name:"arrow-down"}})],1)],1),n("v-uni-view",{staticClass:"upload-title"},[t._v("附件:")]),n("full-upload",{attrs:{isShowBtn:!0,listProp:t.listPropUpload,listPropVal:t.listPropValUpload},model:{value:t.model.Nav_Files,callback:function(e){t.$set(t.model,"Nav_Files",e)},expression:"model.Nav_Files"}})],1)],1),n("u-sticky",{attrs:{"offset-top":"20"}},[n("v-uni-view",{staticClass:"sub-form"},[n("v-uni-view",{staticClass:"sub-form-wrap"},[n("v-uni-view",{staticClass:"sub-form-btns"},[n("v-uni-view",{staticClass:"sub-form-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleAddDetail.apply(void 0,arguments)}}},[n("u-icon",{staticClass:"icon",attrs:{name:"plus-circle",color:"#3c9cff",size:"21"}}),n("u--text",{attrs:{type:"primary",text:"新增辨识任务"}})],1)],1),n("u--form",{ref:"sForm",attrs:{labelPosition:"left",labelWidth:"auto",labelAlign:"center",errorType:"border-bottom"}},[n("uni-collapse",t._l(t.model.Nav_Detail.filter((function(t){return!t.IS_DELETED})),(function(e,o){return n("uni-card",{staticStyle:{"margin-bottom":"16px"},attrs:{margin:"0",spacing:"0","is-shadow":!1}},[n("uni-collapse-item",{attrs:{"title-border":"none","show-arrow":!1,border:!1,open:!0}},[n("v-uni-view",{staticClass:"custom-collapse-title",attrs:{slot:"title"},slot:"title"},[n("v-uni-view",{staticClass:"down"},[n("uni-icons",{attrs:{type:"bottom"}})],1),n("v-uni-view",{staticClass:"text"},[t._v(t._s(o+1+". "+e.Nav_Area.NAME))]),n("v-uni-view",{staticClass:"action",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e)}}},[n("u-icon",{staticClass:"icon",attrs:{name:"trash",color:"#ff4d4f",size:"21"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.handleDelRowBefore(o,e)}}})],1)],1),n("u-form-item",{attrs:{label:"区域:",prop:"Nav_Area",borderBottom:!0},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.handleChange("Nav_Area",e)}}},[n("u--input",{attrs:{placeholder:"请选择区域",border:"none",inputAlign:"right",disabled:!0,disabledColor:"#fff"},model:{value:e.Nav_Area.NAME,callback:function(n){t.$set(e.Nav_Area,"NAME",n)},expression:"item.Nav_Area.NAME"}}),n("u-icon",{staticStyle:{"margin-left":"4px"},attrs:{slot:"right",name:"arrow-down"},slot:"right"})],1),n("u-form-item",{attrs:{label:"层级:",prop:"LEVEL_SHOW",borderBottom:!0},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleShowSheet({title:"层级",name:"LEVEL"},o)}}},[n("u--input",{attrs:{value:e.LEVEL_SHOW,placeholder:"请选择层级",border:"none",inputAlign:"right",disabled:!0,disabledColor:"#fff"}}),n("u-icon",{staticStyle:{"margin-left":"4px"},attrs:{slot:"right",name:"arrow-down"},slot:"right"})],1),n("u-form-item",{attrs:{label:"辨识人员:"}},[n("u-icon",{attrs:{slot:"right",name:"man-add",size:"24",color:"#3d9cff"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.handleShowUserSelector(e,o)}},slot:"right"})],1),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:!!e.Nav_Users.length,expression:"!!item.Nav_Users.length"}],staticClass:"tag-view"},t._l(e.Nav_Users.filter((function(t){return!t.IS_DELETED})),(function(t,e){return n("uni-tag",{key:e,staticClass:"tag",attrs:{inverted:!0,text:t.NAME,type:"primary"}})})),1),n("u-form-item",{attrs:{label:"记录人员:",prop:"Nav_User"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.handleChange("Nav_User",e)}}},[n("u--input",{attrs:{placeholder:"请选择记录人员",border:"none",inputAlign:"right",disabled:!0,disabledColor:"#fff"},model:{value:e.Nav_User.NAME,callback:function(n){t.$set(e.Nav_User,"NAME",n)},expression:"item.Nav_User.NAME"}}),n("u-icon",{staticStyle:{"margin-left":"4px"},attrs:{slot:"right",name:"arrow-down"},slot:"right"})],1)],1)],1)})),1)],1)],1)],1)],1),n("u-modal",{attrs:{show:t.showDelModalIndex>=0,showCancelButton:!0,title:"确认删除?"},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmDel.apply(void 0,arguments)},cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.cancelDel.apply(void 0,arguments)}}}),n("query-selector",{attrs:{show:t.showPopup,lists:t.Lists},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.handleClosePopup.apply(void 0,arguments)},search:function(e){arguments[0]=e=t.$handleEvent(e),t.handleSearch.apply(void 0,arguments)},select:function(e){arguments[0]=e=t.$handleEvent(e),t.handleSelected.apply(void 0,arguments)}}}),n("u-picker",{attrs:{defaultIndex:[0],show:t.comPickerInfo.showSheet,columns:t.comPickerInfo.columns,keyName:"NAME"},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirmPicker.apply(void 0,arguments)},close:function(e){arguments[0]=e=t.$handleEvent(e),t.closePicker.apply(void 0,arguments)},cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.closePicker.apply(void 0,arguments)}}}),n("people-selector",{attrs:{defaultChecked:t.peopleSelectOption.defaultChecked,show:t.peopleSelectOption.showSelector},on:{select:function(e){arguments[0]=e=t.$handleEvent(e),t.handleSelectorPeople.apply(void 0,arguments)},close:function(e){arguments[0]=e=t.$handleEvent(e),t.peopleSelectOption.showSelector=!1}}}),n("query-selector",{attrs:{multiple:t.qsCom.isMultiple,total:t.curTotal,show:t.qsCom.show,lists:t.qsCom.lists},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.onCloseQS.apply(void 0,arguments)},search:function(e){arguments[0]=e=t.$handleEvent(e),t.onSearchQS.apply(void 0,arguments)},select:function(e){arguments[0]=e=t.$handleEvent(e),t.onSelectedQS.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"bottom-button"},[n("v-uni-button",{attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[t._v("提交")])],1)],1)},a=[]},"2acf":function(t,e,n){"use strict";n.r(e);var o=n("44b1"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},"2bbb":function(t,e,n){"use strict";n.r(e);var o=n("2a06"),i=n("5838");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("db12");var r=n("f0c5"),s=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"18d6d7c4",null,!1,o["a"],void 0);e["default"]=s.exports},"2d41":function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("c7eb")),a=o(n("1da1")),r=o(n("5530"));n("d81d"),n("4de4"),n("d3b7"),n("a434"),n("159b"),n("3c65"),n("14d9"),n("c975"),n("6062"),n("3ca3"),n("ddb0"),n("a630");var s=n("05f1"),u=n("9c16"),l=n("26f9");n("248d");o(n("79f8")),o(n("9560"));var c={data:function(){return{listPropUpload:["TASK_ID"],listPropValUpload:[],model:{Nav_Request:{NAME:""},Nav_LiableUser:{NAME:""},Nav_Detail:[],Nav_Areas:[],Nav_Files:[],Nav_Identifyings:[],START_TIME:uni.$u.timeFormat(new Date,"yyyy-mm-dd"),END_TIME:uni.$u.timeFormat(new Date,"yyyy-mm-dd"),ORG_ID:uni.getStorageSync("orgId")},comPickerInfo:{showSheet:!1,columns:[],title:"",formIndex:void 0,name:""},curTotal:0,qsCom:{show:!1,lists:[],formIndex:void 0,isMultiple:!1},Lists:[],currSearchType:"",showPopup:!1,TaskID:"",tableKey:"0",isLoadOK:!1,showDelModalIndex:void 0,AUDIT_OPINION:"",isAdd:0,peopleSelectOption:{showSelector:!1,value:null,index:0,defaultChecked:[]},checked:!0,ORG_ID:uni.getStorageSync("orgId")}},onLoad:function(t){var e=this;if(this.TaskID=t.taskID?t.taskID:"",this.model.ID=t.ID?t.ID:"",this.tableKey=t.tableKey?t.tableKey:"0",1!=t.isAdd)this.loadData();else{this.isAdd=1;var n=uni.getStorageSync("appInfo").User;this.model.Nav_LiableUser.NAME=n.NAME,this.model.LIABLE_USER_ID=n.ID,this.model.ID=(0,s.guid)();var o=(0,s.initFilter)(this.ORG_ID,"","NAME",1);o.SelectField=["NAME","ID"],(0,l.getRequest)(o,"/HM/Request/OrderPaged").then((function(t){e.model.Nav_Request.NAME=t[0].NAME,e.model.REQUEST_ID=t[0].ID}))}},methods:{handleSelectorPeople:function(t){var e=this,n=this.peopleSelectOption.index;this.model.Nav_Detail[n].Nav_Users=t.map((function(t){return{USER_ID:t.USER_ID,ID:t.ID||(0,s.guid)(),TASK_DETAIL_ID:e.model.Nav_Detail[n].ID,ORG_ID:e.ORG_ID,IS_DELETED:t.IS_DELETED,NAME:t.NAME,Nav_User:{NAME:t.NAME,ID:t.USER_ID}}})),this.model.Nav_Detail[n].Nav_User.NAME=t.filter((function(t){return!t.IS_DELETED}))[0].NAME,this.model.Nav_Detail[n].RECORD_USER_ID=t.filter((function(t){return!t.IS_DELETED}))[0].USER_ID},handleShowUserSelector:function(t,e){this.peopleSelectOption={showSelector:!0,value:t,index:e,defaultChecked:t.Nav_Users.map((function(t){return(0,r.default)((0,r.default)({},t),{},{NAME:t.Nav_User.NAME,USER_ID:t.Nav_User.ID})}))}},handleDelRowBefore:function(t,e){""==e.AREA_ID||void 0==e.AREA_ID?this.model.Nav_Detail.splice(this.showDelModalIndex,1):this.showDelModalIndex=t},cancelDel:function(){this.showDelModalIndex=void 0},confirmDel:function(){this.model.Nav_Detail[this.showDelModalIndex].IS_DELETED=!0,this.model.Nav_Detail[this.showDelModalIndex].Nav_Users.forEach((function(t){t.IS_DELETED=!0})),this.showDelModalIndex=void 0},handleClosePopup:function(){this.showPopup=!1},handleAddDetail:function(){this.model.Nav_Detail.unshift({ID:(0,s.guid)(),TASK_ID:this.model.ID,ORG_ID:this.ORG_ID,Nav_User:{},Nav_Area:{NAME:""},Nav_Users:[],IS_DELETED:!1})},handleChange:function(t,e){this.currentOperate=e,this.currSearchType=t,this.showPopup=!0,this.handleSearch("init")},handleSearch:function(t){var e=this,n=(0,s.initFilter)(this.ORG_ID,"","NAME");if(n.Limit=20,"init"!==t){var o=(0,s.initFilterGroup)(!1);(0,s.extendGroupRule)(o,"NAME",9,t),(0,s.extendFilterGroup)(n,o)}"Nav_Area"==this.currSearchType?(0,u.getAreaLists)(n).then((function(t){t.IsSuccessful&&(e.Lists=t.Data.map((function(t){return(0,r.default)((0,r.default)({},t),{},{name:t.NAME})})))})):"Nav_User"==this.currSearchType&&((0,s.extendInclude)(n,"Nav_Department"),(0,s.extendRule)(n,"ENABLE_STATUS",1,"0"),(0,l.getUserLists)(n).then((function(t){t.IsSuccessful&&(e.Lists=t.Data.map((function(t){return(0,r.default)((0,r.default)({},t),{},{name:t.NAME,code:t.CODE})})))})))},handleSelected:function(t){this.showPopup=!1,this.Lists=[],"Nav_Area"==this.currSearchType?(this.currentOperate.Nav_Area=t,this.currentOperate.AREA_ID=t.ID):"Nav_User"==this.currSearchType&&(this.currentOperate.Nav_User=t,this.currentOperate.RECORD_USER_ID=t.ID)},loadData:function(){var t=this,e=(0,s.initFilter)(this.ORG_ID,"","CODE",1);0==this.listPropValUpload.length&&this.listPropValUpload.push(this.model.ID),(0,s.extendRule)(e,"ID",1,this.model.ID),(0,s.extendInclude)(e,"Nav_Request"),(0,s.extendInclude)(e,"Nav_Identifyings.Nav_Identifying"),(0,s.extendInclude)(e,"Nav_Files.Nav_ImgFile.Nav_File"),(0,s.extendInclude)(e,"Nav_Detail.Nav_Users.Nav_User"),(0,s.extendInclude)(e,"Nav_Detail.Nav_User"),(0,s.extendInclude)(e,"Nav_Detail.Nav_Area"),(0,s.extendInclude)(e,"Nav_LiableUser"),(0,s.extendInclude)(e,"Nav_Areas.Nav_Area"),(0,l.getRequest)(e,"/HM/RiskTask/Get").then((function(e){if(t.model=e,9==e.STATUS){var n=(0,s.initFilter)(t.ORG_ID);n.ID=t.model.ID,(0,u.getRiskRecordRefus)(n).then((function(e){t.AUDIT_OPINION=e}))}var o="";if(e.Nav_Areas&&e.Nav_Areas.length>0)for(var i=0;i0?" ":"")+e.Nav_Areas[i].Nav_Area.NAME;t.model.Nav_Detail.forEach((function(t){t.Nav_Users.forEach((function(t){t.NAME=t.Nav_User.NAME}))})),t.model.LEVEL_SHOW=t.renderLevel(t.model.LEVEL);for(var a=0;a=0&&(e+="部门 "),t.indexOf("1")>=0&&(e+="车间 "),t.indexOf("2")>=0&&(e+="班组 "),t.indexOf("3")>=0&&(e+="公司 ")),e},transLevel:function(t){return 0==t?"部门 ":1==t?"车间 ":2==t?"班组 ":3==t?"公司 ":void 0},onConfirmPicker:function(t){var e=this.comPickerInfo,n=e.name;e.formIndex;this.model.Nav_Detail[this.levelIndex][n]=t.value[0].ID,this.model.Nav_Detail[this.levelIndex][n+"_SHOW"]=t.value[0].NAME,this.comPickerInfo.showSheet=!1},closePicker:function(){this.comPickerInfo={showSheet:!1,columns:[],title:"",name:"",formIndex:void 0}},handleShowSheet:function(t,e){var n=this;return(0,a.default)((0,i.default)().mark((function o(){var a;return(0,i.default)().wrap((function(o){while(1)switch(o.prev=o.next){case 0:a=[],n.levelIndex=e,"LEVEL"===t.name&&(a=[{NAME:"部门",ID:0},{NAME:"车间",ID:1},{NAME:"班组",ID:2},{NAME:"公司",ID:3}]),a.length&&(n.comPickerInfo={showSheet:!0,title:t.title,name:t.name,formIndex:t.formIndex,columns:[a]});case 4:case"end":return o.stop()}}),o)})))()},handleQuerySelect:function(t){var e=this;return(0,a.default)((0,i.default)().mark((function n(){var o;return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.handleGet(t,"init");case 2:o=n.sent,o&&o.length&&(e.qsCom={show:!0,name:t.NAME,formIndex:t.formIndex,isMultiple:t.isMultiple,lists:o});case 4:case"end":return n.stop()}}),n)})))()},onSearchQS:function(t,e){var n=this;return(0,a.default)((0,i.default)().mark((function o(){var a;return(0,i.default)().wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,n.handleGet(n.qsCom,t,e);case 2:a=o.sent,n.qsCom.lists=a.map((function(t){return(0,r.default)((0,r.default)({},t),{},{name:t.NAME,NAME:t.NAME,id:t.ID})}));case 4:case"end":return o.stop()}}),o)})))()},handleGet:function(t,e,n){var o=this;return(0,a.default)((0,i.default)().mark((function t(){var a,l,c,d;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=(0,s.initFilter)(o.ORG_ID,"","",0,n||1),"init"!==e&&(l=(0,s.initFilterGroup)(!1),(0,s.extendGroupRule)(l,"NAME",9,e),(0,s.extendFilterGroup)(a,l)),a.Limit=20,n&&(a.Start=20*(n-1)),c=[],(0,s.extendRule)(a,"RISK_TYPE",1,2),t.next=8,(0,u.getIdentifying)(a).then((function(t){return o.curTotal=t.TotalCount,t}));case 8:return d=t.sent,c=d.map((function(t){return(0,r.default)((0,r.default)({},t),{},{name:null===t||void 0===t?void 0:t.NAME,IDENTIFYING_ID:null===t||void 0===t?void 0:t.ID})})),t.abrupt("return",c);case 11:case"end":return t.stop()}}),t)})))()},onSelectedQS:function(t){var e=this;this.qsCom.formIndex;this.model.Nav_Identifyings=[],t.forEach((function(t){var n={IDENTIFYING_ID:t.ID,Nav_Identifying:{NAME:t.NAME},ID:(0,s.guid)(),TASK_ID:e.model.ID,ORG_ID:e.ORG_ID};e.model.Nav_Identifyings.push(n)})),this.qsCom.show=!1},onCloseQS:function(){this.qsCom={show:!1,lists:[],formIndex:void 0,isMultiple:!1,dataIndex:void 0}},submit:function(){var t=this;this.model.PUBLISH="SaveAndNotify",""!=this.TaskID&&(this.model.TaskID=this.TaskID),""==this.model.NOTE_AKER_ID&&(this.model.NOTE_AKER_ID=uni.getStorageSync("appInfo").User.ID),this.model.Nav_Areas.forEach((function(t){t.IS_DELETED=!0}));var e=new Set,n=new Set;this.model.Nav_Detail.filter((function(t){return 0==t.IS_DELETED})).forEach((function(t){e.add(t.LEVEL),n.add(t.AREA_ID)}));var o=Array.from(e);this.model.LEVEL="_"+o.join("_")+"_";var i=Array.from(n);i.forEach((function(e){var n={AREA_ID:e,TASK_ID:t.model.ID,ORG_ID:t.ORG_ID};t.model.Nav_Areas.push(n)})),this.model.Nav_LiableUser=null,this.model.Nav_Request=null,this.model.Nav_Detail.forEach((function(t){t.Nav_User=null,t.Nav_Area=null,t.Nav_Users.forEach((function(t){t.Nav_User=null}))})),this.model.Nav_Files.forEach((function(e){void 0==e.TASK_ID&&(e.TASK_ID=t.model.ID),e.Nav_ImgFile=null})),this.model.Nav_Identifyings.forEach((function(e){e.TASK_ID=t.model.ID,e.Nav_Identifying=null})),this.model.Nav_Areas.forEach((function(e){e.TASK_ID=t.model.ID,e.Nav_Area=null})),(0,l.getRequest)(this.model,"/HM/HMRiskTask/FullUpdate").then((function(t){t&&uni.$showMsgFunc("操作成功!",(function(){uni.navigateBack()}),"success",1e3)}))}}};e.default=c},"44b1":function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("c7eb")),a=o(n("1da1"));n("2c3e"),n("a9e3");var r=o(n("48c9")),s={name:"u-sticky",mixins:[uni.$u.mpMixin,uni.$u.mixin,r.default],data:function(){return{cssSticky:!1,stickyTop:0,elId:uni.$u.guid(),left:0,width:"auto",height:"auto",fixed:!1}},computed:{style:function(){var t={};return this.disabled?t.position="static":this.cssSticky?(t.position="sticky",t.zIndex=this.uZindex,t.top=uni.$u.addUnit(this.stickyTop)):t.height=this.fixed?this.height+"px":"auto",t.backgroundColor=this.bgColor,uni.$u.deepMerge(uni.$u.addStyle(this.customStyle),t)},stickyContent:function(){var t={};return this.cssSticky||(t.position=this.fixed?"fixed":"static",t.top=this.stickyTop+"px",t.left=this.left+"px",t.width="auto"==this.width?"auto":this.width+"px",t.zIndex=this.uZindex),t},uZindex:function(){return this.zIndex?this.zIndex:uni.$u.zIndex.sticky}},mounted:function(){this.init()},methods:{init:function(){this.getStickyTop(),this.checkSupportCssSticky(),this.cssSticky||!this.disabled&&this.initObserveContent()},initObserveContent:function(){var t=this;this.$uGetRect("#"+this.elId).then((function(e){t.height=e.height,t.left=e.left,t.width=e.width,t.$nextTick((function(){t.observeContent()}))}))},observeContent:function(){var t=this;this.disconnectObserver("contentObserver");var e=uni.createIntersectionObserver({thresholds:[.95,.98,1]});e.relativeToViewport({top:-this.stickyTop}),e.observe("#".concat(this.elId),(function(e){t.setFixed(e.boundingClientRect.top)})),this.contentObserver=e},setFixed:function(t){var e=t<=this.stickyTop;this.fixed=e},disconnectObserver:function(t){var e=this[t];e&&e.disconnect()},getStickyTop:function(){this.stickyTop=uni.$u.getPx(this.offsetTop)+uni.$u.getPx(this.customNavHeight)},checkSupportCssSticky:function(){var t=this;return(0,a.default)((0,i.default)().mark((function e(){return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.checkCssStickyForH5()&&(t.cssSticky=!0),"android"===uni.$u.os()&&Number(uni.$u.sys().system)>8&&(t.cssSticky=!0),"ios"===uni.$u.os()&&(t.cssSticky=!0);case 3:case"end":return e.stop()}}),e)})))()},checkComputedStyle:function(){},checkCssStickyForH5:function(){for(var t=["","-webkit-","-ms-","-moz-","-o-"],e=t.length,n=document.createElement("div"),o=0;o>>.u-form-item__body__left__content__required{\r\n\tmargin: 0 0 0 10px;\r\n}\r\n.sub-form-wrap>>>.u-form-item__body__left__content__label{\r\n\tmargin: 0 0 0 10px;\r\n} */.subRequired[data-v-18d6d7c4]{margin-left:10px}.row-action[data-v-18d6d7c4]{display:flex}.row-action uni-text[data-v-18d6d7c4]{margin-left:10px}.sub-form-btns[data-v-18d6d7c4]{padding:8px 2px}.sub-form-btn[data-v-18d6d7c4]{display:flex;align-items:center}.sub-form-btn .icon[data-v-18d6d7c4]{margin-right:4px}.btnEnable[data-v-18d6d7c4]{background:#e6e6e6;color:#303133}.label-title[data-v-18d6d7c4]{color:#303133;font-size:15px;line-height:22px;padding-top:8px}.label-title-red[data-v-18d6d7c4]{color:#303133;font-size:15px;line-height:22px;padding-top:8px;color:red}.bottom-button[data-v-18d6d7c4]{position:fixed;bottom:0;left:0;width:100%;padding:10px 16px;box-sizing:border-box;background:#fff;z-index:970}.btnSubDel[data-v-18d6d7c4]{background-color:#ff8c00;height:100%!important;width:60%!important}.btnSubDel[disabled][data-v-18d6d7c4]{background-color:#ff8c00!important;height:100%!important;width:60%!important}\r\n\r\n/*定制折叠面板*/.custom-collapse-title[data-v-18d6d7c4]{display:flex;justify-content:space-between;align-items:center;width:100%;padding:6px 2px;font-size:16px;font-weight:700}.custom-collapse-title .down[data-v-18d6d7c4]{width:20px;flex:0 0 auto;text-align:center;margin-right:8px}.custom-collapse-title .text[data-v-18d6d7c4]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:1;width:calc(100% - 60px)}.custom-collapse-title .action[data-v-18d6d7c4]{width:40px;flex:0 0 auto;justify-content:flex-end}.custom-collapse-title .action .icon[data-v-18d6d7c4]{justify-content:flex-end}\r\n\r\n/*定制表单右边*/.custom-form-item[data-v-18d6d7c4] .item__body__right__content__icon{width:100%}.custom-form-item-right[data-v-18d6d7c4]{padding-left:15px;display:flex}.custom-form-item-right .item[data-v-18d6d7c4]{\r\n\t/*white-space: nowrap;*/\r\n\t/*overflow: hidden;*/justify-content:flex-end!important}.custom-form-item-right .multi[data-v-18d6d7c4]{width:100%;flex:1}.custom-form-item-right .icon[data-v-18d6d7c4]{width:16px;margin-left:10px}.collapse-title[data-v-18d6d7c4]{display:flex;flex-direction:row;\r\n\t\t/* justify-content: space-between; */\r\n\t\t/* align-items: center; */width:100%}.text-num[data-v-18d6d7c4]{display:flex;align-items:flex-start;margin-right:3px}\r\n\r\n/*人员多选结果列表*/.tag-view[data-v-18d6d7c4]{position:relative;padding-bottom:4px;flex-wrap:wrap;display:flex}.tag-view[data-v-18d6d7c4]:after{content:"";position:absolute;bottom:0;width:100%;-webkit-transform:scaleY(.5);left:0;transform:scaleY(.5);border-bottom:1px solid #d6d7d9}.tag-view .tag[data-v-18d6d7c4]{margin-right:12px;margin-bottom:10px}\r\n\r\n/* .required {\r\n\r\n\t\t\t\t\t\tleft: -9px;\r\n\t\t\t\t\t\tcolor: red;\r\n\t\t\t\t\t\tline-height: 20px;\r\n\t\t\t\t\t\tfont-size: 20px;\r\n\t\t\t\t\t\ttop: 3px;\r\n\t\t\t\t\t} */\r\n\r\n/*\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n */.todo-page[data-v-18d6d7c4]{padding:16px 16px 70px}',""]),t.exports=e},da7e:function(t,e,n){"use strict";n.r(e);var o=n("a31e"),i=n("b702");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("e948");var r=n("f0c5"),s=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"3f114883",null,!1,o["a"],void 0);e["default"]=s.exports},dad1:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3");var o={props:{show:{type:Boolean,default:uni.$u.props.modal.show},title:{type:[String],default:uni.$u.props.modal.title},content:{type:String,default:uni.$u.props.modal.content},confirmText:{type:String,default:uni.$u.props.modal.confirmText},cancelText:{type:String,default:uni.$u.props.modal.cancelText},showConfirmButton:{type:Boolean,default:uni.$u.props.modal.showConfirmButton},showCancelButton:{type:Boolean,default:uni.$u.props.modal.showCancelButton},confirmColor:{type:String,default:uni.$u.props.modal.confirmColor},cancelColor:{type:String,default:uni.$u.props.modal.cancelColor},buttonReverse:{type:Boolean,default:uni.$u.props.modal.buttonReverse},zoom:{type:Boolean,default:uni.$u.props.modal.zoom},asyncClose:{type:Boolean,default:uni.$u.props.modal.asyncClose},closeOnClickOverlay:{type:Boolean,default:uni.$u.props.modal.closeOnClickOverlay},negativeTop:{type:[String,Number],default:uni.$u.props.modal.negativeTop},width:{type:[String,Number],default:uni.$u.props.modal.width},confirmButtonShape:{type:String,default:uni.$u.props.modal.confirmButtonShape}}};e.default=o},db12:function(t,e,n){"use strict";var o=n("9508"),i=n.n(o);i.a},dc65:function(t,e,n){"use strict";var o=n("e5dc"),i=n.n(o);i.a},e461:function(t,e,n){var o=n("9841");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("6b3d00ec",o,!0,{sourceMap:!1,shadowMode:!1})},e4dc:function(t,e,n){"use strict";n.r(e);var o=n("ea3f"),i=n("5e3f");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("1aec");var r=n("f0c5"),s=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"350e8d74",null,!1,o["a"],void 0);e["default"]=s.exports},e5dc:function(t,e,n){var o=n("8986");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("6912a691",o,!0,{sourceMap:!1,shadowMode:!1})},e780:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var o={uIcon:n("f7d8").default,uLine:n("524a").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-form-item"},[n("v-uni-view",{staticClass:"u-form-item__body",style:[t.$u.addStyle(t.customStyle),{flexDirection:"left"===(t.labelPosition||t.parentData.labelPosition)?"row":"column"}],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickHandler.apply(void 0,arguments)}}},[t._t("label",[t.required||t.leftIcon||t.label?n("v-uni-view",{staticClass:"u-form-item__body__left",style:{width:t.$u.addUnit(t.labelWidth||t.parentData.labelWidth),marginBottom:"left"===t.parentData.labelPosition?0:"5px"}},[n("v-uni-view",{staticClass:"u-form-item__body__left__content"},[t.required?n("v-uni-text",{staticClass:"u-form-item__body__left__content__required"},[t._v("*")]):t._e(),t.leftIcon?n("v-uni-view",{staticClass:"u-form-item__body__left__content__icon"},[n("u-icon",{attrs:{name:t.leftIcon,"custom-style":t.leftIconStyle}})],1):t._e(),n("v-uni-text",{staticClass:"u-form-item__body__left__content__label",style:[t.parentData.labelStyle,{justifyContent:"left"===t.parentData.labelAlign?"flex-start":"center"===t.parentData.labelAlign?"center":"flex-end"}]},[t._v(t._s(t.label))])],1)],1):t._e()]),n("v-uni-view",{staticClass:"u-form-item__body__right"},[n("v-uni-view",{staticClass:"u-form-item__body__right__content"},[n("v-uni-view",{staticClass:"u-form-item__body__right__content__slot"},[t._t("default")],2),t.$slots.right?n("v-uni-view",{staticClass:"item__body__right__content__icon"},[t._t("right")],2):t._e()],1)],1)],2),t._t("error",[t.message&&"message"===t.parentData.errorType?n("v-uni-text",{staticClass:"u-form-item__body__right__message",style:{marginLeft:t.$u.addUnit("top"===t.parentData.labelPosition?0:t.labelWidth||t.parentData.labelWidth)}},[t._v(t._s(t.message))]):t._e()]),t.borderBottom?n("u-line",{attrs:{color:t.message&&"border-bottom"===t.parentData.errorType?t.$u.color.error:t.propsLine.color,customStyle:"margin-top: "+(t.message&&"message"===t.parentData.errorType?"5px":0)}}):t._e()],2)},a=[]},e87d:function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("9a5a")),a={name:"u-form-item",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{message:"",parentData:{labelPosition:"left",labelAlign:"left",labelStyle:{},labelWidth:45,errorType:"message"}}},computed:{propsLine:function(){return uni.$u.props.line}},mounted:function(){this.init()},methods:{init:function(){this.updateParentData(),this.parent||uni.$u.error("u-form-item需要结合u-form组件使用")},updateParentData:function(){this.getParentData("u-form")},clearValidate:function(){this.message=null},resetField:function(){var t=uni.$u.getProperty(this.parent.originalModel,this.prop);uni.$u.setProperty(this.parent.model,this.prop,t),this.message=null},clickHandler:function(){this.$emit("click")}}};e.default=a},e948:function(t,e,n){"use strict";var o=n("a897"),i=n.n(o);i.a},ea3f:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.text?n("v-uni-text",{staticClass:"uni-tag",class:t.classes,style:t.customStyle,on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClick.apply(void 0,arguments)}}},[t._v(t._s(t.text))]):t._e()},i=[]},f9f6:function(t,e,n){var o=n("4aad");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("1abcf9ca",o,!0,{sourceMap:!1,shadowMode:!1})}}]);