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