1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539 |
- <template>
- <j-modal
- :title="title"
- :width="width"
- :visible="visible"
- :maskClosable="false"
- :forceRender="true"
- :style="modalStyle"
- fullscreen
- switchFullscreen
- @cancel="handleCancel"
- wrapClassName="ant-modal-cust-warp"
- >
- <template slot="footer">
- <!--打印-->
- <a-button key="back" @click="handleCancel">取消(ESC)</a-button>
- <template v-if="isShowPrintBtn">
- <a-button v-if="billPrintFlag" @click="handlePrint">三联打印预览</a-button>
- <!--此处为解决缓存问题-->
- <a-button v-if="billType === '零售出库'" v-print="'#retailOutPrint'">普通打印</a-button>
- <a-button v-if="billType === '零售退货入库'" v-print="'#retailBackPrint'">普通打印</a-button>
- <a-button v-if="billType === '请购单'" v-print="'#purchaseApplyPrint'">普通打印</a-button>
- <a-button v-if="billType === '采购订单'" v-print="'#purchaseOrderPrint'">普通打印</a-button>
- <a-button v-if="billType === '采购入库'" v-print="'#purchaseInPrint'">普通打印</a-button>
- <a-button v-if="billType === '采购退货出库'" v-print="'#purchaseBackPrint'">普通打印</a-button>
- <a-button v-if="billType === '销售订单'" v-print="'#saleOrderPrint'">普通打印</a-button>
- <a-button v-if="billType === '销售出库'" v-print="'#saleOutPrint'">普通打印</a-button>
- <a-button v-if="billType === '销售退货入库'" v-print="'#saleBackPrint'">普通打印</a-button>
- <a-button v-if="billType === '其它入库'" v-print="'#otherInPrint'">普通打印</a-button>
- <a-button v-if="billType === '其它出库'" v-print="'#otherOutPrint'">普通打印</a-button>
- <a-button v-if="billType === '调拨出库'" v-print="'#allocationOutPrint'">普通打印</a-button>
- <a-button v-if="billType === '组装单'" v-print="'#assemblePrint'">普通打印</a-button>
- <a-button v-if="billType === '拆卸单'" v-print="'#disassemblePrint'">普通打印</a-button>
- <a-button v-if="billType === '盘点复盘'" v-print="'#stockCheckReplayPrint'">普通打印</a-button>
- </template>
- <!--导出Excel-->
- <a-button v-if="billType === '零售出库' || billType === '零售退货入库'" @click="retailExportExcel()"
- >导出</a-button
- >
- <a-button v-if="billType === '请购单'" @click="applyExportExcel()">导出</a-button>
- <a-button v-if="billType === '采购订单' || billType === '销售订单'" @click="orderExportExcel()">导出</a-button>
- <a-button
- v-if="
- billType === '采购入库' ||
- billType === '采购退货出库' ||
- billType === '销售出库' ||
- billType === '销售退货入库'
- "
- @click="purchaseSaleExportExcel()"
- >导出</a-button
- >
- <a-button v-if="billType === '其它入库' || billType === '其它出库'" @click="otherExportExcel()">导出</a-button>
- <a-button v-if="billType === '调拨出库'" @click="allocationOutExportExcel()">导出</a-button>
- <a-button v-if="billType === '组装单' || billType === '拆卸单'" @click="assembleExportExcel()">导出</a-button>
- <a-button v-if="billType === '盘点复盘'" @click="stockCheckReplayExportExcel()">导出</a-button>
- <!--反审核-->
- <a-button v-if="checkFlag && isCanBackCheck && model.status === '1'" @click="handleBackCheck()">反审核</a-button>
- </template>
- <a-form :form="form">
- <!--零售出库-->
- <template v-if="billType === '零售出库'">
- <section ref="print" id="retailOutPrint">
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="会员卡号">
- <a-input v-decorator="['id']" hidden />
- {{ model.organName }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
- {{ model.operTimeStr }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
- {{ model.number }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收款类型">
- {{ model.payType }}
- </a-form-item>
- </a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col :lg="18" :md="12" :sm="24">
- <div :style="tableWidthRetail">
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :pagination="false"
- :loading="loading"
- :columns="columns"
- :dataSource="dataSource"
- :scroll="scroll"
- style="width: 90%"
- >
- <template slot="customBarCode" slot-scope="text, record">
- <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">
- {{ record.barCode }}
- </div>
- <a-popover placement="right" trigger="click">
- <template slot="content"
- ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
- /></template>
- <div class="item-info" v-if="record.imgName">
- <img
- v-if="record.imgName"
- :src="getImgUrl(record.imgName, record.imgSmall)"
- class="item-img"
- title="查看大图"
- />
- </div>
- </a-popover>
- </template>
- </a-table>
- </div>
- </a-col>
- <a-col :span="6">
- <a-row class="form-row" :gutter="24">
- <a-col :lg="24" :md="6" :sm="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据金额">
- {{ model.changeAmount }}
- </a-form-item>
- </a-col>
- <a-col :lg="24" :md="6" :sm="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收款金额">
- {{ model.getAmount }}
- </a-form-item>
- </a-col>
- <a-col :lg="24" :md="6" :sm="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="找零">
- {{ model.backAmount }}
- </a-form-item>
- </a-col>
- <a-col :lg="24" :md="6" :sm="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收款账户">
- {{ model.accountName }}
- </a-form-item>
- </a-col>
- <a-col v-if="model.hasBackFlag" :lg="24" :md="6" :sm="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="退货单号">
- <template v-for="(item, index) in linkNumberList">
- <a @click="myHandleDetail(item.number)">{{ item.number }}</a
- ><br />
- </template>
- </a-form-item>
- </a-col>
- </a-row>
- </a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col :lg="24" :md="24" :sm="24">
- <a-form-item
- :labelCol="labelCol"
- :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
- label=""
- style="padding: 20px 10px"
- >
- {{ model.remark }}
- </a-form-item>
- </a-col>
- </a-row>
- </section>
- </template>
- <!--零售退货-->
- <template v-else-if="billType === '零售退货入库'">
- <section ref="print" id="retailBackPrint">
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="会员卡号">
- <a-input v-decorator="['id']" hidden />
- {{ model.organName }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
- {{ model.operTimeStr }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
- {{ model.number }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
- <a @click="myHandleDetail(model.linkNumber)">{{ model.linkNumber }}</a>
- </a-form-item>
- </a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col :lg="18" :md="12" :sm="24">
- <div :style="tableWidthRetail">
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :pagination="false"
- :loading="loading"
- :columns="columns"
- :dataSource="dataSource"
- >
- <template slot="customBarCode" slot-scope="text, record">
- <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">
- {{ record.barCode }}
- </div>
- <a-popover placement="right" trigger="click">
- <template slot="content"
- ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
- /></template>
- <div class="item-info" v-if="record.imgName">
- <img
- v-if="record.imgName"
- :src="getImgUrl(record.imgName, record.imgSmall)"
- class="item-img"
- title="查看大图"
- />
- </div>
- </a-popover>
- </template>
- </a-table>
- </div>
- </a-col>
- <a-col :span="6">
- <a-row class="form-row" :gutter="24">
- <a-col :lg="24" :md="6" :sm="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据金额">
- {{ model.changeAmount }}
- </a-form-item>
- </a-col>
- <a-col :lg="24" :md="6" :sm="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款金额">
- {{ model.getAmount }}
- </a-form-item>
- </a-col>
- <a-col :lg="24" :md="6" :sm="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="找零">
- {{ model.backAmount }}
- </a-form-item>
- </a-col>
- <a-col :lg="24" :md="6" :sm="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款账户">
- {{ model.accountName }}
- </a-form-item>
- </a-col>
- </a-row>
- </a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col :lg="24" :md="24" :sm="24">
- <a-form-item
- :labelCol="labelCol"
- :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
- label=""
- style="padding: 20px 10px"
- >
- {{ model.remark }}
- </a-form-item>
- </a-col>
- </a-row>
- </section>
- </template>
- <!--请购单-->
- <template v-else-if="billType === '请购单'">
- <section ref="print" id="purchaseApplyPrint">
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
- {{ model.operTimeStr }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
- {{ model.number }}
- </a-form-item>
- </a-col>
- <a-col :span="6"> </a-col>
- <a-col :span="6"> </a-col>
- </a-row>
- <div :style="tableWidth">
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :pagination="false"
- :loading="loading"
- :columns="columns"
- :dataSource="dataSource"
- >
- <template slot="customBarCode" slot-scope="text, record">
- <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
- <a-popover placement="right" trigger="click">
- <template slot="content"
- ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
- /></template>
- <div class="item-info" v-if="record.imgName">
- <img
- v-if="record.imgName"
- :src="getImgUrl(record.imgName, record.imgSmall)"
- class="item-img"
- title="查看大图"
- />
- </div>
- </a-popover>
- </template>
- </a-table>
- </div>
- <a-row class="form-row" :gutter="24">
- <a-col :lg="24" :md="24" :sm="24">
- <a-form-item
- :labelCol="labelCol"
- :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
- label=""
- style="padding: 20px 10px"
- >
- {{ model.remark }}
- </a-form-item>
- </a-col>
- </a-row>
- </section>
- </template>
- <!--采购订单-->
- <template v-else-if="billType === '采购订单'">
- <section ref="print" id="purchaseOrderPrint">
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
- <a-input v-decorator="['id']" hidden />
- {{ model.organName }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
- {{ model.operTimeStr }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
- {{ model.number }}
- </a-form-item>
- </a-col>
- <a-col :span="6" v-if="model.linkApply">
- <a-form-item
- :labelCol="{ xs: { span: 24 }, sm: { span: 6 } }"
- :wrapperCol="wrapperCol"
- label="关联请购单"
- >
- <a @click="myHandleDetail(model.linkApply)">{{ model.linkApply }}</a>
- </a-form-item>
- </a-col>
- <a-col :span="6" v-if="model.linkNumber">
- <a-form-item v-if="purchaseBySaleFlag" :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联订单">
- {{ model.linkNumber }}
- </a-form-item>
- </a-col>
- </a-row>
- <div :style="tableWidth">
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :pagination="false"
- :loading="loading"
- :columns="columns"
- :dataSource="dataSource"
- >
- <template slot="customBarCode" slot-scope="text, record">
- <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
- <a-popover placement="right" trigger="click">
- <template slot="content"
- ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
- /></template>
- <div class="item-info" v-if="record.imgName">
- <img
- v-if="record.imgName"
- :src="getImgUrl(record.imgName, record.imgSmall)"
- class="item-img"
- title="查看大图"
- />
- </div>
- </a-popover>
- </template>
- </a-table>
- </div>
- <a-row class="form-row" :gutter="24">
- <a-col :lg="24" :md="24" :sm="24">
- <a-form-item
- :labelCol="labelCol"
- :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
- label=""
- style="padding: 20px 10px"
- >
- {{ model.remark }}
- </a-form-item>
- </a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="优惠率">
- {{ model.discount }}%
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款优惠">
- {{ model.discountMoney }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item
- :labelCol="{ xs: { span: 24 }, sm: { span: 6 } }"
- :wrapperCol="wrapperCol"
- label="优惠后金额"
- >
- {{ model.discountLastMoney }}
- </a-form-item>
- </a-col>
- <a-col :span="6"></a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="结算账户">
- {{ model.accountName }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="支付订金">
- {{ model.changeAmount }}
- </a-form-item>
- </a-col>
- <a-col :span="6"></a-col>
- <a-col :span="6"></a-col>
- </a-row>
- </section>
- </template>
- <!--采购入库-->
- <template v-else-if="billType === '采购入库'">
- <section ref="print" id="purchaseInPrint">
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
- <a-input v-decorator="['id']" hidden />
- {{ model.organName }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
- {{ model.operTimeStr }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
- {{ model.number }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联订单">
- <a @click="myHandleDetail(model.linkNumber)">{{ model.linkNumber }}</a>
- </a-form-item>
- </a-col>
- </a-row>
- <div>
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :pagination="false"
- :loading="loading"
- :columns="columns"
- :dataSource="dataSource"
- :scroll="{ x: 1500, y: 300 }"
- >
- <template slot="customBarCode" slot-scope="text, record">
- <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
- <a-popover placement="right" trigger="click">
- <template slot="content"
- ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
- /></template>
- <div class="item-info" v-if="record.imgName">
- <img
- v-if="record.imgName"
- :src="getImgUrl(record.imgName, record.imgSmall)"
- class="item-img"
- title="查看大图"
- />
- </div>
- </a-popover>
- </template>
- </a-table>
- </div>
- <a-row class="form-row" :gutter="24">
- <a-col :lg="24" :md="24" :sm="24">
- <a-form-item
- :labelCol="labelCol"
- :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
- label=""
- style="padding: 20px 10px"
- >
- {{ model.remark }}
- </a-form-item>
- </a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="优惠率">
- {{ model.discount }}%
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款优惠">
- {{ model.discountMoney }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item
- :labelCol="{ xs: { span: 24 }, sm: { span: 6 } }"
- :wrapperCol="wrapperCol"
- label="优惠后金额"
- >
- {{ model.discountLastMoney }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="其它费用">
- {{ model.otherMoney }}
- </a-form-item>
- </a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="结算账户">
- {{ model.accountName }}
- </a-form-item>
- </a-col>
- <a-col v-if="model.deposit" :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="扣除订金">
- {{ model.deposit }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次付款">
- {{ model.changeAmount }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次欠款">
- {{ model.debt }}
- </a-form-item>
- </a-col>
- <a-col v-if="model.hasBackFlag" :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="退货单号">
- <template v-for="(item, index) in linkNumberList">
- <a @click="myHandleDetail(item.number)">{{ item.number }}</a
- ><br />
- </template>
- </a-form-item>
- </a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col v-if="financialBillNoList.length" :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款单号">
- <template v-for="(item, index) in financialBillNoList">
- <a @click="myHandleFinancialDetail(item.billNo)">{{ item.billNo }}</a
- ><br />
- </template>
- </a-form-item>
- </a-col>
- </a-row>
- </section>
- </template>
- <!--采购退货-->
- <template v-else-if="billType === '采购退货出库'">
- <section ref="print" id="purchaseBackPrint">
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
- <a-input v-decorator="['id']" hidden />
- {{ model.organName }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
- {{ model.operTimeStr }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
- {{ model.number }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
- <a @click="myHandleDetail(model.linkNumber)">{{ model.linkNumber }}</a>
- </a-form-item>
- </a-col>
- </a-row>
- <div :style="tableWidth">
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :pagination="false"
- :loading="loading"
- :columns="columns"
- :dataSource="dataSource"
- >
- <template slot="customBarCode" slot-scope="text, record">
- <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
- <a-popover placement="right" trigger="click">
- <template slot="content"
- ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
- /></template>
- <div class="item-info" v-if="record.imgName">
- <img
- v-if="record.imgName"
- :src="getImgUrl(record.imgName, record.imgSmall)"
- class="item-img"
- title="查看大图"
- />
- </div>
- </a-popover>
- </template>
- </a-table>
- </div>
- <a-row class="form-row" :gutter="24">
- <a-col :lg="24" :md="24" :sm="24">
- <a-form-item
- :labelCol="labelCol"
- :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
- label=""
- style="padding: 20px 10px"
- >
- {{ model.remark }}
- </a-form-item>
- </a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="优惠率">
- {{ model.discount }}%
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="退款优惠">
- {{ model.discountMoney }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item
- :labelCol="{ xs: { span: 24 }, sm: { span: 6 } }"
- :wrapperCol="wrapperCol"
- label="优惠后金额"
- >
- {{ model.discountLastMoney }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="其它费用">
- {{ model.otherMoney }}
- </a-form-item>
- </a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="结算账户">
- {{ model.accountName }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次退款">
- {{ model.changeAmount }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次欠款">
- {{ model.debt }}
- </a-form-item>
- </a-col>
- <a-col :span="6"> </a-col>
- </a-row>
- </section>
- </template>
- <!--销售订单-->
- <template v-else-if="billType === '销售订单'">
- <section ref="print" id="saleOrderPrint">
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
- <a-input v-decorator="['id']" hidden />
- {{ model.organName }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
- {{ model.operTimeStr }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
- {{ model.number }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="销售人员">
- {{ model.salesManStr }}
- </a-form-item>
- </a-col>
- </a-row>
- <div :style="tableWidth">
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :pagination="false"
- :loading="loading"
- :columns="columns"
- :dataSource="dataSource"
- >
- <template slot="customBarCode" slot-scope="text, record">
- <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
- <a-popover placement="right" trigger="click">
- <template slot="content"
- ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
- /></template>
- <div class="item-info" v-if="record.imgName">
- <img
- v-if="record.imgName"
- :src="getImgUrl(record.imgName, record.imgSmall)"
- class="item-img"
- title="查看大图"
- />
- </div>
- </a-popover>
- </template>
- </a-table>
- </div>
- <a-row class="form-row" :gutter="24">
- <a-col :lg="24" :md="24" :sm="24">
- <a-form-item
- :labelCol="labelCol"
- :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
- label=""
- style="padding: 20px 10px"
- >
- {{ model.remark }}
- </a-form-item>
- </a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="优惠率">
- {{ model.discount }}%
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款优惠">
- {{ model.discountMoney }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item
- :labelCol="{ xs: { span: 24 }, sm: { span: 6 } }"
- :wrapperCol="wrapperCol"
- label="优惠后金额"
- >
- {{ model.discountLastMoney }}
- </a-form-item>
- </a-col>
- <a-col :span="6"></a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="结算账户">
- {{ model.accountName }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收取订金">
- {{ model.changeAmount }}
- </a-form-item>
- </a-col>
- <a-col :span="6"></a-col>
- <a-col :span="6"></a-col>
- </a-row>
- </section>
- </template>
- <!--销售出库-->
- <template v-else-if="billType === '销售出库'">
- <section ref="print" id="saleOutPrint">
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
- <a-input v-decorator="['id']" hidden />
- {{ model.organName }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
- {{ model.operTimeStr }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
- {{ model.number }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联订单">
- <a @click="myHandleDetail(model.linkNumber)">{{ model.linkNumber }}</a>
- </a-form-item>
- </a-col>
- </a-row>
- <div :style="tableWidth">
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :pagination="false"
- :loading="loading"
- :columns="columns"
- :dataSource="dataSource"
- >
- <template slot="customBarCode" slot-scope="text, record">
- <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
- <a-popover placement="right" trigger="click">
- <template slot="content"
- ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
- /></template>
- <div class="item-info" v-if="record.imgName">
- <img
- v-if="record.imgName"
- :src="getImgUrl(record.imgName, record.imgSmall)"
- class="item-img"
- title="查看大图"
- />
- </div>
- </a-popover>
- </template>
- </a-table>
- </div>
- <a-row class="form-row" :gutter="24">
- <a-col :lg="24" :md="24" :sm="24">
- <a-form-item
- :labelCol="labelCol"
- :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
- label=""
- style="padding: 20px 10px"
- >
- {{ model.remark }}
- </a-form-item>
- </a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="优惠率">
- {{ model.discount }}%
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收款优惠">
- {{ model.discountMoney }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item
- :labelCol="{ xs: { span: 24 }, sm: { span: 6 } }"
- :wrapperCol="wrapperCol"
- label="优惠后金额"
- >
- {{ model.discountLastMoney }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="其它费用">
- {{ model.otherMoney }}
- </a-form-item>
- </a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="结算账户">
- {{ model.accountName }}
- </a-form-item>
- </a-col>
- <a-col v-if="model.deposit" :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="扣除订金">
- {{ model.deposit }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次收款">
- {{ model.changeAmount }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次欠款">
- {{ model.debt }}
- </a-form-item>
- </a-col>
- <a-col v-if="model.hasBackFlag" :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="退货单号">
- <template v-for="(item, index) in linkNumberList">
- <a @click="myHandleDetail(item.number)">{{ item.number }}</a
- ><br />
- </template>
- </a-form-item>
- </a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="销售人员">
- {{ model.salesManStr }}
- </a-form-item>
- </a-col>
- <a-col v-if="financialBillNoList.length" :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收款单号">
- <template v-for="(item, index) in financialBillNoList">
- <a @click="myHandleFinancialDetail(item.billNo)">{{ item.billNo }}</a
- ><br />
- </template>
- </a-form-item>
- </a-col>
- </a-row>
- </section>
- </template>
- <!--销售退货-->
- <template v-else-if="billType === '销售退货入库'">
- <section ref="print" id="saleBackPrint">
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
- <a-input v-decorator="['id']" hidden />
- {{ model.organName }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
- {{ model.operTimeStr }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
- {{ model.number }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
- <a @click="myHandleDetail(model.linkNumber)">{{ model.linkNumber }}</a>
- </a-form-item>
- </a-col>
- </a-row>
- <div :style="tableWidth">
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :pagination="false"
- :loading="loading"
- :columns="columns"
- :dataSource="dataSource"
- >
- <template slot="customBarCode" slot-scope="text, record">
- <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
- <a-popover placement="right" trigger="click">
- <template slot="content"
- ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
- /></template>
- <div class="item-info" v-if="record.imgName">
- <img
- v-if="record.imgName"
- :src="getImgUrl(record.imgName, record.imgSmall)"
- class="item-img"
- title="查看大图"
- />
- </div>
- </a-popover>
- </template>
- </a-table>
- </div>
- <a-row class="form-row" :gutter="24">
- <a-col :lg="24" :md="24" :sm="24">
- <a-form-item
- :labelCol="labelCol"
- :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
- label=""
- style="padding: 20px 10px"
- >
- {{ model.remark }}
- </a-form-item>
- </a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="优惠率">
- {{ model.discount }}%
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="退款优惠">
- {{ model.discountMoney }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item
- :labelCol="{ xs: { span: 24 }, sm: { span: 6 } }"
- :wrapperCol="wrapperCol"
- label="优惠后金额"
- >
- {{ model.discountLastMoney }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="其它费用">
- {{ model.otherMoney }}
- </a-form-item>
- </a-col>
- </a-row>
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="结算账户">
- {{ model.accountName }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次退款">
- {{ model.changeAmount }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次欠款">
- {{ model.debt }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="销售人员">
- {{ model.salesManStr }}
- </a-form-item>
- </a-col>
- </a-row>
- </section>
- </template>
- <!--其它入库-->
- <template v-else-if="billType === '其它入库'">
- <section ref="print" id="otherInPrint">
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
- <a-input v-decorator="['id']" hidden />
- {{ model.organName }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
- {{ model.operTimeStr }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
- {{ model.number }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item v-if="model.billType" :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
- {{ model.linkNumber }} {{ model.billType }}
- </a-form-item>
- <a-form-item v-if="!model.billType" :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
- <a @click="myHandleDetail(model.linkNumber)">{{ model.linkNumber }}</a>
- </a-form-item>
- </a-col>
- </a-row>
- <div :style="tableWidth">
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :pagination="false"
- :loading="loading"
- :columns="columns"
- :dataSource="dataSource"
- >
- <template slot="customBarCode" slot-scope="text, record">
- <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
- <a-popover placement="right" trigger="click">
- <template slot="content"
- ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
- /></template>
- <div class="item-info" v-if="record.imgName">
- <img
- v-if="record.imgName"
- :src="getImgUrl(record.imgName, record.imgSmall)"
- class="item-img"
- title="查看大图"
- />
- </div>
- </a-popover>
- </template>
- </a-table>
- </div>
- <a-row class="form-row" :gutter="24">
- <a-col :lg="24" :md="24" :sm="24">
- <a-form-item
- :labelCol="labelCol"
- :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
- label=""
- style="padding: 20px 10px"
- >
- {{ model.remark }}
- </a-form-item>
- </a-col>
- </a-row>
- </section>
- </template>
- <!--其它出库-->
- <template v-else-if="billType === '其它出库'">
- <section ref="print" id="otherOutPrint">
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
- <a-input v-decorator="['id']" hidden />
- {{ model.organName }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
- {{ model.operTimeStr }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
- {{ model.number }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item v-if="model.billType" :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
- {{ model.linkNumber }} {{ model.billType }}
- </a-form-item>
- <a-form-item v-if="!model.billType" :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
- <a @click="myHandleDetail(model.linkNumber)">{{ model.linkNumber }}</a>
- </a-form-item>
- </a-col>
- </a-row>
- <div :style="tableWidth">
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :pagination="false"
- :loading="loading"
- :columns="columns"
- :dataSource="dataSource"
- >
- <template slot="customBarCode" slot-scope="text, record">
- <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
- <a-popover placement="right" trigger="click">
- <template slot="content"
- ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
- /></template>
- <div class="item-info" v-if="record.imgName">
- <img
- v-if="record.imgName"
- :src="getImgUrl(record.imgName, record.imgSmall)"
- class="item-img"
- title="查看大图"
- />
- </div>
- </a-popover>
- </template>
- </a-table>
- </div>
- <a-row class="form-row" :gutter="24">
- <a-col :lg="24" :md="24" :sm="24">
- <a-form-item
- :labelCol="labelCol"
- :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
- label=""
- style="padding: 20px 10px"
- >
- {{ model.remark }}
- </a-form-item>
- </a-col>
- </a-row>
- </section>
- </template>
- <!--调拨出库-->
- <template v-else-if="billType === '调拨出库'">
- <section ref="print" id="allocationOutPrint">
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
- {{ model.operTimeStr }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
- {{ model.number }}
- </a-form-item>
- </a-col>
- <a-col :span="6"></a-col>
- <a-col :span="6"></a-col>
- </a-row>
- <div :style="tableWidth">
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :scroll="scroll"
- :pagination="false"
- :loading="loading"
- :columns="columns"
- :dataSource="dataSource"
- >
- <template slot="customBarCode" slot-scope="text, record">
- <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
- <a-popover placement="right" trigger="click">
- <template slot="content"
- ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
- /></template>
- <div class="item-info" v-if="record.imgName">
- <img
- v-if="record.imgName"
- :src="getImgUrl(record.imgName, record.imgSmall)"
- class="item-img"
- title="查看大图"
- />
- </div>
- </a-popover>
- </template>
- </a-table>
- </div>
- <a-row class="form-row" :gutter="24">
- <a-col :lg="24" :md="24" :sm="24">
- <a-form-item
- :labelCol="labelCol"
- :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
- label=""
- style="padding: 20px 10px"
- >
- {{ model.remark }}
- </a-form-item>
- </a-col>
- </a-row>
- </section>
- </template>
- <!--组装单-->
- <template v-else-if="billType === '组装单'">
- <section ref="print" id="assemblePrint">
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
- {{ model.operTimeStr }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
- {{ model.number }}
- </a-form-item>
- </a-col>
- <a-col :span="6"></a-col>
- <a-col :span="6"></a-col>
- </a-row>
- <div :style="tableWidth">
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :pagination="false"
- :loading="loading"
- :columns="columns"
- :dataSource="dataSource"
- >
- <template slot="customBarCode" slot-scope="text, record">
- <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
- <a-popover placement="right" trigger="click">
- <template slot="content"
- ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
- /></template>
- <div class="item-info" v-if="record.imgName">
- <img
- v-if="record.imgName"
- :src="getImgUrl(record.imgName, record.imgSmall)"
- class="item-img"
- title="查看大图"
- />
- </div>
- </a-popover>
- </template>
- </a-table>
- </div>
- <a-row class="form-row" :gutter="24">
- <a-col :lg="24" :md="24" :sm="24">
- <a-form-item
- :labelCol="labelCol"
- :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
- label=""
- style="padding: 20px 10px"
- >
- {{ model.remark }}
- </a-form-item>
- </a-col>
- </a-row>
- </section>
- </template>
- <!--拆卸单-->
- <template v-else-if="billType === '拆卸单'">
- <section ref="print" id="disassemblePrint">
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
- {{ model.operTimeStr }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
- {{ model.number }}
- </a-form-item>
- </a-col>
- <a-col :span="6"></a-col>
- <a-col :span="6"></a-col>
- </a-row>
- <div :style="tableWidth">
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :pagination="false"
- :loading="loading"
- :columns="columns"
- :dataSource="dataSource"
- >
- <template slot="customBarCode" slot-scope="text, record">
- <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
- <a-popover placement="right" trigger="click">
- <template slot="content"
- ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
- /></template>
- <div class="item-info" v-if="record.imgName">
- <img
- v-if="record.imgName"
- :src="getImgUrl(record.imgName, record.imgSmall)"
- class="item-img"
- title="查看大图"
- />
- </div>
- </a-popover>
- </template>
- </a-table>
- </div>
- <a-row class="form-row" :gutter="24">
- <a-col :lg="24" :md="24" :sm="24">
- <a-form-item
- :labelCol="labelCol"
- :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
- label=""
- style="padding: 20px 10px"
- >
- {{ model.remark }}
- </a-form-item>
- </a-col>
- </a-row>
- </section>
- </template>
- <!--盘点复盘-->
- <template v-else-if="billType === '盘点复盘'">
- <section ref="print" id="stockCheckReplayPrint">
- <a-row class="form-row" :gutter="24">
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
- {{ model.operTimeStr }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
- {{ model.number }}
- </a-form-item>
- </a-col>
- <a-col :span="6">
- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
- {{ model.linkNumber }}
- </a-form-item>
- </a-col>
- <a-col :span="6"></a-col>
- </a-row>
- <div :style="tableWidth">
- <a-table
- ref="table"
- size="middle"
- bordered
- rowKey="id"
- :pagination="false"
- :loading="loading"
- :columns="columns"
- :dataSource="dataSource"
- >
- <template slot="customBarCode" slot-scope="text, record">
- <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
- <a-popover placement="right" trigger="click">
- <template slot="content"
- ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
- /></template>
- <div class="item-info" v-if="record.imgName">
- <img
- v-if="record.imgName"
- :src="getImgUrl(record.imgName, record.imgSmall)"
- class="item-img"
- title="查看大图"
- />
- </div>
- </a-popover>
- </template>
- </a-table>
- </div>
- <a-row class="form-row" :gutter="24">
- <a-col :lg="24" :md="24" :sm="24">
- <a-form-item
- :labelCol="labelCol"
- :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
- label=""
- style="padding: 20px 10px"
- >
- {{ model.remark }}
- </a-form-item>
- </a-col>
- </a-row>
- </section>
- </template>
- <template v-if="fileList && fileList.length > 0">
- <a-row class="form-row" :gutter="24">
- <a-col :span="10">
- <a-form-item
- :labelCol="{ xs: { span: 24 }, sm: { span: 3 } }"
- :wrapperCol="{ xs: { span: 24 }, sm: { span: 21 } }"
- label="附件"
- >
- <j-upload v-model="fileList" bizPath="bill" :disabled="true" :buttonVisible="false"></j-upload>
- </a-form-item>
- </a-col>
- <a-col :span="14"></a-col>
- </a-row>
- </template>
- </a-form>
- <bill-print-iframe ref="modalDetail"></bill-print-iframe>
- <financial-detail ref="financialDetailModal"></financial-detail>
- </j-modal>
- </template>
- <script>
- import pick from 'lodash.pick'
- import { getAction, postAction, getFileAccessHttpUrl } from '@/api/manage'
- import {
- findBillDetailByNumber,
- findFinancialDetailByNumber,
- getPlatformConfigByKey,
- getCurrentSystemConfig,
- } from '@/api/api'
- import { getMpListShort, getCheckFlag, exportXlsPost } from '@/utils/util'
- import BillPrintIframe from './BillPrintIframe'
- import FinancialDetail from '../../financial/dialog/FinancialDetail'
- import JUpload from '@/components/jeecg/JUpload'
- import Vue from 'vue'
- import { JeecgListMixin } from '@/mixins/JeecgListMixin'
- export default {
- name: 'BillDetail',
- mixins: [JeecgListMixin],
- components: {
- BillPrintIframe,
- FinancialDetail,
- JUpload,
- },
- data() {
- return {
- title: '详情',
- width: '1600px',
- visible: false,
- modalStyle: '',
- model: {},
- isCanBackCheck: true,
- billType: '',
- billPrintFlag: false,
- fileList: [],
- purchaseBySaleFlag: false,
- linkNumberList: [],
- financialBillNoList: [],
- /* 原始反审核是否开启 */
- checkFlag: true,
- /* 是否显示打印按钮 */
- isShowPrintBtn: true,
- tableWidth: {
- width: '1700px',
- },
- tableWidthRetail: {
- width: '1200px',
- },
- labelCol: {
- xs: { span: 24 },
- sm: { span: 5 },
- },
- wrapperCol: {
- xs: { span: 24 },
- sm: { span: 16 },
- },
- form: this.$form.createForm(this),
- loading: false,
- dataSource: [],
- url: {
- detailList: '/depotItem/getDetailList',
- batchSetStatusUrl: '/depotHead/batchSetStatus',
- },
- //表头
- columns: [],
- //列定义
- defColumns: [],
- retailOutColumns: [
- { title: '仓库名称', dataIndex: 'depotName' },
- { title: '条码', dataIndex: 'barCode' },
- { title: '名称', dataIndex: 'name' },
- { title: '规格', dataIndex: 'standard' },
- { title: '型号', dataIndex: 'model' },
- { title: '颜色', dataIndex: 'color' },
- { title: '品牌', dataIndex: 'brand' },
- { title: '制造商', dataIndex: 'mfrs' },
- { title: '扩展信息', dataIndex: 'materialOther' },
- { title: '库存', dataIndex: 'stock' },
- { title: '单位', dataIndex: 'unit' },
- { title: '序列号', dataIndex: 'snList', width: 300 },
- { title: '批号', dataIndex: 'batchNumber' },
- { title: '有效期', dataIndex: 'expirationDate' },
- { title: '多属性', dataIndex: 'sku' },
- { title: '数量', dataIndex: 'operNumber' },
- { title: '单价', dataIndex: 'unitPrice' },
- { title: '金额', dataIndex: 'allPrice' },
- { title: '重量', dataIndex: 'weight' },
- { title: '仓位货架', dataIndex: 'position' },
- { title: '备注', dataIndex: 'remark' },
- ],
- retailBackColumns: [
- { title: '仓库名称', dataIndex: 'depotName' },
- { title: '条码', dataIndex: 'barCode' },
- { title: '名称', dataIndex: 'name' },
- { title: '规格', dataIndex: 'standard' },
- { title: '型号', dataIndex: 'model' },
- { title: '颜色', dataIndex: 'color' },
- { title: '品牌', dataIndex: 'brand' },
- { title: '制造商', dataIndex: 'mfrs' },
- { title: '扩展信息', dataIndex: 'materialOther' },
- { title: '库存', dataIndex: 'stock' },
- { title: '单位', dataIndex: 'unit' },
- { title: '序列号', dataIndex: 'snList', width: 300 },
- { title: '批号', dataIndex: 'batchNumber' },
- { title: '有效期', dataIndex: 'expirationDate' },
- { title: '多属性', dataIndex: 'sku' },
- { title: '数量', dataIndex: 'operNumber' },
- { title: '单价', dataIndex: 'unitPrice' },
- { title: '金额', dataIndex: 'allPrice' },
- { title: '重量', dataIndex: 'weight' },
- { title: '仓位货架', dataIndex: 'position' },
- { title: '备注', dataIndex: 'remark' },
- ],
- purchaseApplyColumns: [
- { title: '条码', dataIndex: 'barCode' },
- { title: '名称', dataIndex: 'name' },
- { title: '规格', dataIndex: 'standard' },
- { title: '型号', dataIndex: 'model' },
- { title: '颜色', dataIndex: 'color' },
- { title: '品牌', dataIndex: 'brand' },
- { title: '制造商', dataIndex: 'mfrs' },
- { title: '扩展信息', dataIndex: 'materialOther' },
- { title: '单位', dataIndex: 'unit' },
- { title: '多属性', dataIndex: 'sku' },
- { title: '数量', dataIndex: 'operNumber' },
- { title: '已采购', dataIndex: 'finishNumber' },
- { title: '备注', dataIndex: 'remark' },
- ],
- purchaseOrderColumns: [
- { title: '条码', dataIndex: 'barCode' },
- { title: '名称', dataIndex: 'name' },
- { title: '规格', dataIndex: 'standard' },
- { title: '型号', dataIndex: 'model' },
- { title: '颜色', dataIndex: 'color' },
- { title: '品牌', dataIndex: 'brand' },
- { title: '制造商', dataIndex: 'mfrs' },
- { title: '扩展信息', dataIndex: 'materialOther' },
- { title: '库存', dataIndex: 'stock' },
- { title: '单位', dataIndex: 'unit' },
- { title: '多属性', dataIndex: 'sku' },
- { title: '数量', dataIndex: 'operNumber' },
- { title: '已采购', dataIndex: 'finishNumber' },
- { title: '单价', dataIndex: 'unitPrice' },
- { title: '金额', dataIndex: 'allPrice' },
- { title: '税率(%)', dataIndex: 'taxRate' },
- { title: '税额', dataIndex: 'taxMoney' },
- { title: '价税合计', dataIndex: 'taxLastMoney' },
- { title: '备注', dataIndex: 'remark' },
- ],
- purchaseInColumns: [
- { title: '批次号', dataIndex: 'batchNumber', width: 90 },
- { title: '名称', dataIndex: 'name', width: 115 },
- { title: '规格', dataIndex: 'standard', width: 90 },
- { title: '生产日期', dataIndex: 'productionDate', width: 100 },
- { title: '保质期', dataIndex: 'expiryNum', width: 60 },
- { title: '商品条码', dataIndex: 'barCode', width: 90 },
- { title: '仓库名称', dataIndex: 'depotName', width: 90 },
- { title: '仓库货架', dataIndex: 'position', width: 90 },
- { title: '包装规格', dataIndex: 'unitName', width: 90 },
- { title: '型号', dataIndex: 'model', width: 60 },
- { title: '颜色', dataIndex: 'color', width: 60 },
- { title: '品牌', dataIndex: 'brand', width: 90 },
- { title: '制造商', dataIndex: 'mfrs', width: 90 },
- { title: '扩展信息', dataIndex: 'materialOther', width: 90 },
- { title: '库存', dataIndex: 'stock', width: 90 },
- { title: '单位', dataIndex: 'unit', width: 90 },
- { title: '序列号', dataIndex: 'snList', width: 300 },
- { title: '有效期', dataIndex: 'expirationDate', width: 90 },
- { title: '多属性', dataIndex: 'sku', width: 90 },
- { title: '数量', dataIndex: 'operNumber', width: 90 },
- { title: '已入库', dataIndex: 'finishNumber', width: 90 },
- { title: '单价', dataIndex: 'unitPrice', width: 90 },
- { title: '金额', dataIndex: 'allPrice', width: 90 },
- { title: '税率(%)', dataIndex: 'taxRate', width: 90 },
- { title: '税额', dataIndex: 'taxMoney', width: 90 },
- { title: '价税合计', dataIndex: 'taxLastMoney', width: 90 },
- { title: '实际入库数量', dataIndex: 'actualQuantityInStorage', width: 115 },
- { title: '入库差异', dataIndex: 'warehousingVariance', width: 90 },
- { title: '入库差异原因', dataIndex: 'reasonOfDifference', width: 115 },
- { title: '入库人', dataIndex: 'warehousingUser', width: 90 },
- { title: '入库时间', dataIndex: 'warehousingTime', width: 90 },
- { title: '重量', dataIndex: 'weight', width: 90 },
- { title: '仓位货架', dataIndex: 'position', width: 90 },
- { title: '备注', dataIndex: 'remark', width: 90 },
- ],
- purchaseBackColumns: [
- { title: '仓库名称', dataIndex: 'depotName' },
- { title: '条码', dataIndex: 'barCode' },
- { title: '名称', dataIndex: 'name' },
- { title: '规格', dataIndex: 'standard' },
- { title: '型号', dataIndex: 'model' },
- { title: '颜色', dataIndex: 'color' },
- { title: '品牌', dataIndex: 'brand' },
- { title: '制造商', dataIndex: 'mfrs' },
- { title: '扩展信息', dataIndex: 'materialOther' },
- { title: '库存', dataIndex: 'stock' },
- { title: '单位', dataIndex: 'unit' },
- { title: '序列号', dataIndex: 'snList', width: 300 },
- { title: '批号', dataIndex: 'batchNumber' },
- { title: '有效期', dataIndex: 'expirationDate' },
- { title: '多属性', dataIndex: 'sku' },
- { title: '数量', dataIndex: 'operNumber' },
- { title: '已出库', dataIndex: 'finishNumber' },
- { title: '单价', dataIndex: 'unitPrice' },
- { title: '金额', dataIndex: 'allPrice' },
- { title: '税率(%)', dataIndex: 'taxRate' },
- { title: '税额', dataIndex: 'taxMoney' },
- { title: '价税合计', dataIndex: 'taxLastMoney' },
- { title: '重量', dataIndex: 'weight' },
- { title: '仓位货架', dataIndex: 'position' },
- { title: '备注', dataIndex: 'remark' },
- ],
- saleOrderColumns: [
- { title: '条码', dataIndex: 'barCode' },
- { title: '名称', dataIndex: 'name' },
- { title: '规格', dataIndex: 'standard' },
- { title: '型号', dataIndex: 'model' },
- { title: '颜色', dataIndex: 'color' },
- { title: '品牌', dataIndex: 'brand' },
- { title: '制造商', dataIndex: 'mfrs' },
- { title: '扩展信息', dataIndex: 'materialOther' },
- { title: '库存', dataIndex: 'stock' },
- { title: '单位', dataIndex: 'unit' },
- { title: '多属性', dataIndex: 'sku' },
- { title: '数量', dataIndex: 'operNumber' },
- { title: '已销售', dataIndex: 'finishNumber' },
- { title: '单价', dataIndex: 'unitPrice' },
- { title: '金额', dataIndex: 'allPrice' },
- { title: '税率(%)', dataIndex: 'taxRate' },
- { title: '税额', dataIndex: 'taxMoney' },
- { title: '价税合计', dataIndex: 'taxLastMoney' },
- { title: '备注', dataIndex: 'remark' },
- ],
- saleOutColumns: [
- { title: '仓库名称', dataIndex: 'depotName' },
- { title: '条码', dataIndex: 'barCode' },
- { title: '名称', dataIndex: 'name' },
- { title: '规格', dataIndex: 'standard' },
- { title: '型号', dataIndex: 'model' },
- { title: '颜色', dataIndex: 'color' },
- { title: '品牌', dataIndex: 'brand' },
- { title: '制造商', dataIndex: 'mfrs' },
- { title: '扩展信息', dataIndex: 'materialOther' },
- { title: '库存', dataIndex: 'stock' },
- { title: '单位', dataIndex: 'unit' },
- { title: '序列号', dataIndex: 'snList', width: 300 },
- { title: '批号', dataIndex: 'batchNumber' },
- { title: '有效期', dataIndex: 'expirationDate' },
- { title: '多属性', dataIndex: 'sku' },
- { title: '数量', dataIndex: 'operNumber' },
- { title: '已出库', dataIndex: 'finishNumber' },
- { title: '单价', dataIndex: 'unitPrice' },
- { title: '金额', dataIndex: 'allPrice' },
- { title: '税率(%)', dataIndex: 'taxRate' },
- { title: '税额', dataIndex: 'taxMoney' },
- { title: '价税合计', dataIndex: 'taxLastMoney' },
- { title: '重量', dataIndex: 'weight' },
- { title: '仓位货架', dataIndex: 'position' },
- { title: '备注', dataIndex: 'remark' },
- ],
- saleBackColumns: [
- { title: '仓库名称', dataIndex: 'depotName' },
- { title: '条码', dataIndex: 'barCode' },
- { title: '名称', dataIndex: 'name' },
- { title: '规格', dataIndex: 'standard' },
- { title: '型号', dataIndex: 'model' },
- { title: '颜色', dataIndex: 'color' },
- { title: '品牌', dataIndex: 'brand' },
- { title: '制造商', dataIndex: 'mfrs' },
- { title: '扩展信息', dataIndex: 'materialOther' },
- { title: '库存', dataIndex: 'stock' },
- { title: '单位', dataIndex: 'unit' },
- { title: '序列号', dataIndex: 'snList', width: 300 },
- { title: '批号', dataIndex: 'batchNumber' },
- { title: '有效期', dataIndex: 'expirationDate' },
- { title: '多属性', dataIndex: 'sku' },
- { title: '数量', dataIndex: 'operNumber' },
- { title: '已入库', dataIndex: 'finishNumber' },
- { title: '单价', dataIndex: 'unitPrice' },
- { title: '金额', dataIndex: 'allPrice' },
- { title: '税率(%)', dataIndex: 'taxRate' },
- { title: '税额', dataIndex: 'taxMoney' },
- { title: '价税合计', dataIndex: 'taxLastMoney' },
- { title: '重量', dataIndex: 'weight' },
- { title: '仓位货架', dataIndex: 'position' },
- { title: '备注', dataIndex: 'remark' },
- ],
- otherInColumns: [
- { title: '批次号', dataIndex: 'batchNumber', width: 90 },
- { title: '名称', dataIndex: 'name', width: 115 },
- { title: '规格', dataIndex: 'standard', width: 90 },
- { title: '生产日期', dataIndex: 'productionDate', width: 100 },
- { title: '保质期', dataIndex: 'expiryNum', width: 60 },
- { title: '商品条码', dataIndex: 'barCode', width: 90 },
- { title: '仓库名称', dataIndex: 'depotName', width: 90 },
- { title: '仓库货架', dataIndex: 'position', width: 90 },
- { title: '包装规格', dataIndex: 'unitName', width: 90 },
- { title: '型号', dataIndex: 'model', width: 60 },
- { title: '颜色', dataIndex: 'color', width: 60 },
- { title: '品牌', dataIndex: 'brand', width: 90 },
- { title: '制造商', dataIndex: 'mfrs', width: 90 },
- { title: '扩展信息', dataIndex: 'materialOther', width: 90 },
- { title: '库存', dataIndex: 'stock', width: 90 },
- { title: '单位', dataIndex: 'unit', width: 90 },
- { title: '序列号', dataIndex: 'snList', width: 300 },
- { title: '有效期', dataIndex: 'expirationDate', width: 90 },
- { title: '多属性', dataIndex: 'sku', width: 90 },
- { title: '数量', dataIndex: 'operNumber', width: 90 },
- { title: '单价', dataIndex: 'unitPrice', width: 90 },
- { title: '金额', dataIndex: 'allPrice', width: 90 },
- { title: '实际入库数量', dataIndex: 'actualQuantityInStorage', width: 115 },
- { title: '入库差异', dataIndex: 'warehousingVariance', width: 90 },
- { title: '入库差异原因', dataIndex: 'reasonOfDifference', width: 115 },
- { title: '入库人', dataIndex: 'warehousingUser', width: 90 },
- { title: '入库时间', dataIndex: 'warehousingTime', width: 90 },
- { title: '重量', dataIndex: 'weight', width: 90 },
- { title: '仓位货架', dataIndex: 'position', width: 90 },
- ],
- otherOutColumns: [
- { title: '仓库名称', dataIndex: 'depotName' },
- { title: '条码', dataIndex: 'barCode' },
- { title: '名称', dataIndex: 'name' },
- { title: '规格', dataIndex: 'standard' },
- { title: '型号', dataIndex: 'model' },
- { title: '颜色', dataIndex: 'color' },
- { title: '品牌', dataIndex: 'brand' },
- { title: '制造商', dataIndex: 'mfrs' },
- { title: '扩展信息', dataIndex: 'materialOther' },
- { title: '库存', dataIndex: 'stock' },
- { title: '单位', dataIndex: 'unit' },
- { title: '序列号', dataIndex: 'snList', width: 300 },
- { title: '批号', dataIndex: 'batchNumber' },
- { title: '有效期', dataIndex: 'expirationDate' },
- { title: '多属性', dataIndex: 'sku' },
- { title: '数量', dataIndex: 'operNumber' },
- { title: '单价', dataIndex: 'unitPrice' },
- { title: '金额', dataIndex: 'allPrice' },
- { title: '重量', dataIndex: 'weight' },
- { title: '仓位货架', dataIndex: 'position' },
- { title: '备注', dataIndex: 'remark' },
- ],
- allocationOutColumns: [
- { title: '仓库名称', dataIndex: 'depotName' },
- { title: '条码', dataIndex: 'barCode' },
- { title: '名称', dataIndex: 'name' },
- { title: '规格', dataIndex: 'standard' },
- { title: '型号', dataIndex: 'model' },
- { title: '颜色', dataIndex: 'color' },
- { title: '品牌', dataIndex: 'brand' },
- { title: '制造商', dataIndex: 'mfrs' },
- { title: '扩展信息', dataIndex: 'materialOther' },
- { title: '库存', dataIndex: 'stock' },
- { title: '调入仓库', dataIndex: 'anotherDepotName' },
- { title: '单位', dataIndex: 'unit' },
- { title: '多属性', dataIndex: 'sku' },
- { title: '数量', dataIndex: 'operNumber' },
- { title: '单价', dataIndex: 'unitPrice' },
- { title: '金额', dataIndex: 'allPrice' },
- { title: '重量', dataIndex: 'weight' },
- { title: '仓位货架', dataIndex: 'position' },
- { title: '备注', dataIndex: 'remark' },
- ],
- assembleColumns: [
- { title: '商品类型', dataIndex: 'mType' },
- { title: '仓库名称', dataIndex: 'depotName' },
- { title: '条码', dataIndex: 'barCode' },
- { title: '名称', dataIndex: 'name' },
- { title: '规格', dataIndex: 'standard' },
- { title: '型号', dataIndex: 'model' },
- { title: '颜色', dataIndex: 'color' },
- { title: '品牌', dataIndex: 'brand' },
- { title: '制造商', dataIndex: 'mfrs' },
- { title: '扩展信息', dataIndex: 'materialOther' },
- { title: '库存', dataIndex: 'stock' },
- { title: '单位', dataIndex: 'unit' },
- { title: '多属性', dataIndex: 'sku' },
- { title: '数量', dataIndex: 'operNumber' },
- { title: '单价', dataIndex: 'unitPrice' },
- { title: '金额', dataIndex: 'allPrice' },
- { title: '备注', dataIndex: 'remark' },
- ],
- disassembleColumns: [
- { title: '商品类型', dataIndex: 'mType' },
- { title: '仓库名称', dataIndex: 'depotName' },
- { title: '条码', dataIndex: 'barCode' },
- { title: '名称', dataIndex: 'name' },
- { title: '规格', dataIndex: 'standard' },
- { title: '型号', dataIndex: 'model' },
- { title: '颜色', dataIndex: 'color' },
- { title: '品牌', dataIndex: 'brand' },
- { title: '制造商', dataIndex: 'mfrs' },
- { title: '扩展信息', dataIndex: 'materialOther' },
- { title: '库存', dataIndex: 'stock' },
- { title: '单位', dataIndex: 'unit' },
- { title: '多属性', dataIndex: 'sku' },
- { title: '数量', dataIndex: 'operNumber' },
- { title: '单价', dataIndex: 'unitPrice' },
- { title: '金额', dataIndex: 'allPrice' },
- { title: '备注', dataIndex: 'remark' },
- ],
- stockCheckReplayColumns: [
- { title: '仓库名称', dataIndex: 'depotName' },
- { title: '条码', dataIndex: 'barCode' },
- { title: '名称', dataIndex: 'name' },
- { title: '规格', dataIndex: 'standard' },
- { title: '型号', dataIndex: 'model' },
- { title: '品牌', dataIndex: 'brand' },
- { title: '制造商', dataIndex: 'mfrs' },
- { title: '扩展信息', dataIndex: 'materialOther' },
- { title: '库存', dataIndex: 'stock' },
- { title: '单位', dataIndex: 'unit' },
- { title: '多属性', dataIndex: 'sku' },
- { title: '数量', dataIndex: 'operNumber' },
- { title: '单价', dataIndex: 'unitPrice' },
- { title: '金额', dataIndex: 'allPrice' },
- { title: '备注', dataIndex: 'remark' },
- ],
- }
- },
- created() {
- let realScreenWidth = window.screen.width
- this.width = realScreenWidth < 1500 ? '1200px' : '1600px'
- this.tableWidth = {
- width: '100%',
- }
- this.tableWidthRetail = {
- width: '100%',
- }
- },
- methods: {
- initSetting(record, type, ds) {
- if (type === '零售出库') {
- this.defColumns = this.retailOutColumns
- } else if (type === '零售退货入库') {
- this.defColumns = this.retailBackColumns
- } else if (type === '请购单') {
- this.defColumns = this.purchaseApplyColumns
- } else if (type === '采购订单') {
- this.defColumns = this.purchaseOrderColumns
- } else if (type === '采购入库') {
- this.defColumns = this.purchaseInColumns
- } else if (type === '采购退货出库') {
- this.defColumns = this.purchaseBackColumns
- } else if (type === '销售订单') {
- this.defColumns = this.saleOrderColumns
- } else if (type === '销售出库') {
- this.defColumns = this.saleOutColumns
- } else if (type === '销售退货入库') {
- this.defColumns = this.saleBackColumns
- } else if (type === '其它入库') {
- this.defColumns = this.otherInColumns
- } else if (type === '其它出库') {
- this.defColumns = this.otherOutColumns
- } else if (type === '调拨出库') {
- this.defColumns = this.allocationOutColumns
- } else if (type === '组装单') {
- this.defColumns = this.assembleColumns
- } else if (type === '拆卸单') {
- this.defColumns = this.disassembleColumns
- } else if (type === '盘点复盘') {
- this.defColumns = this.stockCheckReplayColumns
- }
- //判断序列号、批号、有效期、多属性、重量、仓位货架是否有值
- let needAddkeywords = []
- for (let i = 0; i < ds.length; i++) {
- if (ds[i].snList) {
- needAddkeywords.push('snList')
- }
- if (ds[i].batchNumber) {
- needAddkeywords.push('batchNumber')
- }
- if (ds[i].expirationDate) {
- needAddkeywords.push('expirationDate')
- }
- if (ds[i].sku) {
- needAddkeywords.push('sku')
- }
- if (ds[i].weight) {
- needAddkeywords.push('weight')
- }
- if (ds[i].position) {
- needAddkeywords.push('position')
- }
- if (ds[i].brand) {
- needAddkeywords.push('brand')
- }
- if (ds[i].mfrs) {
- needAddkeywords.push('mfrs')
- }
- }
- let currentCol = [
- {
- title: '#',
- dataIndex: '',
- align: 'center',
- width: 30,
- customRender: function (t, r, index) {
- return parseInt(index) + 1
- },
- },
- ]
- if (record.status === '3') {
- //部分采购|部分销售的时候显示全部列
- for (let i = 0; i < this.defColumns.length; i++) {
- currentCol.push(this.defColumns[i])
- }
- this.columns = currentCol
- } else if (record.purchaseStatus === '3') {
- //将已出库的标题转为已采购,针对销售订单转采购订单的场景
- for (let i = 0; i < this.defColumns.length; i++) {
- let info = {}
- info.title = this.defColumns[i].title
- info.dataIndex = this.defColumns[i].dataIndex
- if (this.defColumns[i].width) {
- info.width = this.defColumns[i].width
- }
- if (this.defColumns[i].dataIndex === 'finishNumber') {
- info.title = '已采购'
- }
- if (this.defColumns[i].dataIndex === 'barCode') {
- info.scopedSlots = { customRender: 'customBarCode' }
- }
- currentCol.push(info)
- }
- this.columns = currentCol
- } else {
- for (let i = 0; i < this.defColumns.length; i++) {
- //移除列
- let needRemoveKeywords = [
- 'finishNumber',
- 'snList',
- 'batchNumber',
- 'expirationDate',
- 'sku',
- 'weight',
- 'position',
- 'brand',
- 'mfrs',
- ]
- if (needRemoveKeywords.indexOf(this.defColumns[i].dataIndex) === -1) {
- let info = {}
- info.title = this.defColumns[i].title
- info.dataIndex = this.defColumns[i].dataIndex
- if (this.defColumns[i].width) {
- info.width = this.defColumns[i].width
- }
- if (this.defColumns[i].dataIndex === 'barCode') {
- info.scopedSlots = { customRender: 'customBarCode' }
- }
- currentCol.push(info)
- }
- //添加有数据的列
- if (needAddkeywords.indexOf(this.defColumns[i].dataIndex) > -1) {
- let info = {}
- info.title = this.defColumns[i].title
- info.dataIndex = this.defColumns[i].dataIndex
- if (this.defColumns[i].width) {
- info.width = this.defColumns[i].width
- }
- currentCol.push(info)
- }
- }
- this.columns = currentCol
- }
- },
- initPlatform() {
- getPlatformConfigByKey({ platformKey: 'bill_print_flag' }).then((res) => {
- if (res && res.code === 200) {
- if (
- this.billType === '零售出库' ||
- this.billType === '零售退货入库' ||
- this.billType === '请购单' ||
- this.billType === '采购订单' ||
- this.billType === '采购入库' ||
- this.billType === '采购退货出库' ||
- this.billType === '销售订单' ||
- this.billType === '销售出库' ||
- this.billType === '销售退货入库' ||
- this.billType === '其它入库' ||
- this.billType === '其它出库' ||
- this.billType === '调拨出库' ||
- this.billType === '组装单' ||
- this.billType === '拆卸单'
- ) {
- this.billPrintFlag = res.data.platformValue === '1' ? true : false
- }
- }
- })
- },
- getSystemConfig() {
- getCurrentSystemConfig().then((res) => {
- if (res.code === 200 && res.data) {
- this.purchaseBySaleFlag = res.data.purchaseBySaleFlag === '1' ? true : false
- let multiBillType = res.data.multiBillType
- let multiLevelApprovalFlag = res.data.multiLevelApprovalFlag
- this.checkFlag = getCheckFlag(multiBillType, multiLevelApprovalFlag, this.prefixNo)
- if (res.data.auditPrintFlag === '1') {
- if (this.model.status === '0' || this.model.status === '9') {
- this.isShowPrintBtn = false
- } else {
- this.isShowPrintBtn = true
- }
- } else {
- this.isShowPrintBtn = true
- }
- }
- })
- },
- getBillListByLinkNumber(number) {
- getAction('/depotHead/getBillListByLinkNumber', { number: number }).then((res) => {
- if (res && res.code === 200) {
- this.linkNumberList = res.data
- }
- })
- },
- getFinancialBillNoByBillId(billId) {
- getAction('/accountHead/getFinancialBillNoByBillId', { billId: billId }).then((res) => {
- if (res && res.code === 200) {
- this.financialBillNoList = res.data
- }
- })
- },
- show(record, type, prefixNo) {
- //查询单条单据信息
- findBillDetailByNumber({ number: record.number }).then((res) => {
- if (res && res.code === 200) {
- let item = res.data
- this.billType = type
- this.prefixNo = prefixNo
- //附件下载
- this.fileList = item.fileName
- this.visible = true
- this.modalStyle = 'top:20px;height: 95%;'
- this.model = Object.assign({}, item)
- if (this.model.backAmount) {
- this.model.getAmount = (this.model.changeAmount + this.model.backAmount).toFixed(2)
- } else {
- this.model.getAmount = this.model.changeAmount
- }
- this.model.debt = (
- this.model.discountLastMoney +
- this.model.otherMoney -
- (this.model.deposit + this.model.changeAmount)
- ).toFixed(2)
- this.$nextTick(() => {
- this.form.setFieldsValue(pick(this.model, 'id'))
- })
- let showType = 'basic'
- if (
- item.subType === '采购' ||
- item.subType === '采购退货' ||
- item.subType === '销售' ||
- item.subType === '销售退货'
- ) {
- if (item.status === '3') {
- showType = 'other'
- }
- } else {
- if (item.status === '3') {
- showType = 'basic'
- } else if (item.purchaseStatus === '3') {
- showType = 'purchase'
- }
- }
- let isReadOnly = '1'
- if (item.subType === '组装单' || item.subType === '拆卸单') {
- isReadOnly = '0'
- }
- let params = {
- headerId: this.model.id,
- mpList: getMpListShort(Vue.ls.get('materialPropertyList')), //扩展属性
- linkType: showType,
- isReadOnly: isReadOnly,
- }
- let url = this.readOnly ? this.url.detailList : this.url.detailList
- this.requestSubTableData(item, type, url, params)
- this.initPlatform()
- this.getSystemConfig()
- this.getBillListByLinkNumber(this.model.number)
- this.getFinancialBillNoByBillId(this.model.id)
- }
- })
- },
- requestSubTableData(record, type, url, params, success) {
- this.loading = true
- getAction(url, params)
- .then((res) => {
- if (res && res.code === 200) {
- this.dataSource = res.data.rows
- this.initSetting(record, type, this.dataSource)
- typeof success === 'function' ? success(res) : ''
- }
- })
- .finally(() => {
- this.loading = false
- })
- },
- handleBackCheck() {
- let that = this
- this.$confirm({
- title: '确认操作',
- content: '是否对该单据进行反审核?',
- onOk: function () {
- that.loading = true
- postAction(that.url.batchSetStatusUrl, { status: '0', ids: that.model.id })
- .then((res) => {
- if (res.code === 200) {
- that.$emit('ok')
- that.loading = false
- that.close()
- } else {
- that.$message.warning(res.data.message)
- that.loading = false
- }
- })
- .finally(() => {})
- },
- })
- },
- handleCancel() {
- this.close()
- },
- close() {
- this.$emit('close')
- this.visible = false
- this.modalStyle = ''
- },
- myHandleDetail(billNumber) {
- findBillDetailByNumber({ number: billNumber }).then((res) => {
- if (res && res.code === 200) {
- let type = res.data.type === '其它' ? '' : res.data.type
- this.show(res.data, res.data.subType + type)
- this.title = res.data.subType + type + '-详情'
- }
- })
- },
- myHandleFinancialDetail(billNo) {
- let that = this
- findFinancialDetailByNumber({ billNo: billNo }).then((res) => {
- if (res && res.code === 200) {
- if (that.$refs.financialDetailModal) {
- that.$refs.financialDetailModal.show(res.data, res.data.type)
- that.$refs.financialDetailModal.title = res.data.type + '-详情'
- }
- }
- })
- },
- getImgUrl(imgName, type) {
- if (imgName && imgName.split(',')) {
- type = type ? type + '/' : ''
- return getFileAccessHttpUrl('systemConfig/static/' + type + imgName.split(',')[0])
- } else {
- return ''
- }
- },
- //三联打印预览
- handlePrint() {
- getPlatformConfigByKey({ platformKey: 'bill_print_url' }).then((res) => {
- if (res && res.code === 200) {
- let billPrintUrl = res.data.platformValue + '?no=' + this.model.number
- let billPrintHeight = this.dataSource.length * 50 + 600
- this.$refs.modalDetail.show(this.model, billPrintUrl, billPrintHeight)
- this.$refs.modalDetail.title = this.billType + '-三联打印预览'
- }
- })
- },
- //零售出库|零售退货入库
- retailExportExcel() {
- let list = []
- let head = '仓库名称,条码,名称,规格,型号,颜色,扩展信息,库存,单位,序列号,批号,有效期,多属性,数量,单价,金额,备注'
- for (let i = 0; i < this.dataSource.length; i++) {
- let item = []
- let ds = this.dataSource[i]
- item.push(
- ds.depotName,
- ds.barCode,
- ds.name,
- ds.standard,
- ds.model,
- ds.color,
- ds.materialOther,
- ds.stock,
- ds.unit,
- ds.snList,
- ds.batchNumber,
- ds.expirationDate,
- ds.sku,
- ds.operNumber,
- ds.unitPrice,
- ds.allPrice,
- ds.remark
- )
- list.push(item)
- }
- let organName = this.model.organName ? '会员卡号' + this.model.organName : ''
- let tip = organName + ' ' + '单据日期:' + this.model.operTimeStr + ' ' + '单据编号:' + this.model.number
- exportXlsPost(this.billType + '_' + this.model.number, '单据导出', head, tip, list)
- },
- //请购单
- applyExportExcel() {
- let list = []
- let head = '条码,名称,规格,型号,颜色,扩展信息,单位,多属性,原数量,已采购,数量,备注'
- for (let i = 0; i < this.dataSource.length; i++) {
- let item = []
- let ds = this.dataSource[i]
- item.push(
- ds.barCode,
- ds.name,
- ds.standard,
- ds.model,
- ds.color,
- ds.materialOther,
- ds.unit,
- ds.sku,
- ds.preNumber,
- ds.finishNumber,
- ds.operNumber,
- ds.remark
- )
- list.push(item)
- }
- let tip = '单据日期:' + this.model.operTimeStr + ' ' + '单据编号:' + this.model.number
- exportXlsPost(this.billType + '_' + this.model.number, '单据导出', head, tip, list)
- },
- //采购订单|销售订单
- orderExportExcel() {
- let list = []
- let finishType = ''
- let organType = ''
- if (this.billType === '采购订单') {
- finishType = '已入库'
- organType = '供应商:'
- } else if (this.billType === '销售订单') {
- finishType = '已出库'
- organType = '客户:'
- }
- let head =
- '条码,名称,规格,型号,颜色,扩展信息,库存,单位,多属性,数量,' +
- finishType +
- ',单价,金额,税率(%),税额,价税合计,备注'
- for (let i = 0; i < this.dataSource.length; i++) {
- let item = []
- let ds = this.dataSource[i]
- item.push(
- ds.barCode,
- ds.name,
- ds.standard,
- ds.model,
- ds.color,
- ds.materialOther,
- ds.stock,
- ds.unit,
- ds.sku,
- ds.operNumber,
- ds.finishNumber,
- ds.unitPrice,
- ds.allPrice,
- ds.taxRate,
- ds.taxMoney,
- ds.taxLastMoney,
- ds.remark
- )
- list.push(item)
- }
- let organName = this.model.organName ? this.model.organName : ''
- let tip =
- organType + organName + ' ' + '单据日期:' + this.model.operTimeStr + ' ' + '单据编号:' + this.model.number
- exportXlsPost(this.billType + '_' + this.model.number, '单据导出', head, tip, list)
- },
- //采购入库|采购退货出库|销售出库|销售退货入库
- purchaseSaleExportExcel() {
- let list = []
- let organType = ''
- if (this.billType === '采购入库' || this.billType === '采购退货出库') {
- organType = '供应商:'
- } else if (this.billType === '销售出库' || this.billType === '销售退货入库') {
- organType = '客户:'
- }
- let head =
- '仓库名称,条码,名称,规格,型号,颜色,扩展信息,库存,单位,序列号,批号,有效期,多属性,数量,单价,金额,税率(%),税额,价税合计,重量,备注'
- for (let i = 0; i < this.dataSource.length; i++) {
- let item = []
- let ds = this.dataSource[i]
- item.push(
- ds.depotName,
- ds.barCode,
- ds.name,
- ds.standard,
- ds.model,
- ds.color,
- ds.materialOther,
- ds.stock,
- ds.unit,
- ds.snList,
- ds.batchNumber,
- ds.expirationDate,
- ds.sku,
- ds.operNumber,
- ds.unitPrice,
- ds.allPrice,
- ds.taxRate,
- ds.taxMoney,
- ds.taxLastMoney,
- ds.weight,
- ds.remark
- )
- list.push(item)
- }
- let organName = this.model.organName ? this.model.organName : ''
- let linkNumber = this.model.linkNumber ? this.model.linkNumber : ''
- let tip =
- organType +
- organName +
- ' ' +
- '单据日期:' +
- this.model.operTimeStr +
- ' ' +
- '单据编号:' +
- this.model.number +
- '' +
- '关联单号:' +
- linkNumber
- exportXlsPost(this.billType + '_' + this.model.number, '单据导出', head, tip, list)
- },
- //其它入库|其它出库
- otherExportExcel() {
- let list = []
- let organType = ''
- if (this.billType === '其它入库') {
- organType = '供应商:'
- } else if (this.billType === '其它出库') {
- organType = '客户:'
- }
- let head = '仓库名称,条码,名称,规格,型号,颜色,扩展信息,库存,单位,序列号,批号,有效期,多属性,数量,单价,金额,备注'
- for (let i = 0; i < this.dataSource.length; i++) {
- let item = []
- let ds = this.dataSource[i]
- item.push(
- ds.depotName,
- ds.barCode,
- ds.name,
- ds.standard,
- ds.model,
- ds.color,
- ds.materialOther,
- ds.stock,
- ds.unit,
- ds.snList,
- ds.batchNumber,
- ds.expirationDate,
- ds.sku,
- ds.operNumber,
- ds.unitPrice,
- ds.allPrice,
- ds.remark
- )
- list.push(item)
- }
- let organName = this.model.organName ? this.model.organName : ''
- let tip =
- organType + organName + ' ' + '单据日期:' + this.model.operTimeStr + ' ' + '单据编号:' + this.model.number
- exportXlsPost(this.billType + '_' + this.model.number, '单据导出', head, tip, list)
- },
- //调拨出库
- allocationOutExportExcel() {
- let list = []
- let head = '仓库名称,条码,名称,规格,型号,颜色,扩展信息,库存,调入仓库,单位,多属性,数量,单价,金额,备注'
- for (let i = 0; i < this.dataSource.length; i++) {
- let item = []
- let ds = this.dataSource[i]
- item.push(
- ds.depotName,
- ds.barCode,
- ds.name,
- ds.standard,
- ds.model,
- ds.color,
- ds.materialOther,
- ds.stock,
- ds.anotherDepotName,
- ds.unit,
- ds.sku,
- ds.operNumber,
- ds.unitPrice,
- ds.allPrice,
- ds.remark
- )
- list.push(item)
- }
- let tip = '单据日期:' + this.model.operTimeStr + ' ' + '单据编号:' + this.model.number
- exportXlsPost(this.billType + '_' + this.model.number, '单据导出', head, tip, list)
- },
- //组装单|拆卸单
- assembleExportExcel() {
- let list = []
- let head = ['商品类型,仓库名称,条码,名称,规格,型号,颜色,扩展信息,库存,单位,多属性,数量,单价,金额,备注']
- for (let i = 0; i < this.dataSource.length; i++) {
- let item = []
- let ds = this.dataSource[i]
- item.push(
- ds.mType,
- ds.depotName,
- ds.barCode,
- ds.name,
- ds.standard,
- ds.model,
- ds.color,
- ds.materialOther,
- ds.stock,
- ds.unit,
- ds.sku,
- ds.operNumber,
- ds.unitPrice,
- ds.allPrice,
- ds.remark
- )
- list.push(item)
- }
- let tip = '单据日期:' + this.model.operTimeStr + ' ' + '单据编号:' + this.model.number
- exportXlsPost(this.billType + '_' + this.model.number, '单据导出', head, tip, list)
- },
- //盘点复盘
- stockCheckReplayExportExcel() {
- let list = []
- let head = '仓库名称,条码,名称,规格,型号,扩展信息,库存,单位,多属性,数量,单价,金额,备注'
- for (let i = 0; i < this.dataSource.length; i++) {
- let item = []
- let ds = this.dataSource[i]
- item.push(
- ds.depotName,
- ds.barCode,
- ds.name,
- ds.standard,
- ds.model,
- ds.materialOther,
- ds.stock,
- ds.unit,
- ds.sku,
- ds.operNumber,
- ds.unitPrice,
- ds.allPrice,
- ds.remark
- )
- list.push(item)
- }
- let linkNumber = this.model.linkNumber ? this.model.linkNumber : ''
- let tip =
- '单据日期:' + this.model.operTimeStr + ' ' + '单据编号:' + this.model.number + '' + '关联单号:' + linkNumber
- exportXlsPost(this.billType + '_' + this.model.number, '单据导出', head, tip, list)
- },
- },
- }
- </script>
- <style scoped>
- .item-info {
- float: left;
- width: 30px;
- height: 30px;
- margin-left: 8px;
- }
- .item-img {
- cursor: pointer;
- position: static;
- display: block;
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- </style>
|