index-96d454f0.js 2.9 KB

1
  1. import{a as s,o as I,U as k,V as r,W as i,j as o,X as u,u as d,aa as A,a4 as _,a5 as f}from"./vue-15ee4564.js";import{A as D,b as c}from"./index-0877f322.js";import{d as S}from"./index-c0e2857d.js";import{_ as q}from"./index-0c151144.js";import{u as g}from"./vue-router-0190217c.js";import{_ as T}from"./_plugin-vue_export-helper-c27b6911.js";import"./base-3803c3f3.js";const B={key:0},C={key:1},R={__name:"index",setup(U){const m=g(),e=s({}),p=s([]),n=s(""),v=s(),h=(a,l)=>a.isreport>0?"table-striped-red":null,b=[{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}],x=async()=>{const a=await D.requested({id:20221114135303,content:{sa_dispatchid:m.currentRoute.value.query.id}});e.value=a.data,w()},w=()=>{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:function(){let a={};switch(e.value.STATUS){case"新建":a={color:"#000000"};break;case"提交":a={color:"#d90a0a"};break;case"审核":a={color:"#52C41A"};break;case"复核":a={color:"#3874f6"};break;case"关闭":a={color:"#b2c0ea"};break}return a}},{label:"发货数量",value:e.value.qty},{label:"发货金额",value:e.value.sumamount?c.formatAmount(e.value.sumamount):"--",span:6},{label:"备注",value:e.value.remarks,span:6}]};return I(()=>{x()}),(a,l)=>{const y=k("a-input");return r(),i("div",null,[o(S,{headData:p.value,title:"发货单号:"+e.value.billno,tabs:["发货明细"],size:"small",hideBorder:!1,ownertable:"sa_dispatch"},{tab0:u(()=>[o(q,{tableRowStyle:h,ref_key:"prod",ref:v,columns:b,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:u(()=>[o(y,{class:"search-input",value:n.value,"onUpdate:value":l[0]||(l[0]=t=>n.value=t),onKeyup:l[1]||(l[1]=A(t=>v.value.listData(),["enter"])),placeholder:"搜索产品"},null,8,["value"])]),tb_cell:u(({data:t})=>[t.column.dataIndex==="amount"?(r(),i("span",B,_(d(c).formatAmount(t.record[t.column.dataIndex])),1)):f("",!0),t.column.dataIndex==="price"?(r(),i("span",C,_(d(c).formatAmount(t.record[t.column.dataIndex])),1)):f("",!0)]),_:1},8,["param"])]),_:1},8,["headData","title"])])}}},E=T(R,[["__scopeId","data-v-e1af36a8"]]);export{E as default};