12 |
- "use strict";(self["webpackChunkbaozhidao_putoutstorage"]=self["webpackChunkbaozhidao_putoutstorage"]||[]).push([[670],{6192:function(e,t,a){a.d(t,{J9:function(){return o},f$:function(){return r},fv:function(){return l}});a(8858),a(1318),a(3228);var n=a(2984);const l=e=>n.Z.post("/stock/inquiry/excel",e,{responseType:"blob"});function o(e){const t=decodeURIComponent(e.headers["content-disposition"]);let a=new Blob([e.data],{type:"application/x-rar-compressed"}),n=window.URL.createObjectURL(a),l=document.createElement("a");l.href=n,l.download=t.split(";")[2].split("''")[1],l.click(),window.URL.revokeObjectURL(n)}function r(e){let t=URL.createObjectURL(new Blob([e.data],{type:"application/pdf;charset=utf-8"})),a=window.open(t,"_blank");a?.print()}},4257:function(e,t,a){a.d(t,{Z:function(){return b}});var n=a(6252),l=a(3577);const o={class:"mark-green1"},r=(0,n._)("div",{class:"mark-green2"},[(0,n._)("div",{class:"mark-green3"})],-1),i=[r];function s(e,t){return(0,n.wg)(),(0,n.iD)("div",o,i)}var p=a(3744);const u={},c=(0,p.Z)(u,[["render",s]]);var d=c;const g={class:"bg"},m={class:"bg-tit"},w={style:{display:"flex","align-items":"center",flex:"1","flex-shrink":"0","min-width":"200px"}};var f=(0,n.aZ)({__name:"bg",props:{istitle:{type:String,default:()=>""}},setup(e){const t=e;return(e,a)=>{const o=(0,n.up)("el-text");return(0,n.wg)(),(0,n.iD)("div",g,[(0,n._)("div",m,[(0,n._)("div",w,[(0,n.Wm)(d),(0,n.Wm)(o,{style:{"margin-left":"20px"},tag:"b"},{default:(0,n.w5)((()=>[(0,n.WI)(e.$slots,"tit",{},(()=>[(0,n.Uk)((0,l.zw)(t.istitle),1)]))])),_:3})]),(0,n.WI)(e.$slots,"btn")]),(0,n.WI)(e.$slots,"bg")])}}});const y=f;var b=y},1271:function(e,t,a){a.d(t,{Z:function(){return c}});var n=a(6252),l=a(3577),o=a(2262);const r={class:"searchAdd"},i={class:"searchAdd-left"},s={class:"searchAdd-right"};var p=(0,n.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,p=(0,o.qj)({input:""}),u=t,c=()=>{u("event",p.input)};return(e,t)=>{const o=(0,n.up)("el-button"),p=(0,n.up)("el-form-item"),u=(0,n.up)("el-form");return(0,n.wg)(),(0,n.iD)("div",r,[(0,n._)("div",i,[(0,n.Wm)(u,{inline:a.inline},{default:(0,n.w5)((()=>[(0,n.WI)(e.$slots,"searchConter"),(0,n.Wm)(p,null,{default:(0,n.w5)((()=>[(0,n.Wm)(o,{type:"primary",onClick:c},{default:(0,n.w5)((()=>[(0,n.Uk)((0,l.zw)(a.isButtom),1)])),_:1})])),_:1})])),_:3},8,["inline"])]),(0,n._)("div",s,[(0,n.WI)(e.$slots,"searchBtn")])])}}});const u=p;var c=u},6115:function(e,t,a){a.d(t,{Z:function(){return d}});var n=a(6252),l=a(2262),o=a(3577);const r=(e,t={},a=!0,n)=>{const o=(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:o.pageable.pageNum,pageSize:o.pageable.pageSize,...t};e(a).then((e=>{o.tableData=e.data?.list||[],o.pageable.total=parseInt(e.data?.count),e.Data?.RemainingTime&&(o.pageable.RemainingTime=e.Data.RemainingTime),o.loading=!1}))},i=e=>{o.pageable.pageSize=e,r()},s=e=>{o.pageable.pageNum=e,r()},p=()=>{o.pageable.pageNum=1,r()};return{...(0,l.BK)(o),getTableList:r,searchTable:p,handleSizeChange:i,handleCurrentChange:s}},i={class:"y-tabs"},s={key:0,style:{color:"red"}},p={style:{"margin-top":"20px"}};var u=(0,n.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:u,getTableList:c,pageable:d,loading:g,handleSizeChange:m,handleCurrentChange:w}=r(a.requestApi,a.initParam,a.pagination,a.dataCallback);c();const f=(0,l.iH)(a.columns);return t({getTableList:c,tableColumns:f,props:a}),(e,t)=>{const r=(0,n.up)("el-table-column"),c=(0,n.up)("el-tooltip"),y=(0,n.up)("el-empty"),b=(0,n.up)("el-table"),h=(0,n.up)("el-pagination"),v=(0,n.Q2)("loading");return(0,n.wg)(),(0,n.iD)("div",i,[(0,n.wy)(((0,n.wg)(),(0,n.j4)(b,{data:(0,l.SU)(u),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,n.w5)((()=>[(0,n.WI)(e.$slots,"append")])),empty:(0,n.w5)((()=>[(0,n.Wm)(y)])),default:(0,n.w5)((()=>[(0,n.WI)(e.$slots,"default"),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(f.value,(t=>((0,n.wg)(),(0,n.iD)(n.HY,{key:t},["selection"==t.type||"index"==t.type?((0,n.wg)(),(0,n.j4)(r,(0,n.dG)({key:0},t,{align:t.align??"center","reserve-selection":"selection"==t.type,"show-overflow-tooltip":!0}),null,16,["align","reserve-selection"])):(0,n.kq)("",!0),"expand"===t.type?((0,n.wg)(),(0,n.j4)(r,(0,n.dG)({key:1},t,{align:t.align??"center","show-overflow-tooltip":!0}),{default:(0,n.w5)((a=>[t.render?((0,n.wg)(),(0,n.j4)((0,n.LL)(t.render),{key:0,row:a.row},null,8,["row"])):(0,n.WI)(e.$slots,t.type,{key:1,row:a.row})])),_:2},1040,["align"])):(0,n.kq)("",!0),!t.type&&t.prop&&t.name!==t.prop?((0,n.wg)(),(0,n.j4)(r,(0,n.dG)({key:2},t,{align:t.align??"center","show-overflow-tooltip":!0}),{default:(0,n.w5)((a=>["T_wait_audit"==t.prop?((0,n.wg)(),(0,n.iD)("div",s,(0,o.zw)(1==a.row[t.prop]?"待审核":""),1)):(0,n.kq)("",!0),t.ellipsis?((0,n.wg)(),(0,n.j4)(c,{key:1,effect:"dark",content:a.row[t.prop],placement:"bottom"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,o.zw)(a.row[t.prop]),1)])),_:2},1032,["content"])):(0,n.kq)("",!0),t.fixed?(0,n.WI)(e.$slots,t.fixed,{key:2,row:a.row}):(0,n.kq)("",!0)])),_:2},1040,["align"])):(0,n.kq)("",!0),!t.type&&t.prop&&t.name===t.prop?((0,n.wg)(),(0,n.j4)(r,(0,n.dG)({key:3},t,{align:t.align??"center","show-overflow-tooltip":!0}),{default:(0,n.w5)((a=>[(0,n.WI)(e.$slots,t.prop,{row:a.row})])),_:2},1040,["align"])):(0,n.kq)("",!0)],64)))),128))])),_:3},8,["data","onRowClick","onSelectionChange","row-key","border","row-style"])),[[v,(0,l.SU)(g)]]),(0,n._)("div",p,[e.pagination?((0,n.wg)(),(0,n.j4)(h,{key:0,"current-page":(0,l.SU)(d).pageNum,"onUpdate:currentPage":t[0]||(t[0]=e=>(0,l.SU)(d).pageNum=e),"page-size":(0,l.SU)(d).pageSize,"onUpdate:pageSize":t[1]||(t[1]=e=>(0,l.SU)(d).pageSize=e),layout:a.layout,total:(0,l.SU)(d).total,"page-sizes":[8,10,20,50],onSizeChange:(0,l.SU)(m),onCurrentChange:(0,l.SU)(w)},null,8,["current-page","page-size","layout","total","onSizeChange","onCurrentChange"])):(0,n.kq)("",!0)])])}}});const c=u;var d=c},1670:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var n=a(6252),l=a(2262),o=a(2531),r=a(6192),i=a(5781),s=a(6115),p=a(1271),u=a(4257);const c={class:"sellManage"};var d=(0,n.aZ)({__name:"index",setup(e){const t=(0,l.iH)(),a=async e=>{let t;t="Excel"==e?await(0,o.tr)(h.initParam):await(0,o.hL)(h.initParam),(0,r.J9)(t)},d=(0,l.iH)(!1),g=(0,l.iH)([]),m=(0,l.iH)([]),w=async()=>{m.value=g.value};(0,n.bv)((async()=>{f();const e=await(0,o.uS)({type:2,name:""});let t=e.data?.list||[];g.value=t.map((e=>({value:e,label:e})))}));const f=async()=>{const e=await(0,o.oX)({page:1,pageSize:99999});h.prodOptions=e.data?.list},y=async e=>{e?(d.value=!0,setTimeout((()=>{d.value=!1,m.value=g.value.filter((t=>t.label.toLowerCase().includes(e.toLowerCase())))}),200)):m.value=[]},b=[{prop:"date",label:"日期",width:120},{prop:"receiving_unit",label:"购货单位"},{prop:"product_name",label:"品种"},{prop:"enterprise_name",label:"生产企业"},{prop:"spec_name",label:"规格(剂/支或粒)"},{prop:"dosage_form_name",label:"剂型"},{prop:"batch_number",label:"血液制品批号"},{prop:"quantity",label:"数量"},{prop:"unit_name",label:"单位"},{prop:"unit_price",label:"单价"},{prop:"money",label:"金额"}],h=(0,l.qj)({datePicker:[],prodOptions:[],initParam:{endDate:"",startDate:"",productId:null,receivingUnit:""}}),v=async()=>{h.datePicker?(h.initParam.startDate=h.datePicker[0],h.initParam.endDate=h.datePicker[1]):(h.initParam.startDate="",h.initParam.endDate=""),console.log("搜索",h)},k=async()=>{console.log("提交"),(0,n.Y3)((()=>{t.value?.getTableList()}))};return(e,r)=>{const g=(0,n.up)("el-date-picker"),f=(0,n.up)("el-form-item"),_=(0,n.up)("el-option"),C=(0,n.up)("el-select"),S=(0,n.up)("el-button");return(0,n.wg)(),(0,n.iD)("div",c,[(0,n.Wm)(p.Z,{isButtom:"查询",inline:!0,onEvent:k},{searchConter:(0,n.w5)((()=>[(0,n.Wm)(f,{label:"日期"},{default:(0,n.w5)((()=>[(0,n.Wm)(g,{modelValue:h.datePicker,"onUpdate:modelValue":r[0]||(r[0]=e=>h.datePicker=e),type:"daterange",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD","start-placeholder":"开始时间","end-placeholder":"结束时间",clearable:"",style:{width:"200px"},onChange:v},null,8,["modelValue"])])),_:1}),(0,n.Wm)(f,{label:"品名"},{default:(0,n.w5)((()=>[(0,n.Wm)(C,{modelValue:h.initParam.productId,"onUpdate:modelValue":r[1]||(r[1]=e=>h.initParam.productId=e),placeholder:"品名",clearable:"",onClear:r[2]||(r[2]=e=>h.initParam.productId=null)},{default:(0,n.w5)((()=>[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(h.prodOptions,((e,t)=>((0,n.wg)(),(0,n.j4)(_,{label:e.name,value:e.id,key:t},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1}),(0,n.Wm)(f,{label:"购货单位"},{default:(0,n.w5)((()=>[(0,n.Wm)(C,{modelValue:h.initParam.receivingUnit,"onUpdate:modelValue":r[3]||(r[3]=e=>h.initParam.receivingUnit=e),filterable:"",remote:"","reserve-keyword":"",placeholder:"购货单位","remote-method":y,loading:d.value,onClick:w,clearable:"",style:{width:"200px"}},{default:(0,n.w5)((()=>[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(m.value,(e=>((0,n.wg)(),(0,n.j4)(_,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue","loading"])])),_:1})])),_:1}),(0,n.Wm)(u.Z,{istitle:"基本信息"},{btn:(0,n.w5)((()=>[(0,n.Wm)(S,{round:"",type:"primary",onClick:r[4]||(r[4]=e=>a("Excel")),icon:(0,l.SU)(i.Download)},{default:(0,n.w5)((()=>[(0,n.Uk)("导出销售清单")])),_:1},8,["icon"]),(0,n.Wm)(S,{round:"",type:"primary",onClick:r[5]||(r[5]=e=>a("ReportExcel")),icon:(0,l.SU)(i.Tickets)},{default:(0,n.w5)((()=>[(0,n.Uk)("导出销售报表")])),_:1},8,["icon"])])),bg:(0,n.w5)((()=>[(0,n.Wm)(s.Z,{ref_key:"TableRef",ref:t,requestApi:(0,l.SU)(o.Xp),columns:b,initParam:h.initParam},null,8,["requestApi","initParam"])])),_:1})])}}});const g=d;var m=g},926:function(e,t,a){var n=a(3043),l=a(9985),o=a(6648),r=a(4201),i=r("toStringTag"),s=Object,p="Arguments"===o(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(a){}};e.exports=n?o:function(e){var t,a,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=u(t=s(e),i))?a:p?o(t):"Object"===(n=o(t))&&l(t.callee)?"Arguments":n}},2148:function(e,t,a){var n=a(8702),l=a(2560);e.exports=function(e,t,a){return a.get&&n(a.get,t,{getter:!0}),a.set&&n(a.set,t,{setter:!0}),l.f(e,t,a)}},3043:function(e,t,a){var n=a(4201),l=n("toStringTag"),o={};o[l]="z",e.exports="[object z]"===String(o)},4327:function(e,t,a){var n=a(926),l=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return l(e)}},1500:function(e){var t=TypeError;e.exports=function(e,a){if(e<a)throw new t("Not enough arguments");return e}},8858:function(e,t,a){var n=a(1880),l=a(8844),o=a(4327),r=a(1500),i=URLSearchParams,s=i.prototype,p=l(s.append),u=l(s["delete"]),c=l(s.forEach),d=l([].push),g=new i("a=1&a=2&b=3");g["delete"]("a",1),g["delete"]("b",void 0),g+""!=="a=2"&&n(s,"delete",(function(e){var t=arguments.length,a=t<2?void 0:arguments[1];if(t&&void 0===a)return u(this,e);var n=[];c(this,(function(e,t){d(n,{key:t,value:e})})),r(t,1);var l,i=o(e),s=o(a),g=0,m=0,w=!1,f=n.length;while(g<f)l=n[g++],w||l.key===i?(w=!0,u(this,l.key)):m++;while(m<f)l=n[m++],l.key===i&&l.value===s||p(this,l.key,l.value)}),{enumerable:!0,unsafe:!0})},1318:function(e,t,a){var n=a(1880),l=a(8844),o=a(4327),r=a(1500),i=URLSearchParams,s=i.prototype,p=l(s.getAll),u=l(s.has),c=new i("a=1");!c.has("a",2)&&c.has("a",void 0)||n(s,"has",(function(e){var t=arguments.length,a=t<2?void 0:arguments[1];if(t&&void 0===a)return u(this,e);var n=p(this,e);r(t,1);var l=o(a),i=0;while(i<n.length)if(n[i++]===l)return!0;return!1}),{enumerable:!0,unsafe:!0})},3228:function(e,t,a){var n=a(7697),l=a(8844),o=a(2148),r=URLSearchParams.prototype,i=l(r.forEach);n&&!("size"in r)&&o(r,"size",{get:function(){var e=0;return i(this,(function(){e++})),e},configurable:!0,enumerable:!0})}}]);
- //# sourceMappingURL=670.75af8c98.js.map
|