File: /var/www/html/public/static/js/hook-legacy-a10aea8a.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,!Q.value)return!1;const{data:t,meta:s,ext:a}=await Q.value.getList(Object.assign(w,{page:m.currentPage,resault:m.pageSize},{search:JSON.stringify(i),parent_entity_id:H.value}));e.value=t,m.total=s.total,setTimeout((()=>{l.value=!1,V.value=!0,E.value=!1}),500)}const b=s([]),w=a([]),x=s([]),k=s([]),S=s([]),O=s([]),F=s("列表"),P=s(!1),q=s(!1),z=s(!0),L=s(""),W=s(0);P.value=!1;const C=s([]),D=s([]),I=s([]),R=s([]),A=a({line_name:"",data:[],columns:[],form_fields:[],form_rules:[],uri:"",parent_uri:"",parent_search:[],parent_fill:[],parent:!1});async function M(){if(E.value=!0,!Q.value)return!1;const{data:e}=await Q.value.loadOptions({});A.line_name=e?.child?.model?.tname?e?.child?.model?.tname:"",A.columns=e?.child?.fields?e?.child?.fields:[],A.form_fields=e?.child?.options?.form_fields?e?.child?.options?.form_fields:[],A.form_rules=e?.child?.form_rules?e?.child?.form_rules:[],A.uri=e?.child?.uri?e?.child?.uri:"",A.parent_uri=e?.child?.parent_uri?e?.child?.parent_uri:"",A.parent_search=e?.child?.parent_search?e?.child?.parent_search:[],A.parent_fill=e?.child?.parent_fill?e?.child?.parent_fill:[],A.parent=!!e?.child?.parent&&e?.child?.parent,L.value=e.row_key,I.value=e.options?.form_fields,R.value=e.options?.search_fields;let i=[],t=!1;P.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}),z.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&&(F.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 N=a({form_json:{},data:{},field_setup:{},tpl_id:0}),T=s(!1),V=s(!1),E=s(!1),H=s(0),J=s(""),Q=s(null);return r((()=>{(async e=>{const s=Object.assign({"/src/api/eqpscan.ts":()=>t((()=>i.import("./eqpscan-legacy-d161980a.js")),void 0),"/src/api/eqpsolts.ts":()=>t((()=>i.import("./eqpsolts-legacy-7917c25c.js")),void 0),"/src/api/equiment.ts":()=>t((()=>i.import("./equiment-legacy-16526eb8.js")),void 0),"/src/api/excelmaker.ts":()=>t((()=>i.import("./excelmaker-legacy-4d3bfe92.js")),void 0),"/src/api/feida.ts":()=>t((()=>i.import("./feida-legacy-66d72d18.js")),void 0),"/src/api/feidascan.ts":()=>t((()=>i.import("./feidascan-legacy-e9080182.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-5a060eb4.js")),void 0),"/src/api/label_print/pcba_bom.ts":()=>t((()=>i.import("./pcba_bom-legacy-1a8862c8.js")),void 0),"/src/api/label_print/pcba_deliver.ts":()=>t((()=>i.import("./pcba_deliver-legacy-eb4e55a0.js")),void 0),"/src/api/label_print/pcba_deliver_item.ts":()=>t((()=>i.import("./pcba_deliver_item-legacy-c7029bad.js")),void 0),"/src/api/label_print/pcba_order.ts":()=>t((()=>i.import("./pcba_order-legacy-f0588267.js")),void 0),"/src/api/label_print/print_label.ts":()=>t((()=>i.import("./print_label-legacy-785af2f2.js")),void 0),"/src/api/label_print/room.ts":()=>t((()=>i.import("./room-legacy-963a4a29.js")),void 0),"/src/api/label_print/vendor.ts":()=>t((()=>i.import("./vendor-legacy-00972352.js")),void 0),"/src/api/lowcode.ts":()=>t((()=>i.import("./lowcode-legacy-09fd2189.js")),void 0),"/src/api/material_print.ts":()=>t((()=>i.import("./material_print-legacy-87ad8159.js")),void 0),"/src/api/mes/material.ts":()=>t((()=>i.import("./material-legacy-e1b7122d.js")),void 0),"/src/api/mes/norm.ts":()=>t((()=>i.import("./norm-legacy-f1cdb368.js")),void 0),"/src/api/mes/product.ts":()=>t((()=>i.import("./product-legacy-3b822079.js")),void 0),"/src/api/mes/stage.ts":()=>t((()=>i.import("./stage-legacy-c92f5b73.js")),void 0),"/src/api/mes/station.ts":()=>t((()=>i.import("./station-legacy-37d83eca.js")),void 0),"/src/api/mes/worksheet.ts":()=>t((()=>i.import("./worksheet-legacy-6709c9ae.js")),void 0),"/src/api/monitor_process.ts":()=>t((()=>i.import("./monitor_process-legacy-a31281bb.js")),void 0),"/src/api/monitorprocess/device_terminal.ts":()=>t((()=>i.import("./device_terminal-legacy-72e8ce44.js")),void 0),"/src/api/monitorprocess/device_terminal_type.ts":()=>t((()=>i.import("./device_terminal_type-legacy-7939eced.js")),void 0),"/src/api/monitorprocess/work_dispatch.ts":()=>t((()=>i.import("./work_dispatch-legacy-357e5144.js")),void 0),"/src/api/monitorprocess/work_statistic.ts":()=>t((()=>i.import("./work_statistic-legacy-31df22f7.js")),void 0),"/src/api/part_sales/part_sales.ts":()=>t((()=>i.import("./part_sales-legacy-ff7fd307.js")),void 0),"/src/api/po.ts":()=>t((()=>i.import("./po-legacy-aafda07b.js")),void 0),"/src/api/routes.ts":()=>t((()=>i.import("./index-legacy-93e261a4.js").then((e=>e.a3))),void 0),"/src/api/slotimport.ts":()=>t((()=>i.import("./slotimport-legacy-c3cca285.js")),void 0),"/src/api/system.ts":()=>t((()=>i.import("./system-legacy-dfb8d673.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-93e261a4.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-9699fcd2.js")),void 0),"/src/api/yuyue/employee_company.ts":()=>t((()=>i.import("./employee_company-legacy-1c7d4952.js")),void 0),"/src/api/yuyue/employee_invoice.ts":()=>t((()=>i.import("./employee_invoice-legacy-c1faedad.js")),void 0),"/src/api/yuyue/employee_note.ts":()=>t((()=>i.import("./employee_note-legacy-fa5e9cca.js")),void 0)});try{if(J.value){for(const[e,i]of Object.entries(s))e=="/src/api/"+J.value+".ts"&&(Q.value=await i());e&&e()}}catch(a){console.error("Failed to load API modules:",a)}})(M)})),{list_fields:D,cur_parent_entity_id:H,child_mdoel:A,search_fields:R,form_fields:I,api_call:Q,api_name:J,status_list:C,show_select_btn:q,statusHas:function(e,i){return!i.hasOwnProperty("op_list")||i.op_list.includes(e)},tpl_item_id:W,load_defualt_search:g,paramString:y,row_key:L,config_loading:E,search_load:V,show_operate:z,select_items:b,handleSelectionChange:function(e){b.value=e},show_select:P,show_search:T,search_info:N,customOperates:O,model_name:F,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 R.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}}))}}}));