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/hookPackage-6dc98120.js
import{partTruckList as S,partTruckDetail as W,TruckTakeout as L}from"./po-e92ee608.js";import{b7 as d}from"./message-2472a54a.js";import{r as i,A as r,o as z}from"./runtime-core.esm-bundler-6128546f.js";import"./index-cdc44ec6.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 B(){const o=i(!1),c=i(!1),s=i(!1),p=i(!1),l=i([]),u=i([]),m=r({page:1,resault:"",search_key:""}),h=r({}),g=r({}),a=r({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),f=[{type:"selection",width:55,align:"left",hide:({checkList:t})=>!t.includes("勾选列")},{label:"序号列",type:"index",width:70,hide:({checkList:t})=>!t.includes("序号列")},{label:"货运车号",prop:"materiel_truck_no",minWidth:100,hide:({checkList:t})=>!t.includes("货运车号")},{label:"批次号",prop:"batch_number",minWidth:100,hide:({checkList:t})=>!t.includes("货运车号")},{label:"关联订单",prop:"sn_order",minWidth:100,hide:({checkList:t})=>!t.includes("关联订单")},{label:"元件款数",prop:"part_counts",minWidth:100,hide:({checkList:t})=>!t.includes("元件款数")},{label:"状态",prop:"materiel_truck_status",minWidth:150,slot:"slotAction",hide:({checkList:t})=>!t.includes("状态")},{label:"最后修改",prop:"last_modified",minWidth:120,hide:({checkList:t})=>!t.includes("最后修改")},{label:"添加人",prop:"user_added",minWidth:120,hide:({checkList:t})=>!t.includes("添加人")},{label:"操作",fixed:"right",width:250,slot:"operation",hide:({checkList:t})=>!t.includes("操作")}],_=["货运车号","关联订单","元件款数","状态","最后修改","添加人","操作"],e=r({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:""});function k(){n()}function b(t){a.pageSize=t,n()}function y(t){a.currentPage=t,n()}async function n(){o.value=!0;const{data:t}=await S(Object.assign(m,{page:a.currentPage,results:a.pageSize,order_no:e.order_key,part_param:e.material_key,truck_no:e.truck_key}));l.value=t.data,a.total=t.total,o.value=!1}function v(t){c.value=!0,e.truck_id=t.materiel_truck_id,D()}async function D(){const{data:t}=await W(Object.assign(g,{truck_id:e.truck_id}));u.value=t,t[0].action=="collected"||t[0].action=="accepting"||t[0].action=="accepted"?e.show=2:e.show=1}function P(){s.value=!0}async function w(){const{data:t}=await L(Object.assign(h,{truck_id:e.truck_id,comment:e.comment}));t.result==1?(s.value=!1,c.value=!1,d({type:"success",message:t.msg}),n()):d({type:"error",message:t.msg})}return z(()=>{n()}),{searchDetail:e,btnSearchPart:k,loading:o,small:p,selectList:_,columns:f,pagination:a,handleSizeChange:b,handleCurrentChange:y,PartList:l,partDetailDialog:c,btnPartDetailDialog:v,partDetaiData:u,partOutlDialog:s,btnPoInventoryToLocal:P,btnLocalSubmit:w}}export{B as useEqu};