javashop/webroot/public/admin/assets/list-342913f4.js
wangchen147 86198c273f 1.1.0
Niucloud JAVA版框架1.1.0更新内容
    新增
    * 增加小程序展示线上版本号
    * 发布小程序添加自定义版本号
    * 添加后台取消小程序绑定微信公众平台授权
    * 管理端核销功能
    * 用户端导入微信地址功能

    优化
    * 装修页面时可自定义底部导航
    * 小程序添加版权信息展示
    * 应用菜单结构优化:取消独立营销菜单,统一在应用菜单下按分类
    * 分页列表增加缓存,记录当前页信息,操作完成后,返回当前页
    * 开启标签栏时对标签页面进行缓存
    * 统一框架装修自定义使用底部导航数据结构

    修复
    * 删除表单报错
    * admin首页点击未安装、已安装应用,页面跳转空白
    * 修复插件云安装错误时同时显示安装失败和安装完成

商城1.0.5更新内容
    新增
    * 用户端添加订单开具发票功能
    * 管理后台添加补开发票功能

    优化
    * 商品列表增加相关活动的关联展示
    * 限时折扣、积分商城增加批量操作
    * 积分商品,若有规格未参与积分活动,则无法购买
    * 复制商品,提示语优化

    修复
    * 满减送活动赠品设置多件,只展示1件
    * 满减送赠品未扣除库存问题
    * 商品列表批量设置分类后商品分类查询不到商品的问题
    * 商品标签状态已经关闭添加商品时依旧可以选择
    * 商家地址库联系方式搜索无效
    * 商品分类拖动排序无效
    * 参与满减活动再使用优惠券,订单0元申请退款时,退款金额出现负数
    * 积分商城规格值设置不参与积分兑换提交订单未拦截
    * 虚拟商品核销码设置的永久有效,核销时提示商品已过期
    * 订单满减送退款售后点击详情报错
    * 按会员标签发放优惠券异常一直未发放
    * 微信支付申请退款售后点击转账跳转404
    * 订单列表输入会员编号、账号点击搜索筛选不出来内容
    * 多商品组商品来源选择分组,只有一个商品分类时多商品组商品展示不正确
    * 商品组件排序方式选择为价格时报错
    * 图文导航选择积分商品报错
2025-12-24 12:30:43 +08:00

2 lines
12 KiB
JavaScript

