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/hookOutCopy-ddc5b99e.js
import{getBomListBySearch as v,getBomListByItem as W}from"./po-506ef85f.js";import{b7 as s}from"./message-2472a54a.js";import{A as r,r as o,w as y,o as N,E as S}from"./runtime-core.esm-bundler-6128546f.js";import"./index-c9ceac6c.js";import"./preload-helper-78dc9057.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 j(){const l=r({qo_item_id:"",page:1,resault:""});o();const n=o(!1),c=o(!1),u=o(!1),d=o([]),i=r({orderNum:"",qo_item_id:"",search:""}),t=r({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),m=r({}),p=["订单号","型号规格","详细描述","位号","品牌","物料ID","物料品牌","物料型号","需要数量","已入库数量"],h=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号列",prop:"seq_id",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"订单号",prop:"sn_order",minWidth:100,hide:({checkList:e})=>!e.includes("订单号")},{label:"型号规格",prop:"real_name",minWidth:100,hide:({checkList:e})=>!e.includes("型号规格")},{label:"详细描述",prop:"value",minWidth:100,hide:({checkList:e})=>!e.includes("详细描述")},{label:"位号",prop:"reference",minWidth:150,hide:({checkList:e})=>!e.includes("位号")},{label:"品牌",prop:"vendor",minWidth:120,hide:({checkList:e})=>!e.includes("品牌")},{label:"物料ID",prop:"part_id",minWidth:120,hide:({checkList:e})=>!e.includes("物料ID")},{label:"物料品牌",prop:"vendor_comp_name",minWidth:120,hide:({checkList:e})=>!e.includes("物料品牌")},{label:"物料型号",prop:"standard_model",minWidth:120,hide:({checkList:e})=>!e.includes("物料型号")},{label:"需要数量",prop:"used_amount",minWidth:120,hide:({checkList:e})=>!e.includes("需要数量")},{label:"已入库数量",prop:"in_stock_quantity",minWidth:120,hide:({checkList:e})=>!e.includes("已入库数量")}];async function _(){if(i.search==""){s.error("请输入查询订单");return}const{data:e}=await v(Object.assign(m,{search_key:i.search}));e.result=="success"?a(e.qo_item_id):e.result=="failure"&&(s.error("没有该订单"),d.value=[],i.orderNum="")}function f(){n.value=!0}function g(e){t.pageSize=e,a(i.qo_item_id)}function b(e){t.currentPage=e,a(i.qo_item_id)}async function a(){const{data:e}=await W(Object.assign(l,{qo_item_id:i.qo_item_id,page:t.currentPage,resault:t.pageSize}));d.value=e.data,t.total=e.total,n.value=!1,i.orderNum=e.data[0].sn_order}function q(e){i.orderNum=e.orderNum,i.qo_item_id=e.qo_item_id,i.search=e.search,a()}return y(()=>i,e=>{}),N(()=>{}),S(()=>{}),{bomNum:i,bomListBySearcht:_,btnDialogTableVisible:f,selectList:p,loading:u,small:c,dataList:d,columns:h,dialogTableVisible:n,pagination:t,eventIsNum:q,loadPoData:a,handleSizeChange:g,handleCurrentChange:b}}export{j as useEqu};