"use strict";(self["webpackChunkscui"]=self["webpackChunkscui"]||[]).push([[6202],{57498:function(e,a,s){s.r(a),s.d(a,{default:function(){return S}});var l=s(66252),i=s(3577);const t=(0,l._)("div",{class:"left-panel"},null,-1),n={class:"right-panel"},r={class:"right-panel-search"},o={style:{display:"flex","justify-content":"flex-start"}},c={key:0,class:"sc-icon"},u=(0,l._)("img",{class:"img",src:"https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-device/riskhigh.png",alt:""},null,-1),d={key:1,class:"sc-icon"},p=(0,l._)("img",{class:"img",src:"https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-device/rishmedium.png",alt:""},null,-1),g={key:2,class:"sc-icon"},m=(0,l._)("img",{class:"img",src:"https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes-device/risklow.png",alt:""},null,-1),h={class:"progressContent"},v={class:"progress-container-bar"},w={class:"progress-bar"},_={class:"text",style:{"margin-left":"6px"}};function y(e,a,s,y,k,b){const f=(0,l.up)("el-input"),C=(0,l.up)("el-button"),S=(0,l.up)("el-header"),z=(0,l.up)("el-table-column"),D=(0,l.up)("el-switch"),W=(0,l.up)("scTable"),x=(0,l.up)("el-main"),V=(0,l.up)("el-container"),j=(0,l.up)("save-dialog");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(V,{class:"mainBox"},{default:(0,l.w5)((()=>[(0,l.Wm)(S,null,{default:(0,l.w5)((()=>[t,(0,l._)("div",n,[(0,l._)("div",r,[(0,l.Wm)(f,{size:k.size,modelValue:k.params.keyword,"onUpdate:modelValue":a[0]||(a[0]=e=>k.params.keyword=e),placeholder:"关键字",clearable:""},null,8,["size","modelValue"]),(0,l.Wm)(C,{size:k.size,type:"primary",icon:"el-icon-search",onClick:b.upsearch},null,8,["size","onClick"])])])])),_:1}),(0,l.Wm)(x,{class:"nopadding"},{default:(0,l.w5)((()=>[(0,l.Wm)(W,{ref:"table",tableName:"listCustomColumn",onSelectionChange:b.selectionChange,onSizeChange:b.sizeChange,apiObj:k.list.apiObj,column:k.list.column,params:k.params,"row-key":"id",stripe:""},{active_level_label:(0,l.w5)((e=>[(0,l._)("div",o,[1==e.row.active_level?((0,l.wg)(),(0,l.iD)("div",c,[u,(0,l.Uk)((0,i.toDisplayString)(e.row.active_level_label),1)])):(0,l.kq)("",!0),2==e.row.active_level?((0,l.wg)(),(0,l.iD)("div",d,[p,(0,l.Uk)((0,i.toDisplayString)(e.row.active_level_label),1)])):(0,l.kq)("",!0),3==e.row.active_level?((0,l.wg)(),(0,l.iD)("div",g,[m,(0,l.Uk)((0,i.toDisplayString)(e.row.active_level_label),1)])):(0,l.kq)("",!0)])])),progress_rate:(0,l.w5)((e=>[(0,l._)("div",h,[(0,l._)("div",v,[(0,l._)("div",w,[(0,l._)("div",{class:(0,i.normalizeClass)(["progress-bar-fill",e.row.progress_rate>80?"progressSuccess":e.row.progress_rate>50?"progressWarning":"progressDanger"]),style:(0,i.normalizeStyle)("--percentage:"+e.row.progress_rate+"%")},null,6)])]),(0,l._)("div",_,(0,i.toDisplayString)(e.row.progress_rate>=100?"100":e.row.progress_rate)+"%",1)])])),active_status:(0,l.w5)((e=>[(0,l.Wm)(D,{modelValue:e.row.active_status,"onUpdate:modelValue":a=>e.row.active_status=a,"active-value":!0,"inactive-value":!1,loading:e.row.$switch_yx,onChange:a=>b.changeSwitch(a,e.row),size:k.size},null,8,["modelValue","onUpdate:modelValue","loading","onChange","size"])])),default:(0,l.w5)((()=>[(0,l.Wm)(z,{type:"selection",align:"center",width:"50"}),(0,l.Wm)(z,{label:"序号",type:"index",width:"50"})])),_:1},8,["onSelectionChange","onSizeChange","apiObj","column","params"])])),_:1})])),_:1}),k.dialog.save?((0,l.wg)(),(0,l.j4)(j,{key:0,ref:"saveDialog",onSuccess:b.handleSaveSuccess,onClosed:a[1]||(a[1]=e=>k.dialog.save=!1)},null,8,["onSuccess"])):(0,l.kq)("",!0)],64)}var k=s(68603),b={name:"index.vue",components:{saveDialog:k["default"]},provide(){return{sharedData:this.params}},data(){return{size:"small",dialog:{save:!1,permission:!1},list:{apiObj:this.$API.orders.order.active,column:[]},selection:[],params:{keyword:"",url:"order.active.list"}}},mounted(){},methods:{upsearch(){this.$refs.table.upData(this.params)},add(){},batch_del(){},changeSwitch(){},selectionChange(){},sizeChange(){},handlerCommand(){},handleSaveSuccess(){}}},f=s(83744);const C=(0,f.Z)(b,[["render",y]]);var S=C}}]);