2 lines
6.3 KiB
JavaScript
2 lines
6.3 KiB
JavaScript
|
import{C as O,D as q,J,K as Q,w as Z,F as z,L as G,M as H,N as X,O as Y}from"./element-plus.4a7d92a3.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{f as oe,b as te}from"./index.1440d2dd.js";import{u as ae}from"./usePaging.6a6670f9.js";import{u as le}from"./useDictOptions.a536756b.js";import{_ as ue,a as re,b as ne,c as se}from"./edit.vue_vue_type_script_setup_true_name_warehouseProductEdit_lang.8914453b.js";import"./lodash.9dc701ad.js";import{d as A,s as ie,r as B,Z as pe,ap as de,o as n,c as V,U as e,L as a,u as t,T as me,a9 as ce,K as i,R as d,M as m,a as x,Q as C,j as _e,n as P}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.vue_vue_type_script_setup_true_name_systemStoreLists_lang.bbd9e651.js";import"./store_product.5b998e4e.js";import"./warehouse_product_storege.d15a08f7.js";import"./warehouse.6535b329.js";import"./index.900bc1fb.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const fe={class:"mt-4"},we={class:"flex mt-4 justify-end"},he=A({name:"warehouseProductLists"}),ro=A({...he,setup(ve){const h=ie(),v=B(!1),s=pe({warehouse_id:"",product_id:"",financial_pm:""}),F=B([]),$=r=>{F.value=r.map(({id:l})=>l)},{dictData:k}=le("warehouse_produc_pm"),{pager:c,getLists:_,resetParams:L,resetPage:N}=ae({fetchFun:se,params:s}),R=async()=>{var r;v.value=!0,await P(),(r=h.value)==null||r.open("add")},S=async r=>{var l,f;v.value=!0,await P(),(l=h.value)==null||l.open("edit"),(f=h.value)==null||f.setFormData(r)},T=async r=>{await re({id:r}),_()},y=async r=>{await oe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ne({id:r}),_()};return _(),(r,l)=>{const f=O,b=q,D=J,U=Q,p=Z,I=z,g=G,W=te,u=H,j=X,K=ee,w=de("perms"),M=Y;return n(),V("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(I,{class:"mb-[-16px]",model:t(s),inline:""},{default:a(()=>[e(b,{label:"\u4ED3\u5E93ID",prop:"warehouse_id"},{default:a(()=>[e(f,{class:"w-[280px]",modelValue:t(s).warehouse_id,"onUpdate:modelValue":l[0]||(l[0]=o=>t(s).warehouse_id=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93"},null,8,["modelValue"])]),_:1}),e(b,{label:"\u5546\u54C1",prop:"product_id"},{default:a(()=>[e(f,{class:"w-[280px]",modelValue:t(s).product_id,"onUpdate:modelValue":l[1]||(l[1]=o=>t(s).product_id=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),e(b,{label:"\u51FA\u5165\u5E93\u72B6\u6001",prop:"financial_pm"},{default:a(()=>[e(U,{style:{width:"240px"},modelValue:t(s).financial_pm,"onUpdate:modelValue":l[2]||(l[2]=o=>t(s).financial_pm=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u51FA\u5165\u5E93"},{default:a(()=>[e(D,{label:"\u5168\u90E8",value:""}),(n(!0),V(me,null,ce(t(k).warehouse_produc_pm,(o,E)=>(n(),i(D,{key:E,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(b,null,{default:a(()=>[e(p,{type:"primary",onClick:t(N)},{default:a(()=>[d("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(p,{onClick:t(L)},{default:a(()=>[d("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),m((n(),i(g,{class:"!border-none",shadow:"never"},{default:a(()=>[m((n(),i(p,{type:"primary",onClick:R},{icon:a(()=>[e(W,{name:"el-icon-Plu
|