"use strict";(self["webpackChunkplugin_request_market"]=self["webpackChunkplugin_request_market"]||[]).push([[9477],{574:function(e,t,n){n(6422)},1554:function(e,t,n){n(6422)},2109:function(e,t,n){n(6422),n(8884),n(9267),n(6280)},2541:function(e,t,n){n(6422),n(574),n(5018),n(6280),n(9267)},2548:function(e,t,n){n.d(t,{E:function(){return o},b:function(){return u}});const a=window.$wujie?.props?.req__gx,r=window.$wujie.props?.__SYSTEM_CONFIG__;function o(e){return a({baseURL:r?.entApi,...e})}function u(e){return a({baseURL:r?.entApi,...e})}},4205:function(e,t,n){n(6422)},5018:function(e,t,n){n(6422)},6280:function(e,t,n){n(6422)},7390:function(e,t,n){n(6422),n(8884),n(574)},8884:function(e,t,n){n(6422)},9134:function(e,t,n){n(6422),n(2541),n(4205)},9267:function(e,t,n){n(6422)},9303:function(e,t,n){n(6422)},9477:function(e,t,n){n.r(t),n.d(t,{default:function(){return h}});var a=n(3693),r=(n(6422),n(1554),n(9128)),o=(n(4669),n(6091)),u=(n(9134),n(6735)),i=(n(2109),n(1857)),l=(n(9303),n(7390),n(641)),p=n(33),s=n(953),c=n(163),d=n(2548);function b(e){return(0,d.E)({url:"/zxl_rm/rm/productbuy.svc?cmd=getList",method:"post",data:e})}const f={class:"page-module"};var _=(0,l.pM)({__name:"index",setup(e){const t=(0,s.KR)(!1),n=(0,s.Kh)({current:1,size:10}),d=(0,s.KR)(1),_=(0,s.Kh)([]);async function k(){try{t.value=!0,_.length=0;const e={type:10===n.size?"init":"sizeChange",page:n.current,pageSize:n.size,sortInfos:[],filters:[],sortInfo:{order:"",prop:""}},a=await b(e);d.value=a.total,a.data.map((e=>{_.push(e)}))}catch(e){console.error(e),(0,c.nk)({type:"error",message:e.errors})}finally{t.value=!1}}(0,l.sV)((async()=>{await k()})),(0,l.wB)(n,(async()=>{await k()}));const w=(0,s.Kh)({isShow:!1,title:"",data:{},loading:!1});function h(e){w.isShow=!0,w.title=e.marketProductName,w.data=e}return(0,l.wB)((()=>w.isShow),(()=>{w.isShow})),(e,s)=>{const c=u.o8,b=i.S2,k=u.Up,g=o.aQ,m=r.kZ,F=a.A;return(0,l.uX)(),(0,l.CE)(l.FK,null,[(0,l.bo)(((0,l.uX)(),(0,l.Wv)(k,{data:_,stripe:"",style:{width:"100%"}},{default:(0,l.k6)((()=>[(0,l.bF)(c,{label:"需求Id",prop:"requestGXID"}),(0,l.bF)(c,{label:"需求名",prop:"name"}),(0,l.bF)(c,{label:"购买企业",prop:"org"}),(0,l.bF)(c,{label:"购买企业GXID",prop:"orgGXID"}),(0,l.bF)(c,{label:"购买日期",prop:"date"}),(0,l.bF)(c,{label:"操作",width:"150px"},{default:(0,l.k6)((e=>[(0,l.bF)(b,{disabled:"",type:"primary",link:""},{default:(0,l.k6)((()=>s[3]||(s[3]=[(0,l.eW)("详情")]))),_:1,__:[3]}),(0,l.bF)(b,{onClick:t=>h(e.row),type:"primary",link:""},{default:(0,l.k6)((()=>s[4]||(s[4]=[(0,l.eW)("版本")]))),_:2,__:[4]},1032,["onClick"])])),_:1})])),_:1},8,["data"])),[[F,t.value]]),(0,l.Lk)("div",f,[(0,l.bF)(g,{"page-sizes":[10,20,50,100],small:"",layout:"sizes, prev, pager, next",background:"","page-size":n.size,"current-page":n.current,total:d.value,teleported:!1,onSizeChange:s[0]||(s[0]=e=>n.size=e),onCurrentChange:s[1]||(s[1]=e=>n.current=e)},null,8,["page-size","current-page","total"])]),(0,l.bF)(m,{modelValue:w.isShow,"onUpdate:modelValue":s[2]||(s[2]=e=>w.isShow=e),title:`${w.title}的版本列表`,center:"",width:"1100px"},{default:(0,l.k6)((()=>[(0,l.bF)(k,{data:w.data,stripe:"",border:""},{default:(0,l.k6)((()=>[(0,l.bF)(c,{label:"购买日期",prop:"buyDate"}),(0,l.bF)(c,{label:"版本",prop:"marketProductVersionNo"}),(0,l.bF)(c,{label:"价格",prop:"price"},{default:(0,l.k6)((({row:e})=>[(0,l.Lk)("span",null,"￥"+(0,p.v_)(e.price),1)])),_:1}),(0,l.bF)(c,{label:"记录条数",prop:"finishRecordCount"}),(0,l.bF)(c,{label:"状态",prop:"buyOrNot"}),(0,l.bF)(c,{label:"下载时间",prop:"buyDate"})])),_:1},8,["data"])])),_:1},8,["modelValue","title"])],64)}}}),k=n(6262);const w=(0,k.A)(_,[["__scopeId","data-v-28d091e6"]]);var h=w}}]);
//# sourceMappingURL=9477.a8e791c0.js.map