2 lines
5.4 KiB
JavaScript
2 lines
5.4 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.91c68cc0.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{u as X}from"./usePaging.f8c888e4.js";import{u as Y}from"./useDictOptions.3b9f7ea9.js";import{d as ee,e as oe}from"./store_product_price.fdcca534.js";import"./lodash.4e6d2a38.js";import{f as te}from"./index.e9c2eb26.js";import{_ as le}from"./edit.vue_vue_type_script_setup_true_name_storeProductPriceEdit_lang.5b851cb5.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 l,u as a,R as c,M as E,K as _,a as g,Q as b,j as ue,n as pe}from"./@vue.76ce7aa3.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.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.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";import"./index.d78ce335.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";const ne={class:"mt-4"},me={class:"flex mt-4 justify-end"},de=D({name:"storeProductPriceLists"}),oo=D({...de,setup(ce){const f=ae(),v=B(!1),i=re({store_name:"",status:""}),k=B([]),y=s=>{k.value=s.map(({id:o})=>o)},{dictData:V}=Y(""),{pager:u,getLists:n,resetParams:x,resetPage:P}=X({fetchFun:oe,params:i}),S=async s=>{var o,m;v.value=!0,await pe(),(o=f.value)==null||o.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,o)=>{const m=j,w=K,C=M,N=O,d=q,R=J,h=Q,t=Z,$=z,T=G,U=W,F=se("perms"),A=H;return p(),ie("div",null,[e(h,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(R,{class:"mb-[-16px]",model:a(i),inline:""},{default:l(()=>[e(w,{label:"\u5546\u54C1",prop:"store_name"},{default:l(()=>[e(m,{class:"w-[280px]",modelValue:a(i).store_name,"onUpdate:modelValue":o[0]||(o[0]=r=>a(i).store_name=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),e(w,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(N,{modelValue:a(i).status,"onUpdate:modelValue":o[1]||(o[1]=r=>a(i).status=r),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",style:{width:"240px"}},{default:l(()=>[e(C,{value:0,label:"\u672A\u8BBE\u7F6E"}),e(C,{value:1,label:"\u5DF2\u8BBE\u7F6E"})]),_:1},8,["modelValue"])]),_:1}),e(w,null,{default:l(()=>[e(d,{type:"primary",onClick:a(P)},{default:l(()=>o[4]||(o[4]=[c("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(d,{onClick:a(x)},{default:l(()=>o[5]||(o[5]=[c("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),E((p(),_(h,{class:"!border-none",shadow:"never"},{default:l(()=>[g("div",ne,[e(T,{data:a(u).lists,onSelectionChange:y},{default:l(()=>[e(t,{type:"selection",width:"55"}),e(t,{label:"id",prop:"id","show-overflow-tooltip":""}),e(t,{label:"\u9884\u8BA2\u5355id",prop:"bhoid","show-overflow-tooltip":""}),e(t,{label:"\u91C7\u8D2D\u6E90id",prop:"offer_id","show-overflow-tooltip":""}),e(t,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),e(t,{label:"\u5546\u54C1\u56FE\u7247",prop:"image",width:"120"},{default:l(({row:r})=>[e($,{style:{width:"50px",height:"50px"},src:r.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(t,{label:"\u91C7\u8D2D\u4EF7",prop:"purchase_price","show-overflow-tooltip":""}),e(t,{label:"\u6BD4\u7387",prop:"purchase_lv","show-overflow-tooltip":""}),e(t,{label:"\u4F9B\u8D27\u4EF7",prop:"purchase","show-overflow-tooltip":""}),e(t,{label:"\u6BD4\u7387",prop:"cost_lv","show-overflow-tooltip":""}),e(t,{label:"\u5546\u6237\u4EF7",prop:"cost","show-overflow-tooltip":""}),e(t,{label:"\u6BD4\u7387",prop:"price_lv","show-overflow-tooltip":""}),e(t,{label:"\u96F6\u552E\u4EF7",prop:"price","show-overflow-tooltip":""}),e(t,{label:"\u72B6\u6001",prop:"status_name","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:r})=>[r.status==0?E((p(),_(d,{key:0,type:"primary",link:"",onClick:I=>S(r)},{default:l(()=>o[6]||(o[6]=[c(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[F,["store_product_price.store_product_price/edit"]]]):b("",!0),r.status==0?E((p(),_(d,{key:1,type:"danger",link:"",onClick:I=>L(r)},{default:l(()=>o[7]||(o[7]=[c(" \u786E\u8BA4 ")])),_:2},1032,["onClick"])),[[F,["store_product_price.store_product_price/delete"]]]):b("",!0)]),_:1})]),_:1},8,["data"])]),g("div",me,[e(U,{modelValue:a(u),"onUpdate:modelValue":o[2]||(o[2]=r=>ue(u)?u.value=r:null),onChange:a(n)},null,8,["modelValue","onChange"])])]),_:1})),[[A,a(u).loading]]),a(v)?(p(),_(le,{key:0,ref_key:"editRef",ref:f,"dict-data":a(V),onSuccess:a(n),onClose:o[3]||(o[3]=r=>v.value=!1)},null,8,["dict-data","onSuccess"])):b("",!0)])}}});export{oo as default};
|