import{al as d,aS as c,ae as h,_ as v,d as g,w as p,aP as b,aL as x,r as w,o as f,c as D,l,C as r,b as y,u,bt as A,bu as k,G as P,M as S,a as R,by as M}from"./index.1d1a5ecb.js";import{b as N}from"./index.9d08ee5b.js";import{v as O,r as o}from"./verification.611d3025.js";import{u as T}from"./use-page-search.f4c305e2.js";import U from"./index.1c73c5da.js";import{h as V}from"./export.07022066.js";import"./execl-upload.e6fd115e.js";import"./xlsx.ed122d16.js";const Y=[{value:"0",label:"\u65E0"},{value:"1",label:"\u7C7B\u76EE\u4E00\u81F4"},{value:"2",label:"\u7C7B\u76EE\u4E0D\u4E00\u81F4"}],I=[{value:"0",label:"\u65E0"},{value:"1",label:"\u7A0E\u7387\u4E00\u81F4"},{value:"2",label:"\u7A0E\u7387\u4E0D\u4E00\u81F4"}];O(o("tax","\u8BF7\u9009\u62E9\u7A0E\u7387"),o("cat_code","\u8BF7\u9009\u62E9\u7C7B\u76EE"),o("inv_tag","\u8BF7\u9009\u62E9\u7A0E\u7387\u6807\u8BC6"),o("addTax","\u8BF7\u9009\u62E9\u589E\u503C\u7A0E\u7BA1\u7406\u5185\u5BB9"),o("inv_good_name","\u8BF7\u9009\u62E9\u5546\u54C1\u540D\u79F0"),o("is_discount","\u8BF7\u9009\u62E9\u662F\u5426\u5305\u542B\u4F18\u60E0\u653F\u7B56"));const L=[{value:"0",label:"\u975E\u5E93\u5B58\u5546\u54C1"},{value:"1",label:"\u5E93\u5B58\u5546\u54C1"}],j=[{label:"\u5546\u54C1\u7F16\u7801",prop:"spuCode",width:150},{label:"\u5546\u54C1\u5206\u7C7B",prop:"cat_name",width:150},{label:"\u5546\u54C1\u540D\u79F0",prop:"good_name",minWidth:195},{label:"\u5546\u54C1\u7C7B\u578B",prop:"isZx",width:120,cellRenderer({row:e}){var a;return Number(e.isZx)==1?"\u53CD\u9988\u5546\u54C1":((a=L.find(({value:t})=>t===String(e.is_stock)))==null?void 0:a.label)||"--"}},{label:"\u91C7\u8D2D\u5546\u54C1\u7C7B\u76EE",prop:"cgd_inv_cat_name",width:120},{label:"\u91C7\u8D2D\u5546\u54C1\u540D\u79F0",prop:"cgd_inv_good_name",width:120},{label:"\u91C7\u8D2D\u5546\u54C1\u7A0E\u7387",prop:"cgd_inv_tax",width:120},{label:"\u8D22\u52A1\u5546\u54C1\u7C7B\u76EE",prop:"inv_cat_name",width:120},{label:"\u8D22\u52A1\u5546\u54C1\u540D\u79F0",prop:"inv_good_name",width:120},{label:"\u8D22\u52A1\u5546\u54C1\u7A0E\u7387",prop:"inv_tax",width:120},{label:"\u7C7B\u76EE\u662F\u5426\u4E00\u81F4",width:100,cellRenderer({row:e}){return d(c,{type:e.cat_diff==="1"?"":"warning"},{default:()=>{var a;return((a=Y.find(({value:t})=>t===e.cat_diff))==null?void 0:a.label)||"--"}})}},{label:"\u7A0E\u7387\u662F\u5426\u4E00\u81F4",width:100,cellRenderer({row:e}){return d(c,{type:e.tax_diff==="1"?"":"warning"},{default:()=>{var a;return((a=I.find(({value:t})=>t===e.tax_diff))==null?void 0:a.label)||"--"}})}},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:140,formatter:({addtime:e})=>h(e).format("YYYY-MM-DD HH:mm:ss")}],q={superUserNoPerview:!0,columns:j,apis:{httpList:N}},_={formItems:[{field:"create_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u521B\u5EFA\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u521B\u5EFA\u7ED3\u675F\u65F6\u95F4"}},{field:"group",type_field:"group_type",type:"input_group",otherOptions:{inputGroupOptions:[{value:"spuCode",label:"\u5546\u54C1\u7F16\u7801"},{value:"good_name",label:"\u5546\u54C1\u540D\u79F0"}]}}]};const G={class:"main role"},H={"w-full":""},W=g({__name:"index",setup(e){const a=p(null);p([]);const t=b(!1),{permissions:C,hasPermissionWithCode:i}=x("abnormalProduct"),{pageContentRef:n,handleResetClick:m,handleSearchClick:E}=T(void 0,void 0,_);async function B(){await V({url:"/good/exportDiff",name:"\u5546\u54C1\u7A0E\u7387\u5F02\u5E38\u8BB0\u5F55",onStart:()=>t.value=!0,onSuccess:()=>t.value=!1,onFail:()=>t.value=!1,params:{is_diff:"1",...n.value.getBasicParams()}})}return(Z,s)=>{const F=w("ElButton");return f(),D("div",G,[l(M,{"is-show":u(i)("001")},{default:r(()=>[y("div",H,[l(u(A),{"form-config":u(_),onSearchBtnClick:u(E),onResetBtnClick:u(m)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),l(u(k),{ref_key:"pageContentRef",ref:n,powers:u(C),"content-config":u(q)},{header:r(()=>[u(i)("045")?(f(),P(F,{key:0,type:"primary",onClick:B,loading:u(t)},{default:r(()=>[S("\u5BFC\u51FA")]),_:1},8,["loading"])):R("v-if",!0)]),_:1},8,["powers","content-config"]),l(U,{ref_key:"execlUploadModalRef",ref:a,onOnSuccess:s[0]||(s[0]=()=>u(n).onSearch())},null,512)])]),_:1},8,["is-show"])])}}});var ae=v(W,[["__scopeId","data-v-77ef9070"],["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSaleSettings/abnormalProduct/index.vue"]]);export{ae as default};
