| 1 |
- !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return r};var a,r={},i=Object.prototype,o=i.hasOwnProperty,n=Object.defineProperty||function(e,t,a){e[t]=a.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function p(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(a){p=function(e,t,a){return e[t]=a}}function u(e,t,a,r){var i=t&&t.prototype instanceof _?t:_,o=Object.create(i.prototype),s=new J(r||[]);return n(o,"_invoke",{value:E(e,a,s)}),o}function m(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}r.wrap=u;var v="suspendedStart",f="suspendedYield",g="executing",y="completed",h={};function _(){}function b(){}function x(){}var k={};p(k,l,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(D([])));S&&S!==i&&o.call(S,l)&&(k=S);var C=x.prototype=_.prototype=Object.create(k);function A(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function P(t,a){function r(i,n,s,l){var c=m(t[i],t,n);if("throw"!==c.type){var d=c.arg,p=d.value;return p&&"object"==e(p)&&o.call(p,"__await")?a.resolve(p.__await).then((function(e){r("next",e,s,l)}),(function(e){r("throw",e,s,l)})):a.resolve(p).then((function(e){d.value=e,s(d)}),(function(e){return r("throw",e,s,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,t){function o(){return new a((function(a,i){r(e,t,a,i)}))}return i=i?i.then(o,o):o()}})}function E(e,t,r){var i=v;return function(o,n){if(i===g)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw n;return{value:a,done:!0}}for(r.method=o,r.arg=n;;){var s=r.delegate;if(s){var l=I(s,r);if(l){if(l===h)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===v)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=g;var c=m(e,t,r);if("normal"===c.type){if(i=r.done?y:f,c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=y,r.method="throw",r.arg=c.arg)}}}function I(e,t){var r=t.method,i=e.iterator[r];if(i===a)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=a,I(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=m(i,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var n=o.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=a),t.delegate=null,h):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function R(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 F(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function J(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function D(t){if(t||""===t){var r=t[l];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,n=function e(){for(;++i<t.length;)if(o.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=a,e.done=!0,e};return n.next=n}}throw new TypeError(e(t)+" is not iterable")}return b.prototype=x,n(C,"constructor",{value:x,configurable:!0}),n(x,"constructor",{value:b,configurable:!0}),b.displayName=p(x,d,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,p(e,d,"GeneratorFunction")),e.prototype=Object.create(C),e},r.awrap=function(e){return{__await:e}},A(P.prototype),p(P.prototype,c,(function(){return this})),r.AsyncIterator=P,r.async=function(e,t,a,i,o){void 0===o&&(o=Promise);var n=new P(u(e,t,a,i),o);return r.isGeneratorFunction(t)?n:n.next().then((function(e){return e.done?e.value:n.next()}))},A(C),p(C,d,"Generator"),p(C,l,(function(){return this})),p(C,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),a=[];for(var r in t)a.push(r);return a.reverse(),function e(){for(;a.length;){var r=a.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},r.values=D,J.prototype={constructor:J,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(F),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=a)},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 r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=a),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i],s=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var l=o.call(n,"catchLoc"),c=o.call(n,"finallyLoc");if(l&&c){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(l){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var n=i?i.completion:{};return n.type=e,n.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(n)},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),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),F(a),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var r=a.completion;if("throw"===r.type){var i=r.arg;F(a)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:D(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=a),h}},r}function a(e,t,a,r,i,o,n){try{var s=e[o](n),l=s.value}catch(c){return void a(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var n=e.apply(t,r);function s(e){a(n,i,o,s,l,"next",e)}function l(e){a(n,i,o,s,l,"throw",e)}s(void 0)}))}}System.register(["./index-legacy.a130dba2.js","./composables-legacy.0c6ce36a.js","./hideDialog-legacy.c22ba144.js","./customFieldDialog-legacy.d3fe02ed.js","./LJWWData-legacy.844c3ebc.js","./vuedraggable.umd-legacy.a4f60da7.js","./LJWWDMSelect-legacy.8df26109.js","./dingtalkHooks-legacy.962421a9.js","./sortable.esm-legacy.19def5ad.js"],(function(e,a){"use strict";var i,o,n,s,l,c,d,p,u,m,v,f,g,y,h,_=document.createElement("style");return _.textContent=".item-con[data-v-f9aa98a6]{position:relative;width:240px;font-size:14px}.item-con .item-header[data-v-f9aa98a6]{background:#fff;border-radius:6px;box-shadow:0 0 10px #ccc;overflow:hidden;text-align:left}.item-con .item-header .item-title[data-v-f9aa98a6]{padding:5px 10px;background:#4671ff;line-height:26px;color:#fff}.item-con .item-header .item-title .el-icon-delete[data-v-f9aa98a6]{float:right;margin-top:5px;cursor:pointer}.item-con .item-header .item-title .el-icon-delete[data-v-f9aa98a6]:hover{opacity:.8}.item-con .item-header .item-title .el-icon-edit[data-v-f9aa98a6]{float:right;margin:5px 5px 0 0;cursor:pointer}.item-con .item-header .item-title .el-icon-edit[data-v-f9aa98a6]:hover{opacity:.8}.item-con .item-header .item-member[data-v-f9aa98a6]{padding:10px 10px 10px 15px}.item-con .item-header .item-member i[data-v-f9aa98a6]{float:right;margin-top:2px}.item-con .approve-spec .item-title[data-v-f9aa98a6]{background:#fd9b03}.item-con .img[data-v-f9aa98a6]{width:11px}.item-con .item-btn[data-v-f9aa98a6]{position:absolute;left:50%;margin-left:-15px;z-index:1;margin-top:-68px;color:#0a77f6;font-size:30px;cursor:pointer}.item-con .item-btn[data-v-f9aa98a6]:hover{opacity:.8}.clue-module-details[data-v-262152f0]{padding:15px;background:#fff}.detail-form-con[data-v-262152f0]{margin-top:15px}.detail-title-con[data-v-262152f0]{display:flex;justify-content:space-between;background-color:#fafcff;margin:-15px -15px 15px;border-bottom:1px solid #E6E6E6;padding:8px 10px 8px 30px}.detail-title-con .detail-title[data-v-262152f0]{align-self:center}.detail-title-con .detail-process[data-v-262152f0]{width:800px}.detail-title-con .detail-title-btn[data-v-262152f0]{align-self:center}.detail-form-con .detail-part[data-v-262152f0]{margin-top:15px;padding:20px;border:1px solid #eee;border-radius:10px}.detail-form-con .detail-part .part-title[data-v-262152f0]{font-size:16px;display:flex;align-items:center;margin-bottom:20px}.detail-form-con .detail-part .part-title .title-line[data-v-262152f0]{width:4px;height:18px;padding:0;background-color:#1651ee;border-radius:4px;margin-top:2px;margin-right:5px}.detail-form-con .detail-part .part-title .title-line[data-v-262152f0]:after{width:0}.detail-form-con .detail-part .part-title .hide-key[data-v-262152f0]{float:right;color:#1651ee;font-size:14px;cursor:pointer;margin-left:auto}.detail-form-con .detail-part .process-setting[data-v-262152f0]{font-size:15px}.detail-form-con .detail-part .process-setting .setting-title[data-v-262152f0]{line-height:32px}.detail-form-con .detail-part .process-setting .el-radio[data-v-262152f0]{display:block;padding:5px 0}.detail-form-con .detail-part .process-setting .setting-input[data-v-262152f0]{padding:10px 0 0 10px}.detail-form-con .detail-process-con[data-v-262152f0]{border:1px solid #eee}.detail-form-con .detail-process-con .process-bg[data-v-262152f0]{padding:50px 0;border-left:1px solid #eee;background:#efefef;max-height:calc(100vh - 200px);overflow-y:auto;text-align:center}.detail-form-con .detail-process-con .process-list[data-v-262152f0]{display:inline-block}.detail-form-con .el-input[data-v-262152f0],.detail-form-con .el-select[data-v-262152f0]{width:300px}.approve-con[data-v-262152f0]{padding:0 50px}.approve-list[data-v-262152f0]{max-height:70vh;overflow-y:auto}.approve-list .el-radio[data-v-262152f0]{display:flex;line-height:20px;padding:5px 0}.approve-list .el-radio .el-radio__inner[data-v-262152f0]{vertical-align:middle}.approve-list .el-radio .el-radio__inner{vertical-align:middle;margin-top:4px}\n",document.head.appendChild(_),{setters:[function(e){i=e.n,o=e.r,n=e.f,s=e.$,l=e.o,c=e.e},function(e){d=e.u,p=e.a},function(e){u=e.h,m=e.f},function(e){v=e.c},function(e){f=e.L},function(e){g=e.d},function(e){y=e.L},function(e){h=e.g},function(){}],execute:function(){var a={__name:"ProcessItem",props:{data:{type:Object,default:function(){}},index:{type:Number,default:0},radioValueDay:{type:Number,default:0}},emits:["addProgressItem","selectProgressApprove","selectProgressDays","deleteProgress"],setup:function(e,t){var a=t.emit,r=e;return{__sfc:!0,props:r,emits:a,addProgressItem:function(){a("addProgressItem",r.index)},selectProgressApprove:function(){a("selectProgressApprove",r.index),console.log("selectProgressApprove",r.index)},selectProgressDays:function(){a("selectProgressDays",r.index),console.log("selectProgressDays",r.index)},deleteProgress:function(){console.log("data",r.data),a("deleteProgress")},editProgress:function(){console.log("data",r.data),a("editProgress")},LJWWData:f}}},_=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",{staticClass:"item-con"},[t("div",{staticClass:"item-header",class:{"approve-spec":"approve"===e.data.type}},[t("div",{staticClass:"item-title"},[t("i",{staticClass:"el-icon-document-add"}),e._v(" "+e._s("approve"===e.data.type?e.data.title?e.data.title:"编辑审批流程名称":"发起人")+" "),"approve"===e.data.type?t("i",{staticClass:"el-icon-delete",on:{click:a.deleteProgress}}):e._e(),"approve"===e.data.type?t("i",{staticClass:"el-icon-edit",on:{click:a.editProgress}}):e._e()]),t("div",{staticClass:"item-member"},["approve"===e.data.type?t("div",{on:{click:a.selectProgressApprove}},[e.data.name?t("span",{staticStyle:{display:"inline-block","max-width":"180px",overflow:"hidden"}},[t(a.LJWWData,{attrs:{type:2,openid:e.data.name}})],1):t("span",[e._v("请选择审批人")]),t("i",{staticClass:"el-icon-arrow-right"})]):t("div",[e._v("具有新建权限的员工")])]),"approve"===e.data.type?t("div",{staticClass:"item-member"},["approve"===e.data.type?t("div",{on:{click:a.selectProgressDays}},[e.data.days?t("span",{staticStyle:{display:"inline-block","max-width":"180px",overflow:"hidden"}},[e._v(" "+e._s(e.data.days)+"天 ")]):t("span",[e._v("审批天数")]),t("i",{staticClass:"el-icon-arrow-right"})]):t("div",[e._v("具有新建权限的员工")])]):e._e(),"approve"===e.data.type?t("div",{staticClass:"item-member"},["approve"===e.data.type?t("div",{staticStyle:{display:"flex"}},[e._v(" 备注必填 "),t("div",{staticStyle:{"margin-left":"auto"}},[t("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.data.need_remark,callback:function(t){e.$set(e.data,"need_remark",t)},expression:"data.need_remark"}})],1)]):t("div",[e._v("具有新建权限的员工")])]):e._e(),"approve"===e.data.type?t("div",{staticClass:"item-member"},["approve"===e.data.type?t("div",{staticStyle:{display:"flex"}},[e._v(" 图片必填 "),t("div",{staticStyle:{"margin-left":"auto"}},[t("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.data.need_pic,callback:function(t){e.$set(e.data,"need_pic",t)},expression:"data.need_pic"}})],1)]):t("div",[e._v("具有新建权限的员工")])]):e._e()]),t("img",{staticClass:"img",attrs:{alt:"",src:"data:image/png;base64,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"}}),t("div",{staticClass:"item-btn",on:{click:a.addProgressItem}},[t("i",{staticClass:"el-icon-circle-plus"})])])},b=[];_._withStripped=!0;var x=i(a,_,b,!1,null,"f9aa98a6",null,null);x.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/components/ProcessItem/ProcessItem.vue";var k=x.exports,w={__name:"contractModuleDetails",setup:function(e){var a=o(),i=o(),_=d(),b=p(),x=o(0),w=o(!0),S=o(),C=n({templates_id:"",company_id:s.getters.company,name:"",status:1,is_limit:0,field_list:[],dept_list:[],member_list:[],exception_handling_member:null,receipt_exception_handling_member:null,auto_consent:1,receipt_auto_consent:1,process_list:[],receipt_process_list:[]}),A=function(e,t,a){C.dept_list.length||C.member_list.length?a():a(new Error("请选择使用权限"))},P=n({name:[{required:!0,message:"请输入模板名称",trigger:"blur"}],dept_list:[{required:!0,validator:A,trigger:"change"}]}),E=o([]),I=o([]),R=o([]),F=o([]),J=o([]),D=o([]),N=o([]),L=o(!1),q=o(!1),j=o(0),V=o(0),B=o(0),Q=o(0),T=o([]),K=o(!1),M=o(!1),O=o(null),U=o(null),Y=o([{label:1,name:"1天"},{label:2,name:"2天"},{label:3,name:"3天"},{label:4,name:"4天"},{label:5,name:"5天"},{label:10,name:"10天"},{label:15,name:"15天"},{label:20,name:"20天"},{label:25,name:"25天"},{label:30,name:"30天"}]),W=o(0),G=o(0);function X(){HTTP.get("member",{limit:99,is_auth_role:1,del_flag:0,is_real:1}).then((function(e){D.value=e.data.results,D.value.unshift({name:"发起人",id:""}),N.value=e.data.results}))}function H(){HTTP.get("templates_config",{key:"osm_temp"}).then((function(e){E.value=JSON.parse(e.data.results[0].field_json),b.query.id?Z(b.query.id):z({})}))}function Z(e){HTTP.getById("order_templates",e).then((function(e){if(T.value=[],C.templates_id=e.data.id,C.company_id=e.data.company,C.name=e.data.name,C.status=e.data.status,C.is_limit=e.data.is_limit,C.auto_consent=e.data.auto_consent,C.receipt_auto_consent=e.data.receipt_auto_consent,C.exception_handling_member=e.data.exception_handling_member||null,e.data.dept_list&&(C.dept_list=e.data.dept_list.split(","),C.dept_list.map((function(e){T.value.push("dept-".concat(e))}))),e.data.member_list&&(C.member_list=e.data.member_list.split(","),C.member_list.map((function(e){T.value.push("user-".concat(e))}))),e.data.field_json){var t={};JSON.parse(e.data.field_json).map((function(e){t[e.key]=e})),z(t)}if(e.data.process_list){var a=JSON.parse(e.data.process_list),r={};D.value.map((function(e){r[e.id]=e})),a.map((function(e){var t="";"creator_id"==e.type?t="发起人":(console.log(r[parseInt(e.member_id)]),t=r[parseInt(e.member_id)].name?r[parseInt(e.member_id)].name:"暂无"),console.log(e),F.value.push({type:"approve",id:"creator_id"==e.type?"":e.member_id,name:t,title:e.name,need_pic:e.need_pic,need_remark:e.need_remark,days:e.days})}))}if(e.data.receipt_process_list){var i=JSON.parse(e.data.receipt_process_list),o={};N.value.map((function(e){o[e.id]=e})),i.map((function(e){var t="";t="creator_id"==e.type?"发起人":o[parseInt(e.member_id)].name?o[parseInt(e.member_id)].name:"暂无",J.value.push({type:"approve",id:"creator_id"==e.type?"":e.member_id,name:t,title:e.name,need_pic:e.need_pic,need_remark:e.need_remark,days:e.days})}))}}))}function z(e){E.value.map((function(t){t.sort=e[t.key]?e[t.key].sort:t.sort,e[t.key]&&e[t.key].is_hide?(b.query.id&&(t.is_required=e[t.key].is_required),R.value.push(t)):(b.query.id&&(t.is_required=e[t.key].is_required),I.value.push(t))})),Object.keys(e).map((function(t){1===e[t].is_custom&&I.value.push(e[t])})),I.value=I.value.sort((function(e,t){return e.sort-t.sort})),R.value=R.value.sort((function(e,t){return e.sort-t.sort}))}return l(r(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("route",b.query),w.value=b.query&&"detail"!==b.query.type,e.next=4,X();case 4:H(),F.value.push({type:"initiator"}),J.value.push({type:"initiator"});case 7:case"end":return e.stop()}}),e)})))),{__sfc:!0,hideRef:a,customFieldRef:i,router:_,route:b,processStep:x,canEditor:w,formRef:S,form:C,validatePass:A,rules:P,templateItems:E,showItems:I,hideItems:R,processArray:F,processRecArray:J,processMember:D,processDecMember:N,drawerVisible:L,drawerRecVisible:q,radioValue:j,radioRecValue:V,currProcessNum:B,currRecProcessNum:Q,deptMember:T,drawerVisibleDays:K,drawerRecVisibleDays:M,radioValueDay:O,radioRecValueDay:U,dayList:Y,currProcessNumDay:W,currRecProcessNumDay:G,getMemberList:X,getTemplateConfig:H,initData:Z,dealShowItems:z,handleDept:function(e){C.dept_list=e?e.split(","):[],S.value.validateField("dept_list")},handleMember:function(e){C.member_list=e?e.split(","):[],S.value.validateField("dept_list")},goBack:function(){_.back()},showHideFields:function(){a.value.init()},hideFormItem:function(e){console.log("e",e),e.is_hide=1,I.value=I.value.filter((function(e){return!e.is_hide})),R.value.push(e)},deleteFormItem:function(e){I.value=I.value.filter((function(t){return t.name!==e.name}))},requiredFormItem:function(e,t){e.is_required=t},ondragend:function(){console.log("e",C.field_list)},showFormItem:function(e){e.map((function(e){var t=E.value.filter((function(t){return t.key===e}));t[0].is_hide=0;var a=I.value.findIndex((function(e){return"备注"===e.name}));a>0?I.value.splice(a,0,t[0]):I.value.push(t[0])})),R.value=R.value.filter((function(t){return!e.includes(t.key)}))},showCustom:function(){i.value.init()},saveCustomField:function(e){var t=I.value.find((function(t){return t.name===e.name})),a=R.value.find((function(t){return t.name===e.name}));if(t||a)return c.exports.Message({type:"error",message:"".concat(a?"隐藏字段中":"","已存在该自定义字段")});var r=JSON.parse(JSON.stringify(E.value[0]));r.name=e.name,r.is_custom=1,r.key="",r.type=e.type,r.dropdown_value=e.dropdown_value?e.dropdown_value.split("、"):[],r.rule={length_limit:e.length_limit},r.is_required=e.is_required;var i=I.value.findIndex((function(e){return"备注"===e.name}));i>0?I.value.splice(i,0,r):I.value.push(r)},goProcessNext:function(){S.value.validate((function(e){if(!e)return console.log("error submit!!"),!1;0==x.value?x.value=1:1===x.value?x.value=2:x.value=1}))},setprocessStep:function(){2==x.value?x.value=1:1===x.value&&(x.value=0)},goPaymentNext:function(){S.value.validate((function(e){if(!e)return console.log("error submit!!"),!1;x.value=2}))},addProgressItem:function(e){console.log("e",e),F.value.splice(e+1,0,{type:"approve",id:"",name:"",days:"",need_remark:0,need_pic:0,title:""})},addRecProgressItem:function(e){console.log("e",e),J.value.splice(e+1,0,{type:"approve",id:"",name:"",days:"",need_remark:0,need_pic:0,title:""})},selectProgressApprove:function(e){console.log("e",e),B.value=e,L.value=!0},selectRecProgressApprove:function(e){console.log("e",e),Q.value=e,q.value=!0},selectProgressDays:function(e){W.value=e,K.value=!0},selectRecProgressDays:function(e){console.log("e",e),G.value=e,M.value=!0},doSelectApprove:function(){L.value=!1;var e=D.value.filter((function(e){return e.id===j.value}))[0];F.value[B.value].id=j.value,F.value[B.value].name=e.name},doSelectRecApprove:function(){q.value=!1;var e=N.value.filter((function(e){return e.id===V.value}))[0];J.value[Q.value].id=V.value,J.value[Q.value].name=e.name},doSelectApproveDays:function(){K.value=!1,F.value[W.value].days=O.value},doSelectRecApproveDays:function(){M.value=!1,J.value[G.value].days=U.value},deleteProgress:function(e){console.log("processArray",F.value),F.value.splice(e,1)},deleteRecProgress:function(e){J.value.splice(e,1)},editProgress:function(e){c.exports.MessageBox.prompt("请输入流程名称","编辑",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(t){var a=t.value;F.value[e].title=a}))},editRecProgress:function(e){c.exports.MessageBox.prompt("请输入流程名称","编辑",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(t){var a=t.value;J.value[e].title=a}))},saveForm:function(){S.value.validate((function(e){if(!e)return console.log("error submit!!"),!1;if(F.value.length<2)return c.exports.Message({type:"error",message:"请添加审批流程"});if(J.value.length<2)return c.exports.Message({type:"error",message:"请添加回款审批流程"});console.log(F.value);var t=[],a=[];if(0==F.value.filter((function(e){return"approve"===e.type})).length)return c.exports.Message({type:"error",message:"请添加审批流程"});F.value.filter((function(e){return"approve"===e.type})).map((function(e){e.id?t.push({type:"member_id",name:e.title,member_id:e.id,days:e.days,need_remark:e.need_remark,need_pic:e.need_pic}):t.push({type:"creator_id",name:e.title,member_id:"",days:e.days,need_remark:e.need_remark,need_pic:e.need_pic})})),J.value.filter((function(e){return"approve"===e.type})).map((function(e){e.id?a.push({type:"member_id",name:e.title,member_id:e.id,days:e.days,need_remark:e.need_remark,need_pic:e.need_pic}):a.push({type:"creator_id",name:e.title,member_id:"",days:e.days,need_remark:e.need_remark,need_pic:e.need_pic})}));var r=JSON.parse(JSON.stringify(C));r.templates_id||delete r.templates_id,r.exception_handling_member=r.auto_consent?null:r.exception_handling_member,r.receipt_exception_handling_member=r.receipt_auto_consent?null:r.receipt_exception_handling_member,r.field_list=[],I.value.map((function(e,t){e.sort=t+1,e.is_hide=0,r.field_list.push(e)})),R.value.map((function(e,t){e.sort=t+I.value.length+1,e.is_hide=1,r.field_list.push(e)})),r.process_list=t,r.receipt_process_list=a,console.log(r),HTTP.post("create_order_templates",r).then((function(e){console.log("res",e),0===e.code?(c.exports.Message({type:"success",message:"保存成功"}),_.back()):c.exports.Message({type:"error",message:e.msg})}))}))},hideDialog:u,customField:v,formItem:m,processItem:k,draggable:g,LJWWDMSelect:y,LJWWData:f,getDDAuthCode:h}}},S=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",{staticClass:"clue-module-details"},[t("div",{staticClass:"detail-title-con"},[t("div",{staticClass:"detail-title"},[e._v(e._s("edit"==a.route.query.type?"编辑模板内容":"新增模板内容"))]),t("div",{staticClass:"detail-process"},[t("el-steps",{attrs:{active:a.processStep,"finish-status":"success",simple:""}},[t("el-step",{attrs:{title:"配置基础信息"},nativeOn:{click:function(e){a.processStep=0}}}),t("el-step",{attrs:{title:"配置审批流程"},nativeOn:{click:function(e){return a.goProcessNext.apply(null,arguments)}}}),t("el-step",{attrs:{title:"配置回款审批流程"},nativeOn:{click:function(e){return a.goPaymentNext.apply(null,arguments)}}})],1)],1),t("div",{staticClass:"detail-title-btn"},[t("el-button",{attrs:{type:"primary",plain:""},on:{click:a.goBack}},[e._v("取消")]),2===a.processStep||1===a.processStep?t("el-button",{attrs:{type:"primary"},on:{click:a.setprocessStep}},[e._v(" 上一步 ")]):e._e(),0===a.processStep||1===a.processStep?t("el-button",{attrs:{type:"primary"},on:{click:a.goProcessNext}},[e._v(" 下一步 ")]):e._e(),a.canEditor&&2===a.processStep?t("el-button",{attrs:{type:"primary"},on:{click:a.saveForm}},[e._v(" 保存 ")]):e._e()],1)]),t("div",{directives:[{name:"show",rawName:"v-show",value:0===a.processStep,expression:"processStep === 0"}],staticClass:"detail-form-con"},[t("el-form",{ref:"formRef",staticClass:"form-spec",attrs:{disabled:!a.canEditor,model:a.form,rules:a.rules,"label-width":"200px"}},[t("div",{staticClass:"detail-part"},[t("div",{staticClass:"part-title"},[t("div",{staticClass:"title-line"}),e._v(" 模板信息 ")]),t("el-form-item",{attrs:{label:"模板名称",prop:"name"}},[t("el-input",{model:{value:a.form.name,callback:function(t){e.$set(a.form,"name",t)},expression:"form.name"}})],1),t("el-form-item",{attrs:{label:"使用权限",prop:"dept_list"}},[t("div",{staticStyle:{width:"300px"}},[t(a.LJWWDMSelect,{attrs:{defaultCheckedKeys:a.deptMember},on:{dept:a.handleDept,member:a.handleMember}})],1)])],1),t("div",{staticClass:"detail-part"},[t("div",{staticClass:"part-title"},[t("div",{staticClass:"title-line"}),e._v(" 基本信息 "),t("span",{directives:[{name:"permission",rawName:"v-permission",value:34310,expression:"34310"}],staticClass:"hide-key",on:{click:a.showHideFields}},[e._v("已隐藏字段")])]),t("el-row",[t(a.draggable,{attrs:{list:a.showItems},on:{end:a.ondragend}},[t("transition-group",e._l(a.showItems,(function(e,r){return t("el-col",{key:r,attrs:{span:10}},[t("el-form-item",{attrs:{label:e.name,required:!!e.is_required}},[t(a.formItem,{attrs:{type:e.type,data:e},on:{hideFormItem:a.hideFormItem,deleteFormItem:a.deleteFormItem,requiredFormItem:a.requiredFormItem}})],1)],1)})),1)],1),t("el-col",[t("el-form-item",{attrs:{label:"新建字段"}},[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:34309,expression:"34309"}],attrs:{type:"primary",plain:""},on:{click:a.showCustom}},[e._v(" + 自定义字段 ")])],1)],1)],1)],1)])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:1===a.processStep,expression:"processStep === 1"}],staticClass:"detail-form-con"},[t("el-row",{staticClass:"detail-process-con"},[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"detail-part",staticStyle:{border:"none"}},[t("div",{staticClass:"part-title"},[t("div",{staticClass:"title-line"}),e._v(" 审批流程 ")]),t("div",{staticClass:"process-setting"},[t("div",{staticClass:"setting-title"},[e._v("异常处理")]),t("div",{staticClass:"setting-title",staticStyle:{color:"#666"}},[e._v(" 审批节点内成员离职,为空等情况的处理方式 ")]),t("div",[t("el-radio-group",{model:{value:a.form.auto_consent,callback:function(t){e.$set(a.form,"auto_consent",t)},expression:"form.auto_consent"}},[t("el-radio",{attrs:{label:1}},[e._v("自动同意")]),t("el-radio",{attrs:{label:0}},[e._v("转交给指定人员处理")])],1)],1),a.form.auto_consent?e._e():t("div",{staticClass:"setting-input"},[t("el-select",{attrs:{placeholder:"请选择处理人"},model:{value:a.form.exception_handling_member,callback:function(t){e.$set(a.form,"exception_handling_member",t)},expression:"form.exception_handling_member"}},e._l(a.processMember,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)])])]),t("el-col",{staticClass:"process-bg",attrs:{span:16}},[t("div",{staticClass:"process-list"},[e._l(a.processArray,(function(e,r){return t("div",{key:r,staticClass:"list-item"},[t(a.processItem,{attrs:{data:e,index:r},on:{addProgressItem:a.addProgressItem,selectProgressApprove:a.selectProgressApprove,selectProgressDays:a.selectProgressDays,deleteProgress:function(e){return a.deleteProgress(r)},editProgress:function(e){return a.editProgress(r)}}})],1)})),t("div",{staticClass:"process-over"},[e._v("流程结束")])],2)])],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:2===a.processStep,expression:"processStep === 2"}],staticClass:"detail-form-con"},[t("el-row",{staticClass:"detail-process-con"},[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"detail-part",staticStyle:{border:"none"}},[t("div",{staticClass:"part-title"},[t("div",{staticClass:"title-line"}),e._v(" 审批流程 ")]),t("div",{staticClass:"process-setting"},[t("div",{staticClass:"setting-title"},[e._v("异常处理")]),t("div",{staticClass:"setting-title",staticStyle:{color:"#666"}},[e._v(" 审批节点内成员离职,为空等情况的处理方式 ")]),t("div",[t("el-radio-group",{model:{value:a.form.receipt_auto_consent,callback:function(t){e.$set(a.form,"receipt_auto_consent",t)},expression:"form.receipt_auto_consent"}},[t("el-radio",{attrs:{label:1}},[e._v("自动同意")]),t("el-radio",{attrs:{label:0}},[e._v("转交给指定人员处理")])],1)],1),a.form.receipt_auto_consent?e._e():t("div",{staticClass:"setting-input"},[t("el-select",{attrs:{placeholder:"请选择处理人"},model:{value:a.form.receipt_exception_handling_member,callback:function(t){e.$set(a.form,"receipt_exception_handling_member",t)},expression:"form.receipt_exception_handling_member"}},e._l(a.processDecMember,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)])])]),t("el-col",{staticClass:"process-bg",attrs:{span:16}},[t("div",{staticClass:"process-list"},[e._l(a.processRecArray,(function(e,r){return t("div",{key:r,staticClass:"list-item"},[t(a.processItem,{attrs:{data:e,index:r},on:{addProgressItem:a.addRecProgressItem,selectProgressApprove:a.selectRecProgressApprove,selectProgressDays:a.selectRecProgressDays,deleteProgress:function(e){return a.deleteRecProgress(r)},editProgress:function(e){return a.editRecProgress(r)}}})],1)})),t("div",{staticClass:"process-over"},[e._v("流程结束")])],2)])],1)],1),t(a.hideDialog,{ref:"hideRef",attrs:{hideItems:a.hideItems},on:{showFormItem:a.showFormItem}}),t(a.customField,{ref:"customFieldRef",on:{saveCustomField:a.saveCustomField}}),t("el-drawer",{attrs:{title:"请选择审批人",visible:a.drawerVisible,direction:"rtl","append-to-body":!0},on:{"update:visible":function(e){a.drawerVisible=e}}},[t("div",{staticClass:"approve-con"},[t("div",{staticClass:"approve-list"},[t("el-radio-group",{model:{value:a.radioValue,callback:function(e){a.radioValue=e},expression:"radioValue"}},e._l(a.processMember,(function(r,i){return t("el-radio",{key:i,attrs:{label:r.id}},[a.getDDAuthCode.isDD?t("div",[e._v(e._s(r.name))]):t(a.LJWWData,{attrs:{type:2,openid:r.name}})],1)})),1)],1),t("div",{staticStyle:{"margin-top":"20px"}},[t("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){a.drawerVisible=!1}}},[e._v("取消 ")]),t("el-button",{attrs:{type:"primary"},on:{click:a.doSelectApprove}},[e._v("确定 ")])],1)])]),t("el-drawer",{attrs:{title:"请选择审批人",visible:a.drawerRecVisible,direction:"rtl","append-to-body":!0},on:{"update:visible":function(e){a.drawerRecVisible=e}}},[t("div",{staticClass:"approve-con"},[t("div",{staticClass:"approve-list"},[t("el-radio-group",{model:{value:a.radioRecValue,callback:function(e){a.radioRecValue=e},expression:"radioRecValue"}},e._l(a.processDecMember,(function(r,i){return t("el-radio",{key:i,attrs:{label:r.id}},[a.getDDAuthCode.isDD?t("div",[e._v(e._s(r.name))]):t(a.LJWWData,{attrs:{type:2,openid:r.name}})],1)})),1)],1),t("div",{staticStyle:{"margin-top":"20px"}},[t("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){a.drawerRecVisible=!1}}},[e._v("取消 ")]),t("el-button",{attrs:{type:"primary"},on:{click:a.doSelectRecApprove}},[e._v("确定 ")])],1)])]),t("el-drawer",{attrs:{title:"请选择天数",visible:a.drawerVisibleDays,direction:"rtl","append-to-body":!0},on:{"update:visible":function(e){a.drawerVisibleDays=e}}},[t("div",{staticClass:"approve-con"},[t("div",{staticClass:"approve-list"},[t("el-radio-group",{model:{value:a.radioValueDay,callback:function(e){a.radioValueDay=e},expression:"radioValueDay"}},e._l(a.dayList,(function(a,r){return t("el-radio",{key:r,attrs:{label:a.label}},[t("div",[e._v(e._s(a.name))])])})),1)],1),t("div",{staticStyle:{"margin-top":"20px"}},[t("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){a.drawerVisibleDays=!1}}},[e._v("取消 ")]),t("el-button",{attrs:{type:"primary"},on:{click:a.doSelectApproveDays}},[e._v("确定 ")])],1)])]),t("el-drawer",{attrs:{title:"请选择天数",visible:a.drawerRecVisibleDays,direction:"rtl","append-to-body":!0},on:{"update:visible":function(e){a.drawerRecVisibleDays=e}}},[t("div",{staticClass:"approve-con"},[t("div",{staticClass:"approve-list"},[t("el-radio-group",{model:{value:a.radioRecValueDay,callback:function(e){a.radioRecValueDay=e},expression:"radioRecValueDay"}},e._l(a.dayList,(function(a,r){return t("el-radio",{key:r,attrs:{label:a.label}},[t("div",[e._v(e._s(a.name))])])})),1)],1),t("div",{staticStyle:{"margin-top":"20px"}},[t("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){a.drawerRecVisibleDays=!1}}},[e._v("取消 ")]),t("el-button",{attrs:{type:"primary"},on:{click:a.doSelectRecApproveDays}},[e._v("确定 ")])],1)])])],1)},C=[];S._withStripped=!0;var A=i(w,S,C,!1,null,"262152f0",null,null);A.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/views/markets/configurations/contractModule/contractModuleDetails.vue";e("default",A.exports)}}}))}();
|