File: /var/www/html/public/static/js/hook-legacy-65b7d42c.js
System.register(["./preload-helper-legacy-f8638e03.js","./runtime-core.esm-bundler-legacy-c5df00b7.js"],(function(e,i){"use strict";var t,s,a,r;return{setters:[e=>{t=e._},e=>{s=e.r,a=e.A,r=e.o}],execute:function(){e("useList",(function(){const e=s([]),l=s(!1),o=s(0),c=s(0),p=s(""),n=s(""),d=s(15),m=a({total:0,pageSize:d.value,pageSizes:[10,15,20,50,100],currentPage:1,background:!0}),u=a({uid:"",code:"",name:"",phone:"",email:""}),_=s(!1),f=a({fno:"",fname:""}),v=s([]),h={},y=s(""),g=s({});async function j(i={}){if(l.value=!0,!J.value)return!1;const{data:t,meta:s,ext:a}=await J.value.getList(Object.assign(w,{page:m.currentPage,resault:m.pageSize},{search:JSON.stringify(i),parent_entity_id:E.value}));e.value=t,m.total=s.total,setTimeout((()=>{l.value=!1,V.value=!0,B.value=!1}),500)}const b=s([]),w=a([]),x=s([]),k=s([]),S=s([]),O=s([]),P=s("列表"),q=s(!1),F=s(!1),L=s(!0),W=s(""),z=s(0);q.value=!1;const C=s([]),D=s([]),I=s([]),N=s([]),R=a({line_name:"",data:[],columns:[],form_fields:[],form_rules:[],uri:"",parent_uri:"",parent_search:[],parent_fill:[],parent:!1});async function A(){if(B.value=!0,!J.value)return!1;const{data:e}=await J.value.loadOptions({});R.line_name=e?.child?.model?.tname?e?.child?.model?.tname:"",R.columns=e?.child?.fields?e?.child?.fields:[],R.form_fields=e?.child?.options?.form_fields?e?.child?.options?.form_fields:[],R.form_rules=e?.child?.form_rules?e?.child?.form_rules:[],R.uri=e?.child?.uri?e?.child?.uri:"",R.parent_uri=e?.child?.parent_uri?e?.child?.parent_uri:"",R.parent_search=e?.child?.parent_search?e?.child?.parent_search:[],R.parent_fill=e?.child?.parent_fill?e?.child?.parent_fill:[],R.parent=!!e?.child?.parent&&e?.child?.parent,W.value=e.row_key,I.value=e.options?.form_fields,N.value=e.options?.search_fields;let i=[],t=!1;q.value&&(i.push({type:"selection",width:55,align:"left",selectable:(i,t)=>!e.exclude||!function(e,i){if(!e||0===Object.keys(e).length)return!0;const t=[];for(let s of i){const i=s.field,a=s.oper,r=s.value;let l,o="";switch(e.hasOwnProperty(i)&&(o=e[i]),a){case">":l=o>r;break;case"<":l=o<r;break;case">=":l=o>=r;break;case"<=":l=o<=r;break;case"=":l=o===r;break;default:l=!1}t.push(l)}return t.every((e=>!0===e))}(i,e.exclude),fixed:!0,reserveSelection:!0}),t=!0),e.sec_fields.length>0?(t?i.push({type:"expand",slot:"expand"}):i.push({type:"expand",slot:"expand",fixed:!0,width:40}),i.push({label:"序号",type:"index",minWidth:60})):t?i.push({label:"序号",type:"index",minWidth:40,width:60}):i.push({label:"序号",type:"index",minWidth:40,width:60,fixed:!0}),L.value&&i.push({label:"操作",fixed:"right",width:230,slot:"operation"});for(let s in e.fields){let t=e.fields[s];i.push(t)}if(x.value=i,e.sec_fields.length>0){let i=[];i=[{label:"序号",type:"index",minWidth:40}];for(let t in e.sec_fields){let s=e.sec_fields[t];i.push(s)}k.value=i}if(e.third_fields.length>0){let i=[{label:"序号",type:"index",width:70}];for(let t in e.third_fields){let s=e.sec_fields[t];i.push(s)}S.value=i}e.model&&(P.value=e.model.tname,n.value=e.model.cmt),d.value=e.page_num,m.pageSize=e.page_num,D.value=e?.fields,j()}const M=a({form_json:{},data:{},field_setup:{},tpl_id:0}),T=s(!1),V=s(!1),B=s(!1),E=s(0),H=s(""),J=s(null);return r((()=>{(async e=>{const s=Object.assign({"/src/api/eqpscan.ts":()=>t((()=>i.import("./eqpscan-legacy-ed833c6e.js")),void 0),"/src/api/eqpsolts.ts":()=>t((()=>i.import("./eqpsolts-legacy-bbddea8a.js")),void 0),"/src/api/equiment.ts":()=>t((()=>i.import("./equiment-legacy-7c5bb541.js")),void 0),"/src/api/excelmaker.ts":()=>t((()=>i.import("./excelmaker-legacy-1f65a3af.js")),void 0),"/src/api/feida.ts":()=>t((()=>i.import("./feida-legacy-820fd171.js")),void 0),"/src/api/feidascan.ts":()=>t((()=>i.import("./feidascan-legacy-5e56fee3.js")),void 0),"/src/api/head.ts":()=>t((()=>i.import("./head-legacy-94af1118.js")),void 0),"/src/api/label_print/inventory.ts":()=>t((()=>i.import("./inventory-legacy-942685b4.js")),void 0),"/src/api/label_print/pcba_bom.ts":()=>t((()=>i.import("./pcba_bom-legacy-8a5cfc82.js")),void 0),"/src/api/label_print/pcba_deliver.ts":()=>t((()=>i.import("./pcba_deliver-legacy-d73bc76a.js")),void 0),"/src/api/label_print/pcba_deliver_item.ts":()=>t((()=>i.import("./pcba_deliver_item-legacy-ea182326.js")),void 0),"/src/api/label_print/pcba_order.ts":()=>t((()=>i.import("./pcba_order-legacy-007984c1.js")),void 0),"/src/api/label_print/print_label.ts":()=>t((()=>i.import("./print_label-legacy-873746d2.js")),void 0),"/src/api/label_print/room.ts":()=>t((()=>i.import("./room-legacy-ba25516c.js")),void 0),"/src/api/label_print/vendor.ts":()=>t((()=>i.import("./vendor-legacy-6bda504e.js")),void 0),"/src/api/lowcode.ts":()=>t((()=>i.import("./lowcode-legacy-21c8cfca.js")),void 0),"/src/api/material_print.ts":()=>t((()=>i.import("./material_print-legacy-d03734d3.js")),void 0),"/src/api/mes/material.ts":()=>t((()=>i.import("./material-legacy-c5c0f26f.js")),void 0),"/src/api/mes/norm.ts":()=>t((()=>i.import("./norm-legacy-3d374b43.js")),void 0),"/src/api/mes/product.ts":()=>t((()=>i.import("./product-legacy-195c19c1.js")),void 0),"/src/api/mes/stage.ts":()=>t((()=>i.import("./stage-legacy-fb571333.js")),void 0),"/src/api/mes/station.ts":()=>t((()=>i.import("./station-legacy-4ccacbed.js")),void 0),"/src/api/mes/worksheet.ts":()=>t((()=>i.import("./worksheet-legacy-281084f7.js")),void 0),"/src/api/monitor_process.ts":()=>t((()=>i.import("./monitor_process-legacy-7c7f2341.js")),void 0),"/src/api/monitorprocess/device_terminal.ts":()=>t((()=>i.import("./device_terminal-legacy-7815b8a5.js")),void 0),"/src/api/monitorprocess/device_terminal_type.ts":()=>t((()=>i.import("./device_terminal_type-legacy-d6dc50e1.js")),void 0),"/src/api/monitorprocess/work_dispatch.ts":()=>t((()=>i.import("./work_dispatch-legacy-5ee6faec.js")),void 0),"/src/api/monitorprocess/work_statistic.ts":()=>t((()=>i.import("./work_statistic-legacy-3ce99776.js")),void 0),"/src/api/part_sales/part_sales.ts":()=>t((()=>i.import("./part_sales-legacy-fc9d45b6.js")),void 0),"/src/api/po.ts":()=>t((()=>i.import("./po-legacy-d10a66a5.js")),void 0),"/src/api/routes.ts":()=>t((()=>i.import("./index-legacy-06c5db9c.js").then((e=>e.a3))),void 0),"/src/api/slotimport.ts":()=>t((()=>i.import("./slotimport-legacy-3155500d.js")),void 0),"/src/api/system.ts":()=>t((()=>i.import("./system-legacy-af636fe0.js")),void 0),"/src/api/uploadfile.ts":()=>t((()=>i.import("./uploadfile-legacy-8a1d62da.js")),void 0),"/src/api/user.ts":()=>t((()=>i.import("./index-legacy-06c5db9c.js").then((e=>e.a2))),void 0),"/src/api/utils.ts":()=>t((()=>i.import("./utils-legacy-c0023c33.js")),void 0),"/src/api/workshop.ts":()=>t((()=>i.import("./workshop-legacy-894dcea9.js")),void 0),"/src/api/yuyue/employee_company.ts":()=>t((()=>i.import("./employee_company-legacy-b440e954.js")),void 0),"/src/api/yuyue/employee_invoice.ts":()=>t((()=>i.import("./employee_invoice-legacy-9c037ec5.js")),void 0),"/src/api/yuyue/employee_note.ts":()=>t((()=>i.import("./employee_note-legacy-8417f0c7.js")),void 0)});try{if(H.value){for(const[e,i]of Object.entries(s))e=="/src/api/"+H.value+".ts"&&(J.value=await i());e&&e()}}catch(a){console.error("Failed to load API modules:",a)}})(A)})),{list_fields:D,cur_parent_entity_id:E,child_mdoel:R,search_fields:N,form_fields:I,api_call:J,api_name:H,status_list:C,show_select_btn:F,statusHas:function(e,i){return!i.hasOwnProperty("op_list")||i.op_list.includes(e)},tpl_item_id:z,load_defualt_search:g,paramString:y,row_key:W,config_loading:B,search_load:V,show_operate:L,select_items:b,handleSelectionChange:function(e){b.value=e},show_select:q,show_search:T,search_info:M,customOperates:O,model_name:P,model_id:o,entity_id:c,toEntityList:function(e){},handleCurrentChange:function(e){j()},handleDesignForm:function(e){},resetForm:e=>{if(e){e.resetFields();for(const e of N.value)w[e.prop]=e.default;j()}},childColumns:k,columns:x,search_form:w,form_name:p,form_desc:n,vFormRefMap:h,setItemRef:(e,i)=>{e&&(h[i]=e)},activeNames:v,onSearchParams:function(){j()},onSearch:j,selectList:["模型ID","模型名称","模型表","模型路径","是否可用","添加时间","添加人"],editFormDialogVisible:_,editformData:u,form:f,loading:l,dataList:e,pagination:m}}))}}}));