HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.2.20
System: Linux 825a8fd6cf8c 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User: apache (48)
PHP: 8.2.20
Disabled: NONE
Upload Files
File: /var/www/html/public/static/js/hook-92f704e8.js
import{getShopItemlist as le,loadOptions as ae}from"./part_sales-c597cd21.js";import{r as t,A as f,o as re}from"./runtime-core.esm-bundler-6128546f.js";import"./index-c3ee90b4.js";import"./preload-helper-78dc9057.js";import"./message-2472a54a.js";import"./vue-i18n.runtime.esm-bundler-6949bcab.js";import"./index-b7f916e1.js";import"./_commonjsHelpers-87174ba5.js";import"./vue-router-a383d220.js";import"./utils-2ab4f76a.js";function ye(){const h=t([]),p=t(!1),D=t(0),W=t(0),I=t(""),_=t(""),g=t(15),r=f({total:0,pageSize:g.value,pageSizes:[10,15,20,50,100],currentPage:1,background:!0}),R=["模型ID","模型名称","模型表","模型路径","是否可用","添加时间","添加人"],M=f({uid:"",code:"",name:"",phone:"",email:""}),N=t(!1),V=f({fno:"",fname:""}),A=t([]),v={},E=(e,s)=>{e&&(v[s]=e)},H=t("");async function c(e={}){p.value=!0;const{data:s,meta:i,ext:o}=await le(Object.assign(x,{page:r.currentPage,resault:r.pageSize},{search:JSON.stringify(e)}));h.value=s,r.total=i.total,setTimeout(()=>{p.value=!1,z.value=!0,m.value=!1},500)}function J(){c()}function T(e,s){return s.hasOwnProperty("op_list")?s.op_list.includes(e):!0}function j(e){c()}const y=t([]);function q(e){y.value=e.map(s=>({id:s.id,label:s.name}))}const x=f({part_name:"",part_id:"",category:"",top_category:"",manufacturer:"",is_sync:"",list_status:""}),B=e=>{e&&(e.resetFields(),c())},w=t([]),b=t([]),G=t([]),K=t([]);function Q(e){}function U(e){}const S=t("元件销售列表"),k=t(!1),X=t(!1),Y=t(!1),C=t("id");function Z(e,s){if(!e||Object.keys(e).length===0)return!0;const i=[];for(let o of s){const n=o.field,u=o.oper,d=o.value;let a="";e.hasOwnProperty(n)&&(a=e[n]);let l;switch(u){case">":l=a>d;break;case"<":l=a<d;break;case">=":l=a>=d;break;case"<=":l=a<=d;break;case"=":l=a===d;break;default:l=!1}i.push(l)}return i.every(o=>o===!0)}const $=t(0),ee=t([]),F=t([]),L=t([]),te=t([]),O=t([]),P=t(!0);async function se(){m.value=!0;const{data:e}=await ae({});C.value=e.row_key,F.value=e.options.top_category,L.value=e.options.vendors,O.value=e.options.list_fields;let s=[],i=!1;k.value&&(s.push({type:"selection",width:55,align:"left",selectable:(o,n)=>e.exclude?!Z(o,e.exclude):!0,fixed:!0,reserveSelection:!0}),i=!0),e.sec_fields.length>0?(i?s.push({type:"expand",slot:"expand"}):s.push({type:"expand",slot:"expand",fixed:!0,width:40}),s.push({label:"序号",type:"index",minWidth:60})):i?s.push({label:"序号",type:"index",minWidth:40,width:60}):s.push({label:"序号",type:"index",minWidth:40,width:60,fixed:!0}),P.value&&s.push({label:"操作",fixed:"right",width:220,slot:"operation"});for(let o in e.fields){let n=e.fields[o];s.push(n)}if(w.value=s,e.sec_fields.length>0){let o=[];o=[{label:"序号",type:"index",minWidth:40}];for(let n in e.sec_fields){let u=e.sec_fields[n];o.push(u)}b.value=o}if(e.third_fields.length>0){let o=[{label:"序号",type:"index",width:70}];for(let n in e.third_fields){let u=e.sec_fields[n];o.push(u)}G.value=o}e.model&&(S.value=e.model.tname,_.value=e.model.cmt),g.value=e.page_num,r.pageSize=e.page_num,c()}const oe=f({form_json:{},data:{},field_setup:{},tpl_id:0}),ne=t(!1),z=t(!1),m=t(!1),ie=t({});return re(()=>{se()}),{list_fields:O,toptype_list:F,show_border:Y,show_operate:P,work_norms:te,vendors:L,mtype_list:ee,show_select:k,show_select_btn:X,statusHas:T,tpl_item_id:$,load_defualt_search:ie,paramString:H,row_key:C,config_loading:m,search_load:z,select_items:y,handleSelectionChange:q,show_search:ne,search_info:oe,customOperates:K,model_name:S,model_id:D,entity_id:W,toEntityList:Q,handleCurrentChange:j,handleDesignForm:U,resetForm:B,childColumns:b,columns:w,search_form:x,form_name:I,form_desc:_,vFormRefMap:v,setItemRef:E,activeNames:A,onSearchParams:J,onSearch:c,selectList:R,editFormDialogVisible:N,editformData:M,form:V,loading:p,dataList:h,pagination:r}}export{ye as useList};