12 |
- "use strict";(self["webpackChunkbaozhidao_putoutstorage"]=self["webpackChunkbaozhidao_putoutstorage"]||[]).push([[219],{6582:function(e,t,a){a.d(t,{GA:function(){return i},YM:function(){return n},lh:function(){return l},ro:function(){return r},ul:function(){return o},wy:function(){return p}});const o={quantity:[{required:!0,message:"必填项",trigger:"blur"},{pattern:/^(?:[1-9]\d*)$/,message:"数量必须为正整数",trigger:"blur"}],date:[{required:!0,message:"必填项",trigger:"change"}],operator:[{required:!0,message:"必填项",trigger:"change"}]};let l=[{prop:"quantity",label:"数量",width:0},{prop:"unit_price",label:"单价",width:0},{prop:"operator",label:"经办人",width:0},{prop:"forwarding_unit",label:"发货单位",width:0},{prop:"date",label:"入库日期",width:0},{prop:"operation",label:"操作",fixed:"right","min-width":200}],n=[{prop:"quantity",label:"数量",width:0},{prop:"unitPrice",label:"单价",width:0},{prop:"operator",label:"经办人",width:0},{prop:"forwardingUnit",label:"发货单位",width:0},{prop:"date",label:"入库日期",width:0},{prop:"operation",label:"操作",fixed:"right","min-width":200}],r=[{prop:"quantity",label:"数量",width:0},{prop:"operator",label:"经办人",width:0},{prop:"unit_price",label:"购进单价",width:0},{prop:"forwardingUnit",label:"发货单位",width:0},{prop:"date",label:"入库日期",width:0},{prop:"operation",label:"操作",fixed:"right","min-width":200}],i=[{label:"数量",prop:"quantity",width:0},{label:"经办人",prop:"operator",width:0},{label:"收货单位",prop:"receiving_unit",width:0},{label:"出库日期",prop:"date",width:0},{prop:"operation",label:"操作",fixed:"right","min-width":200}],p=[{label:"数量",prop:"quantity",width:0},{label:"经办人",prop:"operator",width:0},{label:"收货单位",prop:"receivingUnit",width:0},{label:"出库日期",prop:"date",width:0},{prop:"operation",label:"操作",fixed:"right","min-width":200}]},9688:function(e,t,a){function o(){const e=new Date;var t=e.getFullYear(),a=(e.getMonth()+1).toString().padStart(2,"0"),o=e.getDate().toString().padStart(2,"0");return t+"-"+a+"-"+o}a.d(t,{y:function(){return o}})},4257:function(e,t,a){a.d(t,{Z:function(){return b}});var o=a(6252),l=a(3577);const n={class:"mark-green1"},r=(0,o._)("div",{class:"mark-green2"},[(0,o._)("div",{class:"mark-green3"})],-1),i=[r];function p(e,t){return(0,o.wg)(),(0,o.iD)("div",n,i)}var s=a(3744);const d={},u=(0,s.Z)(d,[["render",p]]);var g=u;const w={class:"bg"},c={class:"bg-tit"},h={style:{display:"flex","align-items":"center",flex:"1","flex-shrink":"0","min-width":"200px"}};var y=(0,o.aZ)({__name:"bg",props:{istitle:{type:String,default:()=>""}},setup(e){const t=e;return(e,a)=>{const n=(0,o.up)("el-text");return(0,o.wg)(),(0,o.iD)("div",w,[(0,o._)("div",c,[(0,o._)("div",h,[(0,o.Wm)(g),(0,o.Wm)(n,{style:{"margin-left":"20px"},tag:"b"},{default:(0,o.w5)((()=>[(0,o.WI)(e.$slots,"tit",{},(()=>[(0,o.Uk)((0,l.zw)(t.istitle),1)]))])),_:3})]),(0,o.WI)(e.$slots,"btn")]),(0,o.WI)(e.$slots,"bg")])}}});const m=y;var b=m},1271:function(e,t,a){a.d(t,{Z:function(){return u}});var o=a(6252),l=a(3577),n=a(2262);const r={class:"searchAdd"},i={class:"searchAdd-left"},p={class:"searchAdd-right"};var s=(0,o.aZ)({__name:"searchAdd",props:{isButtom:{type:String,default:()=>""},labelWidth:{type:String,default:()=>"100"},inline:{type:Boolean,default:()=>!0}},emits:["event"],setup(e,{emit:t}){const a=e,s=(0,n.qj)({input:""}),d=t,u=()=>{d("event",s.input)};return(e,t)=>{const n=(0,o.up)("el-button"),s=(0,o.up)("el-form-item"),d=(0,o.up)("el-form");return(0,o.wg)(),(0,o.iD)("div",r,[(0,o._)("div",i,[(0,o.Wm)(d,{inline:a.inline},{default:(0,o.w5)((()=>[(0,o.WI)(e.$slots,"searchConter"),(0,o.Wm)(s,null,{default:(0,o.w5)((()=>[(0,o.Wm)(n,{type:"primary",onClick:u},{default:(0,o.w5)((()=>[(0,o.Uk)((0,l.zw)(a.isButtom),1)])),_:1})])),_:1})])),_:3},8,["inline"])]),(0,o._)("div",p,[(0,o.WI)(e.$slots,"searchBtn")])])}}});const d=s;var u=d},6115:function(e,t,a){a.d(t,{Z:function(){return g}});var o=a(6252),l=a(2262),n=a(3577);const r=(e,t={},a=!0,o)=>{const n=(0,l.qj)({tableData:[],loading:!0,pageable:{pageNum:1,pageSize:8,total:0,RemainingTime:0,small:!0,disabled:!1},searchParam:{},searchInitParam:{},totalParam:{}}),r=async()=>{const a={page:n.pageable.pageNum,pageSize:n.pageable.pageSize,...t};e(a).then((e=>{n.tableData=e.data?.list||[],n.pageable.total=parseInt(e.data?.count),e.Data?.RemainingTime&&(n.pageable.RemainingTime=e.Data.RemainingTime),n.loading=!1}))},i=e=>{n.pageable.pageSize=e,r()},p=e=>{n.pageable.pageNum=e,r()},s=()=>{n.pageable.pageNum=1,r()};return{...(0,l.BK)(n),getTableList:r,searchTable:s,handleSizeChange:i,handleCurrentChange:p}},i={class:"y-tabs"},p={key:0,style:{color:"red"}},s={style:{"margin-top":"20px"}};var d=(0,o.aZ)({__name:"table",props:{columns:{default:()=>[]},requestApi:{},dataCallback:{},title:{},pagination:{type:Boolean,default:!0},layout:{default:"total, sizes, prev, pager, next, jumper"},initParam:{default:{}},border:{type:Boolean,default:!0},toolButton:{type:Boolean,default:!0},selectId:{default:"id"},displayHeader:{type:Boolean},rowClick:{},selectionChange:{},getRowKey:{},tableRowClassName:{},size:{},width:{},height:{},maxHeight:{},fit:{type:Boolean},stripe:{type:Boolean},rowKey:{},context:{},showHeader:{type:Boolean},showSummary:{type:Boolean},sumText:{},summaryMethod:{},rowClassName:{},rowStyle:{},cellClassName:{},cellStyle:{},headerRowClassName:{},headerRowStyle:{},headerCellClassName:{},headerCellStyle:{},highlightCurrentRow:{type:Boolean},currentRowKey:{},emptyText:{},expandRowKeys:{},defaultExpandAll:{type:Boolean},defaultSort:{},tooltipEffect:{},tooltipOptions:{},spanMethod:{},selectOnIndeterminate:{type:Boolean},indent:{},treeProps:{},lazy:{type:Boolean},load:{},className:{},style:{},tableLayout:{},scrollbarAlwaysOn:{type:Boolean},flexible:{type:Boolean},showOverflowTooltip:{type:[Boolean,Object]}},setup(e,{expose:t}){const a=e,{tableData:d,getTableList:u,pageable:g,loading:w,handleSizeChange:c,handleCurrentChange:h}=r(a.requestApi,a.initParam,a.pagination,a.dataCallback);u();const y=(0,l.iH)(a.columns);return t({getTableList:u,tableColumns:y,props:a}),(e,t)=>{const r=(0,o.up)("el-table-column"),u=(0,o.up)("el-tooltip"),m=(0,o.up)("el-empty"),b=(0,o.up)("el-table"),f=(0,o.up)("el-pagination"),k=(0,o.Q2)("loading");return(0,o.wg)(),(0,o.iD)("div",i,[(0,o.wy)(((0,o.wg)(),(0,o.j4)(b,{data:(0,l.SU)(d),onRowClick:a.rowClick,onSelectionChange:a.selectionChange,"row-key":a.getRowKey,border:a.border,"max-height":"450","row-style":e.tableRowClassName,"table-layout":"auto"},{append:(0,o.w5)((()=>[(0,o.WI)(e.$slots,"append")])),empty:(0,o.w5)((()=>[(0,o.Wm)(m)])),default:(0,o.w5)((()=>[(0,o.WI)(e.$slots,"default"),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(y.value,(t=>((0,o.wg)(),(0,o.iD)(o.HY,{key:t},["selection"==t.type||"index"==t.type?((0,o.wg)(),(0,o.j4)(r,(0,o.dG)({key:0},t,{align:t.align??"center","reserve-selection":"selection"==t.type,"show-overflow-tooltip":!0}),null,16,["align","reserve-selection"])):(0,o.kq)("",!0),"expand"===t.type?((0,o.wg)(),(0,o.j4)(r,(0,o.dG)({key:1},t,{align:t.align??"center","show-overflow-tooltip":!0}),{default:(0,o.w5)((a=>[t.render?((0,o.wg)(),(0,o.j4)((0,o.LL)(t.render),{key:0,row:a.row},null,8,["row"])):(0,o.WI)(e.$slots,t.type,{key:1,row:a.row})])),_:2},1040,["align"])):(0,o.kq)("",!0),!t.type&&t.prop&&t.name!==t.prop?((0,o.wg)(),(0,o.j4)(r,(0,o.dG)({key:2},t,{align:t.align??"center","show-overflow-tooltip":!0}),{default:(0,o.w5)((a=>["T_wait_audit"==t.prop?((0,o.wg)(),(0,o.iD)("div",p,(0,n.zw)(1==a.row[t.prop]?"待审核":""),1)):(0,o.kq)("",!0),t.ellipsis?((0,o.wg)(),(0,o.j4)(u,{key:1,effect:"dark",content:a.row[t.prop],placement:"bottom"},{default:(0,o.w5)((()=>[(0,o.Uk)((0,n.zw)(a.row[t.prop]),1)])),_:2},1032,["content"])):(0,o.kq)("",!0),t.fixed?(0,o.WI)(e.$slots,t.fixed,{key:2,row:a.row}):(0,o.kq)("",!0)])),_:2},1040,["align"])):(0,o.kq)("",!0),!t.type&&t.prop&&t.name===t.prop?((0,o.wg)(),(0,o.j4)(r,(0,o.dG)({key:3},t,{align:t.align??"center","show-overflow-tooltip":!0}),{default:(0,o.w5)((a=>[(0,o.WI)(e.$slots,t.prop,{row:a.row})])),_:2},1040,["align"])):(0,o.kq)("",!0)],64)))),128))])),_:3},8,["data","onRowClick","onSelectionChange","row-key","border","row-style"])),[[k,(0,l.SU)(w)]]),(0,o._)("div",s,[e.pagination?((0,o.wg)(),(0,o.j4)(f,{key:0,"current-page":(0,l.SU)(g).pageNum,"onUpdate:currentPage":t[0]||(t[0]=e=>(0,l.SU)(g).pageNum=e),"page-size":(0,l.SU)(g).pageSize,"onUpdate:pageSize":t[1]||(t[1]=e=>(0,l.SU)(g).pageSize=e),layout:a.layout,total:(0,l.SU)(g).total,"page-sizes":[8,10,20,50],onSizeChange:(0,l.SU)(c),onCurrentChange:(0,l.SU)(h)},null,8,["current-page","page-size","layout","total","onSizeChange","onCurrentChange"])):(0,o.kq)("",!0)])])}}});const u=d;var g=u},1770:function(e,t,a){e.exports=a.p+"img/BarCodeQR.69f4fb5e.svg"}}]);
- //# sourceMappingURL=219.8997cfec.js.map
|