LogModal.4f178774.js 4.5 KB

1
  1. import{_ as h,d as b,cl as v,m as y,r as n,o as e,A as c,x as l,h as i,c as o,F as s,H as d,G as F,y as m}from"./index.56449854.js";import{c as k}from"./createRequset.56e9fc42.js";const A="purchease/purchase/";var j={list:k(`${A}changeLogList`)};const x={spuCode:"\u5546\u54C1\u6210\u672C\u7F16\u53F7",good_code:"\u5546\u54C1\u7F16\u7801",good_name:"\u5546\u54C1\u540D\u79F0",cat_id:"\u5206\u7C7B",brand_id:"\u54C1\u724C",good_unit:"\u5546\u54C1\u5355\u4F4D",good_type:"",companyNo:"\u4E1A\u52A1\u4F01\u4E1A",moq:"\u8D77\u8BA2\u91CF",customized:"\u5B9A\u5236\u5DE5\u671F",tax:"\u7A0E\u70B9",supplierNo:"\u4F9B\u5E94\u5546",is_auth:"\u662F\u5426\u6709\u9500\u552E\u6743\u9650",is_stock:"\u662F\u5426\u5E93\u5B58\u54C1",auth_img:"\u9500\u552E\u6388\u6743\u56FE\u7247",after_sales:"\u552E\u540E\u8BF4\u660E",craft_desc:"\u5DE5\u827A\u8BF4\u660E",good_remark:"\u5546\u54C1\u5907\u6CE8",good_size:"\u5546\u54C1\u5C3A\u5BF8",weight:"\u5546\u54C1\u91CD\u91CF",packing_way:"\u5305\u88C5\u65B9\u5F0F",packing_size:"\u88C5\u7BB1\u5C3A\u5BF8",packing_spec:"\u88C5\u7BB1\u89C4\u683C",packing_list:"\u5305\u88C5\u6E05\u5355",packing_weight:"\u88C5\u7BB1\u91CD\u91CF",good_bar:"\u5546\u54C1\u6761\u5F62\u7801",supply_area:"\u4F9B\u8D27\u533A\u57DF",delivery_place:"\u53D1\u8D27\u5730",origin_place:"\u4EA7\u5730",delivery_day:"\u7269\u6D41\u65F6\u95F4",lead_time:"\u4F9B\u8D27\u5468\u671F",sample_day:"\u8C03\u6837\u5468\u671F",sample_fee:"\u8C03\u6837\u8D39\u7528",good_img:"\u5546\u54C1\u8BE6\u60C5\u4E3B\u56FE ",good_thumb_img:"\u5546\u54C1\u7F29\u7565\u56FE",good_info_img:"\u5546\u54C1\u8BE6\u60C5\u56FE",cert_fee:"\u8BC1\u4E66\u8D39",packing_fee:"\u5305\u88C5\u8D39",cost_fee:"\u5DE5\u827A\u8D39",mark_fee:"\u52A0\u6807\u8D39",demo_fee:"\u6253\u6837\u8D39",open_fee:"\u5F00\u6A21\u8D39",noble_metal:"\u8D35\u91D1\u5C5E\u79CD\u7C7B",noble_weight:"\u8D35\u91D1\u5C5E\u91CD\u91CF",is_gold_price:"\u662F\u5426\u4F7F\u7528\u5B9E\u65F6\u91D1\u4EF7",cgd_gold_price:"\u4F9B\u5E94\u5546\u91C7\u8D2D\u91D1\u4EF7",market_price:"\u5E02\u573A\u4EF7",nake_price:"\u542B\u7A0E\u6210\u672C\u4EF7",is_step:"\u9636\u68AF\u4EF7\u662F\u5426\u542F\u7528",is_online:"\u662F\u5426\u4E0A\u7EBF",status:"\u72B6\u6001",createrid:"\u521B\u5EFA\u4EBAid",creater:"\u521B\u5EFA\u4EBA",is_del:"\u662F\u5426\u5220\u9664",addtime:"\u521B\u5EFA\u65F6\u95F4",updatetime:"\u4FEE\u6539\u65F6\u95F4",is_exclusive:"\u662F\u5426\u4E13\u5C5E\u7C7B\u578B",is_diff:"\u662F\u5426\u6709\u5DE5\u5DEE",config:"\u914D\u7F6E",other_config:"\u5176\u4ED6\u914D\u7F6E"},L={key:0,class:"flex"},w={key:1},T={key:0,class:"flex"},O={key:1},S=b({__name:"LogModal",setup(M,{expose:C}){const _=v(!1),E=y([]);function f(){E.value=[],_.value=!1}return C({onDisplay(r){_.value=!0,Object.keys(r.after_info).forEach(a=>E.value.push({key:a,label:x[a],before:r.before_info[a],after:r.after_info[a]}))}}),(r,a)=>{const p=n("ElTableColumn"),g=n("ElImage"),B=n("ElTable"),D=n("ElDialog");return e(),c(D,{modelValue:_.value,"onUpdate:modelValue":a[0]||(a[0]=u=>_.value=u),title:"\u4EA7\u54C1\u4FEE\u6539\u5DEE\u5F02\u5BF9\u6BD4",width:"1040px",center:"",onClose:f},{default:l(()=>[i(B,{size:"small",border:"",data:E.value,"max-height":"400px"},{default:l(()=>[i(p,{label:"\u4FEE\u6539\u5B57\u6BB5\u540D\u79F0",prop:"label",width:"120px",showOverflowTooltip:""},{default:l(({row:u})=>[u.key==="supplierName"?(e(),o(s,{key:0},[d("\u4F9B\u5E94\u5546\u540D\u79F0")],64)):u.label===""?(e(),o(s,{key:1},[d("--")],64)):(e(),o(s,{key:2},[d(F(u.label),1)],64))]),_:1}),i(p,{label:"\u4FEE\u6539\u5B57\u6BB5",prop:"key",width:"120px",showOverflowTooltip:""}),i(p,{label:"\u4FEE\u6539\u524D",prop:"before",showOverflowTooltip:""},{default:l(({row:u})=>[u.key==="good_img"||u.key==="good_thumb_img"||u.key==="good_info_img"?(e(),o("div",L,[(e(!0),o(s,null,m(u.before.split(","),t=>(e(),c(g,{src:t,previewSrcList:[t],style:{height:"20px",width:"20px","margin-right":"5px"}},null,8,["src","previewSrcList"]))),256))])):(e(),o("span",w,F(u.before),1))]),_:1}),i(p,{label:"\u4FEE\u6539\u540E",prop:"after",showOverflowTooltip:""},{default:l(({row:u})=>[u.key==="good_img"||u.key==="good_thumb_img"||u.key==="good_info_img"?(e(),o("div",T,[(e(!0),o(s,null,m(u.after.split(","),t=>(e(),c(g,{src:t,previewSrcList:[t],style:{height:"20px",width:"20px","margin-right":"5px"}},null,8,["src","previewSrcList"]))),256))])):(e(),o("span",O,F(u.after),1))]),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue"])}}});var z=h(S,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/time/changeLog/components/LogModal.vue"]]),U=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"}));export{z as L,j as a,U as b};