2 lines
7.3 KiB
JavaScript
2 lines
7.3 KiB
JavaScript
import{C as T,D as j,w as M,F as W,L as q,M as K,N as O,O as Q}from"./element-plus.91c68cc0.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{f as z,b as G}from"./index.0e5577f4.js";import{u as H}from"./usePaging.f8c888e4.js";import{u as J}from"./useDictOptions.1cd81cc1.js";import{e as X,b as Y}from"./warehouse_product_return.3dbc168c.js";import"./lodash.4e6d2a38.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_warehouseProductReturnEdit_lang.2b0c5719.js";import{d as k,s as oe,r as V,Z as le,ap as te,o as d,c as ue,U as e,L as r,u as l,R as m,M as f,K as _,a as B,j as re,Q as ae,n as D}from"./@vue.76ce7aa3.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.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.8d65305c.js";import"./index.395bb96e.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";const pe={class:"mt-4"},ie={class:"flex mt-4 justify-end"},se=k({name:"warehouseProductReturnLists"}),Xe=k({...se,setup(de){const w=oe(),F=V(!1),a=le({warehouse_id:"",supplier_id:"",store_id:"",product_id:"",oid:"",code:"",return_type:""}),v=V([]),y=i=>{v.value=i.map(({id:o})=>o)},{dictData:g}=J(""),{pager:c,getLists:b,resetParams:x,resetPage:U}=H({fetchFun:Y,params:a}),I=async()=>{var i;F.value=!0,await D(),(i=w.value)==null||i.open("add")},P=async i=>{var o,p;F.value=!0,await D(),(o=w.value)==null||o.open("edit"),(p=w.value)==null||p.setFormData(i)},h=async i=>{await z.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await X({id:i}),b()};return b(),(i,o)=>{const p=T,s=j,n=M,R=W,C=q,$=G,t=K,L=O,N=Z,E=te("perms"),A=Q;return d(),ue("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:r(()=>[e(R,{class:"mb-[-16px]",model:l(a),inline:""},{default:r(()=>[e(s,{label:"\u4ED3\u5E93ID",prop:"warehouse_id"},{default:r(()=>[e(p,{class:"w-[280px]",modelValue:l(a).warehouse_id,"onUpdate:modelValue":o[0]||(o[0]=u=>l(a).warehouse_id=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93ID"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u4F9B\u5E94\u5546id",prop:"supplier_id"},{default:r(()=>[e(p,{class:"w-[280px]",modelValue:l(a).supplier_id,"onUpdate:modelValue":o[1]||(o[1]=u=>l(a).supplier_id=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4F9B\u5E94\u5546id"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u95E8\u5E97id",prop:"store_id"},{default:r(()=>[e(p,{class:"w-[280px]",modelValue:l(a).store_id,"onUpdate:modelValue":o[2]||(o[2]=u=>l(a).store_id=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97id"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u5546\u54C1ID",prop:"product_id"},{default:r(()=>[e(p,{class:"w-[280px]",modelValue:l(a).product_id,"onUpdate:modelValue":o[3]||(o[3]=u=>l(a).product_id=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1ID"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u5355\u53F7id",prop:"oid"},{default:r(()=>[e(p,{class:"w-[280px]",modelValue:l(a).oid,"onUpdate:modelValue":o[4]||(o[4]=u=>l(a).oid=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u53F7id"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u5355\u53F7",prop:"code"},{default:r(()=>[e(p,{class:"w-[280px]",modelValue:l(a).code,"onUpdate:modelValue":o[5]||(o[5]=u=>l(a).code=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u53F7"},null,8,["modelValue"])]),_:1}),e(s,{label:"1\u4ED3\u5E932\u4F9B\u5E94\u5546",prop:"return_type"},{default:r(()=>[e(p,{class:"w-[280px]",modelValue:l(a).return_type,"onUpdate:modelValue":o[6]||(o[6]=u=>l(a).return_type=u),clearable:"",placeholder:"\u8BF7\u8F93\u51651\u4ED3\u5E932\u4F9B\u5E94\u5546"},null,8,["modelValue"])]),_:1}),e(s,null,{default:r(()=>[e(n,{type:"primary",onClick:l(U)},{default:r(()=>o[10]||(o[10]=[m("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(n,{onClick:l(x)},{default:r(()=>o[11]||(o[11]=[m("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((d(),_(C,{class:"!border-none",shadow:"never"},{default:r(()=>[f((d(),_(n,{type:"primary",onClick:I},{icon:r(()=>[e($,{name:"el-icon-Plus"})]),default:r(()=>[o[12]||(o[12]=m(" \u65B0\u589E "))]),_:1})),[[E,["warehouse_product_return.warehouse_product_return/add"]]]),f((d(),_(n,{disabled:!l(v).length,onClick:o[7]||(o[7]=u=>h(l(v)))},{default:r(()=>o[13]||(o[13]=[m(" \u5220\u9664 ")])),_:1},8,["disabled"])),[[E,["warehouse_product_return.warehouse_product_return/delete"]]]),B("div",pe,[e(L,{data:l(c).lists,onSelectionChange:y},{default:r(()=>[e(t,{type:"selection",width:"55"}),e(t,{label:"id",prop:"id","show-overflow-tooltip":""}),e(t,{label:"\u4ED3\u5E93ID",prop:"warehouse_id","show-overflow-tooltip":""}),e(t,{label:"\u4F9B\u5E94\u5546id",prop:"supplier_id","show-overflow-tooltip":""}),e(t,{label:"\u95E8\u5E97id",prop:"store_id","show-overflow-tooltip":""}),e(t,{label:"\u5546\u54C1ID",prop:"product_id","show-overflow-tooltip":""}),e(t,{label:"\u5355\u4F4D",prop:"unit","show-overflow-tooltip":""}),e(t,{label:"\u5355\u53F7id",prop:"oid","show-overflow-tooltip":""}),e(t,{label:"\u5355\u53F7",prop:"code","show-overflow-tooltip":""}),e(t,{label:"0 = \u51FA\u5E93 1 = \u83B7\u5F97",prop:"financial_pm","show-overflow-tooltip":""}),e(t,{label:"\u586B\u5199\u4EBA\u5458",prop:"admin_id","show-overflow-tooltip":""}),e(t,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),e(t,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(t,{label:"\u96F6\u552E\u4EF7\u683C",prop:"price","show-overflow-tooltip":""}),e(t,{label:"\u603B\u4EF7\u683C",prop:"total_price","show-overflow-tooltip":""}),e(t,{label:"\u4F9B\u8D27\u4EF7",prop:"purchase","show-overflow-tooltip":""}),e(t,{label:"\u5546\u6237\u4EF7",prop:"cost","show-overflow-tooltip":""}),e(t,{label:"1\u4ED3\u5E932\u4F9B\u5E94\u5546",prop:"return_type","show-overflow-tooltip":""}),e(t,{label:"\u72B6\u6001",prop:"status","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:r(({row:u})=>[f((d(),_(n,{type:"primary",link:"",onClick:S=>P(u)},{default:r(()=>o[14]||(o[14]=[m(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[E,["warehouse_product_return.warehouse_product_return/edit"]]]),f((d(),_(n,{type:"danger",link:"",onClick:S=>h(u.id)},{default:r(()=>o[15]||(o[15]=[m(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[E,["warehouse_product_return.warehouse_product_return/delete"]]])]),_:1})]),_:1},8,["data"])]),B("div",ie,[e(N,{modelValue:l(c),"onUpdate:modelValue":o[8]||(o[8]=u=>re(c)?c.value=u:null),onChange:l(b)},null,8,["modelValue","onChange"])])]),_:1})),[[A,l(c).loading]]),l(F)?(d(),_(ee,{key:0,ref_key:"editRef",ref:w,"dict-data":l(g),onSuccess:l(b),onClose:o[9]||(o[9]=u=>F.value=!1)},null,8,["dict-data","onSuccess"])):ae("",!0)])}}});export{Xe as default};
|