import{am as _,aR as f,bb as n,_ as g,d as A,x as w,aV as v,bU as y,r as i,o as s,G as d,D as c,m as l,a as P,h as N,l as k,M as x,ar as O,bd as S,aZ as E}from"./index.js";import{c as V,d as U}from"./index.4e61d38f.js";const h=[{label:"\u81EA\u8425\u8BA2\u5355\u56DE\u6B3E",value:0},{label:"\u5E73\u53F0\u8BA2\u5355\u56DE\u6B3E",value:1}],L=[{type:"selection",width:40},{label:"\u8D44\u91D1\u7F16\u7801",prop:"tradNo",fixed:"left",width:150},{label:"\u5BA2\u6237\u673A\u6784\u540D\u79F0",width:160,prop:"customerName"},{label:"\u5BA2\u6237PO",width:120,prop:"poCode"},{label:"\u5E73\u53F0\u7269\u6599\u540D\u79F0",width:120,prop:"goodName"},{label:"\u4EA7\u54C1\u6570\u91CF",width:120,prop:"goodNum"},{label:"\u5E73\u53F0\u516C\u53F8\u6536\u5165\u5355\u4EF7",width:120,prop:"platPrice"},{label:"\u5E73\u53F0\u516C\u53F8\u6536\u5165\u603B\u4EF7",width:120,prop:"plat_total"},{label:"\u6279\u6B21\u53F7",width:100,prop:"pcCode"},{label:"\u56DE\u6B3E\u7C7B\u578B",width:120,cellRenderer({row:u}){return _(f,{size:"small"},{default:()=>{var t;return((t=h.find(({value:r})=>r==u.trade_type))==null?void 0:t.label)||"--"}})}},{label:"\u4E1A\u52A1\u516C\u53F8",width:160,...n("companyNo","companyName","\u6536\u6B3E\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u6536\u6B3E\u65B9\u516C\u53F8",width:160,...n("trade_in_code","trade_in","\u6536\u6B3E\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u6536\u6B3E\u65B9\u8D26\u6237",width:120,prop:"trade_in_account"},{label:"\u4EA4\u6613\u65F6\u95F4",width:120,prop:"trade_time"},{label:"\u5BA2\u6237\u4ED8\u6B3E\u94F6\u884C\u6237\u540D",width:120,prop:"trade_out"},{label:"\u5BA2\u6237\u4ED8\u6B3E\u884C\u540D",width:120,prop:"trade_bank"},{label:"\u5BA2\u6237\u4ED8\u6B3E\u94F6\u884C\u8D26\u53F7",width:120,prop:"trade_account"},{label:"\u5BA2\u6237DN",width:120,prop:"NdCode"},{label:"\u5E73\u53F0\u91C7\u8D2DPO",width:120,prop:"palt_po"},{label:"\u6CF0e\u8D2DSKU",width:120,prop:"skuCode"},{label:"\u4E1A\u52A1\u516C\u53F8\u6536\u5165\u5355\u4EF7",width:120,prop:"comPrice"},{label:"\u4E1A\u52A1\u516C\u53F8\u6536\u5165\u603B\u4EF7",width:120,prop:"comPrice"},{label:"\u4EA4\u6613\u7528\u9014",width:120,prop:"trade_used"},{label:"\u521B\u5EFA\u4EBA",width:120,prop:"apply_name"},{label:"\u521B\u5EFA\u65F6\u95F4",width:120,prop:"addtime"}],M={columns:L,apis:{httpList:(u={})=>V({...u,status:[1,2]}),httpDelete:U}},F={formItems:[{field:"create_timer",type:"date_picker",trigger:"change",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u4EA4\u6613\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u4EA4\u6613\u7ED3\u675F\u65F6\u95F4"}},{type:"select",placeholder:"\u56DE\u6B3E\u7C7B\u578B",field:"trade_type",options:h},{type:"range",field:"gold-1",otherOptions:{startProp:"com_total_lower",endProp:"com_total_upper",startPlaceholder:"\u4E1A\u52A1\u516C\u53F8\u6536\u5165\u8D77\u59CB\u91D1\u989D",endPlaceholder:"\u4E1A\u52A1\u516C\u53F8\u6536\u5165\u7ED3\u675F\u91D1\u989D"}},{type:"range",field:"gold-2",otherOptions:{startProp:"plat_total_lower",endProp:"plat_total_upper",startPlaceholder:"\u5E73\u53F0\u516C\u53F8\u6536\u5165\u8D77\u59CB\u91D1\u989D",endPlaceholder:"\u5E73\u53F0\u516C\u53F8\u6536\u5165\u7ED3\u675F\u91D1\u989D"}},{placeholder:"\u5BA2\u6237\u673A\u6784\u540D\u79F0",field:"name",type:"input"},{placeholder:"\u5BA2\u6237PO",field:"poCode",type:"input"},{placeholder:"\u5E73\u53F0\u7269\u6599\u540D\u79F0",field:"goodName",type:"input"},{field:"group",type_field:"group_type",type:"input_group",span:8,selectWidth:"80px",otherOptions:{inputGroupOptions:[{value:"tradNo",label:"\u8D44\u91D1\u7F16\u53F7"},{value:"palt_po",label:"\u5E73\u53F0\u91C7\u8D2DPO"},{value:"pcCode",label:"\u6279\u6B21\u53F7"},{value:"NdCode",label:"\u5BA2\u6237DN"},{value:"skuCode",label:"\u6CF0e\u8D2DSKU"},{value:"trade_used",label:"\u4EA4\u6613\u7528\u9014"}]}}]},T={class:"absolute bottom-[48px] right-[32px]"},I=A({__name:"index",props:{visible:{type:Boolean,required:!0}},emits:["submit"],setup(u,{emit:t}){const r=u,a=w([]),e=v(r,"visible");y({initialData:{}});const D={pageSearchHook:()=>S(void 0,void 0,F)};async function m(){if(a.value.length===0){E.warning("\u8BF7\u9009\u62E9\u4E00\u6761\u6570\u636E");return}if(a.value.length>1){E.warning("\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E");return}e.value=!1,t("submit",a.value[0])}return(R,o)=>{const b=i("PageContainer"),B=i("ElButton"),C=i("ElDialog");return s(),d(C,{"close-on-click-modal":!1,"close-on-press-escape":!1,title:"\u9009\u62E9\u8D44\u91D1",modelValue:l(e),"onUpdate:modelValue":o[1]||(o[1]=p=>O(e)?e.value=p:null),top:"10px",center:"",class:"relative"},{default:c(()=>[l(e)?(s(),d(b,{key:0,onlySelf:!0,hooks:D,notice:!1,"search-config":l(F),"content-config":l(M),onContentSelectChange:o[0]||(o[0]=p=>a.value=p),isPageStart:!0},null,8,["search-config","content-config"])):P("v-if",!0),N("div",T,[k(B,{type:"primary",onClick:m},{default:c(()=>[x(" \u4FDD\u5B58 ")]),_:1})])]),_:1},8,["modelValue"])}}});var j=g(I,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/capitalPool/base-form/choose-invoice-modal/index.vue"]]);export{j as default};