2024-08-04 13:12:40 +08:00
|
|
|
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.a63a26dd.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{f as oe,b as te}from"./index.6fa7dd6c.js";import{u as ae}from"./usePaging.6a6670f9.js";import{u as le}from"./useDictOptions.72379162.js";import{_ as ue,a as re,b as se,c as ne}from"./edit.vue_vue_type_script_setup_true_name_warehouseProductEdit_lang.715b58a0.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.2473fc51.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.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.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.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.67b2a730.js";import"./store_product.c91f5905.js";import"./warehouse_product_storege.c1701eae.js";import"./warehouse.e4278e46.js";import"./index.ef6acf9d.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:u})=>u)},{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 u,f;v.value=!0,await P(),(u=h.value)==null||u.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,u)=>{const f=O,b=q,g=J,U=Q,p=Z,I=z,B=G,W=te,l=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":u[0]||(u[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":u[1]||(u[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":u[2]||(u[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
|