ERP-admin/build/admin/assets/details.6bd17d9e.js

2 lines
6.9 KiB
JavaScript
Raw Normal View History

2024-05-09 15:53:22 +08:00
import{G as k,H as v,a1 as R,C as I,D as w,J as T,K as M,F as S}from"./element-plus.73c9e9a6.js";import{P as Y}from"./index.fa58e261.js";import{a as H}from"./cashierclass.66ccfa0f.js";import{v as L}from"./index.bd5cd373.js";import{d as y,s as B,r as P,Z as G,o as m,c as i,U as a,L as t,u as o,T as f,a9 as c,K as D,R as K,S as N}from"./@vue.663bc523.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.4b5afb22.js";import"./@element-plus.8b1118e2.js";import"./dayjs.3f38f327.js";import"./axios.18becb61.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.403d4198.js";import"./vue-router.58fac957.js";import"./pinia.068f0ef2.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.e6143ca6.js";import"./color.d79aa98b.js";import"./clone.a63396d9.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.48cb4095.js";import"./vue-clipboard3.6d09ff6e.js";import"./clipboard.564aa4b9.js";import"./echarts.8485a033.js";import"./zrender.b2f30540.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.85e4ac8b.js";const O={class:"edit-popup"},h=y({name:"cashierclassDETAILS"}),gu=y({...h,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(s,{expose:V,emit:j}){const _=B(),F=B();P("add");const e=G({id:"",merchant:"",store_id:"",customer:"",time:"",number:"",total:"",deduction_price:"",actual:"",money:"",pay_type:"",data:"",type:"",auditinguser:"",auditingtime:"",more:""}),E=async p=>{for(const u in e)p[u]!=null&&p[u]!=null&&(e[u]=p[u]);e.auditingtime=L(e.auditingtime,"yyyy-mm-dd hh:MM:ss")};return V({open:()=>{var p;(p=F.value)==null||p.open()},setFormData:E,getDetail:async p=>{const u=await H({id:p.id});E(u)}}),(p,u)=>{const d=I,r=w,b=T,A=M,C=k,g=v,U=R,x=S;return m(),i("div",O,[a(Y,{ref_key:"popupRef",ref:F,title:"\u8BE6\u60C5",async:!0,width:"550px",cancelButtonText:!1,confirmButtonText:!1},{default:t(()=>[a(x,{ref_key:"formRef",ref:_,model:o(e),"label-width":"90px",rules:p.formRules},{default:t(()=>[a(r,{label:"\u6240\u5C5E\u5546\u6237",prop:"merchant"},{default:t(()=>[a(d,{modelValue:o(e).merchant,"onUpdate:modelValue":u[0]||(u[0]=l=>o(e).merchant=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5546\u6237",readonly:!0},null,8,["modelValue"])]),_:1}),a(r,{label:"\u5F52\u5C5E\u95E8\u5E97",prop:"store_id"},{default:t(()=>[a(d,{modelValue:o(e).store_id,"onUpdate:modelValue":u[1]||(u[1]=l=>o(e).store_id=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5F52\u5C5E\u95E8\u5E97",readonly:!0},null,8,["modelValue"])]),_:1}),a(r,{label:"\u5BA2\u6237ID",prop:"customer"},{default:t(()=>[a(d,{modelValue:o(e).customer,"onUpdate:modelValue":u[2]||(u[2]=l=>o(e).customer=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237ID",readonly:!0},null,8,["modelValue"])]),_:1}),a(r,{label:"\u5355\u636E\u65F6\u95F4",prop:"time"},{default:t(()=>[a(d,{modelValue:o(e).time,"onUpdate:modelValue":u[3]||(u[3]=l=>o(e).time=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u636E\u65F6\u95F4",readonly:!0},null,8,["modelValue"])]),_:1}),a(r,{label:"\u5355\u636E\u7F16\u53F7",prop:"number"},{default:t(()=>[a(d,{modelValue:o(e).number,"onUpdate:modelValue":u[4]||(u[4]=l=>o(e).number=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u636E\u7F16\u53F7",readonly:!0},null,8,["modelValue"])]),_:1}),a(r,{label:"\u5355\u636E\u91D1\u989D",prop:"total"},{default:t(()=>[a(d,{modelValue:o(e).total,"onUpdate:modelValue":u[5]||(u[5]=l=>o(e).total=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u636E\u91D1\u989D",readonly:!0},null,8,["modelValue"])]),_:1}),a(r,{label:"\u62B5\u6263\u91D1\u989D",prop:"deduction_price"},{default:t(()=>[a(d,{modelValue:o(e).deduction_price,"onUpdate:modelValue":u[6]||(u[6]=l=>o(e).deduction_price=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u62B5\u6263\u91D1\u989D",readonly:!0},null,8,["modelValue"])]),_:1}),a(r,{label:"\u5B9E\u9645\u91D1\u989D",prop:"actual"},{default:t(()=>[a(d,{modelValue:o(e).actual,"onUpdate