(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-20a5dcb9","chunk-2d0df437","chunk-2d0df437","chunk-a215bc54","chunk-dc494c42","chunk-dc494c42","chunk-dc494c42","chunk-dc494c42","chunk-dc494c42","chunk-dc494c42","chunk-dc494c42","chunk-dc494c42","chunk-dc494c42","chunk-dc494c42","chunk-dc494c42","chunk-dc494c42","chunk-dc494c42","chunk-dc494c42","chunk-dc494c42","chunk-dc494c42","chunk-2d21d6e1","chunk-2d21d6e1","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437"],{"140a":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e._self._c;return t("j-modal",{attrs:{title:e.title,width:1200,visible:e.visible,maskClosable:!1,switchFullscreen:"",okButtonProps:{class:{"jee-hidden":e.disableSubmit}}},on:{ok:e.handleOk,cancel:e.handleCancel}},[t("a-form",{attrs:{form:e.form}},[t("a-row",{attrs:{span:24}},[t("a-col",{attrs:{sm:{span:24}}},[t("a-form-item",{attrs:{label:"属性名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["attributeName",e.validatorRules.attributeName],expression:"['attributeName',validatorRules.attributeName]"}],attrs:{placeholder:"请输入属性名称"}})],1)],1)],1),t("a-row",[t("a-col",{attrs:{span:24}},[t("a-form-item",{attrs:{label:"属性类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:["attributeType",e.validatorRules.attributeType],expression:"['attributeType',validatorRules.attributeType]"}],attrs:{type:"select","trigger-change":!0,dictCode:"attribute_type"},on:{change:e.attributeTypeChange}})],1)],1)],1),t("a-row",[e.showDict?t("a-col",{attrs:{span:24}},[t("a-form-item",{attrs:{label:"下拉框选项",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["selectDict"],expression:"['selectDict']"}],attrs:{placeholder:"请输入下拉框选项(使用空格分隔)"}})],1)],1):e._e()],1),t("a-row",[t("a-col",{attrs:{span:24}},[t("a-form-item",{attrs:{label:"是否必录",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["isMandatory"],expression:"['isMandatory']"}]},[t("a-radio",{attrs:{value:"1",checked:!0}},[e._v("是")]),t("a-radio",{attrs:{value:"0"}},[e._v("否")])],1)],1)],1)],1),t("a-row",[t("a-col",{attrs:{span:24}},[t("a-form-item",{attrs:{label:"备注",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["note"],expression:"['note']"}],attrs:{placeholder:"请输入",rows:3}})],1)],1)],1),t("a-row",[t("a-col",{attrs:{span:24}},[t("a-form-item",{attrs:{label:"权重",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["weight"],expression:"['weight']"}],attrs:{placeholder:"权重越小排序越前"}})],1)],1)],1),t("a-row",[t("a-form-item",[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["id"],expression:"['id']"}],attrs:{type:"hidden"}}),t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["reportTypeId"],expression:"['reportTypeId']"}],attrs:{type:"hidden"}})],1)],1)],1)],1)},i=[],r=n("0fea"),s=(n("88bc"),{name:"YyhBusinessAttributeModel",components:{},data:function(){return{showDict:"",validatorRules:{attributeName:{rules:[{required:!0,message:"请输入资料清单!"}]},attributeType:{rules:[{required:!0,message:"请输入属性录入的类型!"}]}},model:{},options:[{label:"必须",value:"1"}],confirmLoading:!1,formDisabled:!1,form:this.$form.createForm(this),labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:16}},title:"归档清单",width:800,visible:!1,disableSubmit:!1,url:{saveOrUpdate:"/erp/businessType/saveBusinessAttribute"}}},methods:{attributeTypeChange:function(e){"select"===e&&(this.showDict=!0)},add:function(e){var t=this;this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue({reportTypeId:e,required:"1"})}))},edit:function(e,t){var n=this;this.visible=!0,this.result=!1,this.format=!1,"select"===e.attributeType&&this.$nextTick((function(){n.showDict=!0})),"result"===t&&(e.formatId="",e.id="",this.result=!0),"edit"===t&&(this.result=!0),this.$nextTick((function(){n.form.setFieldsValue(e)}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,a){if(!n){t.confirmLoading=!0;var i=Object.assign(e.model,a);Object(r["r"])(t.url.saveOrUpdate,i).then((function(n){n.success?(t.$message.success(n.message),e.$emit("flushData"),e.form.resetFields(),t.visible=!1):t.$message.warning(n.message)})).finally((function(){}))}}))},submitCallback:function(){this.$emit("ok"),this.visible=!1},handleCancel:function(){this.close()}}}),o=s,c=n("2877"),u=Object(c["a"])(o,a,i,!1,null,"774b11dc",null);t["default"]=u.exports},"88bc":function(e,t,n){(function(t){var n=1/0,a=9007199254740991,i="[object Arguments]",r="[object Function]",s="[object GeneratorFunction]",o="[object Symbol]",c="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,l=c||u||Function("return this")();function d(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function h(e,t){var n=-1,a=e?e.length:0,i=Array(a);while(++n<a)i[n]=t(e[n],n,e);return i}function f(e,t){var n=-1,a=t.length,i=e.length;while(++n<a)e[i+n]=t[n];return e}var p=Object.prototype,b=p.hasOwnProperty,m=p.toString,v=l.Symbol,y=p.propertyIsEnumerable,k=v?v.isConcatSpreadable:void 0,g=Math.max;function w(e,t,n,a,i){var r=-1,s=e.length;n||(n=T),i||(i=[]);while(++r<s){var o=e[r];t>0&&n(o)?t>1?w(o,t-1,n,a,i):f(i,o):a||(i[i.length]=o)}return i}function C(e,t){return e=Object(e),A(e,t,(function(t,n){return n in e}))}function A(e,t,n){var a=-1,i=t.length,r={};while(++a<i){var s=t[a],o=e[s];n(o,s)&&(r[s]=o)}return r}function j(e,t){return t=g(void 0===t?e.length-1:t,0),function(){var n=arguments,a=-1,i=g(n.length-t,0),r=Array(i);while(++a<i)r[a]=n[t+a];a=-1;var s=Array(t+1);while(++a<t)s[a]=n[a];return s[t]=r,d(e,this,s)}}function T(e){return N(e)||O(e)||!!(k&&e&&e[k])}function x(e){if("string"==typeof e||$(e))return e;var t=e+"";return"0"==t&&1/e==-n?"-0":t}function O(e){return D(e)&&b.call(e,"callee")&&(!y.call(e,"callee")||m.call(e)==i)}var N=Array.isArray;function S(e){return null!=e&&B(e.length)&&!I(e)}function D(e){return F(e)&&S(e)}function I(e){var t=R(e)?m.call(e):"";return t==r||t==s}function B(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function R(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function F(e){return!!e&&"object"==typeof e}function $(e){return"symbol"==typeof e||F(e)&&m.call(e)==o}var _=j((function(e,t){return null==e?{}:C(e,h(w(t,1),x))}));e.exports=_}).call(this,n("24aa"))},d0ed:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n("7550"),i=n("e2e0"),r=n("0fea"),s={components:{JEditableTable:a["default"]},data:function(){return{title:"操作",visible:!1,form:this.$form.createForm(this),confirmLoading:!1,model:{},labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:18}}}},methods:{getAllTable:function(){var e=this;if(!(this.refKeys instanceof Array))throw this.throwNotArray("refKeys");var t=this.refKeys.map((function(t){return Object(i["c"])(e,t)}));return Promise.all(t)},eachAllTable:function(e){this.getAllTable().then((function(t){t.forEach((function(t,n){"function"===typeof e&&e(t,n)}))}))},add:function(){var e=this;return new Promise((function(t){e.tableReset(),t()})).then((function(){var t=e.addDefaultRowNum;"number"!==typeof t&&(t=1),e.eachAllTable((function(e){e.add(t)})),"function"===typeof e.addAfter&&e.addAfter(e.model),e.edit({})}))},edit:function(e){e&&"{}"!=JSON.stringify(e)&&this.tableReset(),"function"===typeof this.editBefore&&this.editBefore(e),this.visible=!0,this.activeKey=this.refKeys[0],this.form.resetFields(),this.model=Object.assign({},e),"function"===typeof this.editAfter&&this.editAfter(this.model)},close:function(){this.visible=!1,this.$emit("close")},tableReset:function(){this.eachAllTable((function(e){e.clearRow()}))},requestSubTableData:function(e,t,n,a){n.loading=!0,Object(r["j"])(e,t).then((function(e){var t=e.result,i=[];t&&(Array.isArray(t)?i=t:Array.isArray(t.records)&&(i=t.records)),n.dataSource=i,"function"===typeof a&&a(e)})).finally((function(){n.loading=!1}))},request:function(e){var t=this,n=this.url.add,a="post";this.model.id&&(n=this.url.edit,a="put"),this.confirmLoading=!0,Object(r["q"])(n,e,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok"),"function"===typeof t.editAfter&&t.editAfter(e.result),t.close()):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1}))},handleChangeTabs:function(e){Object(i["c"])(this,e).then((function(e){e.resetScrollTop()}))},handleCancel:function(){this.close()},handleOk:function(){var e=this;this.getAllTable().then((function(t){return Object(i["d"])(e.form,t)})).then((function(t){if("function"!==typeof e.classifyIntoFormData)throw e.throwNotFunction("classifyIntoFormData");var n=e.classifyIntoFormData(t);return e.request(n)})).catch((function(t){t.error===i["b"]&&(e.activeKey=null==t.index?e.activeKey:e.refKeys[t.index])}))},throwNotFunction:function(e){return"".concat(e," 未定义或不是一个函数")},throwNotArray:function(e){return"".concat(e," 未定义或不是一个数组")}}}},dac1:function(e,t,n){"use strict";n("e209")},e209:function(e,t,n){},fa90:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e._self._c;return t("div",[t("a-table",{ref:"jeditable",attrs:{loading:e.yyhPmsBusinessAttributeTable.loading,columns:e.yyhPmsBusinessAttributeTable.columns,dataSource:e.yyhPmsBusinessAttributeTable.dataSource,pagination:e.ipagination,rowKey:"id"},on:{change:e.pageChange},scopedSlots:e._u([{key:"attributeName",fn:function(e,n){return t("span",{},[t("j-ellipsis",{attrs:{value:e,length:16}})],1)}},{key:"note",fn:function(e,n){return t("span",{},[t("j-ellipsis",{attrs:{value:e,length:20}})],1)}},{key:"isMandatory",fn:function(n,a){return t("span",{},[t("span","1"===n?[e._v("是")]:[e._v("否")])])}},{key:"action",fn:function(n,a){return t("span",{},[t("a",{directives:[{name:"has",rawName:"v-has",value:"file:delete",expression:"'file:delete'"}],on:{click:function(t){return e.addChild(a,"edit")}}},[e._v("编辑")]),t("a-divider",{directives:[{name:"has",rawName:"v-has",value:"file:delete",expression:"'file:delete'"}],attrs:{type:"vertical"}}),t("a-popconfirm",{directives:[{name:"has",rawName:"v-has",value:"file:delete",expression:"'file:delete'"}],attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(a.id)}}},[t("a",[e._v("删除")])])],1)}}])}),t("yyh-business-attribute-model",{ref:"businessAttribute",on:{flushData:e.flushAttribute}})],1)},i=[],r=n("140a"),s=n("d0ed"),o=n("0fea"),c={name:"YyhBusinessAttributeList",components:{YyhBusinessAttributeModel:r["default"]},mixins:[s["a"]],inject:["closeCurrent"],data:function(){return{isorter:{columnKey:"projectCount",orderKey:"desc"},businessId:"",name:"",dept:"",ipagination:{current:1,pageSize:5,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!1,showSizeChanger:!1,simple:!0,total:0},labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:16}},labelCol2:{xs:{span:24},sm:{span:3}},wrapperCol2:{xs:{span:24},sm:{span:20}},addDefaultRowNum:1,validatorRules:{},yyhPmsBusinessAttributeTable:{loading:!1,dataSource:[],columns:[{title:"归档属性",dataIndex:"attributeName",scopedSlots:{customRender:"attributeName"},width:"20%",align:"left"},,{title:"是否必录",dataIndex:"isMandatory",width:"15%",align:"center",scopedSlots:{customRender:"isMandatory"}},{title:"备注",width:"25%",align:"left",dataIndex:"note",scopedSlots:{customRender:"note"}},{title:"权重",width:"15%",align:"left",dataIndex:"weight"},{title:"操作",width:"15%",align:"center",dataIndex:"",scopedSlots:{customRender:"action"}}]},url:{list:"/erp/businessType/queryBusinessAttribute"}}},beforeRouteEnter:function(e,t,n){e.meta.keepAlive=!0,n()},methods:{addChild:function(e,t){this.$refs.businessAttribute.edit(e,t)},flushAttribute:function(){this.viewEntry(this.businessId)},handleDelete:function(e){var t=this;Object(o["b"])("/erp/businessType/removeAttribute",{id:e}).then((function(e){e.success&&(t.$message.success(e.message),t.viewEntry(t.businessId))}))},pageChange:function(e,t,n){Object.keys(n).length>0&&(this.isorter.columnKey=n.field,this.isorter.orderBy="ascend"==n.order?"asc":"desc"),this.ipagination=e,this.viewEntry(this.businessId,this.dept,this.name)},viewEntry:function(e){var t=this;if(this.yyhPmsBusinessAttributeTable.loading=!0,this.businessId=e,e){var n={id:e,pageNo:this.ipagination.current,pageSize:this.ipagination.pageSize},a=Object.assign(n,this.isorter);Object(o["j"])(this.url.list,a).then((function(e){e.success&&(t.yyhPmsBusinessAttributeTable.dataSource=e.result.records,e.result.total?t.ipagination.total=e.result.total:t.ipagination.total=0)})).finally((function(){t.yyhPmsBusinessAttributeTable.loading=!1}))}},viewStageEntry:function(e){if(e){var t={id:e};this.requestSubTableData(this.url.stageList,t,this.yyhPmsBusinessAttributeTable)}}}},u=c,l=(n("dac1"),n("2877")),d=Object(l["a"])(u,a,i,!1,null,"656fd43e",null);t["default"]=d.exports}}]);