Your Name
2022-09-29 6f954f70f54e492157b97db314eaaaeb12192580
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-2faf","chunk-1c22","chunk-7875"],{"4LpJ":function(e,t,r){},"7FYh":function(e,t,r){"use strict";var n=r("4LpJ");r.n(n).a},XC6K:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r("t3Un"),a=r("X4fA");function o(){return{getApproveBasicList:function(e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.22:8006/zhongtai/work/ruleItemStand/page/list",method:"post",data:e})},addApproveBasic:function(e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.22:8006/zhongtai/work/ruleItemStand/save",method:"post",data:e})},modApproveBasic:function(e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.22:8006/zhongtai/work/ruleItemStand/update",method:"post",data:e})},deleteApproveBasic:function(e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.22:8006/zhongtai/work/ruleItemStand/delete",method:"post",data:e})},getAllApproveBasicList:function(e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.22:8006/zhongtai/work/ruleItemStand/list",method:"post",data:e})}}}},XJn5:function(e,t,r){"use strict";var n=r("oTJu");r.n(n).a},XsSp:function(e,t,r){"use strict";r.r(t);var n=r("cLjf"),a=r.n(n),o=r("hDQ3"),i=r.n(o),l=r("omC7"),s=r.n(l),p=r("oe2s"),u=r("iDGX"),c=r("XC6K"),m={name:"approveLevelDialog",components:{approveItemDialog:p.default},data:function(){return{title:"",tableKey:"",activeName:"ApproveAction",approveLevelDialog:!1,approveLevelForm:{id:null,stepName:null,stepSerial:null,type:null,auditType:null,continueTime:null,continueTimeUnit:null,unitList:[],itemList:[]},approveLevelFormRule:{stepName:[{required:!0,message:"请填写层次名称",trigger:"blur"}],type:[{required:!0,message:"请选择审批层级",trigger:"change"}],auditType:[{required:!0,message:"请选择审批类型",trigger:"change"}],unitList:[{required:!0,message:"请选择审批人",trigger:"change"}],continueTime:[{required:!0,message:"请填写有效时间",trigger:"blur"}]},departmentList:[],userList:[],timeList:[{id:1,name:"日"},{id:2,name:"时"},{id:3,name:"分"}],typeList:[{id:1,name:"单人"},{id:2,name:"多人"},{id:3,name:"分析人"}],auditTypeList:[{id:0,name:"单审"},{id:1,name:"会审"}],approveTypeList:[{id:1,name:"数值"},{id:2,name:"选项"},{id:3,name:"填空"}],workLevelList:[],actionList:[],standardList:[]}},created:function(){this.getActionData(),this.getStandardData()},methods:{showApproveLevelDialog:function(e,t,r){var n=this;this.approveLevelDialog=!0,this.userList=r,this.$nextTick(function(){n.$refs.approveLevelFormRef.clearValidate()}),"新增"===e?(this.title="新增审批层级",this.approveLevelForm={id:null,stepName:null,stepSerial:null,type:null,auditType:null,continueTime:null,continueTimeUnit:null,unitList:[],itemList:[]}):(this.title="修改审批层级",this.approveLevelForm=JSON.parse(s()(t)),this.approveLevelForm.unitList=this.approveLevelForm.unitList.map(function(e){return e.bindUid}))},openApproveActionDialog:function(e,t,r){var n=this;this.$refs.approveLevelFormRef.validate(function(a){a?n.$refs.approveItemDialogRef.showApproveItemDialog(e,t,r,n.approveLevelForm,n.standardList,n.actionList):n.$message({type:"warning",message:"请先完善审批层级信息,才能选择审批项"})})},submitApproveLevel:function(){var e=this;this.$refs.approveLevelFormRef.validate(function(t){t?(e.approveLevelForm.unitList=e.approveLevelForm.unitList.map(function(e){return{bindUid:e}}),e.$emit("addApprovalLevel",e.approveLevelForm,e.title),e.approveLevelDialog=!1):e.$message({type:"warning",message:"请完善审批层级基本信息"})})},achieveApprovalItem:function(e,t,r){"新增审批项"===t?this.approveLevelForm.itemList.push(e):this.$set(this.approveLevelForm.itemList,r,e)},deleteApproveItem:function(e){this.approveLevelForm.itemList.splice(e,1)},getActionData:function(){var e=this;return i()(a.a.mark(function t(){var r;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.a)().getAllSafetyActionList({workType:null,type:null,context:null});case 2:"200"===(r=t.sent).data.code?e.actionList=r.data.data:e.$message({type:"warning",message:r.data.message});case 4:case"end":return t.stop()}},t,e)}))()},getStandardData:function(){var e=this;return i()(a.a.mark(function t(){var r;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(c.a)().getAllApproveBasicList({ruleStandType:null,title:null});case 2:"200"===(r=t.sent).data.code?e.standardList=r.data.data:e.$message({type:"warning",message:r.data.message});case 4:case"end":return t.stop()}},t,e)}))()}}},d=(r("XJn5"),r("ZrdR")),v=Object(d.a)(m,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"system-add-menu-container"},[r("el-dialog",{attrs:{title:e.title,visible:e.approveLevelDialog,"close-on-click-modal":!1},on:{"update:visible":function(t){e.approveLevelDialog=t}}},[r("el-form",{ref:"approveLevelFormRef",attrs:{model:e.approveLevelForm,"label-width":"150px",rules:e.approveLevelFormRule}},[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"层级名称",prop:"stepName"}},[r("el-input",{staticClass:"input-add",attrs:{placeholder:"请填写层级名称"},model:{value:e.approveLevelForm.stepName,callback:function(t){e.$set(e.approveLevelForm,"stepName",t)},expression:"approveLevelForm.stepName"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"审批层级",prop:"type"}},[r("el-select",{staticClass:"input-add",attrs:{placeholder:"请选择审批层级"},model:{value:e.approveLevelForm.type,callback:function(t){e.$set(e.approveLevelForm,"type",t)},expression:"approveLevelForm.type"}},e._l(e.typeList,function(e){return r("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})}))],1)],1),e._v(" "),2===e.approveLevelForm.type?r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"审批类型",prop:"auditType"}},[r("el-select",{staticClass:"input-add",attrs:{placeholder:"请选择审批类型"},model:{value:e.approveLevelForm.auditType,callback:function(t){e.$set(e.approveLevelForm,"auditType",t)},expression:"approveLevelForm.auditType"}},e._l(e.auditTypeList,function(e){return r("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})}))],1)],1):e._e(),e._v(" "),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"审批人",prop:"unitList"}},[r("el-select",{staticClass:"input-add",attrs:{multiple:"",placeholder:"请选择审批人",clearable:"",filterable:""},model:{value:e.approveLevelForm.unitList,callback:function(t){e.$set(e.approveLevelForm,"unitList",t)},expression:"approveLevelForm.unitList"}},e._l(e.userList,function(e){return r("el-option",{key:e.id,attrs:{value:e.id,label:e.realname+"("+e.username.toString().replace(/^(\d{3})\d{4}(\d{4})$/,"$1****$2")+")"}})}))],1)],1),e._v(" "),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"审批有效时间",prop:"continueTime"}},[r("el-input",{staticClass:"input-add",attrs:{type:"number",placeholder:"请输入审批有效时间"},model:{value:e.approveLevelForm.continueTime,callback:function(t){e.$set(e.approveLevelForm,"continueTime",t)},expression:"approveLevelForm.continueTime"}},[r("template",{slot:"prepend"},[r("el-select",{staticStyle:{width:"115px"},attrs:{placeholder:"选择单位"},model:{value:e.approveLevelForm.continueTimeUnit,callback:function(t){e.$set(e.approveLevelForm,"continueTimeUnit",t)},expression:"approveLevelForm.continueTimeUnit"}},e._l(e.timeList,function(e){return r("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})}))],1)],2)],1)],1),e._v(" "),r("div",{staticClass:"checkUnit-point"},[r("div",{staticClass:"filter-container"},[r("el-button",{attrs:{size:"default",type:"primary"},on:{click:function(t){e.openApproveActionDialog("新增","",0)}}},[r("el-icon",[r("ele-FolderAdd")],1),e._v("\n                                新增审批项\n                            ")],1)],1),e._v(" "),r("el-table",{staticStyle:{width:"100%"},attrs:{border:"",fit:"","highlight-current-row":"",data:e.approveLevelForm.itemList}},[r("el-table-column",{attrs:{property:"itemName",label:"审批项名称","show-overflow-tooltip":""}}),e._v(" "),r("el-table-column",{attrs:{property:"type",label:"审批项类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(e.approveTypeList,function(n){return r("div",[t.row.type===n.id?r("div",[r("span",[e._v(e._s(n.name))])]):e._e()])})}}])}),e._v(" "),r("el-table-column",{attrs:{property:"measureId",label:"措施名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(e.actionList,function(n){return r("div",[t.row.measureId===n.id?r("div",[r("span",[e._v(e._s(n.context))])]):e._e()])})}}])}),e._v(" "),r("el-table-column",{attrs:{property:"standId",label:"标准名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(e.standardList,function(n){return r("div",[t.row.standId===n.ruleStandId?r("div",[r("span",[e._v(e._s(n.ruleStandTypeDesc))])]):e._e()])})}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(r){e.openApproveActionDialog("修改",t.row,t.$index)}}},[e._v("修改")]),e._v(" "),r("el-button",{staticStyle:{color:"red"},attrs:{type:"text",size:"small"},on:{click:function(r){e.deleteApproveItem(t.$index)}}},[e._v("删除")])]}}])})],1)],1),e._v(" "),r("div",{staticStyle:{"padding-top":"10px"},attrs:{align:"right"}},[r("el-button",{attrs:{type:"warning",size:"default",plain:""},on:{click:function(t){e.approveLevelDialog=!1}}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary",size:"default"},on:{click:function(t){e.submitApproveLevel()}}},[e._v("确认")])],1)],1)],1),e._v(" "),r("approve-item-dialog",{ref:"approveItemDialogRef",on:{addApprovalItem:e.achieveApprovalItem}})],1)},[],!1,null,"65187b96",null);v.options.__file="approveLevelDialog.vue";t.default=v.exports},cLjf:function(e,t,r){e.exports=r("xOJF")},hDQ3:function(e,t,r){"use strict";t.__esModule=!0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r("Asgo"));t.default=function(e){return function(){var t=e.apply(this,arguments);return new n.default(function(e,r){return function a(o,i){try{var l=t[o](i),s=l.value}catch(e){return void r(e)}if(!l.done)return n.default.resolve(s).then(function(e){a("next",e)},function(e){a("throw",e)});e(s)}("next")})}}},iDGX:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r("t3Un"),a=r("X4fA");function o(){return{getSafetyActionList:function(e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.22:8006/zhongtai/rule/measure/page/list",method:"post",data:e})},addSafetyAction:function(e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.22:8006/zhongtai/rule/measure/save",method:"post",data:e})},modSafetyAction:function(e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.22:8006/zhongtai/rule/measure/mod",method:"post",data:e})},deleteSafetyAction:function(e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.22:8006/zhongtai/rule/measure/delete",method:"post",data:e})},getAllSafetyActionList:function(e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.22:8006/zhongtai/rule/measure/list",method:"post",data:e})}}}},k4Ii:function(e,t){!function(t){"use strict";var r,n=Object.prototype,a=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag",p="object"==typeof e,u=t.regeneratorRuntime;if(u)p&&(e.exports=u);else{(u=t.regeneratorRuntime=p?e.exports:{}).wrap=b;var c="suspendedStart",m="suspendedYield",d="executing",v="completed",f={},h={};h[i]=function(){return this};var y=Object.getPrototypeOf,g=y&&y(y(S([])));g&&g!==n&&a.call(g,i)&&(h=g);var L=_.prototype=I.prototype=Object.create(h);F.prototype=L.constructor=_,_.constructor=F,_[s]=F.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===F||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(L),e},u.awrap=function(e){return{__await:e}},x(A.prototype),A.prototype[l]=function(){return this},u.AsyncIterator=A,u.async=function(e,t,r,n){var a=new A(b(e,t,r,n));return u.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},x(L),L[s]="Generator",L[i]=function(){return this},L.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},u.values=S,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,a){return l.type="throw",l.arg=e,t.next=n,a&&(t.method="next",t.arg=r),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),p=a.call(i,"finallyLoc");if(s&&p){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!p)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;O(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),f}}}function b(e,t,r,n){var a=t&&t.prototype instanceof I?t:I,o=Object.create(a.prototype),i=new j(n||[]);return o._invoke=function(e,t,r){var n=c;return function(a,o){if(n===d)throw new Error("Generator is already running");if(n===v){if("throw"===a)throw o;return D()}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var l=k(i,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===c)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var s=w(e,t,r);if("normal"===s.type){if(n=r.done?v:m,s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=v,r.method="throw",r.arg=s.arg)}}}(e,r,i),o}function w(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function I(){}function F(){}function _(){}function x(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function A(e){var t;this._invoke=function(r,n){function o(){return new Promise(function(t,o){!function t(r,n,o,i){var l=w(e[r],e,n);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==typeof p&&a.call(p,"__await")?Promise.resolve(p.__await).then(function(e){t("next",e,o,i)},function(e){t("throw",e,o,i)}):Promise.resolve(p).then(function(e){s.value=e,o(s)},i)}i(l.arg)}(r,n,t,o)})}return t=t?t.then(o,o):o()}}function k(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,k(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var a=w(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=r,t.done=!0,t};return o.next=o}}return{next:D}}function D(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},oTJu:function(e,t,r){},oe2s:function(e,t,r){"use strict";r.r(t);var n=r("omC7"),a=r.n(n),o={name:"approveItemDialog",data:function(){return{title:"",activeName:"ApproveAction",approveItemDialog:!1,approveItemForm:{itemName:null,type:null,measureId:null,smType:1,standId:null},approveItemFormRule:{itemName:[{required:!0,message:"请填写审批项名称",trigger:"blur"}],type:[{required:!0,message:"请选择审批项类型",trigger:"change"}],measureId:[{required:!0,message:"请选择措施",trigger:"change"}],smType:[{required:!0,message:"请选择措施或标准",trigger:"change"}],standId:[{required:!0,message:"请选择标准",trigger:"change"}]},actionList:[],approveTypeList:[],typeList:[],smTypeList:[{id:1,name:"标准"},{id:2,name:"措施"}],standardList:[],order:null,personType:null}},methods:{showApproveItemDialog:function(e,t,r,n,o,i){var l=this;this.approveItemDialog=!0,this.standardList=o,this.actionList=i,this.order=r,3===n.type?(this.personType=3,this.typeList=[{id:1,name:"数值"},{id:3,name:"填空"}]):(this.personType=2,this.typeList=[{id:2,name:"选项"},{id:3,name:"填空"}]),this.$nextTick(function(){l.$refs.approveItemFormRef.clearValidate()}),"新增"===e?(this.title="新增审批项",this.approveItemForm={itemName:null,type:null,measureId:null,standId:null,smType:1}):(this.title="修改审批项",this.approveItemForm=JSON.parse(a()(t)))},submitApproveItem:function(){var e=this;this.$refs.approveItemFormRef.validate(function(t){t?(e.approveItemForm.smType=1,e.$emit("addApprovalItem",e.approveItemForm,e.title,e.order),e.approveItemDialog=!1):e.$message({type:"warning",message:"请完善审批项基本信息"})})},clearValue:function(){1===this.approveItemForm.type?this.approveItemForm.measureId=null:2===this.approveItemForm.type?(this.approveItemForm.standId=null,this.approveTypeList=this.actionList.filter(function(e){return 1===e.type})):(this.approveItemForm.standId=null,this.approveTypeList=this.actionList.filter(function(e){return 2===e.type}))}}},i=(r("7FYh"),r("ZrdR")),l=Object(i.a)(o,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{visible:e.approveItemDialog,title:e.title,"close-on-click-modal":!1},on:{"update:visible":function(t){e.approveItemDialog=t}}},[r("el-form",{ref:"approveItemFormRef",attrs:{model:e.approveItemForm,"label-width":"150px",rules:e.approveItemFormRule}},[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"审批项名称",prop:"itemName"}},[r("el-input",{staticClass:"input-add",attrs:{placeholder:"请填写审批项名称"},model:{value:e.approveItemForm.itemName,callback:function(t){e.$set(e.approveItemForm,"itemName",t)},expression:"approveItemForm.itemName"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"审批项类型",prop:"type"}},[r("el-select",{staticClass:"input-add",attrs:{placeholder:"请选择审批项类型",clearable:"",filterable:""},on:{change:e.clearValue},model:{value:e.approveItemForm.type,callback:function(t){e.$set(e.approveItemForm,"type",t)},expression:"approveItemForm.type"}},e._l(e.typeList,function(e){return r("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})}))],1)],1),e._v(" "),2!==e.approveItemForm.type&&3!==e.approveItemForm.type||3===e.personType?e._e():r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"措施名称",prop:"measureId"}},[r("el-select",{staticClass:"input-add",attrs:{placeholder:"请选择措施",clearable:"",filterable:""},model:{value:e.approveItemForm.measureId,callback:function(t){e.$set(e.approveItemForm,"measureId",t)},expression:"approveItemForm.measureId"}},e._l(e.approveTypeList,function(e){return r("el-option",{key:e.id,attrs:{value:e.id,label:e.context}})}))],1)],1),e._v(" "),1===e.approveItemForm.type?r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"标准名称",prop:"standId"}},[r("el-select",{staticClass:"input-add",attrs:{placeholder:"选择标准",clearable:"",filterable:""},model:{value:e.approveItemForm.standId,callback:function(t){e.$set(e.approveItemForm,"standId",t)},expression:"approveItemForm.standId"}},e._l(e.standardList,function(e){return r("el-option",{key:e.ruleStandId,attrs:{value:e.ruleStandId,label:e.title}})}))],1)],1):e._e(),e._v(" "),r("div",{attrs:{align:"right"}},[r("el-button",{attrs:{type:"warning",size:"default",plain:""},on:{click:function(t){e.approveItemDialog=!1}}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary",size:"default"},on:{click:function(t){e.submitApproveItem()}}},[e._v("确认")])],1)],1)],1)},[],!1,null,"b377063c",null);l.options.__file="approveItemDialog.vue";t.default=l.exports},xOJF:function(e,t,r){var n=function(){return this}()||Function("return this")(),a=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,o=a&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=r("k4Ii"),a)n.regeneratorRuntime=o;else try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=void 0}}}]);