1 |
- import{_ as q,d as I,W as U,aP as V,bU as j,x as C,cl as G,r as f,aD as O,o as v,G as E,D as d,H as P,c as H,l as p,m as a,ar as N,M as h,h as y,cg as L,d2 as Q,a as D,aZ as F,d3 as W,Q as Z,R as z}from"./index.js";import J from"./search-batch-main.82dc04.js";import K from"./search-batch.455058.js";import"./columns.88d7303.js";import"./content.config.3f80c9db.js";import"./index.142d2268.js";const X=i=>(Z("data-v-08a21a88"),i=i(),z(),i),Y={class:"flex my-[10px]"},$=X(()=>y("span",{style:{color:"red"}},"*",-1)),ee={class:"w-full mt-[10px] flex justify-end"},ae=I({__name:"index",emits:["reload","save-btn-click"],setup(i,{expose:S,emit:A}){const{currentCompany:T}=U(),t=V(3),u=V(!1),x=j({success(){F.success("\u6DFB\u52A0\u6210\u529F"),u.value=!1,A("reload")}}),R=C(null),k=C(null),l=C(""),m=G({companyNo:"",platform_type:""});async function M(r,e){u.value=!0,m.companyNo=T.value.companyNo,m.platform_type=""}async function g(r){if(!l.value){F.warning("\u8BF7\u9009\u62E9\u5F00\u7968\u6807\u7B7E");return}let e=[],o=[];if(r)e=r.sourceSequenceNos,o=r.selected;else{const c=await(t.value===2?k:R).value.getResponse();e=c.sourceSequenceNos,o=c.selected}if(e.length!==o.length){const n=t.value===3,c=o.map(_=>n?_.cxCode:_.sequenceNo),s=e.filter(_=>!c.includes(_));F.warning('\u672A\u627E\u5230\u8BA2\u5355:"'+s.join("\u3001"));return}const B={idArr:o.map(({id:n})=>n),tag_id:l.value};x.run(W(B))}function b(){u.value=!1,l.value=""}return S({show:M}),(r,e)=>{const o=f("ElRadio"),w=f("ElRadioGroup"),B=f("ElButton"),n=f("el-dialog"),c=O("loading");return v(),E(n,{top:"5vh",center:"",modelValue:a(u),"onUpdate:modelValue":e[2]||(e[2]=s=>N(u)?u.value=s:null),"close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":"","destroy-on-close":"",title:"C\u7AEF\u8BA2\u5355\u6279\u91CF\u6DFB\u52A0\u5F00\u7968\u6807\u7B7E",width:"1040px",onClose:b},{default:d(()=>[P((v(),H("div",null,[p(w,{modelValue:a(t),"onUpdate:modelValue":e[0]||(e[0]=s=>N(t)?t.value=s:null)},{default:d(()=>[p(o,{label:3},{default:d(()=>[h("\u6279\u91CF\u67E5\u627E(\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u53F7)")]),_:1}),p(o,{label:2},{default:d(()=>[h("\u6279\u91CF\u67E5\u627E(\u9500\u552E\u8BA2\u5355\u7F16\u53F7)")]),_:1})]),_:1},8,["modelValue"]),y("div",Y,[y("p",null,[$,h(" \u5F00\u7968\u6807\u7B7E: "),p(a(L),{modelValue:l.value,"onUpdate:modelValue":e[1]||(e[1]=s=>l.value=s),api:a(Q),"request-prop":"tag_name","response-label-prop":"tag_name","response-val-prop":"id","pro-data":()=>({type:"4"}),placeholder:"\u5F00\u7968\u6807\u7B7E"},null,8,["modelValue","api","pro-data"])])]),a(t)===2?(v(),E(K,{key:0,noTag:l.value=="",ref_key:"searchBatchRef",ref:k,payload:a(m),onConfirm:g},null,8,["noTag","payload"])):D("v-if",!0),a(t)===3?(v(),E(J,{key:1,noTag:l.value=="",ref_key:"searchBatchMainRef",ref:R,payload:a(m),onConfirm:g},null,8,["noTag","payload"])):D("v-if",!0),y("div",ee,[p(B,{type:"primary",onClick:g},{default:d(()=>[h("\u4FDD\u5B58")]),_:1})])])),[[c,a(x).loading]])]),_:1},8,["modelValue"])}}});var ce=q(ae,[["__scopeId","data-v-08a21a88"],["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/sheetOrderPool/components/ClientCTagDialog/index.vue"]]);export{ce as default};
|