(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-481cb506"],{"128b":function(e,t,a){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,a){return t&&i(e.prototype,t),a&&i(e,a),e}var l=function(){function e(){n(this,e)}return o(e,null,[{key:"DRAFT",value:function(){return{code:"DRAFT",desc:"拟定"}}},{key:"TBC",value:function(){return{code:"TBC",desc:"待确认"}}},{key:"CONFIRM",value:function(){return{code:"CONFIRM",desc:"已确认"}}},{key:"UNCONFIRM",value:function(){return{code:"UNCONFIRM",desc:"已拒绝"}}},{key:"APPROVING",value:function(){return{code:"APPROVING",desc:"审批中"}}},{key:"REJECTED",value:function(){return{code:"REJECTED",desc:"已驳回"}}},{key:"APPROVED",value:function(){return{code:"APPROVED",desc:"已批准"}}},{key:"CHANGING",value:function(){return{code:"CHANGING",desc:"变更中"}}},{key:"ABOLISHED",value:function(){return{code:"ABOLISHED",desc:"已废弃"}}}]),e}();t["a"]=l},"839e":function(e,t,a){"use strict";var n=a("ed31"),i=a.n(n);t["default"]=i.a},"8ed5":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("SaafSuperTable",{ref:"advanceApplyTableRef",attrs:{tableConfig:e.tableConfig,currentRow:e.currentRow},on:{"update:currentRow":function(t){e.currentRow=t},"update:current-row":function(t){e.currentRow=t}},scopedSlots:e._u([{key:"ouId",fn:function(t){return[a("SaafSelectModal",{attrs:{slot:"SaafSelectModal",type:"radio",showInput:!0,selectConfig:{title:e.$t("公司选择"),key:"orgName",pk:"orgId",show:"orgName"},tableConfig:{findApi:"baseOrganizationService_listBaseOrganizationByPermission",searchParams:{orgType:"OU"},tableColumns:[{title:e.$t("公司名称"),key:"orgName",sortable:!0},{title:e.$t("公司编码"),key:"orgCode",sortable:!0}]},value:t.formValue.ouName},on:{"on-change":function(a){return e.paramsOuChange(a,t)}},slot:"SaafSelectModal"})]}},{key:"supplierId",fn:function(t){return[a("SaafSelectModal",{attrs:{slot:"SaafSelectModal",type:"radio",showInput:!0,selectConfig:{title:e.$t("供应商选择"),key:"supplierName",pk:"supplierId",show:"supplierName"},tableConfig:{findApi:"supplierInfoRestful_listByPage",searchParams:{supplierStatus:"QUALIFIED"},tableColumns:[{title:e.$t("供应商名称"),key:"supplierName",sortable:!0},{title:e.$t("供应商编码"),key:"supplierNum",sortable:!0}]},value:t.formValue.supplierName},on:{"on-change":function(a){return e.paramsSupplierChange(a,t)}},slot:"SaafSelectModal"})]}}])})],1)},i=[],o=a("5279"),l=a("4046"),s=a("864a"),r=a("128b"),u={data:function(){var e=this;return{currentUserInfo:{},tableConfig:{findApi:"advanceApply_listByPage",searchParams:{},pageHeader:{title:this.$t("列表查询"),functionList:{btnNew:this.doNewAdvanceApply,btnModify:this.doModifyAdvanceApply}},searchItems:{ouId:{label:this.$t("公司"),type:"slot",show:!1},ouName:{label:this.$t("公司"),type:"display"},supplierId:{label:this.$t("供应商"),type:"slot",show:!1},supplierName:{label:this.$t("供应商"),type:"display"},advanceApplyNum:{label:this.$t("预付款单号"),type:"text"},advanceApplyStatus:{label:this.$t("单据状态"),type:"lookup",code:"RCN_ADVANCE_APPLY_STATUS"},poNum:{label:this.$t("采购订单号"),type:"text"},applyPersonName:{label:this.$t("申请人"),type:"text"},creationDateFrom:{label:this.$t("创建日期从"),type:"date"},creationDateTo:{label:this.$t("创建日期至"),type:"date"}},tableColumns:[{title:this.$t("预付款单号"),key:"advanceApplyNum",ellipsis:!0,width:150,linkTag:{clickFun:this.openAdvanceApply}},{title:this.$t("公司名称"),key:"ouName",ellipsis:!0,sortable:!1,width:200},{title:this.$t("供应商名称"),key:"supplierName",ellipsis:!0,sortable:!1,minWidth:200},{title:this.$t("采购订单号"),key:"poNum",ellipsis:!0,sortable:!1,width:150},{title:this.$t("单据状态"),key:"advanceApplyStatus",ellipsis:!0,sortable:!1,width:100,lookup:{typeCode:"RCN_ADVANCE_APPLY_STATUS"}},{title:this.$t("付款金额"),key:"paymentAmount",ellipsis:!0,sortable:!1,width:100},{title:this.$t("币种"),key:"paymentCurrencyCode",ellipsis:!0,sortable:!1,width:100},{title:this.$t("申请人"),key:"applyPersonName",ellipsis:!0,sortable:!1,width:100},{title:this.$t("创建时间"),key:"creationDate",ellipsis:!0,width:140}],export:{fileName:"预付款申请列表",exportExcelEvent:this.advanceApplyExportExcel},operateSlot:{isShow:!0,fixed:"right",width:60,functionList:{btnDel:{fun:this.doDelAdvanceApply,show:function(t,a){return t.advanceApplyStatus===r["a"].DRAFT().code&&t.createdBy===e.currentUserInfo.userId},disabled:function(e,t){return!1}}}}},currentRow:{}}},computed:{},created:function(){},mounted:function(){this.currentUserInfo=this.$store.state.user.userInfo,this.getFirstPage()},methods:{getFirstPage:function(){this.$refs.advanceApplyTableRef.getFirstPage()},paramsOuChange:function(e,t){t.formValue.ouId=e.orgId,t.formValue.ouName=e.orgName},paramsSupplierChange:function(e,t){t.formValue.supplierId=e.supplierId,t.formValue.supplierName=e.supplierName},doNewAdvanceApply:function(){o["q"].openTab({url:"/advanceApplyEdit?id=-1",name:this.$t("预付款申请新增")})},doModifyAdvanceApply:function(){o["q"].openTab({url:"/advanceApplyEdit?id=".concat(this.currentRow.advanceApplyId),name:this.$t("预付款申请编辑")})},openAdvanceApply:function(e,t){o["q"].openTab({url:"/advanceApplyEdit?id="+e.advanceApplyId,name:this.$t("预付款申请详情")})},doDelAdvanceApply:function(e,t){var a=this;new l["a"](this).createErrorModal("删除","确定要删除选中的预付款申请吗?",(function(){s["b"].advanceApply_delete(e).then((function(e){"S"===e.status?(a.$Message.success("删除成功"),a.getFirstPage()):a.$Message.error(e.msg)}))}),(function(e){}))},advanceApplyExportExcel:function(e){var t=this.$refs.advanceApplyTableRef.$refs.SaafParamForm.getParams();t.pageRows=2e4;var a=s["a"].advanceApply_listByPage+"?pageRows=20000";new l["a"](this).exportExcelNew(a,t,this.tableConfig.tableColumns,this.tableConfig.export.fileName,e)}}},p=u,c=a("2877"),d=a("839e"),f=Object(c["a"])(p,n,i,!1,null,"47290979",null);"function"===typeof d["default"]&&Object(d["default"])(f);t["default"]=f.exports},ed31:function(e,t){e.exports=function(e){e.options.__i18n=e.options.__i18n||[],e.options.__i18n.push('{"EN":{"列表查询":"列表查询","公司":"公司","供应商":"供应商","预付款单号":"预付款单号","单据状态":"单据状态","采购订单号":"采购订单号","申请人":"申请人","创建日期从":"创建日期从","创建日期至":"创建日期至","公司名称":"公司名称","供应商名称":"供应商名称","付款金额":"付款金额","币种":"币种","创建时间":"创建时间","公司选择":"公司选择","公司编码":"公司编码","供应商选择":"供应商选择","供应商编码":"供应商编码","操作":"操作"},"CN":{"列表查询":"列表查询","公司":"公司","供应商":"供应商","预付款单号":"预付款单号","单据状态":"单据状态","采购订单号":"采购订单号","申请人":"申请人","创建日期从":"创建日期从","创建日期至":"创建日期至","公司名称":"公司名称","供应商名称":"供应商名称","付款金额":"付款金额","币种":"币种","创建时间":"创建时间","公司选择":"公司选择","公司编码":"公司编码","供应商选择":"供应商选择","供应商编码":"供应商编码","操作":"操作"}}'),delete e.options._Ctor}}}]);