moreShopAdmin/build/admin/assets/index.856fdc30.js

2 lines
5.2 KiB
JavaScript

import{C as j,D as K,J as M,K as O,w as q,F as J,L as Q,M as Z,b as z,N as G,O as H}from"./element-plus.4a7d92a3.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{u as X}from"./usePaging.6a6670f9.js";import{u as Y}from"./useDictOptions.a0f95660.js";import{d as ee,e as oe}from"./store_product_price.8ba1623f.js";import"./lodash.9dc701ad.js";import{f as te}from"./index.c7609165.js";import{_ as le}from"./edit.vue_vue_type_script_setup_true_name_storeProductPriceEdit_lang.211113c6.js";import{d as D,s as ae,r as B,Z as re,ap as se,o as p,c as ie,U as e,L as t,u as l,R as d,M as h,K as _,a as g,Q as E,j as ue,n as pe}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.e5c5a370.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ne={class:"mt-4"},me={class:"flex mt-4 justify-end"},ce=D({name:"storeProductPriceLists"}),Xe=D({...ce,setup(de){const f=ae(),v=B(!1),i=re({store_name:"",status:""}),k=B([]),y=s=>{k.value=s.map(({id:a})=>a)},{dictData:V}=Y(""),{pager:u,getLists:n,resetParams:x,resetPage:P}=X({fetchFun:oe,params:i}),S=async s=>{var a,m;v.value=!0,await pe(),(a=f.value)==null||a.open("edit"),(m=f.value)==null||m.setFormData(s)},L=async s=>{await te.confirm("\u662F\u5426\u6539\u4EF7:"+s.store_name),await ee({id:s.id}),n()};return n(),(s,a)=>{const m=j,w=K,b=M,N=O,c=q,R=J,C=Q,o=Z,$=z,T=G,U=W,F=se("perms"),A=H;return p(),ie("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(R,{class:"mb-[-16px]",model:l(i),inline:""},{default:t(()=>[e(w,{label:"\u5546\u54C1",prop:"store_name"},{default:t(()=>[e(m,{class:"w-[280px]",modelValue:l(i).store_name,"onUpdate:modelValue":a[0]||(a[0]=r=>l(i).store_name=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),e(w,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[e(N,{modelValue:l(i).status,"onUpdate:modelValue":a[1]||(a[1]=r=>l(i).status=r),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",style:{width:"240px"}},{default:t(()=>[e(b,{value:0,label:"\u672A\u8BBE\u7F6E"}),e(b,{value:1,label:"\u5DF2\u8BBE\u7F6E"})]),_:1},8,["modelValue"])]),_:1}),e(w,null,{default:t(()=>[e(c,{type:"primary",onClick:l(P)},{default:t(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(c,{onClick:l(x)},{default:t(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),h((p(),_(C,{class:"!border-none",shadow:"never"},{default:t(()=>[g("div",ne,[e(T,{data:l(u).lists,onSelectionChange:y},{default:t(()=>[e(o,{type:"selection",width:"55"}),e(o,{label:"id",prop:"id","show-overflow-tooltip":""}),e(o,{label:"\u9884\u8BA2\u5355id",prop:"bhoid","show-overflow-tooltip":""}),e(o,{label:"\u91C7\u8D2D\u6E90id",prop:"offer_id","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u56FE\u7247",prop:"image",width:"120"},{default:t(({row:r})=>[e($,{style:{width:"50px",height:"50px"},src:r.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(o,{label:"\u91C7\u8D2D\u4EF7",prop:"purchase_price","show-overflow-tooltip":""}),e(o,{label:"\u6BD4\u7387",prop:"purchase_lv","show-overflow-tooltip":""}),e(o,{label:"\u4F9B\u8D27\u4EF7",prop:"purchase","show-overflow-tooltip":""}),e(o,{label:"\u6BD4\u7387",prop:"cost_lv","show-overflow-tooltip":""}),e(o,{label:"\u5546\u6237\u4EF7",prop:"cost","show-overflow-tooltip":""}),e(o,{label:"\u6BD4\u7387",prop:"price_lv","show-overflow-tooltip":""}),e(o,{label:"\u96F6\u552E\u4EF7",prop:"price","show-overflow-tooltip":""}),e(o,{label:"\u72B6\u6001",prop:"status_name","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:r})=>[r.status==0?h((p(),_(c,{key:0,type:"primary",link:"",onClick:I=>S(r)},{default:t(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[F,["store_product_price.store_product_price/edit"]]]):E("",!0),r.status==0?h((p(),_(c,{key:1,type:"danger",link:"",onClick:I=>L(r)},{default:t(()=>[d(" \u786E\u8BA4 ")]),_:2},1032,["onClick"])),[[F,["store_product_price.store_product_price/delete"]]]):E("",!0)]),_:1})]),_:1},8,["data"])]),g("div",me,[e(U,{modelValue:l(u),"onUpdate:modelValue":a[2]||(a[2]=r=>ue(u)?u.value=r:null),onChange:l(n)},null,8,["modelValue","onChange"])])]),_:1})),[[A,l(u).loading]]),l(v)?(p(),_(le,{key:0,ref_key:"editRef",ref:f,"dict-data":l(V),onSuccess:l(n),onClose:a[3]||(a[3]=r=>v.value=!1)},null,8,["dict-data","onSuccess"])):E("",!0)])}}});export{Xe as default};