2 lines
7.3 KiB
JavaScript
2 lines
7.3 KiB
JavaScript
|
import{J as G,K as H,D as X,C as Y,w as ee,F as oe,L as te,M as ae,b as le,N as re,O as se}from"./element-plus.ebe4edc1.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.311652af.js";import{f as ie,b as ne}from"./index.0b236944.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.af57647b.js";import{u as de}from"./usePaging.6a6670f9.js";import{u as me}from"./useDictOptions.913d7945.js";import{a as P,_ as ce,b as _e,c as fe}from"./edit.vue_vue_type_script_setup_true_name_warehouseProductEdit_lang.7a8a9589.js";import{d as T,s as he,r as C,Z as we,i as ve,ap as be,o as u,c as S,U as e,L as l,u as o,a as F,T as Ee,a9 as Ce,K as n,R as d,M as c,S as Fe,Q as k,j as ge,n as $}from"./@vue.18505fe0.js";import"./lodash.9da25972.js";import{a as ke}from"./system_store.d2bcf61b.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.2abc406c.js";import"./axios.9e25675c.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.ae040c61.js";import"./color.130f7952.js";import"./clone.4a149bdb.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.e75c9f38.js";import"./vue-clipboard3.cacf014a.js";import"./clipboard.1f8f6543.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.4af27018.js";import"./index.vue_vue_type_style_index_0_scoped_b8e715d9_lang.220569d0.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.5d57f024.js";import"./store_product.0fb910b6.js";import"./warehouse_product_storege.7ca5db34.js";import"./warehouse.623aed64.js";const ye={class:"flex items-center mr-4"},De={class:"mt-4"},xe={style:{color:"red"}},Ve={class:"flex mt-4 justify-end"},Be=T({name:"warehouseProductLists"}),Co=T({...Be,setup(Le){const h=he(),w=C(!1),i=we({warehouse_id:"",product_id:"",financial_pm:1,store_id:""}),g=C([]),A=s=>{g.value=s.map(({id:a})=>a)},{dictData:N}=me("warehouse_produc_pm"),{pager:m,getLists:_,resetParams:R,resetPage:y}=de({fetchFun:P,params:i}),U=async()=>{var s;w.value=!0,await $(),(s=h.value)==null||s.open("add")},z=async s=>{var a,b;w.value=!0,await $(),(a=h.value)==null||a.open("edit"),(b=h.value)==null||b.setFormData(s)},I=async s=>{await _e({id:s}),_()},D=async s=>{await ie.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await fe({id:s}),_()},v=C(!1),x=C([]),M=(s="")=>{v.value=!0,ke({name:s,page_size:50}).then(a=>{x.value=a.lists,setTimeout(()=>{v.value=!1},300)}).catch(a=>{setTimeout(()=>{v.value=!1},300)})};return ve(()=>{_()}),(s,a)=>{const b=G,W=H,E=X,V=Y,p=ee,j=pe,K=oe,B=te,O=ne,r=ae,q=le,J=re,Q=ue,f=be("perms"),Z=se;return u(),S("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(K,{class:"mb-[-16px]",model:o(i),inline:""},{default:l(()=>[e(E,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:l(()=>[F("div",ye,[e(W,{modelValue:o(i).store_id,"onUpdate:modelValue":a[0]||(a[0]=t=>o(i).store_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":M,loading:o(v),style:{width:"240px"},onChange:o(y)},{default:l(()=>[(u(!0),S(Ee,null,Ce(o(x),t=>(u(),n(b,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])])]),_:1}),e(E,{label:"\u4ED3\u5E93ID",prop:"warehouse_id"},{default:l(()=>[e(V,{class:"w-[280px]",modelValue:o(i).warehouse_id,"onUpdate:modelValue":a[1]||(a[1]=t=>o(i).warehouse_id=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93"},null,8,["modelValue"])]),_:1}),e(E,{label:"\u5546\u54C1",prop:"product_id"},{default:l(()=>[e(V,{class:"w-[280px]",modelValue:o(i).product_id,"onUpdate:model
|