approval-pending.aab6cd9b.js 4.5 KB

1
  1. import{_ as C,d as k,ag as A,Z as i,w as x,r as n,o as _,G as y,C as t,l as e,u as F,c as w,a as h,M as q,aR as N}from"./index.42bf163d.js";const U={key:0,"w-400px":""},R=k({__name:"approval-pending",props:{isNormal:{type:Boolean,required:!1}},emits:["changeStatus"],setup(c,{emit:f}){const g=c,v=A(()=>u.return_type==="2"),u=i({return_type:"",return_reason:"",remark:"",status:"",invCode:"",invNum:"",open_date:"",checkCode:"",subtotal_fee:""}),B=i({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\u7801"}],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:g.isNormal,trigger:"change",message:"\u8BF7\u8F93\u5165\u6821\u9A8C\u7801"}]}),s=x(null),E=()=>{s.value.validate(m=>m&&f("changeStatus",u))};return(m,l)=>{const r=n("el-option"),p=n("el-select"),o=n("el-form-item"),d=n("el-input"),V=n("el-date-picker"),b=n("el-input-number"),D=n("el-button");return _(),y(F(N),{ref_key:"formRef",ref:s,"label-width":"100px",size:"small",model:u,rules:B},{default:t(()=>[e(o,{label:"\u5BA1\u6279\u72B6\u6001",prop:"status","w-400px":""},{default:t(()=>[e(p,{"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(r,{label:"\u901A\u8FC7",value:"1"}),e(r,{label:"\u4E0D\u901A\u8FC7",value:"3"})]),_:1},8,["modelValue"])]),_:1}),e(o,{label:"\u9000\u7968\u65B9\u5F0F",prop:"return_type"},{default:t(()=>[e(p,{"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(r,{value:"1",label:"\u91D1\u7A0E"}),e(r,{value:"2",label:"\u7EBF\u4E0B"})]),_:1},8,["modelValue"])]),_:1}),e(o,{label:"\u7EA2\u51B2\u539F\u56E0",prop:"return_reason",placeholder:"\u8BF7\u9009\u62E9\u7EA2\u51B2\u539F\u56E0"},{default:t(()=>[e(p,{"w-300px":"",modelValue:u.return_reason,"onUpdate:modelValue":l[2]||(l[2]=a=>u.return_reason=a)},{default:t(()=>[e(r,{label:"\u9500\u8D27\u9000\u56DE",value:"1"}),e(r,{label:"\u5F00\u7968\u6709\u8BEF",value:"2"}),e(r,{label:"\u670D\u52A1\u7EC8\u6B62",value:"3"}),e(r,{label:"\u9500\u552E\u6298\u8BA9",value:"4"})]),_:1},8,["modelValue"])]),_:1}),F(v)?(_(),w("div",U,[e(o,{label:"\u53D1\u7968\u7F16\u7801",prop:"invCode",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u7F16\u7801"},{default:t(()=>[e(d,{modelValue:u.invCode,"onUpdate:modelValue":l[3]||(l[3]=a=>u.invCode=a)},null,8,["modelValue"])]),_:1}),e(o,{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(o,{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(o,{label:"\u5F00\u7968\u65E5\u671F",prop:"open_date",placeholder:"\u8BF7\u9009\u62E9\u5F00\u7968\u65E5\u671F"},{default:t(()=>[e(V,{"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(o,{label:"\u7A0E\u524D\u91D1\u989D",prop:"subtotal_fee",placeholder:"\u8BF7\u8F93\u5165\u7A0E\u524D\u91D1\u989D"},{default:t(()=>[e(b,{modelValue:u.subtotal_fee,"onUpdate:modelValue":l[7]||(l[7]=a=>u.subtotal_fee=a)},null,8,["modelValue"])]),_:1})])):h("v-if",!0),e(o,{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(o,{"w-full":"",flex:"","justify-end":""},{default:t(()=>[e(D,{type:"primary",onClick:E},{default:t(()=>[q("\u4FDD\u5B58")]),_:1})]),_:1})]),_:1},8,["model","rules"])}}});var I=C(R,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/returnTicket/components/approval-process/approval-pending.vue"]]);export{I as default};