moreShopAdmin/dist/admin/assets/index.b907ffc1.js

2 lines
5.6 KiB
JavaScript

import{C as K,D as M,G as q,H as G,w as H,F as J,M as O,I as Q,b as Z,J as z,K as W}from"./element-plus.7e54903f.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.7f121250.js";import{u as Y}from"./usePaging.f8c888e4.js";import{u as ee}from"./useDictOptions.99e549ee.js";import{d as te,e as oe}from"./store_product_price.ecb5e71d.js";import{d as k,s as le,r as B,Z as ae,ap as re,o as p,c as se,U as e,L as l,u as r,R as _,M as C,K as f,a as i,S as v,Q as F,j as ue,n as ie}from"./@vue.76ce7aa3.js";import"./lodash.905d29aa.js";import{f as ne}from"./index.aacc8c66.js";import{_ as pe}from"./edit.vue_vue_type_script_setup_true_name_storeProductPriceEdit_lang.006d09ff.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.74873e41.js";import"./jspdf.9e946b0e.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.5dec0992.js";import"./color.f3e3a53f.js";import"./clone.8eedf8fa.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.bd8f165a.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";const me={class:"mt-4"},de={class:"flex mt-4 justify-end"},ce=k({name:"storeProductPriceLists"}),ot=k({...ce,setup(_e){const w=le(),E=B(!1),u=ae({store_name:"",status:""}),y=B([]),V=s=>{y.value=s.map(({id:t})=>t)},{dictData:x}=ee(""),{pager:n,getLists:m,resetParams:P,resetPage:S}=Y({fetchFun:oe,params:u}),L=async s=>{var t,d;E.value=!0,await ie(),(t=w.value)==null||t.open("edit"),(d=w.value)==null||d.setFormData(s)},R=async s=>{await ne.confirm("\u662F\u5426\u6539\u4EF7:"+s.store_name),await te({id:s.id}),m()};return m(),(s,t)=>{const d=K,b=M,h=q,$=G,c=H,A=J,D=O,a=Q,I=Z,N=z,T=X,g=re("perms"),U=W;return p(),se("div",null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(A,{class:"mb-[-16px]",model:r(u),inline:""},{default:l(()=>[e(b,{label:"\u5546\u54C1",prop:"store_name"},{default:l(()=>[e(d,{class:"w-[280px]",modelValue:r(u).store_name,"onUpdate:modelValue":t[0]||(t[0]=o=>r(u).store_name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),e(b,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e($,{modelValue:r(u).status,"onUpdate:modelValue":t[1]||(t[1]=o=>r(u).status=o),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",style:{width:"240px"}},{default:l(()=>[e(h,{value:0,label:"\u672A\u8BBE\u7F6E"}),e(h,{value:1,label:"\u5DF2\u8BBE\u7F6E"})]),_:1},8,["modelValue"])]),_:1}),e(b,null,{default:l(()=>[e(c,{type:"primary",onClick:r(S)},{default:l(()=>t[4]||(t[4]=[_("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(c,{onClick:r(P)},{default:l(()=>t[5]||(t[5]=[_("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),C((p(),f(D,{class:"!border-none",shadow:"never"},{default:l(()=>[i("div",me,[e(N,{data:r(n).lists,onSelectionChange:V},{default:l(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"id",prop:"id","show-overflow-tooltip":""}),e(a,{label:"\u6EAF\u6E90",width:"150"},{default:l(({row:o})=>[i("div",null,"\u9884\u8BA2\u5355id: "+v(o.bhoid),1),i("div",null,"\u91C7\u8D2D\u6E90id: "+v(o.offer_id),1)]),_:1}),e(a,{label:"\u5546\u54C1\u4FE1\u606F",width:"150","show-overflow-tooltip":""},{default:l(({row:o})=>[i("div",null,"\u5546\u54C1\u540D\u79F0: "+v(o.store_name),1),i("div",null,"\u5355\u4F4D: "+v(o.unit_name),1)]),_:1}),e(a,{label:"\u89C4\u683C",prop:"store_info","show-overflow-tooltip":""}),e(a,{label:"\u5546\u54C1\u56FE\u7247",prop:"image",width:"120"},{default:l(({row:o})=>[e(I,{style:{width:"50px",height:"50px"},src:o.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(a,{label:"\u91C7\u8D2D\u4EF7",prop:"purchase_price","show-overflow-tooltip":""}),e(a,{label:"\u6BD4\u7387",prop:"purchase_lv","show-overflow-tooltip":""}),e(a,{label:"\u4F9B\u8D27\u4EF7",prop:"purchase","show-overflow-tooltip":""}),e(a,{label:"\u6BD4\u7387",prop:"cost_lv","show-overflow-tooltip":""}),e(a,{label:"\u5546\u6237\u4EF7",prop:"cost","show-overflow-tooltip":""}),e(a,{label:"\u6BD4\u7387",prop:"price_lv","show-overflow-tooltip":""}),e(a,{label:"\u96F6\u552E\u4EF7",prop:"price","show-overflow-tooltip":""}),e(a,{label:"\u72B6\u6001",prop:"status_name","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:l(({row:o})=>[o.status==0?C((p(),f(c,{key:0,type:"primary",link:"",onClick:j=>L(o)},{default:l(()=>t[6]||(t[6]=[_(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[g,["store_product_price.store_product_price/edit"]]]):F("",!0),o.status==0?C((p(),f(c,{key:1,type:"danger",link:"",onClick:j=>R(o)},{default:l(()=>t[7]||(t[7]=[_(" \u786E\u8BA4 ")])),_:2},1032,["onClick"])),[[g,["store_product_price.store_product_price/delete"]]]):F("",!0)]),_:1})]),_:1},8,["data"])]),i("div",de,[e(T,{modelValue:r(n),"onUpdate:modelValue":t[2]||(t[2]=o=>ue(n)?n.value=o:null),onChange:r(m)},null,8,["modelValue","onChange"])])]),_:1})),[[U,r(n).loading]]),r(E)?(p(),f(pe,{key:0,ref_key:"editRef",ref:w,"dict-data":r(x),onSuccess:r(m),onClose:t[3]||(t[3]=o=>E.value=!1)},null,8,["dict-data","onSuccess"])):F("",!0)])}}});export{ot as default};