moreShopAdmin/build/admin/assets/edit.97e0b42b.js

2 lines
12 KiB
JavaScript
Raw Normal View History

2024-11-05 10:19:55 +08:00
import{G as W,H as X,a6 as Y,k as ee,D as ue,C as le,v as ae,w as te,M as oe,b as re,N as se,F as ie,I as de,L as pe}from"./element-plus.2c2b06a1.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.1f6e54b7.js";import{_ as me}from"./picker.e5c5d9a8.js";import{k as _e}from"./index.feed3d12.js";import{b as ce,d as fe,e as be}from"./store_product.1453357b.js";import{d as L,s as Fe,r as b,Z as q,i as Ee,ap as ge,o as F,K as E,L as l,a as B,S,u as t,U as u,R as i,Q as h,M as Ce,j as Be}from"./@vue.18505fe0.js";import"./lodash.4e6d2a38.js";import{a as Ve,u as ve}from"./vue-router.101084e3.js";import{a as ye}from"./store_category.29407874.js";import{a as we}from"./store_product_unit.710637dc.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.vue_vue_type_script_setup_true_lang.7141614b.js";import"./usePaging.6a6670f9.js";import"./useDictOptions.715602a8.js";import"./system_store.c3406dab.js";import"./index.7f8efaae.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.e6cc718d.js";import"./index.4ebc537c.js";import"./vuedraggable.c5026861.js";import"./vue.1715f83d.js";import"./sortablejs.c62bcaf8.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.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.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.b0c09b66.js";const De={class:"mb-4 text-lg font-bold"},he=B("div",{class:"w-full",style:{color:"#64748b"}},"\u53EF\u9009\u62E9\u5C06\u5546\u54C1\u540C\u6B65\u5230\u54EA\u4E9B\u95E8\u5E97\u4F7F\u7528",-1),xe={class:"mb-2"},Ae=L({name:"storeProductEdit"}),Uu=L({...Ae,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(Ue,{emit:ke}){const x=Fe();_e();const m=b("add"),a=q({id:"",image:"",store_name:"",bar_code:"",store_info:"",product_type:0,cate_arr:[],cate_id:"",price:"",vip_price:"",unit:"",stock:"",swap:"",cost:"",purchase:"",batch:1,store_batch:1,manufacturer_information:"",rose:"0",is_return:1,is_store_all:1,is_show:1}),f=b(!1),c=b([]),R=r=>{c.value=c.value.filter(e=>e.id!==r)},N=r=>{r.forEach(e=>{c.value.find(n=>n.id==e.id)||c.value.push(e)}),f.value=!1};let V,v;const y=b(!1);let w;Ee(()=>{});const I=r=>(w=r,y.value=!0,A.lazyLoad(v,V),!1),A={value:"id",label:"name",lazy:!0,lazyLoad(r,e){V||(V=e),v||(v=r);const n=r.value||0;let s={};y.value?(s={name:w},w||(s={pid:n,page_size:1e4})):s={pid:n,page_size:1e4},ye({...s}).then(p=>{e(p.lists.map(d=>(d.leaf=d.is_children==0,y.value=!1,d)))})}},U=b([]);(()=>{we({}).then(r=>{U.value=r.lists})})();const P=q({store_name:[{required:!0,message:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0",trigger:["blur"]}],cate_id:[{required:!0,message:"\u8BF7\u8F93\u5165\u5546\u54C1\u5206\u7C7B",trigger:["blur","change"]}],cate_arr:[{required:!0,message:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B",trigger:["blur","change"]}],price:[{required:!0,message:"\u8BF7\u8F93\u5165\u7EC8\u7AEF\u96F6\u552E\u4EF7",trigger:["blur"]}],vip_price:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F1A\u5458\u4EF7",trigger:["blur"]}],unit:[{required:!0,message:"\u8BF7\u8F93\u5165\u5546\u54C1\u5355\u4F4D",trigger:["blur","change"]}],stock:[{required:!0,message:"\u8BF7\u8F93\u5165\u552E\u5356\u5E93\u5B58",trigger:["blur"]}],swap:[{required:!0,message:"\u8BF7\u8F93\u5165\u5151\u6362\u5E93\u5B58",trigger:["blur"]}],cost:[{required:!0,message:"\u8BF7\u8F93\u5165\u95