engineering/public/admin/assets/index.ffbb502f.js
2024-03-04 15:04:21 +08:00

2 lines
6.5 KiB
JavaScript

import{G as W,H as J,y as K,I as X,w as Y,D as Z,C as ee,L as oe,M as te,N as le}from"./element-plus.258bf9e7.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{a as ue}from"./index.ec401e3b.js";import{u as se}from"./usePaging.f6660143.js";import{u as ie}from"./useDictOptions.c644f395.js";import{a as re,b as ne}from"./quotation.ef3461ed.js";import{b as pe}from"./custom.13e75d58.js";import"./lodash.1d82ee7c.js";import{_ as me}from"./edit.vue_vue_type_script_setup_true_name_quotationEdit_lang.612d5c29.js";import de from"./detail.36dd2dda.js";import{d as $,s as A,r as v,a0 as ce,ai as _e,o as s,c as D,V as e,M as l,O as y,u as i,L as n,S as L,W as q,a8 as P,a as R,k as fe,T as w,n as S}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_script_setup_true_lang.291052e3.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./index.9492d03b.js";import"./index.vue_vue_type_script_setup_true_lang.56061058.js";import"./material_list.9f618924.js";/* empty css */import"./department.1c914e1a.js";import"./organization.f0387125.js";import"./quotation_detail.1775ae95.js";const ve=w(" \u67E5\u8BE2"),we=w("\u91CD\u7F6E"),be=w(" \u65B0\u589E "),he={class:"mt-4"},Be=w(" \u8BE6\u60C5 "),Ce={class:"flex justify-end mt-4"},Ee=$({name:"quotationLists"}),Co=$({...Ee,setup(De){const b=A(),F=A(),h=v(!1),B=v(!1),V=v([]),u=ce({custom_id:"",code:"",create_user:"",invoice_type:""}),N=v([]),T=r=>{N.value=r.map(({id:t})=>t)},{dictData:C}=ie("invoice_type,tax_rate"),{pager:m,getLists:E,resetParams:U,resetPage:I}=se({fetchFun:re,params:u}),M=async()=>{var r;h.value=!0,await S(),(r=F.value)==null||r.open("add")},O=async r=>{var p,d;let t=await ne({id:r.id});B.value=!0,await S(),(p=b.value)==null||p.open(),(d=b.value)==null||d.setFormData(t)};return(async()=>{let r=await pe({page_size:9999,page_no:1});V.value=r.lists})(),E(),(r,t)=>{const p=W,d=J,c=K,g=X,_=Y,Q=Z,k=ee,j=ue,a=oe,z=te,G=ae,x=_e("perms"),H=le;return s(),D("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(Q,{class:"mb-[-16px]",model:u,"label-width":"auto",inline:""},{default:l(()=>[e(c,{label:"\u5BA2\u6237",prop:"custom_id"},{default:l(()=>[e(d,{class:"w-[280px]",modelValue:u.custom_id,"onUpdate:modelValue":t[0]||(t[0]=o=>u.custom_id=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237"},{default:l(()=>[(s(!0),D(q,null,P(V.value,(o,f)=>(s(),n(p,{key:f,label:o.name,value:parseInt(o.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(c,{label:"\u7F16\u7801",prop:"code"},{default:l(()=>[e(g,{class:"w-[280px]",modelValue:u.code,"onUpdate:modelValue":t[1]||(t[1]=o=>u.code=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7F16\u7801"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u5236\u5355\u4EBA",prop:"create_user"},{default:l(()=>[e(g,{class:"w-[280px]",modelValue:u.create_user,"onUpdate:modelValue":t[2]||(t[2]=o=>u.create_user=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5236\u5355\u4EBA"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u53D1\u7968\u7C7B\u578B",prop:"create_user"},{default:l(()=>[e(d,{class:"w-[280px]",modelValue:u.invoice_type,"onUpdate:modelValue":t[3]||(t[3]=o=>u.invoice_type=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u53D1\u7968\u7C7B\u578B"},{default:l(()=>[e(p,{label:"\u5168\u90E8",value:""}),(s(!0),D(q,null,P(i(C).invoice_type,(o,f)=>(s(),n(p,{key:f,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(c,null,{default:l(()=>[e(_,{type:"primary",onClick:i(I)},{default:l(()=>[ve]),_:1},8,["onClick"]),e(_,{onClick:i(U)},{default:l(()=>[we]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),y((s(),n(k,{class:"!border-none",shadow:"never"},{default:l(()=>[y((s(),n(_,{type:"primary",onClick:M},{icon:l(()=>[e(j,{name:"el-icon-Plus"})]),default:l(()=>[be]),_:1})),[[x,["quotation.quotation/add"]]]),R("div",he,[e(z,{data:i(m).lists,onSelectionChange:T},{default:l(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u62A5\u4EF7\u5355\u53F7",prop:"code","show-overflow-tooltip":""}),e(a,{label:"\u5BA2\u6237",prop:"custom_name","show-overflow-tooltip":""}),e(a,{label:"\u62A5\u4EF7\u65E5\u671F",prop:"quotation_date","show-overflow-tooltip":""}),e(a,{label:"\u8054\u7CFB\u4EBA",prop:"custom_master_name","show-overflow-tooltip":""}),e(a,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"custom_master_phone","show-overflow-tooltip":""}),e(a,{label:"\u5236\u5355\u4EBA",prop:"create_user","show-overflow-tooltip":""}),e(a,{label:"\u53D1\u7968\u7C7B\u578B",prop:"invoice_type_text","show-overflow-tooltip":""}),e(a,{label:"\u542B\u7A0E\u91D1\u989D",prop:"amount_including_tax","show-overflow-tooltip":""}),e(a,{label:"\u8FD0\u8D39",prop:"freight","show-overflow-tooltip":""}),e(a,{label:"\u5176\u4ED6\u8D39\u7528",prop:"other_fee","show-overflow-tooltip":""}),e(a,{label:"\u5408\u8BA1\u91D1\u989D",prop:"total_amount","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:l(({row:o})=>[y((s(),n(_,{link:"",onClick:f=>O(o)},{default:l(()=>[Be]),_:2},1032,["onClick"])),[[x,["quotation.quotation/detail"]]])]),_:1})]),_:1},8,["data"])]),R("div",Ce,[e(G,{modelValue:i(m),"onUpdate:modelValue":t[4]||(t[4]=o=>fe(m)?m.value=o:null),onChange:i(E)},null,8,["modelValue","onChange"])])]),_:1})),[[H,i(m).loading]]),B.value?(s(),n(de,{key:0,ref_key:"detailRef",ref:b,"dict-data":i(C),onClose:t[5]||(t[5]=o=>B.value=!1)},null,8,["dict-data"])):L("",!0),h.value?(s(),n(me,{key:1,ref_key:"editRef",ref:F,"dict-data":i(C),onSuccess:i(E),onClose:t[6]||(t[6]=o=>h.value=!1)},null,8,["dict-data","onSuccess"])):L("",!0)])}}});export{Co as default};