1 |
- import{_ as q,d as w,af as N,a7 as F,E as v,a9 as B,x as s,o as c,N as U,K as t,y as e,c as E,u as V,a as b,L as M,aK as P,W as R}from"./index.743f0c80.js";const T={key:0,"w-400px":""},Y=R("\u4FDD\u5B58"),I=w({__name:"approval-pending",props:{isNormal:{type:Boolean,required:!1},isJs:{type:Boolean,required:!1},isOutMonth:{type:String,required:!1},invType:{type:String,required:!1}},emits:["approval"],setup(f,{emit:D}){const p=f,C=N(()=>u.return_type==="2"),u=F({return_type:"2",return_reason:"",remark:"",status:"1",invCode:"",invNum:"",open_date:"",checkCode:"",subtotal_fee:""}),i=F({return_type:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u9000\u7968\u65B9\u5F0F"}],return_reason:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u7EA2\u51B2\u539F\u56E0"}],status:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001"}],remark:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u5907\u6CE8"}],invCode:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u53D1\u7968\u7F16\u53F7"}],invNum:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u53D1\u7968\u53F7\u7801"}],open_date:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u5F00\u7968\u65E5\u671F"}],subtotal_fee:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u7A0E\u524D\u91D1\u989D"}],checkCode:[{required:p.isNormal,trigger:"change",message:"\u8BF7\u8F93\u5165\u6821\u9A8C\u7801"}]}),k=F({status:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001"}],remark:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u5907\u6CE8"}]}),g=v(null),m=v(!1),y=()=>{g.value.validate(n=>n&&D("approval",u,m))};return B(()=>u.return_type=p.isJs?"1":"2"),B(()=>{const{invType:n,isOutMonth:l}=p;m.value=l&&(n==="normal"||n==="special"),i.remark[0].required=u.status==="3",i.checkCode[0].required=n==="special_electronic"||n==="electronic"}),(n,l)=>{const o=s("el-option"),_=s("el-select"),r=s("el-form-item"),d=s("el-input"),A=s("el-date-picker"),h=s("el-input-number"),x=s("el-button");return c(),U(V(P),{ref_key:"formRef",ref:g,"label-width":"100px",size:"small",model:u,rules:u.status==="1"?i:k},{default:t(()=>[e(r,{label:"\u5BA1\u6279\u72B6\u6001",prop:"status","w-400px":""},{default:t(()=>[e(_,{"w-400px":"",modelValue:u.status,"onUpdate:modelValue":l[0]||(l[0]=a=>u.status=a),placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6279\u72B6\u6001"},{default:t(()=>[e(o,{label:"\u901A\u8FC7",value:"1"}),e(o,{label:"\u4E0D\u901A\u8FC7",value:"3"})]),_:1},8,["modelValue"])]),_:1}),u.status!=="3"&&!m.value?(c(),E(M,{key:0},[e(r,{label:"\u9000\u7968\u65B9\u5F0F",prop:"return_type"},{default:t(()=>[e(_,{"w-300px":"",modelValue:u.return_type,"onUpdate:modelValue":l[1]||(l[1]=a=>u.return_type=a),placeholder:"\u8BF7\u9009\u62E9\u9000\u7968\u65B9\u5F0F"},{default:t(()=>[e(o,{disabled:!f.isJs,value:"1",label:"\u91D1\u7A0E"},null,8,["disabled"]),e(o,{value:"2",label:"\u7EBF\u4E0B"})]),_:1},8,["modelValue"])]),_:1}),e(r,{label:"\u7EA2\u51B2\u539F\u56E0",prop:"return_reason",placeholder:"\u8BF7\u9009\u62E9\u7EA2\u51B2\u539F\u56E0"},{default:t(()=>[e(_,{"w-300px":"",modelValue:u.return_reason,"onUpdate:modelValue":l[2]||(l[2]=a=>u.return_reason=a)},{default:t(()=>[e(o,{label:"\u9500\u8D27\u9000\u56DE",value:"1"}),e(o,{label:"\u5F00\u7968\u6709\u8BEF",value:"2"}),e(o,{label:"\u670D\u52A1\u7EC8\u6B62",value:"3"}),e(o,{label:"\u9500\u552E\u6298\u8BA9",value:"4"})]),_:1},8,["modelValue"])]),_:1}),V(C)?(c(),E("div",T,[e(r,{label:"\u53D1\u7968\u7F16\u53F7",prop:"invCode",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u7F16\u53F7"},{default:t(()=>[e(d,{modelValue:u.invCode,"onUpdate:modelValue":l[3]||(l[3]=a=>u.invCode=a)},null,8,["modelValue"])]),_:1}),e(r,{label:"\u53D1\u7968\u53F7\u7801",prop:"invNum",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u53F7\u7801"},{default:t(()=>[e(d,{modelValue:u.invNum,"onUpdate:modelValue":l[4]||(l[4]=a=>u.invNum=a)},null,8,["modelValue"])]),_:1}),e(r,{label:"\u6821\u9A8C\u7801",prop:"checkCode",placeholder:"\u8BF7\u9009\u62E9\u8F93\u5165\u6821\u9A8C\u7801"},{default:t(()=>[e(d,{modelValue:u.checkCode,"onUpdate:modelValue":l[5]||(l[5]=a=>u.checkCode=a)},null,8,["modelValue"])]),_:1}),e(r,{label:"\u5F00\u7968\u65E5\u671F",prop:"open_date",placeholder:"\u8BF7\u9009\u62E9\u5F00\u7968\u65E5\u671F"},{default:t(()=>[e(A,{"w-300px":"",modelValue:u.open_date,"onUpdate:modelValue":l[6]||(l[6]=a=>u.open_date=a),"value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u7A0E\u524D\u91D1\u989D",prop:"subtotal_fee",placeholder:"\u8BF7\u8F93\u5165\u7A0E\u524D\u91D1\u989D"},{default:t(()=>[e(h,{modelValue:u.subtotal_fee,"onUpdate:modelValue":l[7]||(l[7]=a=>u.subtotal_fee=a),max:0},null,8,["modelValue"])]),_:1})])):b("v-if",!0)],64)):b("v-if",!0),e(r,{label:"\u5907\u6CE8",prop:"remark","w-400px":""},{default:t(()=>[e(d,{type:"textarea",modelValue:u.remark,"onUpdate:modelValue":l[8]||(l[8]=a=>u.remark=a)},null,8,["modelValue"])]),_:1}),e(r,{"w-full":"",flex:"","justify-end":""},{default:t(()=>[e(x,{type:"primary",onClick:y},{default:t(()=>[Y]),_:1})]),_:1})]),_:1},8,["model","rules"])}}});var S=q(I,[["__file","D:/work/accout-vue3-ui/src/views/InvoiceSales/returnTicket/components/approval-pending.vue"]]);export{S as default};
|