Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

4 місяці тому
1
  1. var j=Object.defineProperty;var F=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var D=(n,a,e)=>a in n?j(n,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[a]=e,k=(n,a)=>{for(var e in a||(a={}))L.call(a,e)&&D(n,e,a[e]);if(F)for(var e of F(a))G.call(a,e)&&D(n,e,a[e]);return n};var w=(n,a,e)=>new Promise((d,_)=>{var b=i=>{try{s(e.next(i))}catch(m){_(m)}},p=i=>{try{s(e.throw(i))}catch(m){_(m)}},s=i=>i.done?d(i.value):Promise.resolve(i.value).then(b,p);s((e=e.apply(n,a)).next())});import{_ as I,l as S,d as U}from"./regionDialog.b04ce9f5.js";import{d as q,r as g,a as A,o as H,f as r,g as V,c as O,e as o,w as l,b as v,F as J,p as K,h as y,i as Q}from"./index.091505b9.js";import"./useTreeSelectData.bbae3661.js";const X={class:"regionManage"},Y=y("\u67E5\u8BE2"),Z=y("\u91CD\u7F6E"),ee={class:"flex justify-between items-center"},ae=v("span",null,"\u533A\u57DF\u5217\u8868",-1),te=y(" \u65B0\u589E "),oe=["onClick"],le=["onClick"],ne=q({name:"regionManage"}),de=Object.assign(ne,{setup(n){const{proxy:a}=Q(),e=g({}),d=g(),_=g(0),b=[{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"}],p=g([]),s=(...C)=>w(this,[...C],function*(t=d.value.pageParams){const f=yield S(k(k({},t),e.value));_.value=f.data.total,p.value=f.data.records}),i=()=>{s()},m=()=>{e.value={},d.value.pageParams.pageNumber=1,d.value.pageParams.pageSize=10,s()},c=A({visible:!1,rowData:void 0}),E=()=>{c.visible=!0,c.rowData=void 0},$=t=>{c.visible=!0,c.rowData={id:t.id,regionCode:t.regionCode,oilPrice:Number(t.oilPrice),carExpense:Number(t.carExpense),regionCodePath:t.regionCodePath,serviceFeeRate:t.serviceFeeRate,workingOvertimeFee:t.workingOvertimeFee,nightWorkingFee:t.nightWorkFee}},B=t=>{a.$messageBox.confirm("\u662F\u5426\u5220\u9664\u8BE5\u6570\u636E?","\u63D0\u793A\uFF01",{type:"warning"}).then(()=>w(this,null,function*(){yield U({id:t.id}),a.$message.success("\u5220\u9664\u6210\u529F\uFF01"),yield s()}))},R=t=>{c.visible=!1,t&&s()};return H(()=>{s()}),(t,C)=>{const f=r("el-input"),x=r("el-form-item"),N=r("el-col"),h=r("el-button"),T=r("el-row"),z=r("el-form"),P=r("el-card"),M=r("table-list");return V(),O("div",X,[o(P,{shadow:"never",class:"search mb-16"},{default:l(()=>[o(z,{"label-suffix":":",model:e.value,size:"small"},{default:l(()=>[o(T,{gutter:16},{default:l(()=>[o(N,{span:6},{default:l(()=>[o(x,{label:"\u533A\u57DF\u540D\u79F0"},{default:l(()=>[o(f,{modelValue:e.value.regionName,"onUpdate:modelValue":C[0]||(C[0]=u=>e.value.regionName=u),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),o(N,{span:18},{default:l(()=>[o(x,{class:"btn"},{default:l(()=>[o(h,{type:"primary",onClick:i},{default:l(()=>[Y]),_:1}),o(h,{type:"info",onClick:m},{default:l(()=>[Z]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),o(P,{shadow:"never"},{header:l(()=>[v("div",ee,[ae,o(h,{type:"primary",icon:"Plus",size:"small",onClick:E},{default:l(()=>[te]),_:1})])]),default:l(()=>[o(M,{ref_key:"tableListRef",ref:d,"row-key":"regionCode",column:b,data:p.value,total:_.value,onGetTableData:s},{action:l(({scope:u})=>[u.row.exists?(V(),O(J,{key:0},[v("a",{class:"text-primary",onClick:W=>$(u.row)},"\u7F16\u8F91",8,oe),v("a",{class:"text-danger",onClick:W=>B(u.row)},"\u5220\u9664",8,le)],64)):K("",!0)]),_:1},8,["data","total"])]),_:1}),o(I,{visible:c.visible,data:c.rowData,onClose:R},null,8,["visible","data"])])}}});export{de as default};