智慧教务系统
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
2.8 KiB

import{d as v,r as g,l as d,h as n,c as p,e as l,w as r,a,J as w,m as C,F as V,W as R,i as E,D as F,G as U,H as j,K as B,E as D,L as z}from"./index-f5d841af.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{aj as L,ak as M}from"./sys-4eb1a831.js";const N={class:"main-container"},I=a("div",{class:"flex justify-between items-center"},[a("span",{class:"text-lg"},"市场人员绩效配置")],-1),$={style:{"margin-top":"20px"}},G=a("span",{style:{margin:"0 8px"}},"每个",-1),H=a("span",{style:{margin:"0 8px"}},"元 超过",-1),J=a("span",{style:{margin:"0 8px"}},"个",-1),K=a("span",{style:{"margin-left":"4px"}},"元",-1),S={class:"fixed-footer-wrap"},T={class:"fixed-footer"},te=v({__name:"yjpz_config",setup(W){const s=g(!0),t=d({priceRules:{mon:{basePrice:0,limitCount:0,extraPrice:0},tue:{basePrice:0,limitCount:0,extraPrice:0},wed:{basePrice:0,limitCount:0,extraPrice:0},thu:{basePrice:0,limitCount:0,extraPrice:0},fri:{basePrice:0,limitCount:0,extraPrice:0},sat:{basePrice:0,limitCount:0,extraPrice:0},sun:{basePrice:0,limitCount:0,extraPrice:0}}}),_=[{key:"mon",label:"周一"},{key:"tue",label:"周二"},{key:"wed",label:"周三"},{key:"thu",label:"周四"},{key:"fri",label:"周五"},{key:"sat",label:"周六"},{key:"sun",label:"周日"}],f=d({}),c=async()=>{const u=await(await L()).data;t.priceRules=u,s.value=!1};c();const b=async()=>{M(t).then(()=>{s.value=!0,c()}).catch(()=>{s.value=!1})};return(u,m)=>{const i=F,x=U,h=j,k=B,y=D,P=z;return n(),p("div",N,[l(k,{class:"box-card !border-none",shadow:"never"},{default:r(()=>[I,a("div",$,[w((n(),C(h,{class:"page-form",model:t,"label-width":"150px",ref:"ruleFormRef",rules:f},{default:r(()=>[(n(),p(V,null,R(_,e=>l(x,{key:e.key,label:e.label,prop:`priceRules.${e.key}`},{default:r(()=>[G,l(i,{modelValue:t.priceRules[e.key].basePrice,"onUpdate:modelValue":o=>t.priceRules[e.key].basePrice=o,modelModifiers:{number:!0},placeholder:"请输入",class:"input-width",clearable:""},null,8,["modelValue","onUpdate:modelValue"]),H,l(i,{modelValue:t.priceRules[e.key].limitCount,"onUpdate:modelValue":o=>t.priceRules[e.key].limitCount=o,modelModifiers:{number:!0},placeholder:"请输入",class:"input-width",clearable:""},null,8,["modelValue","onUpdate:modelValue"]),J,l(i,{modelValue:t.priceRules[e.key].extraPrice,"onUpdate:modelValue":o=>t.priceRules[e.key].extraPrice=o,modelModifiers:{number:!0},placeholder:"请输入",class:"input-width",clearable:""},null,8,["modelValue","onUpdate:modelValue"]),K]),_:2},1032,["label","prop"])),64))]),_:1},8,["model","rules"])),[[P,s.value]])])]),_:1}),a("div",S,[a("div",T,[l(y,{type:"primary",onClick:m[0]||(m[0]=e=>b())},{default:r(()=>[E("保存")]),_:1})])])])}}});export{te as default};