import{d as ye,k as ve,u as be,q as B,r as b,a5 as ke,h as c,c as g,e as l,w as s,a as p,t as n,f as o,i as u,s as a,F as Q,W,v as h,Z as Ce,B as xe,C as k,bW as Pe,bV as E,ah as H,$ as J,aA as Ee,E as Te,L as Ve,M as $e,a4 as we,a1 as Se,N as Re,a9 as Be,aI as De,aJ as Ie,aG as Oe,ak as Fe,K as Ge,a0 as Ne,ba as Ue,at as ze,al as Le,a2 as Me,a3 as je}from"./index-a2dd70e3.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{_ as Ae}from"./goods_default-665e448a.js";import{j as qe,b as Qe,m as D,k as We,l as He}from"./giftcard-f84e3dd0.js";import{g as Je}from"./category-bd0f5725.js";import{_ as Ke}from"./giftcard-detail.vue_vue_type_script_setup_true_lang-e4a8377c.js";import{_ as Ze}from"./index.vue_vue_type_script_setup_true_lang-0ee012af.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./card-b64e4eff.js";/* empty css */import"./browser-a1ac24ac.js";const Xe={class:"main-container"},Ye={class:"flex justify-between items-center"},et={class:"text-lg"},tt={class:"mt-[10px]"},at={class:"mb-[10px] flex items-center"},lt={class:"flex items-center cursor-pointer"},ot={class:"min-w-[80px] h-[50px] flex items-center justify-center"},st=p("div",{class:"image-slot"},[p("img",{class:"w-[80px] h-[50px]",src:Ae})],-1),it={class:"ml-2"},rt=["title"],nt={class:"text-primary text-[12px]"},dt={key:0},ct={key:1},pt={key:0},ut={key:1},mt={key:2},_t={style:{display:"inline-flex","align-items":"center"}},ft={class:"mr-[5px]"},gt=p("br",null,null,-1),ht={key:0},yt={key:1},vt={style:{display:"inline-flex","align-items":"center"}},bt={class:"mr-[5px]"},kt={class:"mt-[16px] flex justify-end"},aa=ye({__name:"list",setup(Ct){const I=ve(),P=be(),K=I.meta.title,i=B({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{type:"",category_id:"",card_right_type:"",card_name:"",status:"",order:"",sort:"",active_id:I.query.active_id||""}}),O=b(),m=(r=1)=>{i.loading=!0,i.page=r,qe({page:i.page,limit:i.limit,...i.searchParam}).then(t=>{i.loading=!1,i.data=t.data.data,i.total=t.data.total,Pe(i.page,i.limit,i.searchParam)}).catch(()=>{i.loading=!1})},w=B([]),F=B({});(()=>{Je({}).then(r=>{const t=r.data;t&&w.splice(0,w.length,...t)}),Qe({}).then(r=>{const t=r.data;t&&Object.assign(F,t)}),m(E(i.searchParam).page)})();const Z=(r,t)=>{i.searchParam.type=r.props.name,m()},T=b(),V=b(!1),X=r=>{V.value=!1,G.value.toggleAllSelection()},G=b(),x=b([]),Y=r=>{x.value=r,T.value=!1,x.value.length>0&&x.value.length<i.data.length?V.value=!0:V.value=!1,x.value.length==i.data.length&&(T.value=!0)},y=b(!1),ee=r=>{let t="";r.order=="ascending"?t="asc":r.order=="descending"&&(t="desc"),t&&(i.searchParam.order=r.prop,i.searchParam.sort=t),m()},N=(r,t)=>{if(t){if(y.value)return;y.value=!0,D({giftcard_ids:r.giftcard_id,status:t}).then(d=>{m(E(i.searchParam).page),y.value=!1}).catch(()=>{y.value=!1})}else H.confirm(a("modifyStatusEventTips"),a("warning"),{confirmButtonText:a("confirm"),cancelButtonText:a("cancel"),type:"warning"}).then(()=>{D({giftcard_ids:r.giftcard_id,status:t}).then(d=>{m(E(i.searchParam).page)})})},U=r=>{if(x.value.length==0){J({type:"warning",message:`${a("batchEmptySelectedGiftcardTips")}`});return}if(y.value)return;y.value=!0;const t=[];x.value.forEach(d=>{t.push(d.giftcard_id)}),D({giftcard_ids:t,status:r}).then(d=>{m(E(i.searchParam).page),y.value=!1}).catch(()=>{y.value=!1})},te=Ee((r,t)=>{if(isNaN(r)||!/^\d{0,10}$/.test(r)){J({type:"warning",message:`${a("sortTips")}`});return}r>99999999&&(t.sort=99999999),He({giftcard_id:t.giftcard_id,sort:r}).then(d=>{})}),ae=()=>{P.push("/shop_giftcard/giftcard/edit")},le=r=>{P.push("/shop_giftcard/giftcard/edit?giftcard_id="+r.giftcard_id)},oe=b(null),se=r=>{P.push(`/shop_giftcard/giftcard/detail?giftcard_id=${r.giftcard_id}`)},z=b(null),ie=r=>{var v;const t="/addon/shop_giftcard/pages/detail",d=[{name:"giftcard_id",value:r.giftcard_id}],$="礼品卡推广",C="giftcard";(v=z.value)==null||v.show(t,d,$,C)},re=r=>{const t=P.resolve({path:"/shop_giftcard/makecard",query:{giftcard_id:r.giftcard_id}});window.open(t.href)},ne=r=>{const t=P.resolve({path:"/shop_giftcard/order/list",query:{giftcard_id:r.giftcard_id}});window.open(t.href)},de=r=>{H.confirm(a("giftcardDeleteTips"),a("warning"),{confirmButtonText:a("confirm"),cancelButtonText:a("cancel"),type:"warning"}).then(()=>{We(r).then(()=>{m(E(i.searchParam).page)}).catch(()=>{})})},ce=r=>{r&&(r.resetFields(),m())};return(r,t)=>{const d=Te,$=Ve,C=$e,v=we,S=Se,pe=Re,L=Be,R=De,ue=Ie,me=Oe,_=Fe,_e=Ge,M=ke("QuestionFilled"),j=Ne,A=Ue,q=ze,fe=Le,ge=Me,he=je;return c(),g("div",Xe,[l(L,{class:"box-card !border-none",shadow:"never"},{default:s(()=>[p("div",Ye,[p("span",et,n(o(K)),1),l(d,{type:"primary",onClick:ae},{default:s(()=>[u(n(o(a)("addGiftcard")),1)]),_:1})]),l(L,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:s(()=>[l(pe,{inline:!0,model:i.searchParam,ref_key:"searchFormRef",ref:O},{default:s(()=>[l(C,{label:o(a)("cardName"),prop:"card_name"},{default:s(()=>[l($,{modelValue:i.searchParam.card_name,"onUpdate:modelValue":t[0]||(t[0]=e=>i.searchParam.card_name=e),modelModifiers:{trim:!0},placeholder:o(a)("cardNamePlaceholder"),maxlength:"20"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l(C,{label:o(a)("categoryId"),prop:"category_id"},{default:s(()=>[l(S,{modelValue:i.searchParam.category_id,"onUpdate:modelValue":t[1]||(t[1]=e=>i.searchParam.category_id=e),modelModifiers:{trim:!0},placeholder:o(a)("categoryIdPlaceholder"),clearable:""},{default:s(()=>[(c(!0),g(Q,null,W(w,e=>(c(),h(v,{key:e.category_id,label:e.category_name,value:e.category_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),l(C,{label:o(a)("cardRightType"),prop:"card_right_type"},{default:s(()=>[l(S,{modelValue:i.searchParam.card_right_type,"onUpdate:modelValue":t[2]||(t[2]=e=>i.searchParam.card_right_type=e),modelModifiers:{trim:!0},placeholder:o(a)("cardRightTypePlaceholder"),clearable:""},{default:s(()=>[(c(!0),g(Q,null,W(F,e=>(c(),h(v,{key:e.type,label:e.name,value:e.type},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),l(C,{label:o(a)("status"),prop:"status"},{default:s(()=>[l(S,{modelValue:i.searchParam.status,"onUpdate:modelValue":t[3]||(t[3]=e=>i.searchParam.status=e),placeholder:o(a)("statusPlaceholder")},{default:s(()=>[l(v,{label:o(a)("statusAll"),value:""},null,8,["label"]),l(v,{label:o(a)("statusOn"),value:"1"},null,8,["label"]),l(v,{label:o(a)("statusOff"),value:"0"},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),l(C,null,{default:s(()=>[l(d,{type:"primary",onClick:t[4]||(t[4]=e=>m())},{default:s(()=>[u(n(o(a)("search")),1)]),_:1}),l(d,{onClick:t[5]||(t[5]=e=>ce(O.value))},{default:s(()=>[u(n(o(a)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),p("div",tt,[l(ue,{modelValue:i.searchParam.type,"onUpdate:modelValue":t[6]||(t[6]=e=>i.searchParam.type=e),onTabClick:Z},{default:s(()=>[l(R,{label:o(a)("typeAll"),name:""},null,8,["label"]),l(R,{label:o(a)("typeVirtual"),name:"virtual"},null,8,["label"]),l(R,{label:o(a)("typeReal"),name:"real"},null,8,["label"])]),_:1},8,["modelValue"]),p("div",at,[l(me,{modelValue:T.value,"onUpdate:modelValue":t[7]||(t[7]=e=>T.value=e),size:"large",class:"px-[14px]",onChange:X,indeterminate:V.value},null,8,["modelValue","indeterminate"]),l(d,{onClick:t[8]||(t[8]=e=>U(1)),size:"small"},{default:s(()=>[u(n(o(a)("batchOn")),1)]),_:1}),l(d,{onClick:t[9]||(t[9]=e=>U(0)),size:"small"},{default:s(()=>[u(n(o(a)("batchOff")),1)]),_:1})]),Ce((c(),h(fe,{data:i.data,size:"large",ref_key:"giftcardListTableRef",ref:G,onSortChange:ee,onSelectionChange:Y},{empty:s(()=>[p("span",null,n(i.loading?"":o(a)("emptyData")),1)]),default:s(()=>[l(_,{type:"selection",width:"55"}),l(_,{prop:"giftcard_id",label:o(a)("cardInfo"),"min-width":"230"},{default:s(({row:e})=>[p("div",lt,[p("div",ot,[l(_e,{class:"w-[80px] h-[50px]",src:o(xe)(e.cover.split(",")[0]),fit:"contain"},{error:s(()=>[st]),_:2},1032,["src"])]),p("div",it,[p("span",{title:e.card_name,class:"multi-hidden"},n(e.card_name),9,rt),p("span",nt,n(e.type_name),1)])])]),_:1},8,["label"]),l(_,{prop:"category_id",label:o(a)("categoryId"),"min-width":"120","show-overflow-tooltip":!0},{default:s(({row:e})=>[e.category?(c(),g("div",dt,n(e.category.category_name),1)):(c(),g("div",ct,"--"))]),_:1},8,["label"]),l(_,{prop:"card_right_type_name",label:o(a)("cardRightType"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),l(_,{prop:"validity_type",label:o(a)("validityType"),"min-width":"180"},{default:s(({row:e})=>[e.validity_type=="forever"?(c(),g("div",pt,n(o(a)("validityForever")),1)):k("",!0),e.validity_type=="day"?(c(),g("div",ut,"购买后"+n(e.validity_day)+"天有效",1)):k("",!0),e.validity_type=="date"?(c(),g("div",mt,"使用截止时间为:"+n(e.validity_time||""),1)):k("",!0)]),_:1},8,["label"]),l(_,{prop:"sale_count",label:o(a)("saleCount"),"min-width":"170","show-overflow-tooltip":!0,sortable:"custom"},{header:s(()=>[p("div",_t,[p("span",ft,n(o(a)("saleCount")),1),l(A,{class:"box-item",effect:"light",placement:"top"},{content:s(()=>[u(n(o(a)("saleCountTips1")),1),gt,u(n(o(a)("saleCountTips2")),1)]),default:s(()=>[l(j,{color:"#666"},{default:s(()=>[l(M)]),_:1})]),_:1})])]),default:s(({row:e})=>[e.type=="virtual"?(c(),g("div",ht,n(e.sale_count),1)):e.type=="real"?(c(),g("div",yt,n(e.activate_count),1)):k("",!0)]),_:1},8,["label"]),l(_,{prop:"sort","min-width":"120","show-overflow-tooltip":!0,sortable:"custom"},{header:s(()=>[p("div",vt,[p("span",bt,n(o(a)("sort")),1),l(A,{class:"box-item",effect:"light",content:o(a)("sortRules"),placement:"top"},{default:s(()=>[l(j,{color:"#666"},{default:s(()=>[l(M)]),_:1})]),_:1},8,["content"])])]),default:s(({row:e})=>[l($,{modelValue:e.sort,"onUpdate:modelValue":f=>e.sort=f,modelModifiers:{trim:!0},class:"w-[70px]",maxlength:"8",onBlur:f=>o(te)(e.sort,e)},null,8,["modelValue","onUpdate:modelValue","onBlur"])]),_:1}),l(_,{prop:"status",label:o(a)("status"),"min-width":"80","show-overflow-tooltip":!0},{default:s(({row:e})=>[e.status==1?(c(),h(q,{key:0,type:"success",onClick:f=>N(e,0),class:"cursor-pointer"},{default:s(()=>[u(n(o(a)("statusOn")),1)]),_:2},1032,["onClick"])):(c(),h(q,{key:1,type:"info",onClick:f=>N(e,1),class:"cursor-pointer"},{default:s(()=>[u(n(o(a)("statusOff")),1)]),_:2},1032,["onClick"]))]),_:1},8,["label"]),l(_,{prop:"use_count",label:o(a)("useCount"),"min-width":"120","show-overflow-tooltip":!0,sortable:"custom"},null,8,["label"]),l(_,{prop:"create_time",label:o(a)("createTime"),"min-width":"150",sortable:"custom"},{default:s(({row:e})=>[p("div",null,n(e.create_time),1)]),_:1},8,["label"]),l(_,{label:o(a)("operation"),fixed:"right",align:"right","min-width":"120"},{default:s(({row:e})=>[l(d,{type:"primary",link:"",onClick:f=>se(e)},{default:s(()=>[u(n(o(a)("giftcardDetail")),1)]),_:2},1032,["onClick"]),l(d,{type:"primary",link:"",onClick:f=>le(e)},{default:s(()=>[u(n(o(a)("edit")),1)]),_:2},1032,["onClick"]),e.type!=="real"?(c(),h(d,{key:0,type:"primary",link:"",onClick:f=>ie(e)},{default:s(()=>[u(n(o(a)("spreadGiftcard")),1)]),_:2},1032,["onClick"])):k("",!0),e.type=="real"?(c(),h(d,{key:1,type:"primary",link:"",onClick:f=>re(e)},{default:s(()=>[u(n(o(a)("makeCard")),1)]),_:2},1032,["onClick"])):k("",!0),e.type=="virtual"?(c(),h(d,{key:2,type:"primary",link:"",onClick:f=>ne(e)},{default:s(()=>[u(n(o(a)("toOrder")),1)]),_:2},1032,["onClick"])):k("",!0),e.status==0?(c(),h(d,{key:3,type:"primary",link:"",onClick:f=>de(e.giftcard_id)},{default:s(()=>[u(n(o(a)("delete")),1)]),_:2},1032,["onClick"])):k("",!0)]),_:1},8,["label"])]),_:1},8,["data"])),[[he,i.loading]]),p("div",kt,[l(ge,{"current-page":i.page,"onUpdate:current-page":t[10]||(t[10]=e=>i.page=e),"page-size":i.limit,"onUpdate:page-size":t[11]||(t[11]=e=>i.limit=e),layout:"total, sizes, prev, pager, next, jumper",total:i.total,onSizeChange:t[12]||(t[12]=e=>m()),onCurrentChange:m},null,8,["current-page","page-size","total"])])])]),_:1}),l(Ze,{ref_key:"spreadPopupRef",ref:z},null,512),l(Ke,{ref_key:"giftcardDetailDialog",ref:oe},null,512)])}}});export{aa as default};