2 lines
7.1 KiB
JavaScript
2 lines
7.1 KiB
JavaScript
import{G as J,H as K,y as X,I as Y,w as Z,D as ee,C as oe,L as te,M as ae,N as le}from"./element-plus.e49c119c.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.8c9f8a22.js";import{f as ie,a as se}from"./index.0aba8d1b.js";import{u as ne}from"./usePaging.f6660143.js";import{u as re}from"./useDictOptions.f0a47c79.js";import{d as pe,e as me,a as de}from"./quotation.6951f718.js";import{b as ce}from"./custom.ec06ae29.js";import"./lodash.86334a69.js";import{_ as _e}from"./edit.vue_vue_type_script_setup_true_name_quotationEdit_lang.03131d48.js";import{_ as fe}from"./detail.vue_vue_type_style_index_0_lang.672062df.js";import{d as T,s as L,r as C,a0 as ve,ai as we,o as u,c as k,V as e,M as a,O as w,u as n,L as r,S as $,W as R,a8 as S,a as N,k as be,T as d,n as P}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.5571e62a.js";import"./axios.9ce976cc.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.156d1593.js";import"./color.4188bfef.js";import"./clone.a0efef30.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ca37accd.js";import"./ms.a9ae1d6d.js";import"./nprogress.30953505.js";import"./vue-clipboard3.4e4a29c9.js";import"./clipboard.1a812829.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_script_setup_true_lang.0c8eba6a.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./index.4e8ca2f8.js";import"./index.vue_vue_type_script_setup_true_lang.d375a43c.js";import"./material_list.28fce1a9.js";import"./index.0a8ce033.js";import"./no_perms.2c994bf8.js";import"./common.a8ade4f4.js";/* empty css */import"./department.5fe286cf.js";import"./organization.4fe9e5f3.js";import"./quotation_detail.312f7238.js";const he=d(" \u67E5\u8BE2"),Ce=d("\u91CD\u7F6E"),Be=d(" \u65B0\u589E "),Ee=d(" \u5220\u9664 "),De={class:"mt-4"},Fe=d(" \u5220\u9664 "),ye=d(" \u8BE6\u60C5 "),ke={class:"flex mt-4 justify-end"},ge=T({name:"quotationLists"}),xo=T({...ge,setup(Ve){const B=L(),g=L(),E=C(!1),D=C(!1),V=C([]),s=ve({custom_id:"",code:"",create_user:"",invoice_type:""}),F=C([]),U=i=>{F.value=i.map(({id:t})=>t)},{dictData:y}=re("invoice_type,tax_rate"),{pager:c,getLists:b,resetParams:I,resetPage:Q}=ne({fetchFun:pe,params:s}),M=async()=>{var i;E.value=!0,await P(),(i=g.value)==null||i.open("add")},x=async i=>{await ie.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await me({id:i}),b()},O=async i=>{var p,_;let t=await de({id:i.id});D.value=!0,await P(),(p=B.value)==null||p.open(),(_=B.value)==null||_.setFormData(t)};return(async()=>{let i=await ce({page_size:9999,page_no:1});V.value=i.lists})(),b(),(i,t)=>{const p=J,_=K,f=X,A=Y,m=Z,j=ee,q=oe,z=se,l=te,G=ae,H=ue,h=we("perms"),W=le;return u(),k("div",null,[e(q,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(j,{class:"mb-[-16px]",model:s,inline:""},{default:a(()=>[e(f,{label:"\u5BA2\u6237",prop:"custom_id"},{default:a(()=>[e(_,{class:"flex-1",modelValue:s.custom_id,"onUpdate:modelValue":t[0]||(t[0]=o=>s.custom_id=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237"},{default:a(()=>[(u(!0),k(R,null,S(V.value,(o,v)=>(u(),r(p,{key:v,label:o.name,value:parseInt(o.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(f,{label:"\u7F16\u7801",prop:"code"},{default:a(()=>[e(A,{class:"w-[280px]",modelValue:s.code,"onUpdate:modelValue":t[1]||(t[1]=o=>s.code=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7F16\u7801"},null,8,["modelValue"])]),_:1}),e(f,{label:"\u5236\u5355\u4EBA",prop:"create_user"},{default:a(()=>[e(A,{class:"w-[280px]",modelValue:s.create_user,"onUpdate:modelValue":t[2]||(t[2]=o=>s.create_user=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5236\u5355\u4EBA"},null,8,["modelValue"])]),_:1}),e(f,{label:"\u53D1\u7968\u7C7B\u578B",prop:"create_user"},{default:a(()=>[e(_,{class:"w-[280px]",modelValue:s.invoice_type,"onUpdate:modelValue":t[3]||(t[3]=o=>s.invoice_type=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u53D1\u7968\u7C7B\u578B"},{default:a(()=>[e(p,{label:"\u5168\u90E8",value:""}),(u(!0),k(R,null,S(n(y).invoice_type,(o,v)=>(u(),r(p,{key:v,label:o.name,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(f,null,{default:a(()=>[e(m,{type:"primary",onClick:n(Q)},{default:a(()=>[he]),_:1},8,["onClick"]),e(m,{onClick:n(I)},{default:a(()=>[Ce]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),w((u(),r(q,{class:"!border-none",shadow:"never"},{default:a(()=>[w((u(),r(m,{type:"primary",onClick:M},{icon:a(()=>[e(z,{name:"el-icon-Plus"})]),default:a(()=>[Be]),_:1})),[[h,["quotation.quotation/add"]]]),w((u(),r(m,{disabled:!F.value.length,onClick:t[4]||(t[4]=o=>x(F.value))},{default:a(()=>[Ee]),_:1},8,["disabled"])),[[h,["quotation.quotation/delete"]]]),N("div",De,[e(G,{data:n(c).lists,onSelectionChange:U},{default:a(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(l,{label:"\u62A5\u4EF7\u5355\u53F7",prop:"code","show-overflow-tooltip":""}),e(l,{label:"\u5BA2\u6237",prop:"custom_name","show-overflow-tooltip":""}),e(l,{label:"\u62A5\u4EF7\u65E5\u671F",prop:"quotation_date","show-overflow-tooltip":""}),e(l,{label:"\u8054\u7CFB\u4EBA",prop:"custom_master_name","show-overflow-tooltip":""}),e(l,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"custom_master_phone","show-overflow-tooltip":""}),e(l,{label:"\u5236\u5355\u4EBA",prop:"create_user","show-overflow-tooltip":""}),e(l,{label:"\u53D1\u7968\u7C7B\u578B",prop:"invoice_type_text","show-overflow-tooltip":""}),e(l,{label:"\u542B\u7A0E\u91D1\u989D",prop:"amount_including_tax","show-overflow-tooltip":""}),e(l,{label:"\u8FD0\u8D39",prop:"freight","show-overflow-tooltip":""}),e(l,{label:"\u5176\u4ED6\u8D39\u7528",prop:"other_fee","show-overflow-tooltip":""}),e(l,{label:"\u5408\u8BA1\u91D1\u989D",prop:"total_amount","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:a(({row:o})=>[w((u(),r(m,{type:"danger",link:"",onClick:v=>x(o.id)},{default:a(()=>[Fe]),_:2},1032,["onClick"])),[[h,["quotation.quotation/delete"]]]),w((u(),r(m,{link:"",onClick:v=>O(o)},{default:a(()=>[ye]),_:2},1032,["onClick"])),[[h,["quotation.quotation/detail"]]])]),_:1})]),_:1},8,["data"])]),N("div",ke,[e(H,{modelValue:n(c),"onUpdate:modelValue":t[5]||(t[5]=o=>be(c)?c.value=o:null),onChange:n(b)},null,8,["modelValue","onChange"])])]),_:1})),[[W,n(c).loading]]),D.value?(u(),r(fe,{key:0,ref_key:"detailRef",ref:B,"dict-data":n(y),onClose:t[6]||(t[6]=o=>D.value=!1)},null,8,["dict-data"])):$("",!0),E.value?(u(),r(_e,{key:1,ref_key:"editRef",ref:g,"dict-data":n(y),onSuccess:n(b),onClose:t[7]||(t[7]=o=>E.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0)])}}});export{xo as default};
|