2 lines
6.9 KiB
JavaScript
2 lines
6.9 KiB
JavaScript
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:modelValue":u[7]||(u[7]=l=>o(e).actual=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5B9E\u9645\u91D1\u989D",readonly:!0},null,8,["modelValue"])]),_:1}),a(r,{label:"\u5B9E\u6536\u91D1\u989D",prop:"money"},{default:t(()=>[a(d,{modelValue:o(e).money,"onUpdate:modelValue":u[8]||(u[8]=l=>o(e).money=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5B9E\u6536\u91D1\u989D",readonly:!0},null,8,["modelValue"])]),_:1}),a(r,{label:"\u652F\u4ED8\u65B9\u5F0F 0\u4F59\u989D 1\u5FAE\u4FE1 2\u5C0F\u7A0B\u5E8F 3 h5 4\u652F\u4ED8\u5B9D 5 \u652F\u4ED8\u5B9D\u626B\u7801 6 \u5FAE\u4FE1\u626B\u7801 8\u5148\u8D27\u540E\u6B3E 10\u5BF9\u516C\u8F6C\u8D26",prop:"pay_type"},{default:t(()=>[a(A,{class:"flex-1",modelValue:o(e).pay_type,"onUpdate:modelValue":u[9]||(u[9]=l=>o(e).pay_type=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u652F\u4ED8\u65B9\u5F0F 0\u4F59\u989D 1\u5FAE\u4FE1 2\u5C0F\u7A0B\u5E8F 3 h5 4\u652F\u4ED8\u5B9D 5 \u652F\u4ED8\u5B9D\u626B\u7801 6 \u5FAE\u4FE1\u626B\u7801 8\u5148\u8D27\u540E\u6B3E 10\u5BF9\u516C\u8F6C\u8D26",disabled:!0},{default:t(()=>[(m(!0),i(f,null,c(s.dictData.pay_type,(l,n)=>(m(),D(b,{key:n,label:l.name,value:parseInt(l.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(r,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data"},{default:t(()=>[a(d,{modelValue:o(e).data,"onUpdate:modelValue":u[10]||(u[10]=l=>o(e).data=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u4FE1\u606F",readonly:!0},null,8,["modelValue"])]),_:1}),a(r,{label:"\u5BA1\u6838\u72B6\u6001[0:\u672A\u5BA1\u6838|1:\u5DF2\u5BA1\u6838]",prop:"type"},{default:t(()=>[a(g,{modelValue:o(e).type,"onUpdate:modelValue":u[11]||(u[11]=l=>o(e).type=l),placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001[0:\u672A\u5BA1\u6838|1:\u5DF2\u5BA1\u6838]",disabled:!0},{default:t(()=>[(m(!0),i(f,null,c(s.dictData.auditing_type,(l,n)=>(m(),D(C,{key:n,label:parseInt(l.value)},{default:t(()=>[K(N(l.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(r,{label:"\u5BA1\u6838\u4EBA",prop:"auditinguser"},{default:t(()=>[a(d,{modelValue:o(e).auditinguser,"onUpdate:modelValue":u[12]||(u[12]=l=>o(e).auditinguser=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6838\u4EBA",readonly:!0},null,8,["modelValue"])]),_:1}),a(r,{label:"\u5BA1\u6838\u65F6\u95F4",prop:"auditingtime"},{default:t(()=>[a(U,{readonly:!0,class:"flex-1 !flex",modelValue:o(e).auditingtime,"onUpdate:modelValue":u[13]||(u[13]=l=>o(e).auditingtime=l),clearable:"",type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"\u9009\u62E9\u5BA1\u6838\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),a(r,{label:"\u6269\u5C55\u4FE1\u606F",prop:"more"},{default:t(()=>[a(d,{modelValue:o(e).more,"onUpdate:modelValue":u[14]||(u[14]=l=>o(e).more=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6269\u5C55\u4FE1\u606F",readonly:!0},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},512)])}}});export{gu as default};
|