1"use strict";(self["webpackChunkSRM"]=self["webpackChunkSRM"]||[]).push([[1241,20944,75050,10413,48675,99830,51069,32451,87186,48717,23026,91105,93102,48631,22945,85439,96832],{20944:function(e,t,i){i.r(t),i.d(t,{default:function(){return h}});var n=function(){var e=this,t=e._self._c;return t("div",[t("a-modal",{directives:[{name:"drag",rawName:"v-drag"}],attrs:{centered:"",width:"90%",height:"90%",maskClosable:!1,visible:e.modalVisibleDocket,mask:!1,title:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_alert_tFKm_2766a28a"),"åæ®èæ¥")},on:{ok:e.closeModalDocket,cancel:e.closeModalDocket}},[t("div",[t("div",{staticStyle:{width:"calc(100%)",height:"calc(60vh)"}},[t("SeeksRelationGraph",{ref:"seeksRelationGraph",attrs:{options:e.graphOptions,"on-node-expand":e.onNodeExpand,"on-node-click":e.onNodeClick}})],1)])])],1)},a=[],s=(i(41539),i(54747),i(52976)),r=i.n(s),c=i(93905),o={name:"RelationGraphModal",components:{SeeksRelationGraph:r()},props:{modalVisibleDocket:{type:Boolean,default:!1},id:{require:!0,type:String,default:""},rootId:{require:!0,type:String,default:""}},data:function(){return{graphOptions:{defaultFocusRootNode:!1,debug:!1,backgrounImageNoRepeat:!0,layouts:[{label:"tree",layoutName:"tree",layoutClassName:"seeks-layout-center",defaultNodeShape:0,defaultLineShape:1,from:"left",min_per_width:"200",max_per_width:"200",min_per_height:"20",max_per_height:"60",levelDistance:""}],defaultLineMarker:{markerWidth:12,markerHeight:12,refX:6,refY:6,data:"M2,2 L10,6 L2,10 L6,6 L2,2"},defaultExpandHolderPosition:"right",defaultNodeShape:1,defaultNodeWidth:"130",defaultLineShape:4,defaultJunctionPoint:"lr",defaultNodeBorderWidth:0,defaultLineColor:"rgba(30 144 255)",defaultNodeColor:"rgba(30 144 255)"}}},mounted:function(){var e=this;setTimeout((function(){e.showSeeksGraph()}),500)},methods:{onNodeClick:function(e){var t=this,i=e.id,n=e.data,a=n.apiPath,s=n.url;a?(0,c.s7)(a,{id:i}).then((function(e){e.success?t.$router.push({path:s,query:{id:i,open:!0,templateAccount:e.result.templateAccount,templateName:e.result.templateName,templateNumber:e.result.templateNumber,templateVersion:e.result.templateVersion}}):t.$message.warning(e.message)})):this.$router.push({path:s}),this.$emit("onNodeClick",e)},closeModalDocket:function(){this.$emit("closeModalDocket")},viewDocket:function(){this.showSeeksGraph()},showSeeksGraph:function(){var e=this,t={};this.id&&this.rootId&&(0,c.SI)("/integratedDocument/getDetail",{id:this.id,rootId:this.rootId}).then((function(i){i.success?i.result&&(i.result.nodes.forEach((function(e){e.data={url:e.url,apiPath:e.apiPath}})),t=i.result,console.log("__graph_json_data",JSON.stringify(t)),e.$refs.seeksRelationGraph.setJsonData(t,(function(t){e.$refs.seeksRelationGraph.refresh(),e.$refs.seeksRelationGraph.resetViewSize()}))):e.$message.error(i.message)}))},onNodeExpand:function(e,t){console.log("onNodeExpand:",e),this.$refs.seeksRelationGraph.refresh(),this.$refs.seeksRelationGraph.resetViewSize()}}},l=o,u=i(43736),d=(0,u.Z)(l,n,a,!1,null,null,null),h=d.exports},52389:function(e,t,i){i.r(t),i.d(t,{default:function(){return y}});var n=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{height:"100%"}},[t("list-layout",{directives:[{name:"show",rawName:"v-show",value:!e.showEditPage&&!e.showDetailPage&&!e.showRequestToOrderPage,expression:"!showEditPage && !showDetailPage && !showRequestToOrderPage"}],ref:"listPage",attrs:{pageData:e.pageData,tabsList:e.tabsList,"current-edit-row":e.currentEditRow,url:e.url,"row-style":e.rowStyle},on:{beforeHandleData:e.beforeHandleData,afterChangeTab:e.handleAfterChangeTab}}),e.showCreateOrderPage?t("Mapping-Price",{attrs:{rows:e.currentEditRow},on:{hide:e.hideCreateOrderPage}}):e._e(),e.showRequestToOrderPage?t("demand-to-order-modal",{ref:"modalForm",attrs:{currentEditRow:{},responseData:e.responseData},on:{hide:e.hideDemandToOrderModel,ok:e.modalFormOk}}):e._e(),t("field-select-modal",{ref:"fieldSelectModal"}),t("a-modal",{directives:[{name:"drag",rawName:"v-drag"}],attrs:{title:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_transfer"),"转å"),okText:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_define"),"ç¡®å®")},on:{ok:e.handleTransferOk},model:{value:e.transferVisible,callback:function(t){e.transferVisible=t},expression:"transferVisible"}},[t("a-form",{attrs:{layout:"vertical","label-col":{span:6}}},[t("a-form-item",{attrs:{label:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_field_purchaseOpinion"),"æè§")}},[t("a-textarea",{attrs:{placeholder:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_enterPurchaseOpinion"),"请è¾å
¥æè§"),"auto-size":{minRows:3,maxRows:5}},model:{value:e.purchaseOpinion,callback:function(t){e.purchaseOpinion=t},expression:"purchaseOpinion"}})],1),t("a-form-item",{attrs:{label:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_field_priorityLevel"),"ä¼å
级")}},[t("m-select",{attrs:{"dict-code":"requestItemPriorityLevel",placeholder:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_pleaseSelectPriority"),"è¯·éæ©ä¼å
级")},model:{value:e.priorityLevel,callback:function(t){e.priorityLevel=t},expression:"priorityLevel"}})],1)],1)],1),t("a-modal",{directives:[{name:"drag",rawName:"v-drag"}],attrs:{title:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_returnComments"),"éåæè§"),okText:e.okText},on:{ok:e.handleOk},model:{value:e.auditVisible,callback:function(t){e.auditVisible=t},expression:"auditVisible"}},[t("a-textarea",{attrs:{placeholder:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_enterReturnComments"),"请è¾å
¥éåæè§"),"auto-size":{minRows:3,maxRows:5}},model:{value:e.opinion,callback:function(t){e.opinion=t},expression:"opinion"}})],1),t("a-modal",{directives:[{name:"drag",rawName:"v-drag"}],attrs:{centered:"",title:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_selectTemplate"),"éæ©æ¨¡æ¿"),width:360},model:{value:e.demandVisible,callback:function(t){e.demandVisible=t},expression:"demandVisible"}},[t("template",{slot:"footer"},[t("a-button",{key:"back",on:{click:e.handleDemandCancel}},[e._v(" "+e._s(e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_cancle"),"åæ¶"))+" ")]),t("a-button",{key:"submit",attrs:{type:"primary",loading:e.submitLoading},on:{click:e.selectedDemandPoolTemplate}},[e._v(" "+e._s(e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_define"),"ç¡®å®"))+" ")])],1),t("m-select",{attrs:{options:e.templateOpts,placeholder:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_pleaseSelectTemplate"),"è¯·éæ©æ¨¡æ¿")},model:{value:e.templateNumber,callback:function(t){e.templateNumber=t},expression:"templateNumber"}})],2),t("a-modal",{directives:[{name:"drag",rawName:"v-drag"}],attrs:{centered:"",title:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_field_iFhjCK_66836d2b"),"éæ©å¯»æºæ¹å¼"),width:360},model:{value:e.XunYanTypeVisible,callback:function(t){e.XunYanTypeVisible=t},expression:"XunYanTypeVisible"}},[t("template",{slot:"footer"},[t("a-button",{key:"back",on:{click:e.handleDemandCancel}},[e._v(" "+e._s(e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_cancle"),"åæ¶"))+" ")]),t("a-button",{key:"submit",attrs:{type:"primary",loading:e.submitLoading},on:{click:e.xunYanOk}},[e._v(" "+e._s(e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_define"),"ç¡®å®"))+" ")])],1),t("m-select",{attrs:{"dict-code":"demandEnquiryType",placeholder:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_pleaseSelectTemplate"),"è¯·éæ©æ¨¡æ¿")},model:{value:e.xunYuanType,callback:function(t){e.xunYuanType=t},expression:"xunYuanType"}})],2),t("a-modal",{directives:[{name:"drag",rawName:"v-drag"}
1],attrs:{title:e.downFileTitle,footer:""},model:{value:e.downloadVisible,callback:function(t){e.downloadVisible=t},expression:"downloadVisible"}},[e._l(e.downloadList,(function(i,n){return t("div",{key:n,staticClass:"down-flie-list"},[t("p",{staticClass:"fontwith"},[t("a-tooltip",{attrs:{title:"".concat(i.fileName),placement:"topLeft"}},[e._v(" "+e._s(i.fileName)+" ")])],1),t("a-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.downloadEvent(i)}}},[e._v(e._s(e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_colunmDownload"),"ä¸è½½"))+" ")])],1)})),t("div",{staticStyle:{float:"right"}},[t("a-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.batchDownloadEvent(e.downloadList)}}},[e._v(" "+e._s(e.$srmI18n("".concat(e.$getLangAccount(),"#i18n__IIIK_25aef680"),"ä¸é®ä¸è½½"))+" ")])],1)],2),t("record-modal",{attrs:{currentEditRow:e.currentEditRow},model:{value:e.recordShowVisible,callback:function(t){e.recordShowVisible=t},expression:"recordShowVisible"}}),e.modalVisibleDocket?t("RelationGraphModal",{attrs:{modalVisibleDocket:e.modalVisibleDocket,id:e.documentId,rootId:e.id},on:{closeModalDocket:e.closeModalDocket,onNodeClick:e.clickNode}}):e._e(),t("historyPrice",{ref:"historyPrice"}),t("SupplierAndMaterialModal",{ref:"SupplierAndMaterial"}),t("a-modal",{directives:[{name:"drag",rawName:"v-drag"}],attrs:{title:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_field_purchaseMethod"),"éè´æ¹å¼")},on:{ok:e.handlePuchaseMethodOk},model:{value:e.purchaseMethodVisible,callback:function(t){e.purchaseMethodVisible=t},expression:"purchaseMethodVisible"}},[t("a-select",{staticStyle:{width:"300px"},attrs:{"default-value":e.selectOption[0]},model:{value:e.purchaseMethod,callback:function(t){e.purchaseMethod=t},expression:"purchaseMethod"}},e._l(e.selectOption,(function(i){return t("a-select-option",{key:i.value,attrs:{value:i.value}},[e._v(" "+e._s(i.label)+" ")])})),1)],1),t("a-modal",{directives:[{name:"drag",rawName:"v-drag"}],attrs:{title:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n__TissDIRC_b7799d97"),"è°æ´ä¸è½¬è´¸æå
¬å¸")},on:{ok:e.handleUpdatePurchaseCompanyOk},model:{value:e.updatePurchaseCompanyVisible,callback:function(t){e.updatePurchaseCompanyVisible=t},expression:"updatePurchaseCompanyVisible"}},[t("m-select",{attrs:{placeholder:"".concat(e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_pleaseEnter"),"请è¾å
¥")),"dict-code":e.purchaseCompanyCode},model:{value:e.purchaseCompany,callback:function(t){e.purchaseCompany=t},expression:"purchaseCompany"}})],1)],1)},a=[],s=i(86080),r=(i(92222),i(21249),i(41539),i(57327),i(26699),i(54747),i(69826),i(69600),i(78783),i(33948),i(60285),i(41637),i(51069)),c=i(15040),o=i(93905),l=i(20944),u=i(25813),d=i(78609),h=i(39417),g=i(48717),m=i(77350),p=i(32451),f={mixins:[c.z],components:{RelationGraphModal:l["default"],DemandToOrderModal:d["default"],MappingPrice:r["default"],fieldSelectModal:u["default"],RecordModal:h.Z,historyPrice:g["default"],SupplierAndMaterialModal:p["default"]},data:function(){var e=this;return{purchaseCompany:"",updatePurchaseCompanyVisible:!1,purchaseCompanyCode:'purchase_organization_info,org_name,org_code,org_category_code="companyCode" && status="1"',isContract:!1,purchaseMethodVisible:!1,selectOption:[],purchaseMethod:"",idList:[],id:"",documentId:"",modalVisibleDocket:!1,showEditPage:!1,showCreateOrderPage:!1,showEditEnquiryPage:!1,showRequestToOrderPage:!1,recordShowVisible:!1,auditVisible:!1,downFileTitle:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_ViFQIIK_76b09018"),"è¯·éæ©æä»¶ä¸è½½"),okText:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_drawBack"),"éå"),opinion:"",submitLoading:!1,demandVisible:!1,downloadVisible:!1,nextOpt:!0,currentEditRow:{},responseData:{},currentRow:{},selectRow:{},templateNumber:void 0,templateOpts:[],downloadList:[],type:"",xunYuanType:"",XunYanTypeVisible:!1,transferVisible:!1,purchaseOpinion:"",priorityLevel:"",pageData:{businessType:"purchaseRequest",button:[{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_subBidding"),"转æ¯é"),authorityCode:"tender#tenderProject:requestToTenderProject",icon:"pay-circle",clickFn:this.createTenderProject,type:"primary"},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_transferBidding"),"转ç«ä»·"),authorityCode:"ebidding#purchaseEbiddingHead:requestToEbidding",icon:"copyright",clickFn:this.createEbidding,type:"primary"},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_shunR_25e3ebc7"),"转询价éè´"),authorityCode:"informationRecordsRequest#PurchaseInformationRecordsRequest:requestToPurchaseInformation",icon:"pull-request",clickFn:this.createBargaining,type:"primary"},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_btn_sHYUEnR_8e5e2554"),"è½¬å¤æå¹³å°éè´"),authorityCode:"informationRecordsRequest#PurchaseInformationRecordsRequest:requestToPurchaseInformation",icon:"pull-request",clickFn:this.createBargainingOut,type:"primary"},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_transferOrder"),"转订å"),authorityCode:"demandPool#purchaseDemandPool:requestToOrder",icon:"solution",clickFn:this.createOrder,style:{background:"#3706BC",color:"#fff"}},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_sItEf_cadc74f0"),"转订å(é
é¢)"),authorityCode:"demandPool#purchaseDemandPool:requestToOrder",icon:"file-protect",clickFn:this.createOrderQuotas,style:{background:"#3706BC",color:"#fff"}},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_sItXLVNKO_1bf60234"),"转订åï¼åå/æ ·å/å®éªï¼"),authorityCode:"demandPool#purchaseDemandPool:requestToOrder",icon:"file-sync",clickFn:this.createOrderSample,style:{background:"#3706BC",color:"#fff"}},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_btn_ZDzRsnRCK_9fdf045"),"è¶åæ¹é转éè´æ¹å¼"),authorityCode:"",icon:"file-sync",clickFn:this.updatePurchaseMethod,style:{background:"#3706BC",color:"#fff"}},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_btn_nebLnRIt_ae2de50e"),"ååçæéè´è®¢å"),authorityCode:"",icon:"file-sync",clickFn:this.createContractOrder,style:{background:"#3706BC",color:"#fff"}},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_crhjCK_22df2eb6"),"ä¿®æ¹å¯»æºæ¹å¼"),authorityCode:"demandPool#purchaseDemandPool:list",icon:"solution",folded:!0,clickFn:this.updateManner},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_btn_zRsr_2ef869a8"),"æ¹é转å"),authorityCode:"",icon:"share-alt",clickFn:this.batchTransfer,folded:!0},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_btn_zRYM_2ef87fd4"),"æ¹ééå"),authorityCode:"",icon:"fork",clickFn:this.batchReturn,folded:!0},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_zRRl_2ef12bd0"),"æ¹éå
³é"),authorityCode:"",icon:"poweroff",clickFn:this.batchCloseItem,folded:!0},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_export"),"导åº"),allow:function(){return e.btnInvalidAuth("demandPool#purchaseDemandPool:export")},icon:"download",clickFn:this.handleExportXls,style:{background:"#008000",color:"#fff"}},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n__TissDIRC_b7799d97"),"è°æ´ä¸è½¬è´¸æå
¬å¸"),clickFn:this.updatePurchaseCompany,style:{background:"#3706BC",color:"#fff"}},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_listCustom"),"åèªå®ä¹"),icon:"setting",clickFn:this.settingColumns},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_operaRecord"),"æä½è®°å½"),icon:"snippets",folded:!0,clickFn:this.showTransferHis},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_helpText"),"帮å©è¯´æ"),icon:"file-text",folded:!0,isDocument:!0,clickFn:this.showHelpText},{label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_attachmentExplain"),"é件说æ"),icon:"file-pdf",folded:!0,isDocument:!0,clickFn:this.showHelpPDF}],formField:[{type:"input",label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_materialName"),"ç©æåç§°"),fieldName:"materialName",placeholder:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_enterMaterialName"),"请è¾å
¥ç©æåç§°")},{type:"input",label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_materialCode"),"ç©æç¼ç "),fieldName:"materialNumber",placeholder:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_enterMaterialCode"),"请è¾å
¥ç©æç¼ç ")},{type:"input",label:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_requestNO"),"ç³è¯·åå·"),fieldName:"requestNumber",placeholder:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_enterPurchaseRequisitionNo"),"请è¾å
¥ç³è¯·åå·")}],isOrder:{column:"",order:""},form:{keyWord:"",materialName:"",materialNumber:"",requestNumber:"",itemStatus:"",fbk2:"2"},optColumnList:[{type:"",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_transfer"),"转å"),authorityCode:"demandPool#purchaseDemandPool:edit",clickFn:this.updateItem,allow:this.showItemCondition},{type:"view",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_drawBack"),"éå"),authorityCode:"demandPool#purchaseDemandPool:returnItem",clickFn:this.returnItem,allow:this.showReturnCondition},{type:"view",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_vKum_273cce51"),"åå²ä»·æ ¼"),clickFn:this.showHistoryPrice},{type:"view",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_btn_tFKm_2766a28a"),"åæ®èæ¥"),clickFn:this.viewDocket},{type:"record",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_colunmRecord"),"è®°å½"),clickFn:this.handleShowRecord},{type:"download",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_colunmDownload"),"ä¸è½½"),clickFn:this.show
1FileListEvent,authorityCode:"demandPool#purchaseDemandPool:download"},{type:"download",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_close"),"å
³é"),clickFn:this.closeItem,authorityCode:"demandPool#purchaseDemandPool:download"}],tablePage:{pageSize:100}},tabsList:[],url:{list:"/demand/purchaseDemandPool/list-bx",edit:"/demand/purchaseDemandPool/edit",batchEdit:"/demand/purchaseDemandPool/batchEdit",temp:"",createEnquiry:"/enquiry/purchaseEnquiryHead/requestToEnquiry",createEbidding:"/ebidding/purchaseEbiddingHead/requestToEbidding",createBidding:"/bidding/purchaseBiddingHead/requestToBidding",createBiddingProject:"/bidding/purchaseBiddingProjectHead/requestToBiddingProject",createTenderProject:"/tender/purchaseTenderProjectHead/requestToTenderProject",createBargaining:"/price/purchaseInformationRecordsRequest/requestToPurchaseInformation",requestSampleToOrder:"/demand/purchaseDemandPool/requestSampleToOrder",cancel:"/demand/purchaseDemandPool/cancel",returnItem:"/demand/purchaseDemandPool/returnItem",batchReturn:"/demand/purchaseDemandPool/batchReturn",queryPermissionById:"/demand/purchaseDemandPool/queryPermissionById",queryPermissionByIds:"/demand/purchaseDemandPool/queryPermissionByIds",demandMatchPrice:"/demand/purchaseRequestHead/requestMatchInfomationRecord",exportXlsUrl:"/demand/purchaseDemandPool/exportXls",pushDataToMallUrl:"/mall/pushPurchaseRequestItemDataToMall",close:"/demand/purchaseDemandPool/close",batchClose:"/demand/purchaseDemandPool/batchClose",columns:"purchaseDemandPoolList"},isOrder:{column:"update_time",order:"desc"},enquirySupplierListList:[],btnType:""}},mounted:function(){this.serachCountTabs("/demand/purchaseDemandPool/counts-bx"),this.getDictDataOption()},methods:{batchDownloadEvent:function(e){(new m.X).batchDownloadZip(e)},handleUpdatePurchaseCompanyOk:function(){var e=this,t="/demand/purchaseRequestHead/updatePurchaseCompany",i=this.$refs.listPage.$refs.listGrid.getCheckboxRecords().concat(this.$refs.listPage.$refs.listGrid.getCheckboxReserveRecords()),n=i.map((function(t){return{id:t.headId,purchaseCompany:e.purchaseCompany}}));(0,o.SI)(t,n).then((function(t){t.success?(e.$message.success(t.message),e.searchEvent(),e.updatePurchaseCompanyVisible=!1):e.$message.warning(t.message)})).finally((function(){}))},updatePurchaseCompany:function(e){var t=this.$refs.listPage.$refs.listGrid.getCheckboxRecords().concat(this.$refs.listPage.$refs.listGrid.getCheckboxReserveRecords());t.length?t.filter((function(e){return!["1","9","15","16"].includes(e.requestType)})).length?this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n__RjjnLuLqJKRzubAnRqtk_cef53ad2"),"åªæåææãé认å¯/临æ¶ãå·¥è£
ãéç产éè´å¯æä½")):this.updatePurchaseCompanyVisible=!0:this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_selectDataMsg"),"è¯·éæ©æ°æ®"))},createContractOrder:function(){var e=this,t=this.$refs.listPage.$refs.listGrid.getCheckboxRecords().concat(this.$refs.listPage.$refs.listGrid.getCheckboxReserveRecords());if(this.nextOpt=!0,t.length<=0)this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_pleaseSelectTheRowToConvert"),"è¯·éæ©éè¦è½¬æ¢çè¡"));else{var i=this;t.forEach((function(t,n){if("1"==t.annualDemand)return i.$message.warning(i.$srmI18n("".concat(i.$getLangAccount(),"#i18n_title_selectedPage"),"éä¸ç第")+(n+1)+i.$srmI18n("".concat(i.$getLangAccount(),"#i18n__cLMzTVROshj_aa2d6604"),"è¡ä¸ºå¹´åº¦éæ±ï¼åªè½è½¬å¯»æº")),void(e.nextOpt=!1)})),this.nextOpt&&(this.isContract=!0,t.forEach((function(e){e.sourceContract=!0})),this.getToOrderData(t))}},getDictDataOption:function(){var e=this;(0,o.SI)("/base/dict/findDictItems",{busAccount:"".concat(this.$getLangAccount()),dictCode:"srmPurchaseMethod"}).then((function(t){1==t.success&&(e.selectOption=t.result.map((function(e){return{value:e.value,label:e.title}})))}))},updatePurchaseMethod:function(){var e=this,t=this.$refs.listPage.$refs.listGrid.getCheckboxRecords().concat(this.$refs.listPage.$refs.listGrid.getCheckboxReserveRecords());if(this.nextOpt=!0,t.length<=0)this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_pleaseSelectTheRowToConvert"),"è¯·éæ©éè¦è½¬æ¢çè¡"));else{t.forEach((function(t,i){e.idList.push(t.id)})),this.nextOpt&&(this.purchaseMethodVisible=!0)}},handlePuchaseMethodOk:function(){var e=this,t="/demand/purchaseDemandPool/updatePurchaseMethod";(0,o.SI)(t,{idList:this.idList,purchaseMethod:this.purchaseMethod}).then((function(t){t.success?(e.$message.success(t.message),e.searchEvent(),e.purchaseMethodVisible=!1):e.$message.warning(t.message)})).finally((function(){e.idList=[]}))},closeItem:function(e){this.$refs.listPage.confirmLoading=!0;var t=this;this.$confirm({title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_RlTVuc_83c98a88"),"å
³ééæ±æ± è¡ï¼"),content:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_alert_APnRTVcRlSxqMB_15de332f"),"å½åéè´éæ±è¡å
³éåï¼ä¸å¯æ¢å¤ï¼
1"),onOk:function(){t.$refs.listPage.confirmLoading=!1,(0,o.s7)(t.url.close,{id:e.id}).then((function(e){e.success&&(t.$message.success(t.$srmI18n("".concat(t.$getLangAccount(),"#i18n_alert_RlLR_274556e9"),"å
³éæå")),t.searchEvent(!1))}))},onCancel:function(){t.$refs.listPage.confirmLoading=!1}})},batchCloseItem:function(){var e=this.$refs.listPage.$refs.listGrid.getCheckboxRecords().concat(this.$refs.listPage.$refs.listGrid.getCheckboxReserveRecords());if(e.length<=0)this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_alert_ViFTPRljc_39fb08a7"),"è¯·éæ©éè¦å
³éçè¡ï¼"));else{this.$refs.listPage.confirmLoading=!0;var t=this;this.$confirm({title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_RlTVuc_83c98a88"),"å
³ééæ±æ± è¡"),content:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_alert_APnRTVcRlSxqMB_15de332f"),"å½åéè´éæ±è¡å
³éåï¼ä¸å¯æ¢å¤ï¼"),onOk:function(){t.$refs.listPage.confirmLoading=!1,(0,o.SI)(t.url.batchClose,e).then((function(e){e.success&&(t.$message.success(t.$srmI18n("".concat(t.$getLangAccount(),"#i18n_alert_RlLR_274556e9"),"å
³éæå")),t.searchEvent(!1))}))},onCancel:function(){t.$refs.listPage.confirmLoading=!1}})}},clickNode:function(){this.$store.dispatch("SetTabConfirm",!1),this.modalVisibleDocket=!1},closeModalDocket:function(){this.modalVisibleDocket=!1},showDocket:function(e){return e.headId},viewDocket:function(e){this.id=e.headId,this.documentId=e.documentId,this.modalVisibleDocket=!0},beforeHandleData:function(e){},hideDemandToOrderModel:function(){this.showEditPage=!1,this.showRequestToOrderPage=!1,this.searchEvent(!1)},handleExportXls:function(){this.$refs.listPage.handleExportXls(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_demandPool"),"éæ±æ± "))},showItemCondition:function(e){return"1"!=e.itemStatus&&"2"!=e.itemStatus},showReturnCondition:function(e){return"1"!=e.itemStatus&&"sample"!=e.sourceType&&"2"!=e.itemStatus},showCancelCondition:function(e){return"1"!=e.itemStatus&&"-1"!=e.itemStatus},handleOk:function(){this.auditVisible=!1;var e=this;if("returnItem"==this.type){this.currentRow.backRemark=this.opinion;var t={businessType:"demandPool",businessTransferNumber:e.currentRow.requestNumber,businessTransferName:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_purchaseRequisitionNo"),"éè´ç³è¯·å·"),transferObject:"",transferType:"refund",transferEntity:e.currentRow.tacticsEntity?e.currentRow.tacticsEntity+"->":""},i={id:e.currentRow.id,backRemark:this.opinion,elsBusinessTransferHis:t};e.postUpdateData(e.url.returnItem,i)}else if("batchReturn"===this.type){var n=this;this.selectRow.forEach((function(t,i){var a={businessType:"demandPool",businessTransferNumber:t.requestNumber,businessTransferName:n.$srmI18n("".concat(n.$getLangAccount(),"#i18n_title_purchaseRequisitionNo"),"éè´ç³è¯·å·"),transferObject:"",transferType:"refund",transferEntity:t.tacticsEntity?t.tacticsEntity+"->":""};e.$set(t,"elsBusinessTransferHis",a),t.backRemark=e.opinion})),e.postUpdateData(e.url.batchReturn,this.selectRow)}},returnItem:function(e){var t=this;this.type="returnItem";var i=this.$ls.get("Login_subAccount");"1001"==i||e.tacticsEntity&&e.tacticsEntity.split("_")[0]==i?(this.currentRow=e,this.auditVisible=!0):(0,o.s7)(this.url.queryPermissionById,{id:e.id},"get").then((function(i){i.success&&i.result?(t.currentRow=e,t.auditVisible=!0):i.success&&!i.result?t.$message.warning(t.$srmI18n("".concat(t.$getLangAccount(),"#i18n_alert_APeyStkbW_91a73231"),"å½åè´¦å·æ æä½æé")):t.$message.warning(i.message)})).finally((function(){t.$refs.listPage.confirmLoading=!1}))},batchReturn:function(){var e=this;this.type="batchReturn";var t=this.$refs.listPage.$refs.listGrid.getCheckboxRecords().concat(this.$refs.listPage.$refs.listGrid.getCheckboxReserveRecords());if(t.length<=0)this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_alert_ViFTPYMjc_4eed8c9e"),"è¯·éæ©éè¦éåçè¡"));else{this.selectRow=t;var i=this.$ls.get("Login_subAccount"),n="",a=!1;if(t.forEach((function(e,t){"1001"==i||e.tacticsEntity&&e.tacticsEntity.split("_")[0]==i||(n+=e.id,n+=","),"1"!=e.itemStatus&&"2"!=e.itemStatus&&(a=!0)})),a)this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_alert_RjczELoItSNohjjTVnOYM_89bd04bf"),"åªæè¡ç¶æä¸ºå¾
订åæè
å¾
寻æºçéæ±æè½éå"));else if(""!=n){this.$refs.listPage.confirmLoading=!0;var s=this;(0,o.s7)(this.url.queryPermissionByIds,{id:n},"get").then((function(t){t.success&&t.result?s.auditVisible=!0:(t.success&&t.result,e.$message.warning(t.message))})).finally((function(){e.$refs.listPage.confirmLoading=!1}))}else this.auditVisible=!0}},goPage:function(e,t){var i=(0,s.Z)({},t);this.$router.push({path:e,query:i})},jumpTargetPage:function(e){var t=e.businessType,i=e.result,n=[{t
1ype:"enquiry",url:"/srm/enquiry/purchase/PurchaseEnquiryList"},{type:"ebidding",url:"/srm/ebidding/EbiddingBuyHeadList"},{type:"bidding",url:"/srm/bidding/purchase/PurchaseBiddingHeadList"},{type:"biddingProject",url:"/srm/bidding/purchase/PurchaseBiddingProjectHeadList"},{type:"biddingProject",url:"/srm/bidding/purchase/PurchaseBiddingProjectHeadList"},{type:"biddingPlatform",url:"/srm/ebidding/PurchaseTenderProject"},{type:"order",url:"/srm/order/purchase/PurchaseOrderHeadList"},{type:"informationRecordsRequest",url:this.btnType?"/srm/price/PurchaseInformationRecordsRequestHeadListOut":"/srm/price/PurchaseInformationRecordsRequestHeadList"}],a={source:"demand-pool",result:i},s=n.find((function(e){return e.type==t}));this.$router.push({path:(null===s||void 0===s?void 0:s.url)||"",query:a})},postUpdateData:function(e,t,i){var n=this;this.$refs.listPage.loading=!0,(0,o.XD)(e,t,"post").then((function(a){if(a.success){var s;if(i)1==(null===a||void 0===a||null===(s=a.result)||void 0===s?void 0:s.length)?n.jumpTargetPage({url:e,row:t,businessType:i,result:a.result}):n.$message.success(a.message);else n.$message.success(a.message);n.searchEvent(),n.$refs.SupplierAndMaterial.visible=!1}else n.$message.warning(a.message)})).finally((function(){n.$refs.listPage.loading=!1}))},batchTransfer:function(){var e=this;this.type="batchTransfer";var t=this.$refs.listPage.$refs.listGrid.getCheckboxRecords().concat(this.$refs.listPage.$refs.listGrid.getCheckboxReserveRecords());if(t.length<=0)this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_alert_ViFTPsrjc_4e9a5172"),"è¯·éæ©éè¦è½¬åçè¡"));else{var i=this.$ls.get("Login_subAccount"),n="",a=!1;if(t.forEach((function(e,t){"1001"==i||e.tacticsEntity&&e.tacticsEntity.split("_")[0]==i||(n+=e.id,n+=","),"1"!=e.itemStatus&&"2"!=e.itemStatus&&(a=!0)})),a)this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_alert_RjczELoItSNohjjTVnOsr_89bcee93"),"åªæè¡ç¶æä¸ºå¾
订åæè
å¾
寻æºçéæ±æè½è½¬å"));else if(""!=n){this.$refs.listPage.confirmLoading=!0;var s=this;(0,o.s7)(this.url.queryPermissionByIds,{id:n},"get").then((function(i){if(i.success&&i.result){var n={sourceUrl:"/account/elsSubAccount/list",params:{},columns:[{field:"subAccount",title:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_field_subAccount"),"åè´¦å·"),with:150},{field:"realname",title:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_field_realname"),"å§å"),with:150}]};s.selectRow=t,s.$refs.fieldSelectModal.open(n.sourceUrl,n.params,n.columns,n.selectModel)}else i.success&&i.result,e.$message.warning(i.message)})).finally((function(){e.$refs.listPage.confirmLoading=!1}))}else{var r={sourceUrl:"/account/elsSubAccount/list",params:{},columns:[{field:"subAccount",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_subAccount"),"åè´¦å·"),with:150},{field:"realname",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_realname"),"å§å"),with:150}]};this.selectRow=t,this.$refs.fieldSelectModal.open(r.sourceUrl,r.params,r.columns,r.selectModel)}}},updateItem:function(e){var t=this;this.type="transfer";var i=this.$ls.get("Login_subAccount");if("1001"==i||e.tacticsEntity&&e.tacticsEntity.split("_")[0]==i){var n={sourceUrl:"/account/elsSubAccount/list",params:{},columns:[{field:"subAccount",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_subAccount"),"åè´¦å·"),with:150},{field:"realname",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_realname"),"å§å"),with:150}]};this.currentRow=e,this.$refs.fieldSelectModal.open(n.sourceUrl,n.params,n.columns,n.selectModel)}else(0,o.s7)(this.url.queryPermissionById,{id:e.id},"get").then((function(i){if(i.success&&i.result){var n={sourceUrl:"/account/elsSubAccount/list",params:{},columns:[{field:"subAccount",title:t.$srmI18n("".concat(t.$getLangAccount(),"#i18n_field_subAccount"),"åè´¦å·"),with:150},{field:"realname",title:t.$srmI18n("".concat(t.$getLangAccount(),"#i18n_field_realname"),"å§å"),with:150}]};t.currentRow=e,t.$refs.fieldSelectModal.open(n.sourceUrl,n.params,n.columns,n.selectModel)}else i.success&&!i.result?t.$message.warning(t.$srmI18n("".concat(t.$getLangAccount(),"#i18n_alert_APeyStkbW_91a73231"),"å½åè´¦å·æ æä½æé")):t.$message.warning(i.message)})).finally((function(){t.$refs.listPage.confirmLoading=!1}))},fieldSelectOk:function(e){var t=this;if("batchTransfer"==t.type)this.selectRow.forEach((function(i,n){var a={businessType:"demandPool",businessTransferNumber:i.requestNumber,businessTransferName:t.$srmI18n("".concat(t.$getLangAccount(),"#i18n_title_purchaseRequisitionNo"),"éè´ç³è¯·å·"),transferObject:"person",transferType:"transfer",transferEntity:(i.tacticsEntity?i.tacticsEntity:"")+"->"+e[0].subAccount+"_"+e[0].realname};t.$set(i,"elsBusinessTransferHis",a),i.tacticsObject="person",i.tacticsEntity=e[0].subAccount+"_"+e[0].realname})),this.transferVisible=!0;else if("transfer"==t.type){var i={businessType:"demandPool",businessTransferNumber:t.currentRow.requestNumber,businessTransferName:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_purchaseRequisitionNo"),"éè´ç³è¯·å·"),transferObject:"person",transferType:"transfer",transferEntity:(t.currentRow.tacticsEntity?t.currentRow.tacticsEntity:"")+"->"+e[0].subAccount+"_"+e[0].realname};t.$set(t.currentRow,"elsBusinessTransferHis",i),t.currentRow.tacticsObject="person",t.currentRow.tacticsEntity=e[0].subAccount+"_"+e[0].realname,this.transferVisible=!0}else"selectSupplierData"==t.type&&(this.nextOpt=!0,this.enquirySupplierListList=e,this.nextOpt&&this.serachTemplate("informationRecordsRequest"))},handleTransferOk:function(){var e=this,t=this;this.transferVisible=!1,"batchTransfer"==this.type?(this.selectRow.forEach((function(t,i){t.purchaseOpinion=e.purchaseOpinion,t.priorityLevel=e.priorityLevel})),t.postUpdateData(t.url.batchEdit,t.selectRow)):"transfer"==this.type&&(t.currentRow.purchaseOpinion=this.purchaseOpinion,t.currentRow.priorityLevel=this.priorityLevel,t.postUpdateData(t.url.edit,t.currentRow)),this.purchaseOpinion="",this.priorityLevel=""},rowStyle:function(e){var t=e.row;return"1"===t.priorityLevel?{background:"#fc6c85",color:"#cf1322"}:{}},updateManner:function(){var e=this,t=this.$refs.listPage.$refs.listGrid.getCheckboxRecords().concat(this.$refs.listPage.$refs.listGrid.getCheckboxReserveRecords());if(this.nextOpt=!0,t.length<=0)this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_pleaseSelectTheRowToConvert"),"è¯·éæ©éè¦è½¬æ¢çè¡"));else{var i=this;t.forEach((function(t,n){if("1"!==t.itemStatus)return i.$message.warning(i.$srmI18n("".concat(i.$getLangAccount(),"#i18n_title_selectedPage"),"éä¸ç第")+(n+1)+i.$srmI18n("".concat(i.$getLangAccount(),"#i18n_alert_cuohjzExiTcr_15db38f6"),"è¡éå¾
寻æºç¶æ,ä¸å
许修æ¹")),void(e.nextOpt=!1)})),this.nextOpt&&(this.XunYanTypeVisible=!0)}},createEnquiry:function(){this.nextOpt=!0,this.serachTemplate("enquiry")},createEbidding:function(){this.nextOpt=!0,this.serachTemplate("ebidding")},createBidding:function(){this.nextOpt=!0,this.serachTemplate("bidding")},createBiddingProject:function(){this.nextOpt=!0,this.serachTemplate("biddingProject")},createTenderProject:function(){this.nextOpt=!0,this.serachTemplate("biddingPlatform")},createBargainingOut:function(){this.createBargaining("createBargainingOut")},createBargaining:function(e){var t=this;this.btnType="",this.type="selectSupplierData";var i=this.$refs.listPage.$refs.listGrid.getCheckboxRecords().concat(this.$refs.listPage.$refs.listGrid.getCheckboxReserveRecords());if(this.nextOpt=!0,i.length<=0)this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_pleaseSelectTheRowToConvert"),"è¯·éæ©éè¦è½¬æ¢çè¡"));else{e&&(this.btnType=e);var n=i.every((function(e){return e.assignSupplierCode&&e.assignSupplierName}));if(n)this.enquirySupplierListList=i,this.serachTemplate("informationRecordsRequest");else{var a="";if(i.some((function(e,i){if(e.assignSupplierCode&&e.assignSupplierName)return a=t.$srmI18n("".concat(t.$getLangAccount(),"#i18n_title_selectedPage"),"éä¸ç第")+"".concat(i+1)+t.$srmI18n("".concat(t.$getLangAccount(),"#i18n_alert_TWFIRIRdXSTKmRIVtziFmTWFHcshunR_8934f3cd"),"æ¡æ°æ®å·²æå®ä¾åºåï¼æ é忬¡æå®ï¼è¯·åç¬éæ©æ¤æ¡æ°æ®è¿è¡è½¬è¯¢ä»·éè´ï¼"),!0})),a)return void this.$message.warning(a);this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_supplierAccount"),"ä¾åºåELSè´¦å·"),this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_WWWRdXAo_80aef15"),"ä¾åºåç¼ç "),this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_toCompanyName"),"ä¾åºååç§°"),this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_supplierState"),"ä¾åºåç¶æ"),this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_supplierCategory"),"ä¾åºååç±»"),this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_dict_RdXMeCK_5095b760"),"ä¾åºåååæ¹å¼");this.$refs.SupplierAndMaterial.open(i)}}},createOrder:function(){var e=this,t=this.$refs.listPage.$refs.listGrid.getCheckboxRecords().concat(this.$refs.listPage.$refs.listGrid.getCheckboxReserveRecords());if(this.nextOpt=!0,!(t.length<=0)){var i=0,n=0,a=this;
1return t.forEach((function(t,s){if("1"!=t.itemStatus&&"2"!=t.itemStatus&&"7"!=t.itemStatus&&"8"!=t.itemStatus&&"9"!=t.itemStatus&&"10"!=t.itemStatus&&"13"!=t.itemStatus&&"14"!=t.itemStatus)return a.$message.warning(a.$srmI18n("".concat(a.$getLangAccount(),"#i18n_title_selectedPage"),"éä¸ç第")+(s+1)+a.$srmI18n("".concat(a.$getLangAccount(),"#i18n_field_chjLML_d8c1b1cd"),"è¡å¯»æºæªå®æ")),void(e.nextOpt=!1);"sample"==t.sourceType&&i++,"mall"==t.sourceType&&i++,"12"==t.requestType&&n++})),i>0&&i!=t.length?(this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_isEjwjxIR_b87bce9a"),"éä¸è¡çæ¥æºä¸ä¸è´")),void(this.nextOpt=!1)):n>0?(this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_alert_dicTVLXLnRtEVCtsItXLVNpS_63341766"),"æéè¡éæ±ä¸ºååéè´è®¡åï¼è¯·ç¹å»ã转订åï¼åå/æ ·åï¼ãæé®")),void(this.nextOpt=!1)):void(0===i&&"sample"!==t[0].sourceType&&"mall"!==t[0].sourceType?this.nextOpt&&this.getToOrderData(t):(this.nextOpt=!0,this.serachTemplate("order")))}this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_pleaseSelectTheRowToConvert"),"è¯·éæ©éè¦è½¬æ¢çè¡"))},createOrderQuotas:function(){var e=this,t=this.$refs.listPage.$refs.listGrid.getCheckboxRecords().concat(this.$refs.listPage.$refs.listGrid.getCheckboxReserveRecords());if(this.nextOpt=!0,t.length<=0)this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_pleaseSelectTheRowToConvert"),"è¯·éæ©éè¦è½¬æ¢çè¡"));else{var i=0,n=this;if(t.forEach((function(t,a){return"1"!=t.itemStatus&&"2"!=t.itemStatus&&"7"!=t.itemStatus&&"8"!=t.itemStatus&&"9"!=t.itemStatus&&"10"!=t.itemStatus&&"13"!=t.itemStatus&&"14"!=t.itemStatus?(n.$message.warning(n.$srmI18n("".concat(n.$getLangAccount(),"#i18n_title_selectedPage"),"éä¸ç第")+(a+1)+n.$srmI18n("".concat(n.$getLangAccount(),"#i18n_field_chjLML_d8c1b1cd"),"è¡å¯»æºæªå®æ")),void(e.nextOpt=!1)):"14"==t.itemStatus?(e.$message.warning(n.$srmI18n("".concat(n.$getLangAccount(),"#i18n_title_selectedPage"),"éä¸ç第")+(a+1)+n.$srmI18n("".concat(n.$getLangAccount(),"#i18n_alert_cIbxsIt_12ae8c79"),"è¡å·²å
¨é¨è½¬è®¢å")),void(e.nextOpt=!1)):("sample"==t.sourceType&&i++,void("mall"==t.sourceType&&i++))})),i>0&&i!=t.length)return this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_isEjwjxIR_b87bce9a"),"éä¸è¡çæ¥æºä¸ä¸è´")),void(this.nextOpt=!1);0===i&&"sample"!==t[0].sourceType&&"mall"!==t[0].sourceType&&this.nextOpt&&this.getToOrderDataQuotas(t)}},createOrderSample:function(){var e=this,t=this.$refs.listPage.$refs.listGrid.getCheckboxRecords().concat(this.$refs.listPage.$refs.listGrid.getCheckboxReserveRecords());if(this.nextOpt=!0,t.length<=0)this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_pleaseSelectTheRowToConvert"),"è¯·éæ©éè¦è½¬æ¢çè¡"));else{var i=0,n=0,a=this;if(t.forEach((function(t,s){return"1"!=t.itemStatus&&"2"!=t.itemStatus&&"7"!=t.itemStatus&&"8"!=t.itemStatus&&"9"!=t.itemStatus&&"10"!=t.itemStatus&&"13"!=t.itemStatus&&"14"!=t.itemStatus?(a.$message.warning(a.$srmI18n("".concat(a.$getLangAccount(),"#i18n_title_selectedPage"),"éä¸ç第")+(s+1)+a.$srmI18n("".concat(a.$getLangAccount(),"#i18n_field_chjLML_d8c1b1cd"),"è¡å¯»æºæªå®æ")),void(e.nextOpt=!1)):"sample"!=t.sourceType&&"mall"!=t.sourceType&&"9"!=t.requestType?(a.$message.warning(a.$srmI18n("".concat(a.$getLangAccount(),"#i18n_title_selectedPage"),"éä¸ç第")+(s+1)+a.$srmI18n("".concat(a.$getLangAccount(),"#i18n_alert_cuVNXNKOnRtE_88bf8146"),"è¡éæ ·åãååãå®éªéè´è®¡å")),void(e.nextOpt=!1)):("sample"==t.sourceType&&i++,void("mall"==t.sourceType&&n++))})),i>0&&n>0)return this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_alert_xeAcnRtExOseIIt_e2dbb65d"),"ä¸åç±»åéè´è®¡åä¸è½è½¬åä¸è®¢å")),void(this.nextOpt=!1);this.nextOpt&&this.getToOrderDataSample(t)}},getToOrderData:function(e){var t=this,i="/demand/purchaseRequestHead/requestMatchInfomationRecord";(0,o.SI)(i,e).then((function(e){if(!e.success)return t.$message.warning(e.message),void(t.isContract=!1);t.responseData={purchaseDeliveryNoticeToDeliveryItemVOList:e.result||[]},t.showRequestToOrderPage=!0}))},getToOrderDataQuotas:function(e){var t=this,i="/demand/purchaseRequestHead/requestMatchQuotaProcoto";(0,o.SI)(i,e).then((function(e){e.success?(t.responseData={purchaseDeliveryNoticeToDeliveryItemVOList:e.result||[]},t.showRequestToOrderPage=!0):t.$message.warning(e.message)}))},getToOrderDataSample:function(e){var t=this,i="/demand/purchaseRequestHead/getToOrderDataSample";(0,o.SI)(i,e).then((function(e){e.success?(t.responseData={purchaseDeliveryNoticeToDeliveryItemVOList:e.result||[]},t.showRequestToOrderPage=!0):t.$message.warning(e.message)}))},serachTemplate:function(e){var t=this;this.currentEditRow={};var i=this.$refs.listPage.$refs.listGrid.getCheckboxRecords().concat(this.$refs.listPage.$refs.listGrid.getCheckboxReserveRecords());if(i.length<=0)this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_pleaseSelectTheRowToConvert"),"è¯·éæ©éè¦è½¬æ¢çè¡"));else{var n=this;
1i.forEach((function(i,a){if("14"==i.itemStatus&&"informationRecordsRequest"!=e)return n.$message.warning(n.$srmI18n("".concat(n.$getLangAccount(),"#i18n_title_selectedPage"),"éä¸ç第")+(a+1)+n.$srmI18n("".concat(n.$getLangAccount(),"#i18n_alert_cIbxsIt_12ae8c79"),"è¡å·²å
¨é¨è½¬è®¢å")),void(t.nextOpt=!1)})),this.nextOpt&&(this.pageData.businessType=e,this.openModal())}},openModal:function(){var e=this;this.submitLoading=!1;var t="";"createBargainingOut"===this.btnType&&"informationRecordsRequest"===this.pageData.businessType&&(t="TC2024010803"),this.$refs.listPage.queryTemplateList(this.$ls.get("Login_elsAccount"),t).then((function(t){if(t.success)if(t.result.length>0){var i=t.result.map((function(e){return{value:e.templateNumber,title:e.templateName,version:e.templateVersion,account:e.elsAccount}}));e.templateNumber="",e.templateOpts=i,e.templateOpts&&1===e.templateOpts.length?(e.templateNumber=e.templateOpts[0].value,e.selectedDemandPoolTemplate()):e.demandVisible=!0}else e.$message.warning(e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_setTemplateFirst"),"请å
é
ç½®ä¸å¡æ¨¡æ¿"));else e.$message.warning(t.message)}))},handleDemandCancel:function(){this.demandVisible=!1,this.XunYanTypeVisible=!1},handleDownloadVisibleCancel:function(){this.downloadVisible=!1},selectedDemandPoolTemplate:function(){if(this.templateNumber){var e=this;this.submitLoading=!0;var t=this.templateOpts.filter((function(t){return t.value==e.templateNumber})),i={templateNumber:this.templateNumber,templateName:t[0].title,templateVersion:t[0].version,templateAccount:t[0].account,purchaseRequestItemList:[]};if("enquiry"==this.pageData.businessType?this.url.temp=this.url.createEnquiry:"ebidding"==this.pageData.businessType?this.url.temp=this.url.createEbidding:"bidding"==this.pageData.businessType?this.url.temp=this.url.createBidding:"biddingProject"==this.pageData.businessType?this.url.temp=this.url.createBiddingProject:"biddingPlatform"==this.pageData.businessType?this.url.temp=this.url.createTenderProject:"order"==this.pageData.businessType?this.url.temp=this.url.requestSampleToOrder:"informationRecordsRequest"==this.pageData.businessType?(this.url.temp=this.url.createBargaining,i={templateNumber:this.templateNumber,templateName:t[0].title,templateVersion:t[0].version,templateAccount:t[0].account,purchaseRequestItemList:[],external:this.btnType?"1":"0"}):"demandPool"==this.pageData.businessType&&(this.url.temp=this.url.mandPool),e.demandVisible=!1,e.submitLoading=!1,""==this.url.temp)return void this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_pleaseMaintainAddressFirst"),"请å
ç»´æ¤å°å"));i.purchaseRequestItemList=e.$refs.listPage.$refs.listGrid.getCheckboxRecords(),"informationRecordsRequest"==this.pageData.businessType&&(i.purchaseRequestItemList=e.enquirySupplierListList),e.postUpdateData(this.url.temp,i,this.pageData.businessType)}},xunYanOk:function(){var e=this,t=[],i=this.$refs.listPage.$refs.listGrid.getCheckboxRecords().concat(this.$refs.listPage.$refs.listGrid.getCheckboxReserveRecords());i.forEach((function(e,i){t.push(e.id)}));var n="/demand/purchaseDemandPool/sourcing",a={xunYuanType:this.xunYuanType,ids:t.join(",")};this.submitLoading=!0,(0,o.SI)(n,a,"post").then((function(t){t.success?(e.$message.success(t.message),e.searchEvent(),e.XunYanTypeVisible=!1):e.$message.warning(t.message)})).finally((function(){e.submitLoading=!1}))},showTransferHis:function(){this.$store.dispatch("SetTabConfirm",!1),this.$router.push({path:"/demand/ElsBusinessTransferHisList"})},showFileListEvent:function(e){var t=this,i={id:e.headId,itemNumber:e.itemNumber};"sample"==e.sourceType&&(i.id=e.sourceId),(0,o.s7)("/demand/purchaseDemandPool/download",i,{}).then((function(e){if(e.success&&e.result){if(0==e.result.length)return void alert(t.$srmI18n("".concat(t.$getLangAccount(),"#i18n_field_rcBWF_f2f789f8"),"è¯¥è¡æ²¡æ°æ®"));t.downloadList=e.result,t.downloadVisible=!0}else alert(e.message)}))},downloadEvent:function(e){var t={id:e.id};(0,o.s7)("/attachment/purchaseAttachment/download",t,{responseType:"blob"}).then((function(t){var i=window.URL.createObjectURL(new Blob([t])),n=document.createElement("a");n.style.display="none",n.href=i,n.setAttribute("download",e.fileName),document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(i)}))},handleShowRecord:function(e){this.currentEditRow=e,this.$refs.listPage.showRecordModal()},pushDataToMall:function(){var e=this,t=this.$refs.listPage.$refs.listGrid,i=t.getCheckboxRecords()||[];
1if(i.length){var n=i.map((function(e){return e.id})).join(",");this.$refs.listPage.loading=!0,(0,o.s7)(this.url.pushDataToMallUrl,{ids:n}).then((function(t){t.success?(e.$message.success(e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_operationSuccess"),"æä½æå")),e.searchEvent()):e.$message.warning(t.message)})).finally((function(){e.$refs.listPage.loading=!1}))}else this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_alert_VRRiFIcWF_e9c4fe3f"),"请è³å°éæ©ä¸è¡"))},showHistoryPrice:function(e){this.$refs.historyPrice.open(e)}}},$=f,_=i(43736),b=(0,_.Z)($,n,a,!1,null,"6739020a",null),y=b.exports},51069:function(e,t,i){i.r(t),i.d(t,{default:function(){return d}});var n=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("div",{staticClass:"compare-page-container"},[t("div",{staticClass:"page-content-right"},[t("div",{staticStyle:{"text-align":"right","margin-right":"12px","margin-bottom":"12px","margin-top":"10px"}},[t("a-button",{staticStyle:{"margin-left":"8px"},attrs:{slot:"tabBarExtraContent",type:"primary"},on:{click:e.createOrder},slot:"tabBarExtraContent"},[e._v(e._s(e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_orderCreate"),"å建订å"))+" ")]),t("a-button",{staticStyle:{"margin-left":"8px"},attrs:{slot:"tabBarExtraContent",type:"primary"},on:{click:e.goBack},slot:"tabBarExtraContent"},[e._v(e._s(e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_back"),"è¿å"))+" ")])],1),t("div",{staticStyle:{"margin-bottom":"12px"}},[t("vxe-grid",{ref:"headerGrid",attrs:{border:"","show-overflow":"",size:"small",height:"200",title:this.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_requestItem"),"éè´ç³è¯·è¡"),"radio-config":{highlight:!0,reserve:!0,trigger:"row"},columns:e.tableHeaderColumn,data:e.tableHeaderData}
1,on:{"radio-change":e.radioChange}})],1),t("div",[t("div",[e._v(e._s(e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_priceRecord"),"ä»·æ ¼è®°å½")))]),t("vxe-grid",{ref:"priceGrid",attrs:{border:"","show-overflow":"",size:"small",height:"350",columns:e.hisTableColumn,"edit-config":{trigger:"click",mode:"cell"},data:e.hisTableData}})],1)])])])},a=[],s=(i(12777),i(70108)),r=(i(41539),i(93905)),c={name:"MappingPrice",props:{currentEditRow:{type:Object,default:function(){return{}}}},components:{AList:s.ZP,AListItem:s.ZP.Item},data:function(){return{headObj:{},priceMap:{},confirmLoading:!1,listData:[],tableHeaderData:[],tableHeaderColumn:[{type:"radio",width:40,align:"center"},{field:"requestNumber",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_purchaseRequisitionNo"),"éè´ç³è¯·å·"),width:130},{field:"itemNumber",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_lineNueber"),"ç³è¯·è¡å·"),width:80},{field:"factoryCode",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_factory"),"å·¥å"),width:80},{field:"materialCode",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_materialCode"),"ç©æç¼ç "),width:150},{field:"materialDesc",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_materialDesc"),"ç©ææè¿°"),width:200},{field:"materialGroupCode",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_materialGroup"),"ç©æç»"),width:80},{field:"requireDate",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_demandDate"),"éæ±æ¥æ"),width:100},{field:"requireQuantity",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_needCout"),"éæ±æ°é"),width:100},{field:"createdOrderQuantity",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_createdOrderQuantity"),"å·²è½¬åæ°é"),width:100},{field:"quantityUnit",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_quantityUnit"),"æ°éåä½"),width:100},{field:"estimatePrice",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_estimatePrice"),"é¢ä¼°åä»·"),width:100},{field:"currency",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_currency"),"å¸å«"),width:80},{field:"orderQuantity",fixed:"right",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_transferqQuantity"),"è½¬åæ°é"),width:100}],hisTableColumn:[{field:"supplierName",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_toCompanyName"),"ä¾åºååç§°"),width:120},{field:"factoryCode",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_factory"),"å·¥å"),width:80},{field:"materialCode",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_materialCode"),"ç©æç¼ç "),width:150},{field:"materialDesc",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_materialDesc"),"ç©ææè¿°"),width:200},{field:"materialGroupCode",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_materialGroup"),"ç©æç»"),width:80},{field:"price",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_price"),"å«ç¨ä»·"),width:100},{field:"taxRate",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_taxRate"),"ç¨ç"),width:100},{field:"currency",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_currency"),"å¸å«"),width:80},{field:"effectiveDate",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_effectiveDate"),"çææ¥æ"),width:100},{field:"expiryDate",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_unableDate"),"å¤±ææ¥æ"),width:100},{field:"quota",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_quota"),"é
é¢"),width:100},{field:"startQuotaQuantity",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_startingPoint"),"èµ·é
ç¹"),width:100},{field:"minOrderQuantity",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_minOrderQuantity"),"æå°è®¢åé"),width:100},{field:"quantity",fixed:"right",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_transferqQuantity"),"è½¬åæ°é"),width:100,editRender:{name:"AInputNumber",events:{blur:this.computeOrderQuantity}}}],hisTableData:[]}},mounted:function(){this.refreshData()},methods:{goBack:function(){this.$emit("hide")},refreshData:function(){this.getBaseInfo(),this.getPriceData()}
1,getBaseInfo:function(){this.$refs.headerGrid.loadData(this.currentEditRow)},getPriceData:function(){var e=this;this.confirmLoading=!0;var t={};t["purcaseRequestItemList"]=this.currentEditRow,(0,r.XD)("/demand/purcaseRequestHead/mappingPirceData",t,"post").then((function(t){t.success&&(e.listData=t.result,e.$refs.headerGrid.setRadioRow(e.currentEditRow[0]),e.radioChange({row:e.currentEditRow[0]}))})).finally((function(){e.confirmLoading=!1}))},radioChange:function(e){var t=e.row,i=t.id,n=this.priceMap[i];if(!n){n=[];var a=t.factoryCode+t.materialCode;for(var s in this.listData){var r=Object.assign({},this.listData[s]),c=r.factoryCode+r.materialCode;a==c&&n.push(r)}}this.$refs.priceGrid.loadData(n)},computeOrderQuantity:function(e){var t=e.row,i=this.$refs.headerGrid.getRadioRecord(),n=0,a=this.$refs.priceGrid.getTableData().fullData;for(var s in a){var r=a[s];n+=r.quantity?r.quantity:0,r["requestNumber"]=i.requestNumber,r["itemNumber"]=i.itemNumber,r["itemId"]=i.id,r["deliveryAddress"]=i.deliveryAddress,r["receiveContact"]=i.receiveContact,r["receivePhone"]=i.receivePhone,r["requireDate"]=i.requireDate,r["quantityUnit"]=i.quantityUnit}var c=i.requireQuantity?i.requireQuantity:0,o=i.createdOrderQuantity?i.createdOrderQuantity:0;if(n>c-o)return t.quantity="",void this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_totalDocTransferquantityCannotBe"),"è½¬åæ°éå计ä¸è½å¤§äºéæ±æ°éä¸å·²è½¬åæ°éä¹å·®ï¼"));this.priceMap[i.id]=a;var l=this.$refs.headerGrid.getTableData().fullData;for(var u in l){var d=l[u];d.id==i.id&&(d["orderQuantity"]=n)}this.$refs.headerGrid.loadData(l)},createOrder:function(){var e={},t=[];for(var i in this.priceMap){var n=this.priceMap[i];for(var a in n){var s=n[a];s.quantity&&s.quantity>0&&t.push(s)}}if(0!=t.length){e["priceMasterList"]=t;var r=this;this.$confirm({title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_orderCreate"),"å建订å"),content:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_isSureorderCreate"),"确认æ¯å¦å建订å?"),onOk:function(){r.postData(e)}})}else this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_pleaseFillCrrespondingTransferQuantityOrderNeedscreated"),"请å¨éè¦å建订åçè¡é¡¹ç®ä¸å¡«å对åºçè½¬åæ°éï¼"))},postData:function(e){var t=this;this.confirmLoading=!0,(0,r.XD)("/order/orderBuyHead/createOrderByPurchaseRequest",e,"post").then((function(e){e.success?(t.$message.success(e.message),t.goBack()):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1}))}}},o=c,l=i(43736),u=(0,l.Z)(o,n,a,!1,null,"74132ffa",null),d=u.exports},32451:function(e,t,i){i.r(t),i.d(t,{default:function(){return h}});var n=function(){var e=this,t=e._self._c;return t("div",[t("a-modal",{directives:[{name:"drag",rawName:"v-drag"}],attrs:{centered:"",title:e.title,width:"100%",height:"100%",visible:e.visible,maskClosable:!1,confirmLoading:e.confirmLoading},on:{cancel:e.close,ok:e.selectedOk}},[t("a-row",[t("a-col",{key:"userAllTable",attrs:{span:8}},[t("div",[t("a-card",{attrs:{title:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n__RdXWF_8e13facb"),"ä¾åºåæ°æ®"),size:"small"}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{placeholder:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_pleaseInputThekeyword"),"请è¾å
¥å
³é®å"),enterButton:""},on:{search:e.onSearch},model:{value:e.keyWord,callback:function(t){e.keyWord=t},expression:"keyWord"}}),t("vxe-grid",{ref:"selectGrid",attrs:{border:"",resizable:"",align:"center","show-overflow":"","highlight-hover-row":"","max-height":"400","row-id":"id",size:"small",loading:e.loading,"seq-config":{startIndex:(e.tablePage.currentPage-1)*e.tablePage.pageSize},data:e.tableData,"pager-config":e.tablePage,columns:e.currentColumns,"radio-config":"single"===e.selectModel?e.checkedConfig:void 0,"checkbox-config":"multiple"===e.selectModel?e.checkedConfig:void 0},on:{"page-change":e.handlePageChange},scopedSlots:e._u([{key:"operation",fn:function(e){e.row}}])})],1)],1)],1)]),t("a-col",{key:"materialTable",attrs:{span:8}},[t("div",[t("a-card",{attrs:{title:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_field_SL_e4050"),"ç©æ"),size:"small"}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("vxe-grid",{ref:"materialGrid",attrs:{border:"",resizable:"",align:"center","show-overflow":"","highlight-hover-row":"","max-height":"400","row-id":"id",size:"small",data:e.materialData,columns:e.materialTableColumns},on:{"checkbox-change":e.handleCheckboxChange,"checkbox-all":e.handleCheckboxAll},scopedSlots:e._u([{key:"toolbar_buttons",fn:function(i){i.row;return[t("a-button",{staticStyle:{margin:"0 4px"},attrs:{type:"primary"},on:{click:function(t){return e.handleAdd()}}},[e._v(" "+e._s(e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_addition"),"æ·»å "))+" ")])]}}])})],1)],1)],1)]),t("a-col",{key:"allTable",attrs:{span:8}},[t("div",[t("a-card",{attrs:{title:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n__VnWF_3ae7f8c2"),"ç»åæ°æ®"),size:"small"}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("vxe-grid",{ref:"allGrid",attrs:{border:"",resizable:"",align:"center","show-overflow":"","highlight-hover-row":"","max-height":"400",size:"small",data:e.allData,columns:e.allTableColumns,"seq-config":{startIndex:0}},scopedSlots:e._u([{key:"operation",fn:function(i){var n=i.row;return[t("a",{staticStyle:{margin:"0 4px"},attrs:{title:e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_delete"),"å é¤")},on:{click:function(t){return e.handleDelete(n)}}},[e._v(" "+e._s(e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_delete"),"å é¤"))+" ")])]}}])})],1)],1)],1)])],1)],1)],1)},a=[],s=i(86080),r=i(93905),c=i(16879),o={props:{title:{type:String,default:(0,c.jM)("".concat((0,c.We)(),"#i18n_title_SelectData"),"éæ©æ°æ®")},columns:{type:Array,default:function(){return[{type:"checkbox",width:40},{type:"seq",title:(0,c.jM)("".concat((0,c.We)(),"#i18n_title_seq"),"åºå·"),width:60}]}},selectModel:{type:String,default:"multiple"}},data:function(){return{visible:!1,loading:!1,confirmLoading:!1,currentUrl:"/supplier/supplierMaster/list",currentColumns:[{type:"checkbox",width:36,fixed:"left",headerAlign:"left"},{type:"seq",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_seq"),"åºå·"),width:60},{field:"toElsAccount",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_supplierAccount"),"ä¾åºåELSè´¦å·"),width:150},{field:"supplierCode",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_field_toCompanyCode"),"ä¾åºåç¼ç "),width:150},{field:"supplierName",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_supplierName"),"ä¾åºååç§°"),width:200},{field:"supplierStatus_dictText",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_supplierState"),"ä¾åºåç¶æ"),width:200},{field:"supplierClassify",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_supplierCategory"),"ä¾åºååç±»"),width:200},{field:"needCoordination_dictText",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_dict_RdXMeCK_5095b760"),"ä¾åºåååæ¹å¼"),width:200}],materialTableColumns:[{type:"checkbox",width:36,fixed:"left",headerAlign:"left"},{type:"seq",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_seq"),"åºå·"),width:60},{field:"materialNumber",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_materialCode"),"ç©æç¼ç "),width:150},{field:"materialName",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_materialName"),"ç©æåç§°"),width:150},{field:"materialDesc",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_materialDesc"),"ç©ææè¿°"),width:200}],materialData:[],allTableColumns:[{type:"seq",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_seq"),"åºå·"),width:60},{field:"materialNumber",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_materialCode"),"ç©æç¼ç "),width:150},{field:"materialName",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_materialName"),"ç©æåç§°"),width:150},{field:"supplierAccount",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_supplierAccount"),"ä¾åºåELSè´¦å·"),width:150},{field:"supplierName",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_supplierName"),"ä¾åºååç§°"),width:200},{title:(0,c.jM)("".concat((0,c.We)(),"#i18n_title_operation"),"æä½"),fixed:"right",slots:{default:"operation"},width:80}],allData:[],labelCol:{md:{span:8},lg:{span:8},xxl:{span:6}},wrapperCol:{md:{span:16},lg:{span:16},xxl:{span:18}},checkedConfig:{highlight:!0,reserve:!0,trigger:"row"},tableData:[],tablePage:{total:0,currentPage:1,pageSize:10,pageNo:1,align:"right",pageSizes:[10,20,50,100,200,500],layouts:["PrevJump","PrevPage","JumpNumber","NextPage","NextJump","Sizes","FullJump","PageCount","Total"],perfect:!0},propParams:{},keyWord:""}},methods:{handleCheckboxAll:function(e){var t=e.checked,i=(e.row,e.records);e.reserves;if(t){var n=this.$refs.selectGrid.getCheckboxRecords();if(0==n.length)return this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n__ViFRdXWF_31bd68d"),"è¯·éæ©ä¾åºåæ°æ®ï¼"));for(var a=[],s=0;s<n.length;s++)for(var r=n[s],c=0;c<i.length;c++){var o=i[c],l=Object.assign({}
1,o,{supplierAccount:r.toElsAccount,supplierName:r.supplierName});a.push(l)}this.$refs.allGrid.insertAt(a,-1)}},handleCheckboxChange:function(e){var t=e.checked,i=e.row;e.records,e.reserves;if(t){var n=this.$refs.selectGrid.getCheckboxRecords();if(0==n.length)return this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n__ViFRdXWF_31bd68d"),"è¯·éæ©ä¾åºåæ°æ®ï¼"));for(var a=[],s=0;s<n.length;s++){var r=n[s],c=Object.assign({},i,{supplierAccount:r.toElsAccount,supplierName:r.supplierName});a.push(c)}this.$refs.allGrid.insertAt(a,-1)}},selectedOk:function(){var e=this.$refs.allGrid.getTableData().fullData;if(0==e.length)return this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n__VSuWF_c074b07"),"è¯·æ·»å æ°æ®ï¼"));this.$parent.fieldSelectOk(e)},handleDelete:function(e){this.$refs.allGrid.remove(e)},handleAdd:function(e){var t=this.$refs.selectGrid.getCheckboxRecords();if(0==t.length)return this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n__ViFRdXWF_31bd68d"),"è¯·éæ©ä¾åºåæ°æ®ï¼"));var i=this.$refs.materialGrid.getCheckboxRecords();if(0==i.length)return this.$message.warning(this.$srmI18n("".concat(this.$getLangAccount(),"#i18n__ViFSLWF_1f89fc9c"),"è¯·éæ©ç©ææ°æ®ï¼"));for(var n=[],a=0;a<t.length;a++)for(var s=t[a],r=0;r<i.length;r++){var c=i[r],o=Object.assign({},c,{supplierAccount:s.toElsAccount,supplierName:s.supplierName});n.push(o)}this.$refs.allGrid.insertAt(n,-1)},onSearch:function(e){this.keyWord=e,this.queryParams=Object.assign({},this.queryParams,{keyWord:this.keyWord});var t=Object.assign({},this.queryParams,{pageNo:1});this.loadData(t)},loadData:function(e){var t=this;this.loading=!0,(0,r.s7)(this.currentUrl,e).then((function(e){if(e.success){var i=e.result.records||[];t.tableData=i,t.tablePage.total=e.result.total}t.loading=!1}))},open:function(e){this.tableData=[],this.tablePage.total=0,this.materialData=e,this.allData=[];var t={pageSize:this.tablePage.pageSize,pageNo:"1"};this.propParams=(0,s.Z)({},t),this.$refs.selectGrid&&this.$refs.selectGrid.reloadColumn(this.currentColumns),this.loadData(t),this.$refs.selectGrid&&this.$refs.selectGrid.clearCheckboxRow(),this.visible=!0},close:function(){this.visible=!1},handlePageChange:function(e){var t=e.currentPage,i=e.pageSize;this.tablePage.currentPage=t,this.tablePage.pageSize=i;var n=t,a=Object.assign({},this.propParams,{pageNo:n,pageSize:i});this.loadData(a)}}},l=o,u=i(43736),d=(0,u.Z)(l,n,a,!1,null,null,null),h=d.exports},48717:function(e,t,i){i.r(t),i.d(t,{default:function(){return h}});var n=function(){var e=this,t=e._self._c;return t("div",[t("a-modal",{directives:[{name:"drag",rawName:"v-drag"}],attrs:{centered:"",title:e.title,width:960,visible:e.visible,maskClosable:!1,confirmLoading:e.confirmLoading},on:{cancel:e.close},scopedSlots:e._u([{key:"footer",fn:function(){return[t("a-button",{on:{click:e.close}},[e._v(" "+e._s(e.$srmI18n("".concat(e.$getLangAccount(),"#i18n_title_close"),"å
³é"))+" ")])]},proxy:!0}])},[t("vxe-grid",{ref:"selectGrid",attrs:{border:"",resizable:"","max-height":"400","row-id":"id",loading:e.loading,"seq-config":{startIndex:(e.tablePage.currentPage-1)*e.tablePage.pageSize},data:e.tableData,"pager-config":e.tablePage,"edit-config":{trigger:"click",mode:"cell"},"radio-config":"single"===e.selectModel?e.checkedConfig:void 0,"checkbox-config":"multiple"===e.selectModel?e.checkedConfig:void 0,columns:e.currentColumns},on:{"page-change":e.handlePageChange}})],1)],1)},a=[],s=i(86080),r=i(93905),c=i(16879),o={props:{title:{type:String,default:(0,c.jM)("".concat((0,c.We)(),"#i18n_field_vKum_273cce51"),"åå²ä»·æ ¼")},columns:{type:Array,default:function(){return[{type:"checkbox",width:40},{type:"seq",title:(0,c.jM)("".concat((0,c.We)(),"#i18n_title_seq"),"åºå·"),width:60}]}},selectModel:{type:String,default:"multiple"}},data:function(){return{visible:!1,loading:!1,confirmLoading:!1,currentUrl:"/price/purchaseInformationRecords/list",currentColumns:[{type:"seq",title:this.$srmI18n("".concat(this.$getLangAccount(),"#i18n_title_seq"),"åºå·"),width:60},{title:"ä¾åºåç¼ç ",field:"supplierCode",fieldLabelI18nKey:"i18n_field_WWWRdXAo_80aef15",align:"center",width:120},{title:"ä¾åºååç§°",field:"supplierName",fieldLabelI18nKey:"i18n_field_supplierName",align:"center",width:150},{title:"å«ç¨åä»·",field:"price",fieldLabelI18nKey:"i18n_field_price",align:"center",width:100}
1,{title:"æ¥æºåå·",field:"sourceNumber",fieldLabelI18nKey:"i18n_field_sourceNumber",align:"center",width:130},{title:"ä»·æ ¼æ¥æ",field:"quoteDate",fieldLabelI18nKey:"i18n_field_umBA_257940bf",align:"center",width:100},{title:"ææèµ·å§æ¥æ",field:"effectiveDate",fieldLabelI18nKey:"i18n_field_jXAKBA_a76c53ed",align:"center",width:120},{title:"æææªæ¢æ¥æ",field:"expiryDate",fieldLabelI18nKey:"i18n_field_jXyRBA_93ff6631",align:"center",width:120},{title:"å¶å人",field:"createBy_dictText",fieldLabelI18nKey:"i18n_field_maker",align:"center",width:130}],labelCol:{md:{span:8},lg:{span:8},xxl:{span:6}},wrapperCol:{md:{span:16},lg:{span:16},xxl:{span:18}},checkedConfig:{highlight:!0,reserve:!0,trigger:"row"},tableData:[],tablePage:{total:0,currentPage:1,pageSize:10,pageNo:1,align:"right",pageSizes:[10,20,50,100,200,500],layouts:["PrevJump","PrevPage","JumpNumber","NextPage","NextJump","Sizes","FullJump","PageCount","Total"],perfect:!0},propParams:{}}},methods:{loadData:function(e){var t=this;this.loading=!0,(0,r.s7)(this.currentUrl,e).then((function(e){if(e.success){var i=e.result.records||[];t.tableData=i,t.tablePage.total=e.result.total}t.loading=!1}))},open:function(e){if(this.tableData=[],this.tablePage.total=0,console.log(e),e&&""!==e.materialNumber){var t={pageSize:this.tablePage.pageSize,pageNo:"1",column:"quoteDate",order:"desc"};t=Object.assign({},t,{materialNumber:e.materialNumber}),this.propParams=(0,s.Z)({},t),this.$refs.selectGrid&&this.$refs.selectGrid.reloadColumn(this.currentColumns),this.loadData(t),this.$refs.selectGrid&&this.$refs.selectGrid.clearCheckboxRow()}this.visible=!0},close:function(){this.visible=!1},handlePageChange:function(e){var t=e.currentPage,i=e.pageSize;this.tablePage.currentPage=t,this.tablePage.pageSize=i;var n=t,a=Object.assign({},this.propParams,{pageNo:n,pageSize:i});this.loadData(a)}}},l=o,u=i(43736),d=(0,u.Z)(l,n,a,!1,null,null,null),h=d.exports},39417:function(e,t,i){i.d(t,{Z:function(){return $}});var n=i(86080),a=(i(41539),i(21249),i(93905)),s=i(96486),r=i(30466),c=(0,s.cloneDeep)(r.r);c.toolbarConfig&&delete c.toolbarConfig;var o={name:"OperaTable",functional:!0,render:function(e,t){var i=t.props,a=i.tableData,s=void 0===a?[]:a,r=i.columns,o=void 0===r?[]:r,l=i.pagerConfig,u=void 0===l?{}:l,d=i.minHeight,h=void 0===d?300:d,g=(0,n.Z)((0,n.Z)({},c),{},{columns:o,pagerConfig:u,data:s}),m={empty:function(){return e("a-empty")}};return e("div",{class:"OperaTable",style:{minHeight:"".concat(h,"px"),maxHeight:"".concat(h,"px")}},[e("vxe-grid",{props:(0,n.Z)({},g),on:(0,n.Z)({},t.listeners),scopedSlots:m})])}},l=i(16879),u=[(0,l.jM)("".concat((0,l.We)(),"#i18n_title_operaRecord"),"æä½è®°å½")],d="/log/queryOptHisList",h="/elsUflo/audit/auditHislist",g={total:0,currentPage:1,pageSize:20,align:"right",pageSizes:[20,50,100,200,500],layouts:["PrevJump","PrevPage","JumpNumber","NextPage","NextJump","Sizes","FullJump","PageCount","Total"],perfect:!0},m={total:0,currentPage:1,pageSize:20,align:"right",pageSizes:[20,50,100,200,500],layouts:["PrevJump","PrevPage","JumpNumber","NextPage","NextJump","Sizes","FullJump","PageCount","Total"],perfect:!0},p=[{type:"seq",width:50,title:(0,l.jM)("".concat((0,l.We)(),"#i18n_title_seq"),"åºå·")},{title:(0,l.jM)("".concat((0,l.We)(),"#i18n_title_operatorPerson"),"æä½äºº"),field:"username",width:200},{title:(0,l.jM)("".concat((0,l.We)(),"#i18n_title_operationTime"),"æä½æ¶é´"),field:"createTime",width:150},{title:(0,l.jM)("".concat((0,l.We)(),"#i18n_title_action"),"å¨ä½"),field:"operateName",width:200},{title:(0,l.jM)("".concat((0,l.We)(),"#i18n_title_elapsedTimeMS"),"èæ¶ï¼æ¯«ç§ï¼"),field:"costTime"}],f=[{type:"seq",width:50,title:(0,l.jM)("".concat((0,l.We)(),"#i18n_title_seq"),"åºå·")},{field:"subject",title:(0,l.jM)("".concat((0,l.We)(),"#i18n_title_processTheTheme"),"æµç¨ä¸»é¢"),width:220},{field:"nodeName",title:(0,l.jM)("".concat((0,l.We)(),"#i18n_title_node"),"èç¹"),width:100},{field:"state_dictText",title:(0,l.jM)("".concat((0,l.We)(),"#i18n_baseForm01bf_ruleStatus"),"ç¶æ"),width:100},{field:"owner",title:(0,l.jM)("".concat((0,l.We)(),"#i18n_field_userDeal"),"å¤ç人"),width:120},{field:"opinion",title:(0,l.jM)("".concat((0,l.We)(),"#i18n_field_opinion"),"å¤çæè§"),width:120},{field:"createDate",title:(0,l.jM)("".concat((0,l.We)(),"#i18n_field_createTime"),"å建æ¶é´"),width:150},{field:"endDate",title:(0,l.jM)("".concat((0,l.We)(),"#i18n_field_completeTime"),"宿æ¶é´"),width:150}],$={name:"RecordModal",components:{"opera-table":o},model:{prop:"visible",event:"change"},props:{visible:{type:Boolean,default:!1},title:{type:String,default:(0,l.jM)("".concat((0,l.We)(),"#i18n_title_numberOfHistory"),"åå²è®°å½")},currentEditRow:{type:Object,default:function(){return{}}}},data:function(){return{tabs:u,operaPagerConfig:g,auditPagerConfig:m,operaColumns:p,auditColumns:f,operaUrl:d,auditUrl:h,spinning:!1,activeKey:"0",operaTableData:[],auditTableData:[]}},watch:{visible:{immediate:!0,handler:function(e){e&&this.getOperaTableData()}}},methods:{getOperaTableData:function(){var e=this,t=this.operaPagerConfig||{},i=t.pageSize,n=void 0===i?20:i,s=t.currentPage,r=void 0===s?1:s,c={pageSize:n,pageNo:r,businessId:this.currentEditRow.id||""};this.spinning=!0,(0,a.s7)(this.operaUrl,c).then((function(t){e.operaTableData=t.result.records||[],e.operaPagerConfig.total=t.result.total})).finally((function(){e.spinning=!1}))},getAuditTableData:function(){var e=this,t=this.auditPagerConfig||{},i=t.pageSize,n=void 0===i?20:i,s=t.currentPage,r=void 0===s?1:s,c={pageSize:n,pageNo:r,businessId:this.currentEditRow.id||""};this.spinning=!0,(0,a.s7)(this.auditUrl,c).then((function(t){e.auditTableData=t.result.records||[],e.auditPagerConfig.total=t.result.total})).finally((function(){e.spinning=!1}))},handleOperaPageChange:function(e){var t=e.currentPage,i=e.pageSize;this.operaPagerConfig.currentPage=t,this.operaPagerConfig.pageSize=i,this.getOperaTableData()},handleAuditPageChange:function(e){var t=e.currentPage,i=e.pageSize;this.auditPagerConfig.currentPage=t,this.auditPagerConfig.pageSize=i,this.getAuditTableData()},handleCancel:function(){this.resetData(),this.$emit("change",!1)},resetData:function(){Object.assign(this.$data,this.$options.data.call(this))}},render:function(e){var t=this,i={visible:this.visible,title:this.title,width:900,keyboard:!1,maskClosable:!1,destroyOnClose:!0},a={cancel:this.handleCancel,ok:this.handleCancel},s={spinning:this.spinning,delayTime:300};return e("div",{class:"RecordModal"},[e("a-modal",{props:(0,n.Z)({},i),on:(0,n.Z)({},a)},[e("div",{class:"tabs"},[e("a-tabs",{model:{value:t.activeKey,callback:function(e){t.activeKey=e}}},[u.map((function(t,i){return e("a-tab-pane",{key:String(i),attrs:{tab:t}})}))])]),e("div",{class:"content"},[e("a-spin",{props:(0,n.Z)({},s)},[e("div",{class:"table"},["0"===this.activeKey?e("opera-table",{attrs:{tableData:this.operaTableData,columns:this.operaColumns,pagerConfig:g},on:{"page-change":this.handleOperaPageChange}}):e("audit-table",{attrs:{tableData:this.auditTableData,columns:this.auditColumns,pagerConfig:m},on:{"page-change":this.handleAuditPageChange}})])])])])])}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.