From 1a9ecc5e2736e4ecacdf030468baa81824dc1138 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Thu, 27 Jun 2024 16:07:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/admin/assets/index.72b3a4e4.js | 2 +- dist/admin/assets/index.0dc7d0ba.js | 2 +- .../finance/store_finance_flow/details.vue | 14 +-- .../finance/store_finance_flow/index.vue | 8 +- .../store/store_branch_product/index.vue | 4 +- src/views/store/store_category/index.vue | 8 +- src/views/store/store_product/details.vue | 4 +- src/views/store/store_product_unit/index.vue | 10 +- .../store_order/components/storeTable.vue | 18 ++-- src/views/store_order/details.vue | 5 +- src/views/store_order/index.vue | 92 +++++++++++++++++-- src/views/store_order_transshipment/index.vue | 4 +- 12 files changed, 124 insertions(+), 47 deletions(-) diff --git a/build/admin/assets/index.72b3a4e4.js b/build/admin/assets/index.72b3a4e4.js index 953c7f42..e20d1fc9 100644 --- a/build/admin/assets/index.72b3a4e4.js +++ b/build/admin/assets/index.72b3a4e4.js @@ -1 +1 @@ -import{C as q,D as O,w as Q,F as Z,L as z,M as G,N as H,O as J}from"./element-plus.573d45d4.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.ffc076c1.js";import{f as X,b as Y}from"./index.1cfe5013.js";import{d as P,r as F,Z as ee,ap as te,o as i,c as oe,U as o,L as a,u as e,aa as ae,R as s,M as p,K as u,a as $,S as ne,j as le,Q as x,n as y}from"./@vue.18505fe0.js";import{u as ie}from"./usePaging.6a6670f9.js";import{u as se}from"./useDictOptions.5e40ad97.js";import{b as ue,e as re,a as de}from"./store_product_unit.5c9e5799.js";import{_ as me}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.1bf34ef0.js";import{_ as pe}from"./edit.vue_vue_type_script_setup_true_name_unitEdit_lang.5ea83821.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.60201f64.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.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.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.eb65c4ed.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ce={class:"mt-4"},_e={class:"flex mt-4 justify-end"},fe=P({name:"unitLists"}),ot=P({...fe,setup(ve){const c=F(null),w=F(null),b=F(!1),D=F(!1),k=ee({name:"",py:"",number:"",data:"",more:""}),g=F([]),L=l=>{g.value=l.map(({id:t})=>t)},{dictData:h}=se(""),{pager:_,getLists:f,resetParams:R,resetPage:E}=ie({fetchFun:de,params:k}),U=async()=>{var l;b.value=!0,await y(),(l=c.value)==null||l.open("add")},N=async l=>{var t,r;console.log(c.value),b.value=!0,await y(),(t=c.value)==null||t.open("edit"),(r=c.value)==null||r.setFormData(l)},K=async l=>{var r,v;let t=await ue({id:l});D.value=!0,await y(),(r=w.value)==null||r.open("edit"),(v=w.value)==null||v.setFormData(t)},S=async l=>{await X.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await re({id:l}),f()};return f(),(l,t)=>{const r=q,v=O,d=Q,T=Z,B=z,I=Y,m=G,j=H,A=W,C=te("perms"),M=J;return i(),oe("div",null,[o(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(T,{class:"mb-[-16px]",model:e(k),inline:""},{default:a(()=>[o(v,{label:"\u5355\u4F4D\u540D\u79F0",prop:"name"},{default:a(()=>[o(r,{class:"w-[280px]",modelValue:e(k).name,"onUpdate:modelValue":t[0]||(t[0]=n=>e(k).name=n),onKeydown:ae(e(E),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),o(v,null,{default:a(()=>[o(d,{type:"primary",onClick:e(E)},{default:a(()=>[s("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(d,{onClick:e(R)},{default:a(()=>[s("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),p((i(),u(B,{class:"!border-none",shadow:"never"},{default:a(()=>[p((i(),u(d,{type:"primary",onClick:U},{icon:a(()=>[o(I,{name:"el-icon-Plus"})]),default:a(()=>[s(" \u65B0\u589E ")]),_:1})),[[C,["goods.unit/add"]]]),p((i(),u(d,{disabled:!e(g).length,onClick:t[1]||(t[1]=n=>S(e(g)))},{default:a(()=>[s(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[C,["goods.unit/delete"]]]),$("div",ce,[o(j,{data:e(_).lists,onSelectionChange:L},{default:a(()=>[o(m,{type:"selection",width:"55"}),o(m,{label:"ID",prop:"id",width:"55"}),o(m,{label:"\u5355\u4F4D\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),o(m,{label:"\u5355\u4F4D\u7F16\u53F7",prop:"number","show-overflow-tooltip":""}),o(m,{label:"\u662F\u5426\u6563\u88C5",prop:"is_bulk","show-overflow-tooltip":""},{default:a(({row:n})=>[s(ne(n.is_bulk?"\u662F":"\u5426"),1)]),_:1}),o(m,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data","show-overflow-tooltip":""}),o(m,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:a(({row:n})=>[p((i(),u(d,{type:"primary",link:"",onClick:V=>N(n)},{default:a(()=>[s(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[C,["goods.unit/edit"]]]),p((i(),u(d,{type:"danger",link:"",onClick:V=>S(n.id)},{default:a(()=>[s(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[C,["goods.unit/delete"]]]),p((i(),u(d,{link:"",onClick:V=>K(n.id)},{default:a(()=>[s(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[C,["goods.unit/edit"]]])]),_:1})]),_:1},8,["data"])]),$("div",_e,[o(A,{modelValue:e(_),"onUpdate:modelValue":t[2]||(t[2]=n=>le(_)?_.value=n:null),onChange:e(f)},null,8,["modelValue","onChange"])])]),_:1})),[[M,e(_).loading]]),e(b)?(i(),u(pe,{key:0,ref_key:"editRef",ref:c,"dict-data":e(h),onSuccess:e(f),onClose:t[3]||(t[3]=n=>b.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0),e(D)?(i(),u(me,{key:1,ref_key:"detailRef",ref:w,"dict-data":e(h),onSuccess:e(f),onClose:t[4]||(t[4]=n=>D.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0)])}}});export{ot as default}; +import{C as q,D as O,w as Q,F as Z,L as z,M as G,N as H,O as J}from"./element-plus.573d45d4.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.ffc076c1.js";import{f as X,b as Y}from"./index.1cfe5013.js";import{d as P,r as F,Z as ee,ap as te,o as i,c as oe,U as o,L as a,u as e,aa as ae,R as s,M as p,K as u,a as $,S as ne,j as le,Q as x,n as y}from"./@vue.18505fe0.js";import{u as ie}from"./usePaging.6a6670f9.js";import{u as se}from"./useDictOptions.5e40ad97.js";import{b as ue,e as re,a as de}from"./store_product_unit.5c9e5799.js";import{_ as me}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.1bf34ef0.js";import{_ as pe}from"./edit.vue_vue_type_script_setup_true_name_unitEdit_lang.5ea83821.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.60201f64.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.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.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.eb65c4ed.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ce={class:"mt-4"},_e={class:"flex mt-4 justify-end"},fe=P({name:"unitLists"}),ot=P({...fe,setup(ve){const c=F(null),w=F(null),b=F(!1),D=F(!1),k=ee({name:"",py:"",number:"",data:"",more:""}),g=F([]),L=l=>{g.value=l.map(({id:t})=>t)},{dictData:h}=se(""),{pager:_,getLists:f,resetParams:R,resetPage:E}=ie({fetchFun:de,params:k}),U=async()=>{var l;b.value=!0,await y(),(l=c.value)==null||l.open("add")},N=async l=>{var t,r;console.log(c.value),b.value=!0,await y(),(t=c.value)==null||t.open("edit"),(r=c.value)==null||r.setFormData(l)},K=async l=>{var r,v;let t=await ue({id:l});D.value=!0,await y(),(r=w.value)==null||r.open("edit"),(v=w.value)==null||v.setFormData(t)},S=async l=>{await X.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await re({id:l}),f()};return f(),(l,t)=>{const r=q,v=O,d=Q,T=Z,B=z,I=Y,m=G,j=H,A=W,C=te("perms"),M=J;return i(),oe("div",null,[o(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(T,{class:"mb-[-16px]",model:e(k),inline:""},{default:a(()=>[o(v,{label:"\u5355\u4F4D\u540D\u79F0",prop:"name"},{default:a(()=>[o(r,{class:"w-[280px]",modelValue:e(k).name,"onUpdate:modelValue":t[0]||(t[0]=n=>e(k).name=n),onKeydown:ae(e(E),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),o(v,null,{default:a(()=>[o(d,{type:"primary",onClick:e(E)},{default:a(()=>[s("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(d,{onClick:e(R)},{default:a(()=>[s("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),p((i(),u(B,{class:"!border-none",shadow:"never"},{default:a(()=>[p((i(),u(d,{type:"primary",onClick:U},{icon:a(()=>[o(I,{name:"el-icon-Plus"})]),default:a(()=>[s(" \u65B0\u589E ")]),_:1})),[[C,["store_product_unit.store_product_unit/add"]]]),p((i(),u(d,{disabled:!e(g).length,onClick:t[1]||(t[1]=n=>S(e(g)))},{default:a(()=>[s(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[C,["store_product_unit.store_product_unit/delete"]]]),$("div",ce,[o(j,{data:e(_).lists,onSelectionChange:L},{default:a(()=>[o(m,{type:"selection",width:"55"}),o(m,{label:"ID",prop:"id",width:"55"}),o(m,{label:"\u5355\u4F4D\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),o(m,{label:"\u5355\u4F4D\u7F16\u53F7",prop:"number","show-overflow-tooltip":""}),o(m,{label:"\u662F\u5426\u6563\u88C5",prop:"is_bulk","show-overflow-tooltip":""},{default:a(({row:n})=>[s(ne(n.is_bulk?"\u662F":"\u5426"),1)]),_:1}),o(m,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data","show-overflow-tooltip":""}),o(m,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:a(({row:n})=>[p((i(),u(d,{type:"primary",link:"",onClick:V=>N(n)},{default:a(()=>[s(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[C,["store_product_unit.store_product_unit/edit"]]]),p((i(),u(d,{type:"danger",link:"",onClick:V=>S(n.id)},{default:a(()=>[s(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[C,["store_product_unit.store_product_unit/delete"]]]),p((i(),u(d,{link:"",onClick:V=>K(n.id)},{default:a(()=>[s(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[C,["store_product_unit.store_product_unit/edit"]]])]),_:1})]),_:1},8,["data"])]),$("div",_e,[o(A,{modelValue:e(_),"onUpdate:modelValue":t[2]||(t[2]=n=>le(_)?_.value=n:null),onChange:e(f)},null,8,["modelValue","onChange"])])]),_:1})),[[M,e(_).loading]]),e(b)?(i(),u(pe,{key:0,ref_key:"editRef",ref:c,"dict-data":e(h),onSuccess:e(f),onClose:t[3]||(t[3]=n=>b.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0),e(D)?(i(),u(me,{key:1,ref_key:"detailRef",ref:w,"dict-data":e(h),onSuccess:e(f),onClose:t[4]||(t[4]=n=>D.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0)])}}});export{ot as default}; diff --git a/dist/admin/assets/index.0dc7d0ba.js b/dist/admin/assets/index.0dc7d0ba.js index 43dbacc0..4ae0f219 100644 --- a/dist/admin/assets/index.0dc7d0ba.js +++ b/dist/admin/assets/index.0dc7d0ba.js @@ -1 +1 @@ -import{C as q,D as O,w as Q,F as Z,L as z,M as G,N as H,O as J}from"./element-plus.573d45d4.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.ffc076c1.js";import{f as X,b as Y}from"./index.e246281b.js";import{d as P,r as F,Z as ee,ap as te,o as i,c as oe,U as o,L as a,u as e,aa as ae,R as s,M as p,K as u,a as $,S as ne,j as le,Q as x,n as y}from"./@vue.18505fe0.js";import{u as ie}from"./usePaging.6a6670f9.js";import{u as se}from"./useDictOptions.994c5c47.js";import{b as ue,e as re,a as de}from"./store_product_unit.f73c56f2.js";import{_ as me}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.7e4e7ee3.js";import{_ as pe}from"./edit.vue_vue_type_script_setup_true_name_unitEdit_lang.21b5cb94.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.60201f64.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.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.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.e848dfd1.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ce={class:"mt-4"},_e={class:"flex mt-4 justify-end"},fe=P({name:"unitLists"}),ot=P({...fe,setup(ve){const c=F(null),w=F(null),b=F(!1),D=F(!1),k=ee({name:"",py:"",number:"",data:"",more:""}),g=F([]),L=l=>{g.value=l.map(({id:t})=>t)},{dictData:h}=se(""),{pager:_,getLists:f,resetParams:R,resetPage:E}=ie({fetchFun:de,params:k}),U=async()=>{var l;b.value=!0,await y(),(l=c.value)==null||l.open("add")},N=async l=>{var t,r;console.log(c.value),b.value=!0,await y(),(t=c.value)==null||t.open("edit"),(r=c.value)==null||r.setFormData(l)},K=async l=>{var r,v;let t=await ue({id:l});D.value=!0,await y(),(r=w.value)==null||r.open("edit"),(v=w.value)==null||v.setFormData(t)},S=async l=>{await X.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await re({id:l}),f()};return f(),(l,t)=>{const r=q,v=O,d=Q,T=Z,B=z,I=Y,m=G,j=H,A=W,C=te("perms"),M=J;return i(),oe("div",null,[o(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(T,{class:"mb-[-16px]",model:e(k),inline:""},{default:a(()=>[o(v,{label:"\u5355\u4F4D\u540D\u79F0",prop:"name"},{default:a(()=>[o(r,{class:"w-[280px]",modelValue:e(k).name,"onUpdate:modelValue":t[0]||(t[0]=n=>e(k).name=n),onKeydown:ae(e(E),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),o(v,null,{default:a(()=>[o(d,{type:"primary",onClick:e(E)},{default:a(()=>[s("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(d,{onClick:e(R)},{default:a(()=>[s("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),p((i(),u(B,{class:"!border-none",shadow:"never"},{default:a(()=>[p((i(),u(d,{type:"primary",onClick:U},{icon:a(()=>[o(I,{name:"el-icon-Plus"})]),default:a(()=>[s(" \u65B0\u589E ")]),_:1})),[[C,["goods.unit/add"]]]),p((i(),u(d,{disabled:!e(g).length,onClick:t[1]||(t[1]=n=>S(e(g)))},{default:a(()=>[s(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[C,["goods.unit/delete"]]]),$("div",ce,[o(j,{data:e(_).lists,onSelectionChange:L},{default:a(()=>[o(m,{type:"selection",width:"55"}),o(m,{label:"ID",prop:"id",width:"55"}),o(m,{label:"\u5355\u4F4D\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),o(m,{label:"\u5355\u4F4D\u7F16\u53F7",prop:"number","show-overflow-tooltip":""}),o(m,{label:"\u662F\u5426\u6563\u88C5",prop:"is_bulk","show-overflow-tooltip":""},{default:a(({row:n})=>[s(ne(n.is_bulk?"\u662F":"\u5426"),1)]),_:1}),o(m,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data","show-overflow-tooltip":""}),o(m,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:a(({row:n})=>[p((i(),u(d,{type:"primary",link:"",onClick:V=>N(n)},{default:a(()=>[s(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[C,["goods.unit/edit"]]]),p((i(),u(d,{type:"danger",link:"",onClick:V=>S(n.id)},{default:a(()=>[s(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[C,["goods.unit/delete"]]]),p((i(),u(d,{link:"",onClick:V=>K(n.id)},{default:a(()=>[s(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[C,["goods.unit/edit"]]])]),_:1})]),_:1},8,["data"])]),$("div",_e,[o(A,{modelValue:e(_),"onUpdate:modelValue":t[2]||(t[2]=n=>le(_)?_.value=n:null),onChange:e(f)},null,8,["modelValue","onChange"])])]),_:1})),[[M,e(_).loading]]),e(b)?(i(),u(pe,{key:0,ref_key:"editRef",ref:c,"dict-data":e(h),onSuccess:e(f),onClose:t[3]||(t[3]=n=>b.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0),e(D)?(i(),u(me,{key:1,ref_key:"detailRef",ref:w,"dict-data":e(h),onSuccess:e(f),onClose:t[4]||(t[4]=n=>D.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0)])}}});export{ot as default}; +import{C as q,D as O,w as Q,F as Z,L as z,M as G,N as H,O as J}from"./element-plus.573d45d4.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.ffc076c1.js";import{f as X,b as Y}from"./index.e246281b.js";import{d as P,r as F,Z as ee,ap as te,o as i,c as oe,U as o,L as a,u as e,aa as ae,R as s,M as p,K as u,a as $,S as ne,j as le,Q as x,n as y}from"./@vue.18505fe0.js";import{u as ie}from"./usePaging.6a6670f9.js";import{u as se}from"./useDictOptions.994c5c47.js";import{b as ue,e as re,a as de}from"./store_product_unit.f73c56f2.js";import{_ as me}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.7e4e7ee3.js";import{_ as pe}from"./edit.vue_vue_type_script_setup_true_name_unitEdit_lang.21b5cb94.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.60201f64.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.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.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.e848dfd1.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const ce={class:"mt-4"},_e={class:"flex mt-4 justify-end"},fe=P({name:"unitLists"}),ot=P({...fe,setup(ve){const c=F(null),w=F(null),b=F(!1),D=F(!1),k=ee({name:"",py:"",number:"",data:"",more:""}),g=F([]),L=l=>{g.value=l.map(({id:t})=>t)},{dictData:h}=se(""),{pager:_,getLists:f,resetParams:R,resetPage:E}=ie({fetchFun:de,params:k}),U=async()=>{var l;b.value=!0,await y(),(l=c.value)==null||l.open("add")},N=async l=>{var t,r;console.log(c.value),b.value=!0,await y(),(t=c.value)==null||t.open("edit"),(r=c.value)==null||r.setFormData(l)},K=async l=>{var r,v;let t=await ue({id:l});D.value=!0,await y(),(r=w.value)==null||r.open("edit"),(v=w.value)==null||v.setFormData(t)},S=async l=>{await X.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await re({id:l}),f()};return f(),(l,t)=>{const r=q,v=O,d=Q,T=Z,B=z,I=Y,m=G,j=H,A=W,C=te("perms"),M=J;return i(),oe("div",null,[o(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(T,{class:"mb-[-16px]",model:e(k),inline:""},{default:a(()=>[o(v,{label:"\u5355\u4F4D\u540D\u79F0",prop:"name"},{default:a(()=>[o(r,{class:"w-[280px]",modelValue:e(k).name,"onUpdate:modelValue":t[0]||(t[0]=n=>e(k).name=n),onKeydown:ae(e(E),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),o(v,null,{default:a(()=>[o(d,{type:"primary",onClick:e(E)},{default:a(()=>[s("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(d,{onClick:e(R)},{default:a(()=>[s("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),p((i(),u(B,{class:"!border-none",shadow:"never"},{default:a(()=>[p((i(),u(d,{type:"primary",onClick:U},{icon:a(()=>[o(I,{name:"el-icon-Plus"})]),default:a(()=>[s(" \u65B0\u589E ")]),_:1})),[[C,["store_product_unit.store_product_unit/add"]]]),p((i(),u(d,{disabled:!e(g).length,onClick:t[1]||(t[1]=n=>S(e(g)))},{default:a(()=>[s(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[C,["store_product_unit.store_product_unit/delete"]]]),$("div",ce,[o(j,{data:e(_).lists,onSelectionChange:L},{default:a(()=>[o(m,{type:"selection",width:"55"}),o(m,{label:"ID",prop:"id",width:"55"}),o(m,{label:"\u5355\u4F4D\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),o(m,{label:"\u5355\u4F4D\u7F16\u53F7",prop:"number","show-overflow-tooltip":""}),o(m,{label:"\u662F\u5426\u6563\u88C5",prop:"is_bulk","show-overflow-tooltip":""},{default:a(({row:n})=>[s(ne(n.is_bulk?"\u662F":"\u5426"),1)]),_:1}),o(m,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data","show-overflow-tooltip":""}),o(m,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:a(({row:n})=>[p((i(),u(d,{type:"primary",link:"",onClick:V=>N(n)},{default:a(()=>[s(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[C,["store_product_unit.store_product_unit/edit"]]]),p((i(),u(d,{type:"danger",link:"",onClick:V=>S(n.id)},{default:a(()=>[s(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[C,["store_product_unit.store_product_unit/delete"]]]),p((i(),u(d,{link:"",onClick:V=>K(n.id)},{default:a(()=>[s(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[C,["store_product_unit.store_product_unit/edit"]]])]),_:1})]),_:1},8,["data"])]),$("div",_e,[o(A,{modelValue:e(_),"onUpdate:modelValue":t[2]||(t[2]=n=>le(_)?_.value=n:null),onChange:e(f)},null,8,["modelValue","onChange"])])]),_:1})),[[M,e(_).loading]]),e(b)?(i(),u(pe,{key:0,ref_key:"editRef",ref:c,"dict-data":e(h),onSuccess:e(f),onClose:t[3]||(t[3]=n=>b.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0),e(D)?(i(),u(me,{key:1,ref_key:"detailRef",ref:w,"dict-data":e(h),onSuccess:e(f),onClose:t[4]||(t[4]=n=>D.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0)])}}});export{ot as default}; diff --git a/src/views/finance/store_finance_flow/details.vue b/src/views/finance/store_finance_flow/details.vue index 13dac87f..c8168751 100644 --- a/src/views/finance/store_finance_flow/details.vue +++ b/src/views/finance/store_finance_flow/details.vue @@ -10,10 +10,10 @@ {{ row.number }} - - + + - + @@ -43,18 +43,18 @@ const mode = ref('add') // 表单数据 const formData = ref({ - id: '' + order_id: '' }) // 获取详情 const setFormData = async (data: Record) => { formData.value = { ...data }; - queryParams.pid = data.id; + queryParams.order_id = data.order_id; getLists(); } const getDetail = async (row: Record) => { - formData.value.id = row.id; + formData.value.order_id = row.order_id; // const data = await apiStoreOrderDetail({ // id: row.id // }) @@ -62,7 +62,7 @@ const getDetail = async (row: Record) => { } const queryParams = reactive({ - pid: '' + order_id: '' }) // 分页相关 const { pager, getLists, resetParams, resetPage } = usePaging({ diff --git a/src/views/finance/store_finance_flow/index.vue b/src/views/finance/store_finance_flow/index.vue index a9c38024..24347af6 100644 --- a/src/views/finance/store_finance_flow/index.vue +++ b/src/views/finance/store_finance_flow/index.vue @@ -54,13 +54,13 @@ - + @@ -95,7 +95,9 @@ const queryParams = reactive({ store_name: '', store_id: '', user_id: '', - create_time: '' + create_time: '', + financial_type: 1, + financial_pm: 1 }) // 选中数据 diff --git a/src/views/store/store_branch_product/index.vue b/src/views/store/store_branch_product/index.vue index 6ce2bd8d..6caf7f04 100644 --- a/src/views/store/store_branch_product/index.vue +++ b/src/views/store/store_branch_product/index.vue @@ -59,8 +59,8 @@ diff --git a/src/views/store/store_category/index.vue b/src/views/store/store_category/index.vue index 743279dd..ae4a5468 100644 --- a/src/views/store/store_category/index.vue +++ b/src/views/store/store_category/index.vue @@ -21,13 +21,13 @@ - + 新增 - 删除 @@ -46,11 +46,11 @@