import{al as d,aS as p,ae as h,_ as g,d as b,W as x,w as f,aP as w,aL as y,r as D,o as _,c as A,l,C as s,b as k,u,bt as P,bu as S,G as R,M as N,a as M,by as O}from"./index.56c69f5a.js";import{b as T}from"./index.31f6223c.js";import{v as U,r as o}from"./verification.611d3025.js";import{u as V}from"./use-page-search.27df6d7f.js";import Y from"./index.1312b5a6.js";import{h as I}from"./export.61b14108.js";import"./execl-upload.240c34a2.js";import"./xlsx.ed122d16.js";const L=[{value:"0",label:"\u65E0"},{value:"1",label:"\u7C7B\u76EE\u4E00\u81F4"},{value:"2",label:"\u7C7B\u76EE\u4E0D\u4E00\u81F4"}],W=[{value:"0",label:"\u65E0"},{value:"1",label:"\u7A0E\u7387\u4E00\u81F4"},{value:"2",label:"\u7A0E\u7387\u4E0D\u4E00\u81F4"}];U(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 j=[{value:"0",label:"\u975E\u5E93\u5B58\u5546\u54C1"},{value:"1",label:"\u5E93\u5B58\u5546\u54C1"}],q=[{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=j.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(p,{type:e.cat_diff==="1"?"":"warning"},{default:()=>{var a;return((a=L.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(p,{type:e.tax_diff==="1"?"":"warning"},{default:()=>{var a;return((a=W.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")}],G={superUserNoPerview:!0,columns:q,apis:{httpList:T}},m={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 H={class:"main role"},Z={"w-full":""},z=b({__name:"index",setup(e){const{currentCompany:a}=x(),t=f(null);f([]);const n=w(!1),{permissions:C,hasPermissionWithCode:i}=y("abnormalProduct"),{pageContentRef:r,handleResetClick:E,handleSearchClick:v}=V(void 0,void 0,m);async function B(){await I({url:"/good/exportDiff",name:"\u5546\u54C1\u7A0E\u7387\u5F02\u5E38\u8BB0\u5F55",onStart:()=>n.value=!0,onSuccess:()=>n.value=!1,onFail:()=>n.value=!1,params:{is_diff:"1",companyNo:a.value.companyNo,...r.value.getBasicParams()}})}return(J,c)=>{const F=D("ElButton");return _(),A("div",H,[l(O,{"is-show":u(i)("001")},{default:s(()=>[k("div",Z,[l(u(P),{"form-config":u(m),onSearchBtnClick:u(v),onResetBtnClick:u(E)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),l(u(S),{ref_key:"pageContentRef",ref:r,powers:u(C),"content-config":u(G)},{header:s(()=>[u(i)("045")?(_(),R(F,{key:0,type:"primary",onClick:B,loading:u(n)},{default:s(()=>[N("\u5BFC\u51FA")]),_:1},8,["loading"])):M("v-if",!0)]),_:1},8,["powers","content-config"]),l(Y,{ref_key:"execlUploadModalRef",ref:t,onOnSuccess:c[0]||(c[0]=()=>u(r).onSearch())},null,512)])]),_:1},8,["is-show"])])}}});var oe=g(z,[["__scopeId","data-v-77ef9070"],["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSaleSettings/abnormalProduct/index.vue"]]);export{oe as default};
