940.323f2b64.js 16 KB

12
  1. "use strict";(self["webpackChunkbaozhidao_putoutstorage"]=self["webpackChunkbaozhidao_putoutstorage"]||[]).push([[940],{6192:function(e,a,t){t.d(a,{J9:function(){return o},f$:function(){return i},fv:function(){return n}});t(8858),t(1318),t(3228);var l=t(2984);const n=e=>l.Z.post("/stock/inquiry/excel",e,{responseType:"blob"});function o(e){const a=decodeURIComponent(e.headers["content-disposition"]);let t=new Blob([e.data],{type:"application/x-rar-compressed"}),l=window.URL.createObjectURL(t),n=document.createElement("a");n.href=l,n.download=a.split(";")[2].split("''")[1],n.click(),window.URL.revokeObjectURL(l)}function i(e){let a=URL.createObjectURL(new Blob([e.data],{type:"application/pdf;charset=utf-8"})),t=window.open(a,"_blank");t?.print()}},4257:function(e,a,t){t.d(a,{Z:function(){return b}});var l=t(6252),n=t(3577);const o={class:"mark-green1"},i=(0,l._)("div",{class:"mark-green2"},[(0,l._)("div",{class:"mark-green3"})],-1),r=[i];function u(e,a){return(0,l.wg)(),(0,l.iD)("div",o,r)}var s=t(3744);const p={},d=(0,s.Z)(p,[["render",u]]);var c=d;const m={class:"bg"},g={class:"bg-tit"},w={style:{display:"flex","align-items":"center",flex:"1","flex-shrink":"0","min-width":"200px"}};var f=(0,l.aZ)({__name:"bg",props:{istitle:{type:String,default:()=>""}},setup(e){const a=e;return(e,t)=>{const o=(0,l.up)("el-text");return(0,l.wg)(),(0,l.iD)("div",m,[(0,l._)("div",g,[(0,l._)("div",w,[(0,l.Wm)(c),(0,l.Wm)(o,{style:{"margin-left":"20px"},tag:"b"},{default:(0,l.w5)((()=>[(0,l.WI)(e.$slots,"tit",{},(()=>[(0,l.Uk)((0,n.zw)(a.istitle),1)]))])),_:3})]),(0,l.WI)(e.$slots,"btn")]),(0,l.WI)(e.$slots,"bg")])}}});const y=f;var b=y},1271:function(e,a,t){t.d(a,{Z:function(){return d}});var l=t(6252),n=t(3577),o=t(2262);const i={class:"searchAdd"},r={class:"searchAdd-left"},u={class:"searchAdd-right"};var s=(0,l.aZ)({__name:"searchAdd",props:{isButtom:{type:String,default:()=>""},labelWidth:{type:String,default:()=>"100"},inline:{type:Boolean,default:()=>!0}},emits:["event"],setup(e,{emit:a}){const t=e,s=(0,o.qj)({input:""}),p=a,d=()=>{p("event",s.input)};return(e,a)=>{const o=(0,l.up)("el-button"),s=(0,l.up)("el-form-item"),p=(0,l.up)("el-form");return(0,l.wg)(),(0,l.iD)("div",i,[(0,l._)("div",r,[(0,l.Wm)(p,{inline:t.inline},{default:(0,l.w5)((()=>[(0,l.WI)(e.$slots,"searchConter"),(0,l.Wm)(s,null,{default:(0,l.w5)((()=>[(0,l.Wm)(o,{type:"primary",onClick:d},{default:(0,l.w5)((()=>[(0,l.Uk)((0,n.zw)(t.isButtom),1)])),_:1})])),_:1})])),_:3},8,["inline"])]),(0,l._)("div",u,[(0,l.WI)(e.$slots,"searchBtn")])])}}});const p=s;var d=p},6115:function(e,a,t){t.d(a,{Z:function(){return c}});var l=t(6252),n=t(2262),o=t(3577);const i=(e,a={},t=!0,l)=>{const o=(0,n.qj)({tableData:[],loading:!0,pageable:{pageNum:1,pageSize:8,total:0,RemainingTime:0,small:!0,disabled:!1},searchParam:{},searchInitParam:{},totalParam:{}}),i=async()=>{const t={page:o.pageable.pageNum,pageSize:o.pageable.pageSize,...a};e(t).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}))},r=e=>{o.pageable.pageSize=e,i()},u=e=>{o.pageable.pageNum=e,i()},s=()=>{o.pageable.pageNum=1,i()};return{...(0,n.BK)(o),getTableList:i,searchTable:s,handleSizeChange:r,handleCurrentChange:u}},r={class:"y-tabs"},u={key:0,style:{color:"red"}},s={style:{"margin-top":"20px"}};var p=(0,l.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:a}){const t=e,{tableData:p,getTableList:d,pageable:c,loading:m,handleSizeChange:g,handleCurrentChange:w}=i(t.requestApi,t.initParam,t.pagination,t.dataCallback);d();const f=(0,n.iH)(t.columns);return a({getTableList:d,tableColumns:f,props:t}),(e,a)=>{const i=(0,l.up)("el-table-column"),d=(0,l.up)("el-tooltip"),y=(0,l.up)("el-empty"),b=(0,l.up)("el-table"),v=(0,l.up)("el-pagination"),h=(0,l.Q2)("loading");return(0,l.wg)(),(0,l.iD)("div",r,[(0,l.wy)(((0,l.wg)(),(0,l.j4)(b,{data:(0,n.SU)(p),onRowClick:t.rowClick,onSelectionChange:t.selectionChange,"row-key":t.getRowKey,border:t.border,"max-height":"450","row-style":e.tableRowClassName,"table-layout":"auto"},{append:(0,l.w5)((()=>[(0,l.WI)(e.$slots,"append")])),empty:(0,l.w5)((()=>[(0,l.Wm)(y)])),default:(0,l.w5)((()=>[(0,l.WI)(e.$slots,"default"),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(f.value,(a=>((0,l.wg)(),(0,l.iD)(l.HY,{key:a},["selection"==a.type||"index"==a.type?((0,l.wg)(),(0,l.j4)(i,(0,l.dG)({key:0},a,{align:a.align??"center","reserve-selection":"selection"==a.type,"show-overflow-tooltip":!0}),null,16,["align","reserve-selection"])):(0,l.kq)("",!0),"expand"===a.type?((0,l.wg)(),(0,l.j4)(i,(0,l.dG)({key:1},a,{align:a.align??"center","show-overflow-tooltip":!0}),{default:(0,l.w5)((t=>[a.render?((0,l.wg)(),(0,l.j4)((0,l.LL)(a.render),{key:0,row:t.row},null,8,["row"])):(0,l.WI)(e.$slots,a.type,{key:1,row:t.row})])),_:2},1040,["align"])):(0,l.kq)("",!0),!a.type&&a.prop&&a.name!==a.prop?((0,l.wg)(),(0,l.j4)(i,(0,l.dG)({key:2},a,{align:a.align??"center","show-overflow-tooltip":!0}),{default:(0,l.w5)((t=>["T_wait_audit"==a.prop?((0,l.wg)(),(0,l.iD)("div",u,(0,o.zw)(1==t.row[a.prop]?"待审核":""),1)):(0,l.kq)("",!0),a.ellipsis?((0,l.wg)(),(0,l.j4)(d,{key:1,effect:"dark",content:t.row[a.prop],placement:"bottom"},{default:(0,l.w5)((()=>[(0,l.Uk)((0,o.zw)(t.row[a.prop]),1)])),_:2},1032,["content"])):(0,l.kq)("",!0),a.fixed?(0,l.WI)(e.$slots,a.fixed,{key:2,row:t.row}):(0,l.kq)("",!0)])),_:2},1040,["align"])):(0,l.kq)("",!0),!a.type&&a.prop&&a.name===a.prop?((0,l.wg)(),(0,l.j4)(i,(0,l.dG)({key:3},a,{align:a.align??"center","show-overflow-tooltip":!0}),{default:(0,l.w5)((t=>[(0,l.WI)(e.$slots,a.prop,{row:t.row})])),_:2},1040,["align"])):(0,l.kq)("",!0)],64)))),128))])),_:3},8,["data","onRowClick","onSelectionChange","row-key","border","row-style"])),[[h,(0,n.SU)(m)]]),(0,l._)("div",s,[e.pagination?((0,l.wg)(),(0,l.j4)(v,{key:0,"current-page":(0,n.SU)(c).pageNum,"onUpdate:currentPage":a[0]||(a[0]=e=>(0,n.SU)(c).pageNum=e),"page-size":(0,n.SU)(c).pageSize,"onUpdate:pageSize":a[1]||(a[1]=e=>(0,n.SU)(c).pageSize=e),layout:t.layout,total:(0,n.SU)(c).total,"page-sizes":[8,10,20,50],onSizeChange:(0,n.SU)(g),onCurrentChange:(0,n.SU)(w)},null,8,["current-page","page-size","layout","total","onSizeChange","onCurrentChange"])):(0,l.kq)("",!0)])])}}});const d=p;var c=d},8940:function(e,a,t){t.r(a),t.d(a,{default:function(){return _}});var l=t(6252),n=t(2262),o=t(2531),i=t(6115),r=t(1271),u=t(3577),s=t(5781),p=t(6192),d=t(6033);const c={class:""},m={class:"dialog-footer"},g="80px";var w=(0,l.aZ)({__name:"down",props:{initParam:{type:Object,default:()=>{}}},setup(e){const a=(0,n.iH)(!1),t=(0,n.iH)(),i=e,r=(0,n.qj)({date:"",receivingUnit:"",drawer:"",consigner:"",finance:"",consignee:"",type:"excel"}),w=((0,n.qj)({imgUrl:"",fileAddress:""}),async e=>{e&&e.validate((e=>{if(!e)return!1;(0,d.C)(r).then((e=>{const a=e;"excel"==r.type?(0,p.J9)(a):(0,p.f$)(a)})).catch((e=>{console.log("err",e.toString())}))}))}),f=async()=>{a.value=!0,r.date=i.initParam.date,r.receivingUnit=i.initParam.receivingUnit};(0,l.bv)((async()=>{const e=await(0,o.uS)({type:2,name:""});let a=e.data?.list||[];y.value=a.map((e=>({value:e,label:e})))}));const y=(0,n.iH)([]),b=(0,n.iH)([]),v=async()=>{b.value=y.value},h=(0,n.iH)(!1),k=async e=>{e?(h.value=!0,setTimeout((()=>{h.value=!1,b.value=y.value.filter((a=>a.label.toLowerCase().includes(e.toLowerCase())))}),200)):b.value=[]};return(e,o)=>{const i=(0,l.up)("el-button"),p=(0,l.up)("el-date-picker"),d=(0,l.up)("el-form-item"),y=(0,l.up)("el-option"),_=(0,l.up)("el-select"),U=(0,l.up)("el-input"),C=(0,l.up)("el-radio"),W=(0,l.up)("el-radio-group"),S=(0,l.up)("el-form"),x=(0,l.up)("el-dialog");return(0,l.wg)(),(0,l.iD)("div",c,[(0,l.Wm)(i,{round:"",type:"primary",icon:(0,n.SU)(s.Download),onClick:f},{default:(0,l.w5)((()=>[(0,l.Uk)("导出/打印")])),_:1},8,["icon"]),(0,l.Wm)(x,{modelValue:a.value,"onUpdate:modelValue":o[9]||(o[9]=e=>a.value=e),title:"导出/打印","append-to-body":!0,draggable:"",width:"30%"},{footer:(0,l.w5)((()=>[(0,l._)("span",m,[(0,l.Wm)(i,{onClick:o[7]||(o[7]=e=>a.value=!1)},{default:(0,l.w5)((()=>[(0,l.Uk)("Cancel")])),_:1}),(0,l.Wm)(i,{type:"primary",onClick:o[8]||(o[8]=e=>w(t.value))},{default:(0,l.w5)((()=>[(0,l.Uk)((0,u.zw)("excel"==r.type?"立即导出":"立即打印"),1)])),_:1})])])),default:(0,l.w5)((()=>[(0,l.Wm)(S,{model:r,ref_key:"formRef",ref:t},{default:(0,l.w5)((()=>[(0,l.Wm)(d,{label:"下单日期","label-width":g,prop:"date",rules:[{required:!0,message:"必填项"}]},{default:(0,l.w5)((()=>[(0,l.Wm)(p,{modelValue:r.date,"onUpdate:modelValue":o[0]||(o[0]=e=>r.date=e),type:"date","value-format":"YYYY-MM-DD",clearable:"",style:{width:"100%"}},null,8,["modelValue"])])),_:1}),(0,l.Wm)(d,{label:"购货单位","label-width":g,prop:"receivingUnit",rules:[{required:!0,message:"必填项"}]},{default:(0,l.w5)((()=>[(0,l.Wm)(_,{modelValue:r.receivingUnit,"onUpdate:modelValue":o[1]||(o[1]=e=>r.receivingUnit=e),filterable:"",remote:"","reserve-keyword":"",placeholder:"购货单位","remote-method":k,loading:h.value,clearable:"",style:{width:"100%"},onClick:v},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(b.value,(e=>((0,l.wg)(),(0,l.j4)(y,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue","loading"])])),_:1}),(0,l.Wm)(d,{label:"开票员","label-width":g},{default:(0,l.w5)((()=>[(0,l.Wm)(U,{modelValue:r.drawer,"onUpdate:modelValue":o[2]||(o[2]=e=>r.drawer=e),autocomplete:"off"},null,8,["modelValue"])])),_:1}),(0,l.Wm)(d,{label:"发货人","label-width":g},{default:(0,l.w5)((()=>[(0,l.Wm)(U,{modelValue:r.consigner,"onUpdate:modelValue":o[3]||(o[3]=e=>r.consigner=e),autocomplete:"off"},null,8,["modelValue"])])),_:1}),(0,l.Wm)(d,{label:"财务","label-width":g},{default:(0,l.w5)((()=>[(0,l.Wm)(U,{modelValue:r.finance,"onUpdate:modelValue":o[4]||(o[4]=e=>r.finance=e),autocomplete:"off"},null,8,["modelValue"])])),_:1}),(0,l.Wm)(d,{label:"收货人","label-width":g},{default:(0,l.w5)((()=>[(0,l.Wm)(U,{modelValue:r.consignee,"onUpdate:modelValue":o[5]||(o[5]=e=>r.consignee=e),autocomplete:"off"},null,8,["modelValue"])])),_:1}),(0,l.Wm)(d,{label:"下载文件","label-width":g},{default:(0,l.w5)((()=>[(0,l.Wm)(W,{modelValue:r.type,"onUpdate:modelValue":o[6]||(o[6]=e=>r.type=e)},{default:(0,l.w5)((()=>[(0,l.Wm)(C,{label:"excel"},{default:(0,l.w5)((()=>[(0,l.Uk)("excel")])),_:1}),(0,l.Wm)(C,{label:"pdf"},{default:(0,l.w5)((()=>[(0,l.Uk)("pdf")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model"])])),_:1},8,["modelValue"])])}}});const f=w;var y=f,b=t(4257);const v={class:"sellManage"};var h=(0,l.aZ)({__name:"index",setup(e){const a=(0,n.iH)(),t=(0,n.iH)(!1),u=(0,n.iH)([]),s=(0,n.iH)([]),p=async()=>{s.value=u.value};(0,l.bv)((async()=>{const e=await(0,o.uS)({type:2,name:""});let a=e.data?.list||[];u.value=a.map((e=>({value:e,label:e})))}));const d=async e=>{e?(t.value=!0,setTimeout((()=>{t.value=!1,s.value=u.value.filter((a=>a.label.toLowerCase().includes(e.toLowerCase())))}),200)):s.value=[]},c=[{prop:"date",label:"日期",width:120},{prop:"receiving_unit",label:"购货单位",width:150},{prop:"product_name",label:"品种",width:150},{prop:"dosage_form_name",label:"剂型",width:100},{prop:"spec_name",label:"规格(剂/支或粒)",width:150},{prop:"enterprise_name",label:"生产企业",width:150},{prop:"batch_number",label:"血液制品批号",width:150},{prop:"expiry_date",label:"失效日期",width:120},{prop:"approval_number",label:"批准文号",width:120},{prop:"quantity",label:"数量",width:120},{prop:"unit_name",label:"单位",width:80},{prop:"sales_unit_price",label:"单价",width:120},{prop:"sales_money",label:"金额","min-width":120}],m=(0,n.qj)({datePicker:[],initParam:{date:"",receivingUnit:""}}),g=async()=>{(0,l.Y3)((()=>{a.value?.getTableList()}))};return(e,u)=>{const w=(0,l.up)("el-date-picker"),f=(0,l.up)("el-form-item"),h=(0,l.up)("el-option"),k=(0,l.up)("el-select");return(0,l.wg)(),(0,l.iD)("div",v,[(0,l.Wm)(r.Z,{isButtom:"查询",inline:!0,onEvent:g},{searchConter:(0,l.w5)((()=>[(0,l.Wm)(f,{label:"日期"},{default:(0,l.w5)((()=>[(0,l.Wm)(w,{modelValue:m.initParam.date,"onUpdate:modelValue":u[0]||(u[0]=e=>m.initParam.date=e),type:"date","value-format":"YYYY-MM-DD",clearable:"",style:{width:"200px"}},null,8,["modelValue"])])),_:1}),(0,l.Wm)(f,{label:"购货单位"},{default:(0,l.w5)((()=>[(0,l.Wm)(k,{modelValue:m.initParam.receivingUnit,"onUpdate:modelValue":u[1]||(u[1]=e=>m.initParam.receivingUnit=e),filterable:"",remote:"","reserve-keyword":"",placeholder:"购货单位","remote-method":d,loading:t.value,clearable:"",style:{width:"200px"},onClick:p},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(s.value,(e=>((0,l.wg)(),(0,l.j4)(h,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue","loading"])])),_:1})])),_:1}),(0,l.Wm)(b.Z,{istitle:"基本信息"},{btn:(0,l.w5)((()=>[(0,l.Wm)(y,{initParam:m.initParam},null,8,["initParam"])])),bg:(0,l.w5)((()=>[(0,l.Wm)(i.Z,{ref_key:"TableRef",ref:a,requestApi:(0,n.SU)(o.QN),columns:c,initParam:m.initParam},null,8,["requestApi","initParam"])])),_:1})])}}});const k=h;var _=k},926:function(e,a,t){var l=t(3043),n=t(9985),o=t(6648),i=t(4201),r=i("toStringTag"),u=Object,s="Arguments"===o(function(){return arguments}()),p=function(e,a){try{return e[a]}catch(t){}};e.exports=l?o:function(e){var a,t,l;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=p(a=u(e),r))?t:s?o(a):"Object"===(l=o(a))&&n(a.callee)?"Arguments":l}},2148:function(e,a,t){var l=t(8702),n=t(2560);e.exports=function(e,a,t){return t.get&&l(t.get,a,{getter:!0}),t.set&&l(t.set,a,{setter:!0}),n.f(e,a,t)}},3043:function(e,a,t){var l=t(4201),n=l("toStringTag"),o={};o[n]="z",e.exports="[object z]"===String(o)},4327:function(e,a,t){var l=t(926),n=String;e.exports=function(e){if("Symbol"===l(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},1500:function(e){var a=TypeError;e.exports=function(e,t){if(e<t)throw new a("Not enough arguments");return e}},8858:function(e,a,t){var l=t(1880),n=t(8844),o=t(4327),i=t(1500),r=URLSearchParams,u=r.prototype,s=n(u.append),p=n(u["delete"]),d=n(u.forEach),c=n([].push),m=new r("a=1&a=2&b=3");m["delete"]("a",1),m["delete"]("b",void 0),m+""!=="a=2"&&l(u,"delete",(function(e){var a=arguments.length,t=a<2?void 0:arguments[1];if(a&&void 0===t)return p(this,e);var l=[];d(this,(function(e,a){c(l,{key:a,value:e})})),i(a,1);var n,r=o(e),u=o(t),m=0,g=0,w=!1,f=l.length;while(m<f)n=l[m++],w||n.key===r?(w=!0,p(this,n.key)):g++;while(g<f)n=l[g++],n.key===r&&n.value===u||s(this,n.key,n.value)}),{enumerable:!0,unsafe:!0})},1318:function(e,a,t){var l=t(1880),n=t(8844),o=t(4327),i=t(1500),r=URLSearchParams,u=r.prototype,s=n(u.getAll),p=n(u.has),d=new r("a=1");!d.has("a",2)&&d.has("a",void 0)||l(u,"has",(function(e){var a=arguments.length,t=a<2?void 0:arguments[1];if(a&&void 0===t)return p(this,e);var l=s(this,e);i(a,1);var n=o(t),r=0;while(r<l.length)if(l[r++]===n)return!0;return!1}),{enumerable:!0,unsafe:!0})},3228:function(e,a,t){var l=t(7697),n=t(8844),o=t(2148),i=URLSearchParams.prototype,r=n(i.forEach);l&&!("size"in i)&&o(i,"size",{get:function(){var e=0;return r(this,(function(){e++})),e},configurable:!0,enumerable:!0})}}]);
  2. //# sourceMappingURL=940.323f2b64.js.map