"use strict";(self["webpackChunkscui"]=self["webpackChunkscui"]||[]).push([[6961],{22553:function(e,a,l){l.r(a),l.d(a,{default:function(){return D}});var s=l(66252),i=l(3577);const t={key:0,class:"scTableSearch"},n={class:"searchItem searchBtn"},o=(0,s.Uk)("查询"),r=(0,s.Uk)("重置"),c={class:"left-panel"},u=(0,s.Uk)("新建"),p=(0,s.Uk)("删除"),d={class:"right-panel"},w={class:"right-panel-search"},m={key:0},k={key:0},g={key:0,class:"cellColor danger"},h={key:1};function y(e,a,l,y,_,C){const b=(0,s.up)("el-button"),D=(0,s.up)("scTableHerderListSearch"),f=(0,s.up)("el-input"),v=(0,s.up)("el-header"),z=(0,s.up)("el-table-column"),S=(0,s.up)("scNewTable"),W=(0,s.up)("el-main"),U=(0,s.up)("el-container"),j=(0,s.Q2)("auth");return(0,s.wg)(),(0,s.j4)(U,{class:"mainBox"},{default:(0,s.w5)((()=>[_.list.column.length>0?((0,s.wg)(),(0,s.iD)("div",t,[(0,s.Wm)(D,{ref:"scSearch",searchList:_.list.column,paramsData:_.params,onFetchSelectData:e.getSelectData,onChangeHeaderData:e.getHeaderData},{default:(0,s.w5)((()=>[(0,s._)("div",n,[(0,s.Wm)(b,{size:_.size,type:"primary",icon:"el-icon-search",onClick:e.upSearch},{default:(0,s.w5)((()=>[o])),_:1},8,["size","onClick"]),(0,s.Wm)(b,{size:_.size,type:"info",icon:"el-icon-RefreshRight",onClick:e.reset},{default:(0,s.w5)((()=>[r])),_:1},8,["size","onClick"])])])),_:1},8,["searchList","paramsData","onFetchSelectData","onChangeHeaderData"])])):(0,s.kq)("",!0),(0,s.Wm)(v,null,{default:(0,s.w5)((()=>[(0,s._)("div",c,[(0,s.wy)(((0,s.wg)(),(0,s.j4)(b,{size:_.size,type:"primary",icon:"el-icon-plus",onClick:e.add},{default:(0,s.w5)((()=>[u])),_:1},8,["size","onClick"])),[[j,["createOrder"]]]),(0,s.wy)(((0,s.wg)(),(0,s.j4)(b,{type:"danger",size:_.size,plain:"",icon:"el-icon-delete",onClick:e.btn_del,disabled:0===_.selection.length},{default:(0,s.w5)((()=>[p])),_:1},8,["size","onClick","disabled"])),[[j,["deleteOrder"]]])]),(0,s._)("div",d,[(0,s._)("div",w,[(0,s.Wm)(f,{size:_.size,modelValue:_.params.keyword,"onUpdate:modelValue":a[0]||(a[0]=e=>_.params.keyword=e),placeholder:"关键字",clearable:""},null,8,["size","modelValue"]),(0,s.Wm)(b,{size:_.size,type:"primary",icon:"el-icon-search",onClick:e.upSearch},null,8,["size","onClick"])])])])),_:1}),(0,s.Wm)(W,{class:"nopadding"},{default:(0,s.w5)((()=>[(0,s.Wm)(S,{ref:"table",tableName:"listCustomColumn",onSelectionChange:e.selectionChange,onColumnBack:e.columnBack,apiObj:_.list.apiObj,column:_.list.column,params:_.params,"row-key":"visual_key",stripe:""},{wood_type_id:(0,s.w5)((e=>[(0,s.Uk)((0,i.toDisplayString)(e.row.wood_type),1)])),wood_level_id:(0,s.w5)((e=>[(0,s.Uk)((0,i.toDisplayString)(e.row.wood_level),1)])),product_level_id:(0,s.w5)((e=>[(0,s.Uk)((0,i.toDisplayString)(e.row.product_level),1)])),sub_spec:(0,s.w5)((e=>[e.row.sub_spec?((0,s.wg)(),(0,s.iD)("span",m,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.row.sub_spec,((a,l)=>((0,s.wg)(),(0,s.iD)("span",{key:l},[(0,s._)("span",null,(0,i.toDisplayString)(a),1),l+1<e.row.sub_spec.length?((0,s.wg)(),(0,s.iD)("span",k,"、")):(0,s.kq)("",!0)])))),128))])):(0,s.kq)("",!0)])),status:(0,s.w5)((e=>[2===e.row.review_status?((0,s.wg)(),(0,s.iD)("span",g,"审核拒绝")):((0,s.wg)(),(0,s.iD)("span",h,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(_.setMap.statusList,(a=>((0,s.wg)(),(0,s.iD)("span",{key:a.value},[a.value===e.row.status?((0,s.wg)(),(0,s.iD)("span",{key:0,class:(0,i.normalizeClass)(["cellColor",{success:[1,10].includes(a.value),primary:[2,3].includes(a.value),info:[11].includes(a.value)}])},(0,i.toDisplayString)(a.label),3)):(0,s.kq)("",!0)])))),128))]))])),default:(0,s.w5)((()=>[(0,s.Wm)(z,{type:"selection",align:"center",width:"50"}),(0,s.Wm)(z,{label:"序号",type:"index",width:"50"})])),_:1},8,["onSelectionChange","onColumnBack","apiObj","column","params"])])),_:1})])),_:1})}var _={name:"index",data(){return{size:"small",dialog:{see:!1,review:!1,save:!1},setMap:{woodList:[],gradeList:[],statusList:[]},list:{apiObj:this.$API.orders.order.list,column:[]},selection:[],filterMap:{data:{}},params:{keyword:"",url:"order.list"}}}},C=l(83744);const b=(0,C.Z)(_,[["render",y]]);var D=b}}]);