index-e7096bfd.js 2.8 KB

1
  1. import{a as l,o as y,W as I,X as i,Y as o,m as u,Z as r,u as d,a9 as A,a0 as _,a4 as h}from"./vue-1fca97c1.js";import{A as D,c as s}from"./index-43db82ed.js";import{d as k}from"./index-74530aae.js";import{p as q}from"./index-014f8dad.js";import{u as S}from"./vue-router-48d78ebd.js";import{_ as g}from"./_plugin-vue_export-helper-c27b6911.js";import"./routeTabs-0e751dca.js";/* empty css *//* empty css */const T={key:0},B={key:1},C={__name:"index",setup(z){const m=S(),e=l({}),p=l([]),n=l(""),c=l(),x=[{title:"订单号",dataIndex:"sonum",width:180,ellipsis:!0},{title:"商品名称",dataIndex:"itemname",width:180,ellipsis:!0},{title:"商品编号",dataIndex:"itemno",width:180,ellipsis:!0},{title:"型号",dataIndex:"model",width:180,ellipsis:!0},{title:"规格",dataIndex:"spec",width:180,ellipsis:!0},{title:"单价",dataIndex:"price",width:90,ellipsis:!0},{title:"单位",dataIndex:"unitname",width:90,ellipsis:!0},{title:"数量",dataIndex:"qty",width:90,ellipsis:!0},{title:"发货金额",dataIndex:"amount",width:90,ellipsis:!0},{title:"未发数量",dataIndex:"undeliqty",width:180,ellipsis:!0},{title:"备注",dataIndex:"remarks",width:180,ellipsis:!0}],b=async()=>{const v=await D.requested({id:20221114135303,content:{sa_dispatchid:m.currentRoute.value.query.id}});e.value=v.data,f()},f=()=>{p.value=[{label:"订单号",value:e.value.sonum},{label:"发货日期",value:e.value.billdate},{label:"经销商编码",value:e.value.agentnum},{label:"经销商名称",value:e.value.enterprisename},{label:"状态",value:e.value.STATUS,style:()=>({color:s.statusAndColor(e.value.STATUS)})},{label:"发货数量",value:e.value.qty},{label:"发货金额",value:e.value.sumamount?s.formatAmount(e.value.sumamount):"--",span:6},{label:"备注",value:e.value.remarks,span:6}]};return y(()=>{b()}),(v,a)=>{const w=I("a-input");return i(),o("div",null,[u(k,{headData:p.value,title:"发货单号:"+e.value.billno,tabs:["发货明细"],size:"small",hideBorder:!1,ownertable:"sa_dispatch"},{tab0:r(()=>[u(q,{ref_key:"prod",ref:c,columns:x,param:{id:20221115104703,content:{sa_dispatchid:d(m).currentRoute.value.query.id,pageNumber:1,pageSize:20,where:{condition:n.value}}},size:"small",hideBorder:!1},{operation:r(()=>[u(w,{class:"search-input",value:n.value,"onUpdate:value":a[0]||(a[0]=t=>n.value=t),onKeyup:a[1]||(a[1]=A(t=>c.value.listData(),["enter"])),placeholder:"搜索商品"},null,8,["value"])]),tb_cell:r(({data:t})=>[t.column.dataIndex==="amount"?(i(),o("span",T,_(d(s).formatAmount(t.record[t.column.dataIndex])),1)):h("",!0),t.column.dataIndex==="price"?(i(),o("span",B,_(d(s).formatAmount(t.record[t.column.dataIndex])),1)):h("",!0)]),_:1},8,["param"])]),_:1},8,["headData","title"])])}}},Y=g(C,[["__scopeId","data-v-6d88bd6b"]]);export{Y as default};