智慧教务系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
8.8 KiB

import{d as E,v as D,l as B,r as h,h as P,c as F,e as a,w as s,a as f,t as u,u as e,i as b,k as l,J as O,m as z,M as R,E as $,D as L,G as N,H as j,K as A,O as M,P as G,Q as H,L as J}from"./index-f5d841af.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{_ as K,g as Q,d as q}from"./order-table-edit.vue_vue_type_style_index_0_lang-f5bdfd86.js";import{_ as W}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css *//* empty css */const X={class:"main-container"},Y={class:"flex justify-between items-center"},Z={class:"text-lg"},ee={class:"mt-[10px]"},ae={class:"mt-[16px] flex justify-end"},le=E({__name:"order_table",setup(te){const V=D().meta.title;let t=B({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{payment_id:"",order_status:"",payment_type:"",order_amount:"",course_id:"",class_id:"",staff_id:"",resource_id:"",after_sales_status:"",after_sales_reason:"",after_sales_time:"",payment_time:"",subscription_payment_time:""}});const y=h();h([]);const m=(i=1)=>{t.loading=!0,t.page=i,Q({page:t.page,limit:t.limit,...t.searchParam}).then(o=>{t.loading=!1,t.data=o.data.data,t.total=o.data.total}).catch(()=>{t.loading=!1})};m();const _=h(null),v=()=>{_.value.setFormData(),_.value.showDialog=!0},g=i=>{_.value.setFormData(i),_.value.showDialog=!0},T=i=>{R.confirm(l("orderTableDeleteTips"),l("warning"),{confirmButtonText:l("confirm"),cancelButtonText:l("cancel"),type:"warning"}).then(()=>{q(i).then(()=>{m()}).catch(()=>{})})},x=i=>{i&&(i.resetFields(),m())};return(i,o)=>{const c=$,p=L,d=N,I=j,w=A,n=M,S=G,k=H,C=J;return P(),F("div",X,[a(w,{class:"box-card !border-none",shadow:"never"},{default:s(()=>[f("div",Y,[f("span",Z,u(e(V)),1),a(c,{type:"primary",onClick:v},{default:s(()=>[b(u(e(l)("addOrderTable")),1)]),_:1})]),a(w,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:s(()=>[a(I,{inline:!0,model:e(t).searchParam,ref_key:"searchFormRef",ref:y},{default:s(()=>[a(d,{label:e(l)("paymentId"),prop:"payment_id"},{default:s(()=>[a(p,{modelValue:e(t).searchParam.payment_id,"onUpdate:modelValue":o[0]||(o[0]=r=>e(t).searchParam.payment_id=r),placeholder:e(l)("paymentIdPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(d,{label:e(l)("orderStatus"),prop:"order_status"},{default:s(()=>[a(p,{modelValue:e(t).searchParam.order_status,"onUpdate:modelValue":o[1]||(o[1]=r=>e(t).searchParam.order_status=r),placeholder:e(l)("orderStatusPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(d,{label:e(l)("paymentType"),prop:"payment_type"},{default:s(()=>[a(p,{modelValue:e(t).searchParam.payment_type,"onUpdate:modelValue":o[2]||(o[2]=r=>e(t).searchParam.payment_type=r),placeholder:e(l)("paymentTypePlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(d,{label:e(l)("orderAmount"),prop:"order_amount"},{default:s(()=>[a(p,{modelValue:e(t).searchParam.order_amount,"onUpdate:modelValue":o[3]||(o[3]=r=>e(t).searchParam.order_amount=r),placeholder:e(l)("orderAmountPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(d,{label:e(l)("courseId"),prop:"course_id"},{default:s(()=>[a(p,{modelValue:e(t).searchParam.course_id,"onUpdate:modelValue":o[4]||(o[4]=r=>e(t).searchParam.course_id=r),placeholder:e(l)("courseIdPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(d,{label:e(l)("classId"),prop:"class_id"},{default:s(()=>[a(p,{modelValue:e(t).searchParam.class_id,"onUpdate:modelValue":o[5]||(o[5]=r=>e(t).searchParam.class_id=r),placeholder:e(l)("classIdPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(d,{label:e(l)("staffId"),prop:"staff_id"},{default:s(()=>[a(p,{modelValue:e(t).searchParam.staff_id,"onUpdate:modelValue":o[6]||(o[6]=r=>e(t).searchParam.staff_id=r),placeholder:e(l)("staffIdPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(d,{label:e(l)("resourceId"),prop:"resource_id"},{default:s(()=>[a(p,{modelValue:e(t).searchParam.resource_id,"onUpdate:modelValue":o[7]||(o[7]=r=>e(t).searchParam.resource_id=r),placeholder:e(l)("resourceIdPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(d,{label:e(l)("afterSalesStatus"),prop:"after_sales_status"},{default:s(()=>[a(p,{modelValue:e(t).searchParam.after_sales_status,"onUpdate:modelValue":o[8]||(o[8]=r=>e(t).searchParam.after_sales_status=r),placeholder:e(l)("afterSalesStatusPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(d,{label:e(l)("afterSalesReason"),prop:"after_sales_reason"},{default:s(()=>[a(p,{modelValue:e(t).searchParam.after_sales_reason,"onUpdate:modelValue":o[9]||(o[9]=r=>e(t).searchParam.after_sales_reason=r),placeholder:e(l)("afterSalesReasonPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(d,{label:e(l)("afterSalesTime"),prop:"after_sales_time"},{default:s(()=>[a(p,{modelValue:e(t).searchParam.after_sales_time,"onUpdate:modelValue":o[10]||(o[10]=r=>e(t).searchParam.after_sales_time=r),placeholder:e(l)("afterSalesTimePlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(d,{label:e(l)("paymentTime"),prop:"payment_time"},{default:s(()=>[a(p,{modelValue:e(t).searchParam.payment_time,"onUpdate:modelValue":o[11]||(o[11]=r=>e(t).searchParam.payment_time=r),placeholder:e(l)("paymentTimePlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(d,{label:e(l)("subscriptionPaymentTime"),prop:"subscription_payment_time"},{default:s(()=>[a(p,{modelValue:e(t).searchParam.subscription_payment_time,"onUpdate:modelValue":o[12]||(o[12]=r=>e(t).searchParam.subscription_payment_time=r),placeholder:e(l)("subscriptionPaymentTimePlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(d,null,{default:s(()=>[a(c,{type:"primary",onClick:o[13]||(o[13]=r=>m())},{default:s(()=>[b(u(e(l)("search")),1)]),_:1}),a(c,{onClick:o[14]||(o[14]=r=>x(y.value))},{default:s(()=>[b(u(e(l)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),f("div",ee,[O((P(),z(S,{data:e(t).data,size:"large"},{empty:s(()=>[f("span",null,u(e(t).loading?"":e(l)("emptyData")),1)]),default:s(()=>[a(n,{prop:"payment_id",label:e(l)("paymentId"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(n,{prop:"order_status",label:e(l)("orderStatus"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(n,{prop:"payment_type",label:e(l)("paymentType"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(n,{prop:"order_amount",label:e(l)("orderAmount"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(n,{prop:"course_id",label:e(l)("courseId"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(n,{prop:"class_id",label:e(l)("classId"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(n,{prop:"staff_id",label:e(l)("staffId"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(n,{prop:"resource_id",label:e(l)("resourceId"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(n,{prop:"after_sales_status",label:e(l)("afterSalesStatus"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(n,{prop:"after_sales_reason",label:e(l)("afterSalesReason"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(n,{prop:"after_sales_time",label:e(l)("afterSalesTime"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(n,{prop:"payment_time",label:e(l)("paymentTime"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(n,{prop:"subscription_payment_time",label:e(l)("subscriptionPaymentTime"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),a(n,{label:e(l)("operation"),fixed:"right","min-width":"120"},{default:s(({row:r})=>[a(c,{type:"primary",link:"",onClick:U=>g(r)},{default:s(()=>[b(u(e(l)("edit")),1)]),_:2},1032,["onClick"]),a(c,{type:"primary",link:"",onClick:U=>T(r.id)},{default:s(()=>[b(u(e(l)("delete")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[C,e(t).loading]]),f("div",ae,[a(k,{"current-page":e(t).page,"onUpdate:current-page":o[15]||(o[15]=r=>e(t).page=r),"page-size":e(t).limit,"onUpdate:page-size":o[16]||(o[16]=r=>e(t).limit=r),layout:"total, sizes, prev, pager, next, jumper",total:e(t).total,onSizeChange:o[17]||(o[17]=r=>m()),onCurrentChange:m},null,8,["current-page","page-size","total"])])]),a(K,{ref_key:"editOrderTableDialog",ref:_,onComplete:m},null,512)]),_:1})])}}});const Ie=W(le,[["__scopeId","data-v-1d311f35"]]);export{Ie as default};