index.821ba0.js 5.3 KB

1
  1. import{bb as f,am as u,aR as m,cL as g,bY as x,J as y,bz as w,cq as _,ae as D,_ as A,d as k,W as P,x as C,aP as N,aM as R,bd as S,r as M,o as E,c as T,l as s,D as d,h as O,m as a,bE as I,bF as L,G as U,M as V,a as Y,bV as W}from"./index.js";import{a as j}from"./index.24943c38.js";import{v as q,r as n}from"./verification.611d3025.js";import z from"./index.58cc7a.js";import{h as G}from"./export.fc82d641.js";import"./execl-upload.7c83427b.js";import"./xlsx.ed122d16.js";const H=[{value:"0",label:"\u65E0"},{value:"1",label:"\u7C7B\u76EE\u4E00\u81F4"},{value:"2",label:"\u7C7B\u76EE\u4E0D\u4E00\u81F4"}],Z=[{value:"0",label:"\u65E0"},{value:"1",label:"\u7A0E\u7387\u4E00\u81F4"},{value:"2",label:"\u7A0E\u7387\u4E0D\u4E00\u81F4"}];q(n("tax","\u8BF7\u9009\u62E9\u7A0E\u7387"),n("cat_code","\u8BF7\u9009\u62E9\u7C7B\u76EE"),n("inv_tag","\u8BF7\u9009\u62E9\u7A0E\u7387\u6807\u8BC6"),n("addTax","\u8BF7\u9009\u62E9\u589E\u503C\u7A0E\u7BA1\u7406\u5185\u5BB9"),n("inv_good_name","\u8BF7\u9009\u62E9\u5546\u54C1\u540D\u79F0"),n("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"}],K=[{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 t;return Number(e.isZx)==1?"\u53CD\u9988\u5546\u54C1":((t=J.find(({value:o})=>o===String(e.is_stock)))==null?void 0:t.label)||"--"}},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",width:175,...f("supplierNo","supplierName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",width:195,...f("companyNo","companyName","\u4E70\u5165\u65B9\u516C\u53F8\u7F16\u7801:")},{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:120,cellRenderer({row:e}){const{cgd_inv_cat_code:t,inv_cat_code:o}=e,l=[{type:"\u91C7\u8D2D",value:t},{type:"\u8D22\u52A1",value:o}];return u("div",{style:{display:"flex",justifyContent:"space-between"}},{default:()=>[u("span",null,u(m,{type:e.cat_diff==="1"?"":"warning"},{default:()=>{var r;return((r=H.find(({value:i})=>i===e.cat_diff))==null?void 0:r.label)||"--"}})),u(g,{placement:"top",width:"300px"},{reference:()=>u(x,{link:!0,icon:y("information-line")}),default:()=>u("div",null,[u("p",{style:{fontSize:"14px",fontWeight:"bold",marginBottom:"10px",textAlign:"center",width:"100%"}},"\u5546\u54C1\u7C7B\u76EE\u5BF9\u6BD4"),u(w,{data:l,size:"small",border:!0},[u(_,{label:"",prop:"type",width:"80px"},null),u(_,{label:"\u7C7B\u76EE\u7F16\u7801",prop:"value","min-width":"180"},null)])])})]})}},{label:"\u7A0E\u7387\u662F\u5426\u4E00\u81F4",width:100,cellRenderer({row:e}){return u(m,{type:e.tax_diff==="1"?"":"warning"},{default:()=>{var t;return((t=Z.find(({value:o})=>o===e.tax_diff))==null?void 0:t.label)||"--"}})}},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:140,formatter:({addtime:e})=>D(e).format("YYYY-MM-DD HH:mm:ss")}],Q={superUserNoPerview:!0,columns:K,apis:{httpList:j}},F={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 X={class:"main role"},$={"w-full":""},ee=k({__name:"index",setup(e){const{currentCompany:t}=P(),o=C(null);C([]);const l=N(!1),{permissions:r,hasPermissionWithCode:i}=R("abnormalProduct"),{pageContentRef:p,handleResetClick:B,handleSearchClick:v}=S(void 0,void 0,F);async function b(){await G({url:"/good/exportDiff",name:"\u5546\u54C1\u7A0E\u7387\u5F02\u5E38\u8BB0\u5F55",onStart:()=>l.value=!0,onSuccess:()=>l.value=!1,onFail:()=>l.value=!1,params:{is_diff:"1",companyNo:t.value.companyNo,...p.value.getBasicParams()}})}return(ue,c)=>{const h=M("ElButton");return E(),T("div",X,[s(W,{"is-show":a(i)("001")},{default:d(()=>[O("div",$,[s(a(I),{"form-config":a(F),onSearchBtnClick:a(v),onResetBtnClick:a(B)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),s(a(L),{ref_key:"pageContentRef",ref:p,powers:a(r),"content-config":a(Q)},{header:d(()=>[a(i)("045")?(E(),U(h,{key:0,type:"primary",onClick:b,loading:a(l)},{default:d(()=>[V("\u5BFC\u51FA")]),_:1},8,["loading"])):Y("v-if",!0)]),_:1},8,["powers","content-config"]),s(z,{ref_key:"execlUploadModalRef",ref:o,onOnSuccess:c[0]||(c[0]=()=>a(p).onSearch())},null,512)])]),_:1},8,["is-show"])])}}});var se=A(ee,[["__scopeId","data-v-77ef9070"],["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSaleSettings/abnormalProduct/index.vue"]]);export{se as default};