Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

2 wiersze
4.0KB

  1. var S=Object.defineProperty;var P=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var O=(i,t,e)=>t in i?S(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,k=(i,t)=>{for(var e in t||(t={}))j.call(t,e)&&O(i,e,t[e]);if(P)for(var e of P(t))L.call(t,e)&&O(i,e,t[e]);return i};var x=(i,t,e)=>new Promise((d,_)=>{var h=s=>{try{l(e.next(s))}catch(m){_(m)}},g=s=>{try{l(e.throw(s))}catch(m){_(m)}},l=s=>s.done?d(s.value):Promise.resolve(s.value).then(h,g);l((e=e.apply(i,t)).next())});import{_ as q,l as G,d as I}from"./regionDialog.9b3f6016.js";import{d as U,r as f,a as A,o as H,f as r,g as D,c as E,e as n,w as o,b as v,F as J,q as K,h as C,i as Q}from"./index.551f5afa.js";import"./useTreeSelectData.cd9b00f2.js";const X={class:"regionManage"},Y=C("\u67E5\u8BE2"),Z=C("\u91CD\u7F6E"),ee={class:"flex justify-between items-center"},ae=v("span",null,"\u533A\u57DF\u5217\u8868",-1),te=C(" \u65B0\u589E "),ne=["onClick"],oe=["onClick"],ie=U({name:"regionManage"}),de=Object.assign(ie,{setup(i){const{proxy:t}=Q(),e=f({}),d=f(),_=f(0),h=[{label:"\u533A\u57DF\u540D\u79F0",key:"regionName",prop:"regionName",minWidth:"180",showOverflowTooltip:!0},{label:"\u9A7E\u9A76\u5458\u51FA\u8F66\u8D39\uFF08\u5143\uFF09",key:"carExpense",prop:"carExpense",width:"160"},{label:"\u6CB9\u5355\u4EF7\uFF08\u5143\uFF09",key:"oilPrice",prop:"oilPrice",width:"120"},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",width:"180"},{label:"\u64CD\u4F5C",key:"action",slot:"action",width:"120",fixed:"right"}],g=f([]),l=(...y)=>x(this,[...y],function*(a=d.value.pageParams){const p=yield G(k(k({},a),e.value));_.value=p.data.total,g.value=p.data.records}),s=()=>{l()},m=()=>{e.value={},d.value.pageParams.pageNumber=1,d.value.pageParams.pageSize=10,l()},c=A({visible:!1,rowData:void 0}),M=()=>{c.visible=!0,c.rowData=void 0},V=a=>{c.visible=!0,c.rowData={id:a.id,regionCode:a.regionCode,oilPrice:Number(a.oilPrice),carExpense:Number(a.carExpense),regionCodePath:a.regionCodePath,serviceFeeRate:a.serviceFeeRate,workingOvertimeFee:a.workingOvertimeFee,nightWorkingFee:a.nightWorkingFee,engineerOilPrice:Number(a.engineerOilPrice),engineerCarExpense:Number(a.engineerCarExpense),engineerServiceFeeRate:a.engineerServiceFeeRate,engineerWorkingOvertimeFee:a.engineerWorkingOvertimeFee,engineerNightWorkingFee:a.engineerNightWorkingFee,engineerMonthFeeMax:a.engineerMonthFeeMax}},W=a=>{t.$messageBox.confirm("\u662F\u5426\u5220\u9664\u8BE5\u6570\u636E?","\u63D0\u793A\uFF01",{type:"warning"}).then(()=>x(this,null,function*(){yield I({id:a.id}),t.$message.success("\u5220\u9664\u6210\u529F\uFF01"),yield l()}))},R=a=>{c.visible=!1,a&&l()};return H(()=>{l()}),(a,y)=>{const p=r("el-input"),F=r("el-form-item"),N=r("el-col"),b=r("el-button"),$=r("el-row"),B=r("el-form"),w=r("el-card"),T=r("table-list");return D(),E("div",X,[n(w,{shadow:"never",class:"search mb-16"},{default:o(()=>[n(B,{"label-suffix":":",model:e.value,size:"small"},{default:o(()=>[n($,{gutter:16},{default:o(()=>[n(N,{span:6},{default:o(()=>[n(F,{label:"\u533A\u57DF\u540D\u79F0"},{default:o(()=>[n(p,{modelValue:e.value.regionName,"onUpdate:modelValue":y[0]||(y[0]=u=>e.value.regionName=u),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),n(N,{span:18},{default:o(()=>[n(F,{class:"btn"},{default:o(()=>[n(b,{type:"primary",onClick:s},{default:o(()=>[Y]),_:1}),n(b,{type:"info",onClick:m},{default:o(()=>[Z]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),n(w,{shadow:"never"},{header:o(()=>[v("div",ee,[ae,n(b,{type:"primary",icon:"Plus",size:"small",onClick:M},{default:o(()=>[te]),_:1})])]),default:o(()=>[n(T,{ref_key:"tableListRef",ref:d,"row-key":"regionCode",column:h,data:g.value,total:_.value,onGetTableData:l},{action:o(({scope:u})=>[u.row.exists?(D(),E(J,{key:0},[v("a",{class:"text-primary",onClick:z=>V(u.row)},"\u7F16\u8F91",8,ne),v("a",{class:"text-danger",onClick:z=>W(u.row)},"\u5220\u9664",8,oe)],64)):K("",!0)]),_:1},8,["data","total"])]),_:1}),n(q,{visible:c.visible,data:c.rowData,onClose:R},null,8,["visible","data"])])}}});export{de as default};