1 |
- import{al as d,aS as c,ae as B,_ as v,d as g,w as p,aP as b,aL as x,r as w,o as f,c as D,l as n,C as r,b as A,u as e,bt as y,bu as P,G as k,M as R,a as S,by as M}from"./index.42bf163d.js";import{b as O}from"./index.a3e78a40.js";import{v as N,r as o}from"./verification.611d3025.js";import{u as T}from"./use-page-search.d97bdd00.js";import U from"./index.e353158e.js";import{h as V}from"./export.e9249fd9.js";import"./execl-upload.e1817bbd.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"}];N(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=[{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:u}){return u.isZx==1?"\u54A8\u8BE2\u5546\u54C1":"\u6210\u672C\u5546\u54C1"}},{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:u}){return d(c,{type:u.cat_diff==="1"?"":"warning"},{default:()=>{var t;return((t=Y.find(({value:a})=>a===u.cat_diff))==null?void 0:t.label)||"--"}})}},{label:"\u7A0E\u7387\u662F\u5426\u4E00\u81F4",width:100,cellRenderer({row:u}){return d(c,{type:u.tax_diff==="1"?"":"warning"},{default:()=>{var t;return((t=I.find(({value:a})=>a===u.tax_diff))==null?void 0:t.label)||"--"}})}},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:140,formatter:({addtime:u})=>B(u).format("YYYY-MM-DD HH:mm:ss")}],j={superUserNoPerview:!0,columns:L,apis:{httpList:O}},_={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 q={class:"main role"},G={"w-full":""},H=g({__name:"index",setup(u){const t=p(null);p([]);const a=b(!1),{permissions:C,hasPermissionWithCode:i}=x("abnormalProduct"),{pageContentRef:l,handleResetClick:m,handleSearchClick:E}=T(void 0,void 0,_);async function F(){await V({url:"/good/exportDiff",name:"\u5546\u54C1\u7A0E\u7387\u5F02\u5E38\u8BB0\u5F55",onStart:()=>a.value=!0,onSuccess:()=>a.value=!1,onFail:()=>a.value=!1,params:{is_diff:"1",...l.value.getBasicParams()}})}return(W,s)=>{const h=w("ElButton");return f(),D("div",q,[n(M,{"is-show":e(i)("001")},{default:r(()=>[A("div",G,[n(e(y),{"form-config":e(_),onSearchBtnClick:e(E),onResetBtnClick:e(m)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),n(e(P),{ref_key:"pageContentRef",ref:l,powers:e(C),"content-config":e(j)},{header:r(()=>[e(i)("045")?(f(),k(h,{key:0,type:"primary",onClick:F,loading:e(a)},{default:r(()=>[R("\u5BFC\u51FA")]),_:1},8,["loading"])):S("v-if",!0)]),_:1},8,["powers","content-config"]),n(U,{ref_key:"execlUploadModalRef",ref:t,onOnSuccess:s[0]||(s[0]=()=>e(l).onSearch())},null,512)])]),_:1},8,["is-show"])])}}});var ue=v(H,[["__scopeId","data-v-77ef9070"],["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSaleSettings/abnormalProduct/index.vue"]]);export{ue as default};
|