BillDetail.vue 110 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670
  1. <template>
  2. <j-modal
  3. :title="title"
  4. :width="width"
  5. :visible="visible"
  6. :maskClosable="false"
  7. :forceRender="true"
  8. :style="modalStyle"
  9. fullscreen
  10. switchFullscreen
  11. @cancel="handleCancel"
  12. wrapClassName="ant-modal-cust-warp"
  13. >
  14. <template slot="footer">
  15. <!--打印-->
  16. <a-button key="back" @click="handleCancel">取消(ESC)</a-button>
  17. <template v-if="isShowPrintBtn">
  18. <a-button v-if="billPrintFlag" @click="handlePrint">三联打印预览</a-button>
  19. <!--此处为解决缓存问题-->
  20. <a-button v-if="billType === '零售出库'" v-print="'#retailOutPrint'">普通打印</a-button>
  21. <a-button v-if="billType === '零售退货入库'" v-print="'#retailBackPrint'">普通打印</a-button>
  22. <a-button v-if="billType === '请购单'" v-print="'#purchaseApplyPrint'">普通打印</a-button>
  23. <a-button v-if="billType === '采购订单'" v-print="'#purchaseOrderPrint'">普通打印</a-button>
  24. <a-button v-if="billType === '采购入库'" v-print="'#purchaseInPrint'">普通打印</a-button>
  25. <a-button v-if="billType === '采购退货出库'" v-print="'#purchaseBackPrint'">普通打印</a-button>
  26. <a-button v-if="billType === '销售订单'" v-print="'#saleOrderPrint'">普通打印</a-button>
  27. <a-button v-if="billType === '销售出库'" v-print="'#saleOutPrint'">普通打印</a-button>
  28. <a-button v-if="billType === '销售退货入库'" v-print="'#saleBackPrint'">普通打印</a-button>
  29. <a-button v-if="billType === '其它入库'" v-print="'#otherInPrint'">普通打印</a-button>
  30. <a-button v-if="billType === '其它出库'" v-print="'#otherOutPrint'">普通打印</a-button>
  31. <a-button v-if="billType === '调拨出库'" v-print="'#allocationOutPrint'">普通打印</a-button>
  32. <a-button v-if="billType === '组装单'" v-print="'#assemblePrint'">普通打印</a-button>
  33. <a-button v-if="billType === '拆卸单'" v-print="'#disassemblePrint'">普通打印</a-button>
  34. <a-button v-if="billType === '盘点复盘'" v-print="'#stockCheckReplayPrint'">普通打印</a-button>
  35. </template>
  36. <!--导出Excel-->
  37. <a-button v-if="billType === '零售出库' || billType === '零售退货入库'" @click="retailExportExcel()"
  38. >导出</a-button
  39. >
  40. <a-button v-if="billType === '请购单'" @click="applyExportExcel()">导出</a-button>
  41. <a-button v-if="billType === '采购订单' || billType === '销售订单'" @click="orderExportExcel()">导出</a-button>
  42. <a-button
  43. v-if="
  44. billType === '采购入库' ||
  45. billType === '采购退货出库' ||
  46. billType === '销售出库' ||
  47. billType === '销售退货入库'
  48. "
  49. @click="purchaseSaleExportExcel()"
  50. >导出</a-button
  51. >
  52. <a-button v-if="billType === '其它入库' || billType === '其它出库'" @click="otherExportExcel()">导出</a-button>
  53. <a-button v-if="billType === '调拨出库'" @click="allocationOutExportExcel()">导出</a-button>
  54. <a-button v-if="billType === '组装单' || billType === '拆卸单'" @click="assembleExportExcel()">导出</a-button>
  55. <a-button v-if="billType === '盘点复盘'" @click="stockCheckReplayExportExcel()">导出</a-button>
  56. <!--反审核-->
  57. <a-button v-if="checkFlag && isCanBackCheck && model.status === '1'" @click="handleBackCheck()">反审核</a-button>
  58. </template>
  59. <a-form :form="form">
  60. <!--零售出库-->
  61. <template v-if="billType === '零售出库'">
  62. <section ref="print" id="retailOutPrint">
  63. <a-row class="form-row" :gutter="24">
  64. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  65. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="会员卡号">
  66. <a-input v-decorator="['id']" hidden />
  67. {{ model.organName }}
  68. </a-form-item>
  69. </a-col>
  70. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  71. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
  72. {{ model.operTimeStr }}
  73. </a-form-item>
  74. </a-col>
  75. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  76. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
  77. {{ model.number }}
  78. </a-form-item>
  79. </a-col>
  80. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  81. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收款类型">
  82. {{ model.payType }}
  83. </a-form-item>
  84. </a-col>
  85. </a-row>
  86. <a-row class="form-row" :gutter="24">
  87. <a-col :lg="18" :md="12" :sm="24">
  88. <div :style="tableWidthRetail">
  89. <a-table
  90. ref="table"
  91. size="middle"
  92. bordered
  93. rowKey="id"
  94. :pagination="false"
  95. :loading="loading"
  96. :columns="columns"
  97. :dataSource="dataSource"
  98. :scroll="scroll"
  99. style="width: 90%"
  100. >
  101. <template slot="customBarCode" slot-scope="text, record">
  102. <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">
  103. {{ record.barCode }}
  104. </div>
  105. <a-popover placement="right" trigger="click">
  106. <template slot="content"
  107. ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
  108. /></template>
  109. <div class="item-info" v-if="record.imgName">
  110. <img
  111. v-if="record.imgName"
  112. :src="getImgUrl(record.imgName, record.imgSmall)"
  113. class="item-img"
  114. title="查看大图"
  115. />
  116. </div>
  117. </a-popover>
  118. </template>
  119. </a-table>
  120. </div>
  121. </a-col>
  122. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  123. <a-row class="form-row" :gutter="24">
  124. <a-col :lg="24" :md="6" :sm="6">
  125. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据金额">
  126. {{ model.changeAmount }}
  127. </a-form-item>
  128. </a-col>
  129. <a-col :lg="24" :md="6" :sm="6">
  130. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收款金额">
  131. {{ model.getAmount }}
  132. </a-form-item>
  133. </a-col>
  134. <a-col :lg="24" :md="6" :sm="6">
  135. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="找零">
  136. {{ model.backAmount }}
  137. </a-form-item>
  138. </a-col>
  139. <a-col :lg="24" :md="6" :sm="6">
  140. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收款账户">
  141. {{ model.accountName }}
  142. </a-form-item>
  143. </a-col>
  144. <a-col v-if="model.hasBackFlag" :lg="24" :md="6" :sm="6">
  145. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="退货单号">
  146. <template v-for="(item, index) in linkNumberList">
  147. <a @click="myHandleDetail(item.number)">{{ item.number }}</a
  148. ><br />
  149. </template>
  150. </a-form-item>
  151. </a-col>
  152. </a-row>
  153. </a-col>
  154. </a-row>
  155. <a-row class="form-row" :gutter="24">
  156. <a-col :lg="24" :md="24" :sm="24">
  157. <a-form-item
  158. :labelCol="labelCol"
  159. :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
  160. label=""
  161. style="padding: 20px 10px"
  162. >
  163. {{ model.remark }}
  164. </a-form-item>
  165. </a-col>
  166. </a-row>
  167. </section>
  168. </template>
  169. <!--零售退货-->
  170. <template v-else-if="billType === '零售退货入库'">
  171. <section ref="print" id="retailBackPrint">
  172. <a-row class="form-row" :gutter="24">
  173. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  174. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="会员卡号">
  175. <a-input v-decorator="['id']" hidden />
  176. {{ model.organName }}
  177. </a-form-item>
  178. </a-col>
  179. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  180. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
  181. {{ model.operTimeStr }}
  182. </a-form-item>
  183. </a-col>
  184. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  185. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
  186. {{ model.number }}
  187. </a-form-item>
  188. </a-col>
  189. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  190. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
  191. <a @click="myHandleDetail(model.linkNumber)">{{ model.linkNumber }}</a>
  192. </a-form-item>
  193. </a-col>
  194. </a-row>
  195. <a-row class="form-row" :gutter="24">
  196. <a-col :lg="18" :md="12" :sm="24">
  197. <div :style="tableWidthRetail">
  198. <a-table
  199. ref="table"
  200. size="middle"
  201. bordered
  202. rowKey="id"
  203. :pagination="false"
  204. :loading="loading"
  205. :columns="columns"
  206. :dataSource="dataSource"
  207. :scroll="{ x: '100%' }"
  208. >
  209. <template slot="customBarCode" slot-scope="text, record">
  210. <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">
  211. {{ record.barCode }}
  212. </div>
  213. <a-popover placement="right" trigger="click">
  214. <template slot="content"
  215. ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
  216. /></template>
  217. <div class="item-info" v-if="record.imgName">
  218. <img
  219. v-if="record.imgName"
  220. :src="getImgUrl(record.imgName, record.imgSmall)"
  221. class="item-img"
  222. title="查看大图"
  223. />
  224. </div>
  225. </a-popover>
  226. </template>
  227. </a-table>
  228. </div>
  229. </a-col>
  230. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  231. <a-row class="form-row" :gutter="24">
  232. <a-col :lg="24" :md="6" :sm="6">
  233. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据金额">
  234. {{ model.changeAmount }}
  235. </a-form-item>
  236. </a-col>
  237. <a-col :lg="24" :md="6" :sm="6">
  238. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款金额">
  239. {{ model.getAmount }}
  240. </a-form-item>
  241. </a-col>
  242. <a-col :lg="24" :md="6" :sm="6">
  243. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="找零">
  244. {{ model.backAmount }}
  245. </a-form-item>
  246. </a-col>
  247. <a-col :lg="24" :md="6" :sm="6">
  248. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款账户">
  249. {{ model.accountName }}
  250. </a-form-item>
  251. </a-col>
  252. </a-row>
  253. </a-col>
  254. </a-row>
  255. <a-row class="form-row" :gutter="24">
  256. <a-col :lg="24" :md="24" :sm="24">
  257. <a-form-item
  258. :labelCol="labelCol"
  259. :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
  260. label=""
  261. style="padding: 20px 10px"
  262. >
  263. {{ model.remark }}
  264. </a-form-item>
  265. </a-col>
  266. </a-row>
  267. </section>
  268. </template>
  269. <!--请购单-->
  270. <template v-else-if="billType === '请购单'">
  271. <section ref="print" id="purchaseApplyPrint">
  272. <a-row class="form-row" :gutter="24">
  273. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  274. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
  275. {{ model.operTimeStr }}
  276. </a-form-item>
  277. </a-col>
  278. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  279. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
  280. {{ model.number }}
  281. </a-form-item>
  282. </a-col>
  283. <a-col :xl="6" :lg="8" :md="12" :sm="24"> </a-col>
  284. <a-col :xl="6" :lg="8" :md="12" :sm="24"> </a-col>
  285. </a-row>
  286. <div :style="tableWidth">
  287. <a-table
  288. ref="table"
  289. size="middle"
  290. bordered
  291. rowKey="id"
  292. :pagination="false"
  293. :loading="loading"
  294. :columns="columns"
  295. :dataSource="dataSource"
  296. :scroll="{ x: '100%' }"
  297. >
  298. <template slot="customBarCode" slot-scope="text, record">
  299. <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
  300. <a-popover placement="right" trigger="click">
  301. <template slot="content"
  302. ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
  303. /></template>
  304. <div class="item-info" v-if="record.imgName">
  305. <img
  306. v-if="record.imgName"
  307. :src="getImgUrl(record.imgName, record.imgSmall)"
  308. class="item-img"
  309. title="查看大图"
  310. />
  311. </div>
  312. </a-popover>
  313. </template>
  314. </a-table>
  315. </div>
  316. <a-row class="form-row" :gutter="24">
  317. <a-col :lg="24" :md="24" :sm="24">
  318. <a-form-item
  319. :labelCol="labelCol"
  320. :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
  321. label=""
  322. style="padding: 20px 10px"
  323. >
  324. {{ model.remark }}
  325. </a-form-item>
  326. </a-col>
  327. </a-row>
  328. </section>
  329. </template>
  330. <!--采购订单-->
  331. <template v-else-if="billType === '采购订单'">
  332. <section ref="print" id="purchaseOrderPrint">
  333. <a-row class="form-row" :gutter="24">
  334. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  335. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
  336. <a-input v-decorator="['id']" hidden />
  337. {{ model.organName }}
  338. </a-form-item>
  339. </a-col>
  340. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  341. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
  342. {{ model.operTimeStr }}
  343. </a-form-item>
  344. </a-col>
  345. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  346. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
  347. {{ model.number }}
  348. </a-form-item>
  349. </a-col>
  350. <a-col :xl="6" :lg="8" :md="12" :sm="24" v-if="model.linkApply">
  351. <a-form-item
  352. :labelCol="{ xs: { span: 24 }, sm: { span: 6 } }"
  353. :wrapperCol="wrapperCol"
  354. label="关联请购单"
  355. >
  356. <a @click="myHandleDetail(model.linkApply)">{{ model.linkApply }}</a>
  357. </a-form-item>
  358. </a-col>
  359. <a-col :xl="6" :lg="8" :md="12" :sm="24" v-if="model.linkNumber">
  360. <a-form-item v-if="purchaseBySaleFlag" :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联订单">
  361. {{ model.linkNumber }}
  362. </a-form-item>
  363. </a-col>
  364. </a-row>
  365. <div style="width: 100%">
  366. <a-table
  367. ref="table"
  368. size="middle"
  369. bordered
  370. rowKey="id"
  371. :scroll="{ x: '100%' }"
  372. :pagination="false"
  373. :loading="loading"
  374. :columns="columns"
  375. :dataSource="dataSource"
  376. >
  377. <template slot="customBarCode" slot-scope="text, record">
  378. <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
  379. <a-popover placement="right" trigger="click">
  380. <template slot="content"
  381. ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
  382. /></template>
  383. <div class="item-info" v-if="record.imgName">
  384. <img
  385. v-if="record.imgName"
  386. :src="getImgUrl(record.imgName, record.imgSmall)"
  387. class="item-img"
  388. title="查看大图"
  389. />
  390. </div>
  391. </a-popover>
  392. </template>
  393. </a-table>
  394. </div>
  395. <a-row class="form-row" :gutter="24">
  396. <a-col :lg="24" :md="24" :sm="24">
  397. <a-form-item
  398. :labelCol="labelCol"
  399. :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
  400. label=""
  401. style="padding: 20px 10px"
  402. >
  403. {{ model.remark }}
  404. </a-form-item>
  405. </a-col>
  406. </a-row>
  407. <a-row class="form-row" :gutter="24">
  408. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  409. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="优惠率">
  410. {{ model.discount }}%
  411. </a-form-item>
  412. </a-col>
  413. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  414. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款优惠">
  415. {{ model.discountMoney }}
  416. </a-form-item>
  417. </a-col>
  418. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  419. <a-form-item
  420. :labelCol="{ xs: { span: 24 }, sm: { span: 6 } }"
  421. :wrapperCol="wrapperCol"
  422. label="优惠后金额"
  423. >
  424. {{ model.discountLastMoney }}
  425. </a-form-item>
  426. </a-col>
  427. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  428. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="结算账户">
  429. {{ model.accountName }}
  430. </a-form-item>
  431. </a-col>
  432. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  433. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="支付订金">
  434. {{ model.changeAmount }}
  435. </a-form-item>
  436. </a-col>
  437. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  438. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="二维码">
  439. <!-- <vue-qr :text="model.number" :size="200" /> -->
  440. <vue-qrcode :value="model.number" :options="{ width: 200, margin:1 }"></vue-qrcode>
  441. </a-form-item>
  442. </a-col>
  443. </a-row>
  444. </section>
  445. </template>
  446. <!--采购入库-->
  447. <template v-else-if="billType === '采购入库'">
  448. <section ref="print" id="purchaseInPrint">
  449. <a-row class="form-row" :gutter="24">
  450. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  451. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
  452. <a-input v-decorator="['id']" hidden />
  453. {{ model.organName }}
  454. </a-form-item>
  455. </a-col>
  456. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  457. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
  458. {{ model.operTimeStr }}
  459. </a-form-item>
  460. </a-col>
  461. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  462. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
  463. {{ model.number }}
  464. </a-form-item>
  465. </a-col>
  466. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  467. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联订单">
  468. <a @click="myHandleDetail(model.linkNumber)">{{ model.linkNumber }}</a>
  469. </a-form-item>
  470. </a-col>
  471. </a-row>
  472. <div>
  473. <a-table
  474. ref="table"
  475. size="middle"
  476. bordered
  477. rowKey="id"
  478. :pagination="false"
  479. :loading="loading"
  480. :columns="columns"
  481. :dataSource="dataSource"
  482. :scroll="{ x: 1500, y: 300 }"
  483. >
  484. <template slot="customBarCode" slot-scope="text, record">
  485. <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
  486. <a-popover placement="right" trigger="click">
  487. <template slot="content"
  488. ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
  489. /></template>
  490. <div class="item-info" v-if="record.imgName">
  491. <img
  492. v-if="record.imgName"
  493. :src="getImgUrl(record.imgName, record.imgSmall)"
  494. class="item-img"
  495. title="查看大图"
  496. />
  497. </div>
  498. </a-popover>
  499. </template>
  500. </a-table>
  501. </div>
  502. <a-row class="form-row" :gutter="24">
  503. <a-col :lg="24" :md="24" :sm="24">
  504. <a-form-item
  505. :labelCol="labelCol"
  506. :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
  507. label=""
  508. style="padding: 20px 10px"
  509. >
  510. {{ model.remark }}
  511. </a-form-item>
  512. </a-col>
  513. </a-row>
  514. <a-row class="form-row" :gutter="24">
  515. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  516. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="优惠率">
  517. {{ model.discount }}%
  518. </a-form-item>
  519. </a-col>
  520. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  521. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款优惠">
  522. {{ model.discountMoney }}
  523. </a-form-item>
  524. </a-col>
  525. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  526. <a-form-item
  527. :labelCol="{ xs: { span: 24 }, sm: { span: 6 } }"
  528. :wrapperCol="wrapperCol"
  529. label="优惠后金额"
  530. >
  531. {{ model.discountLastMoney }}
  532. </a-form-item>
  533. </a-col>
  534. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  535. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="其它费用">
  536. {{ model.otherMoney }}
  537. </a-form-item>
  538. </a-col>
  539. </a-row>
  540. <a-row class="form-row" :gutter="24">
  541. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  542. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="结算账户">
  543. {{ model.accountName }}
  544. </a-form-item>
  545. </a-col>
  546. <a-col v-if="model.deposit" :xl="6" :lg="8" :md="12" :sm="24">
  547. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="扣除订金">
  548. {{ model.deposit }}
  549. </a-form-item>
  550. </a-col>
  551. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  552. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次付款">
  553. {{ model.changeAmount }}
  554. </a-form-item>
  555. </a-col>
  556. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  557. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次欠款">
  558. {{ model.debt }}
  559. </a-form-item>
  560. </a-col>
  561. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  562. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="二维码">
  563. <!-- <vue-qr :text="model.number" :size="200" /> -->
  564. <vue-qrcode :value="model.number" :options="{ width: 200,margin:2 }"></vue-qrcode>
  565. </a-form-item>
  566. </a-col>
  567. <a-col v-if="model.hasBackFlag" :xl="6" :lg="8" :md="12" :sm="24">
  568. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="退货单号">
  569. <template v-for="(item, index) in linkNumberList">
  570. <a @click="myHandleDetail(item.number)">{{ item.number }}</a
  571. ><br />
  572. </template>
  573. </a-form-item>
  574. </a-col>
  575. </a-row>
  576. <a-row class="form-row" :gutter="24">
  577. <a-col v-if="financialBillNoList.length" :xl="6" :lg="8" :md="12" :sm="24">
  578. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款单号">
  579. <template v-for="(item, index) in financialBillNoList">
  580. <a @click="myHandleFinancialDetail(item.billNo)">{{ item.billNo }}</a
  581. ><br />
  582. </template>
  583. </a-form-item>
  584. </a-col>
  585. </a-row>
  586. </section>
  587. </template>
  588. <!--采购退货-->
  589. <template v-else-if="billType === '采购退货出库'">
  590. <section ref="print" id="purchaseBackPrint">
  591. <a-row class="form-row" :gutter="24">
  592. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  593. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
  594. <a-input v-decorator="['id']" hidden />
  595. {{ model.organName }}
  596. </a-form-item>
  597. </a-col>
  598. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  599. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
  600. {{ model.operTimeStr }}
  601. </a-form-item>
  602. </a-col>
  603. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  604. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
  605. {{ model.number }}
  606. </a-form-item>
  607. </a-col>
  608. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  609. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
  610. <a @click="myHandleDetail(model.linkNumber)">{{ model.linkNumber }}</a>
  611. </a-form-item>
  612. </a-col>
  613. </a-row>
  614. <div :style="tableWidth">
  615. <a-table
  616. ref="table"
  617. size="middle"
  618. bordered
  619. rowKey="id"
  620. :pagination="false"
  621. :loading="loading"
  622. :columns="columns"
  623. :dataSource="dataSource"
  624. :scroll="{ x: '100%' }"
  625. >
  626. <template slot="customBarCode" slot-scope="text, record">
  627. <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
  628. <a-popover placement="right" trigger="click">
  629. <template slot="content"
  630. ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
  631. /></template>
  632. <div class="item-info" v-if="record.imgName">
  633. <img
  634. v-if="record.imgName"
  635. :src="getImgUrl(record.imgName, record.imgSmall)"
  636. class="item-img"
  637. title="查看大图"
  638. />
  639. </div>
  640. </a-popover>
  641. </template>
  642. </a-table>
  643. </div>
  644. <a-row class="form-row" :gutter="24">
  645. <a-col :lg="24" :md="24" :sm="24">
  646. <a-form-item
  647. :labelCol="labelCol"
  648. :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
  649. label=""
  650. style="padding: 20px 10px"
  651. >
  652. {{ model.remark }}
  653. </a-form-item>
  654. </a-col>
  655. </a-row>
  656. <a-row class="form-row" :gutter="24">
  657. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  658. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="优惠率">
  659. {{ model.discount }}%
  660. </a-form-item>
  661. </a-col>
  662. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  663. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="退款优惠">
  664. {{ model.discountMoney }}
  665. </a-form-item>
  666. </a-col>
  667. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  668. <a-form-item
  669. :labelCol="{ xs: { span: 24 }, sm: { span: 6 } }"
  670. :wrapperCol="wrapperCol"
  671. label="优惠后金额"
  672. >
  673. {{ model.discountLastMoney }}
  674. </a-form-item>
  675. </a-col>
  676. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  677. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="其它费用">
  678. {{ model.otherMoney }}
  679. </a-form-item>
  680. </a-col>
  681. </a-row>
  682. <a-row class="form-row" :gutter="24">
  683. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  684. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="结算账户">
  685. {{ model.accountName }}
  686. </a-form-item>
  687. </a-col>
  688. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  689. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次退款">
  690. {{ model.changeAmount }}
  691. </a-form-item>
  692. </a-col>
  693. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  694. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次欠款">
  695. {{ model.debt }}
  696. </a-form-item>
  697. </a-col>
  698. <a-col :xl="6" :lg="8" :md="12" :sm="24"> </a-col>
  699. </a-row>
  700. </section>
  701. </template>
  702. <!--销售订单-->
  703. <template v-else-if="billType === '销售订单'">
  704. <section ref="print" id="saleOrderPrint">
  705. <a-row class="form-row" :gutter="24">
  706. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  707. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
  708. <a-input v-decorator="['id']" hidden />
  709. {{ model.organName }}
  710. </a-form-item>
  711. </a-col>
  712. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  713. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
  714. {{ model.operTimeStr }}
  715. </a-form-item>
  716. </a-col>
  717. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  718. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
  719. {{ model.number }}
  720. </a-form-item>
  721. </a-col>
  722. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  723. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="销售人员">
  724. {{ model.salesManStr }}
  725. </a-form-item>
  726. </a-col>
  727. </a-row>
  728. <div :style="tableWidth">
  729. <a-table
  730. ref="table"
  731. size="middle"
  732. bordered
  733. rowKey="id"
  734. :pagination="false"
  735. :loading="loading"
  736. :columns="columns"
  737. :dataSource="dataSource"
  738. :scroll="{ x: '100%'}"
  739. >
  740. <template slot="customBarCode" slot-scope="text, record">
  741. <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
  742. <a-popover placement="right" trigger="click">
  743. <template slot="content"
  744. ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
  745. /></template>
  746. <div class="item-info" v-if="record.imgName">
  747. <img
  748. v-if="record.imgName"
  749. :src="getImgUrl(record.imgName, record.imgSmall)"
  750. class="item-img"
  751. title="查看大图"
  752. />
  753. </div>
  754. </a-popover>
  755. </template>
  756. </a-table>
  757. </div>
  758. <a-row class="form-row" :gutter="24">
  759. <a-col :lg="24" :md="24" :sm="24">
  760. <a-form-item
  761. :labelCol="labelCol"
  762. :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
  763. label=""
  764. style="padding: 20px 10px"
  765. >
  766. {{ model.remark }}
  767. </a-form-item>
  768. </a-col>
  769. </a-row>
  770. <a-row class="form-row" :gutter="24">
  771. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  772. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="优惠率">
  773. {{ model.discount }}%
  774. </a-form-item>
  775. </a-col>
  776. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  777. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款优惠">
  778. {{ model.discountMoney }}
  779. </a-form-item>
  780. </a-col>
  781. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  782. <a-form-item
  783. :labelCol="{ xs: { span: 24 }, sm: { span: 6 } }"
  784. :wrapperCol="wrapperCol"
  785. label="优惠后金额"
  786. >
  787. {{ model.discountLastMoney }}
  788. </a-form-item>
  789. </a-col>
  790. <a-col :xl="6" :lg="8" :md="12" :sm="24"></a-col>
  791. </a-row>
  792. <a-row class="form-row" :gutter="24">
  793. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  794. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="结算账户">
  795. {{ model.accountName }}
  796. </a-form-item>
  797. </a-col>
  798. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  799. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收取订金">
  800. {{ model.changeAmount }}
  801. </a-form-item>
  802. </a-col>
  803. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  804. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="二维码">
  805. <!-- <vue-qr :text="model.number" :size="200" /> -->
  806. <vue-qrcode :value="model.number" :options="{ width: 200,margin:2 }"></vue-qrcode>
  807. </a-form-item>
  808. </a-col>
  809. <a-col :xl="6" :lg="8" :md="12" :sm="24"></a-col>
  810. </a-row>
  811. </section>
  812. </template>
  813. <!--销售出库-->
  814. <template v-else-if="billType === '销售出库'">
  815. <section ref="print" id="saleOutPrint">
  816. <a-row class="form-row" :gutter="24">
  817. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  818. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
  819. <a-input v-decorator="['id']" hidden />
  820. {{ model.organName }}
  821. </a-form-item>
  822. </a-col>
  823. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  824. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
  825. {{ model.operTimeStr }}
  826. </a-form-item>
  827. </a-col>
  828. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  829. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
  830. {{ model.number }}
  831. </a-form-item>
  832. </a-col>
  833. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  834. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联订单">
  835. <a @click="myHandleDetail(model.linkNumber)">{{ model.linkNumber }}</a>
  836. </a-form-item>
  837. </a-col>
  838. </a-row>
  839. <div :style="tableWidth">
  840. <a-table
  841. ref="table"
  842. size="middle"
  843. bordered
  844. rowKey="id"
  845. :pagination="false"
  846. :loading="loading"
  847. :columns="columns"
  848. :dataSource="dataSource"
  849. :scroll="{ x: '100%' }"
  850. >
  851. <template slot="customBarCode" slot-scope="text, record">
  852. <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
  853. <a-popover placement="right" trigger="click">
  854. <template slot="content"
  855. ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
  856. /></template>
  857. <div class="item-info" v-if="record.imgName">
  858. <img
  859. v-if="record.imgName"
  860. :src="getImgUrl(record.imgName, record.imgSmall)"
  861. class="item-img"
  862. title="查看大图"
  863. />
  864. </div>
  865. </a-popover>
  866. </template>
  867. </a-table>
  868. </div>
  869. <a-row class="form-row" :gutter="24">
  870. <a-col :lg="24" :md="24" :sm="24">
  871. <a-form-item
  872. :labelCol="labelCol"
  873. :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
  874. label=""
  875. style="padding: 20px 10px"
  876. >
  877. {{ model.remark }}
  878. </a-form-item>
  879. </a-col>
  880. </a-row>
  881. <a-row class="form-row" :gutter="24">
  882. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  883. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="优惠率">
  884. {{ model.discount }}%
  885. </a-form-item>
  886. </a-col>
  887. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  888. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收款优惠">
  889. {{ model.discountMoney }}
  890. </a-form-item>
  891. </a-col>
  892. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  893. <a-form-item
  894. :labelCol="{ xs: { span: 24 }, sm: { span: 6 } }"
  895. :wrapperCol="wrapperCol"
  896. label="优惠后金额"
  897. >
  898. {{ model.discountLastMoney }}
  899. </a-form-item>
  900. </a-col>
  901. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  902. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="其它费用">
  903. {{ model.otherMoney }}
  904. </a-form-item>
  905. </a-col>
  906. </a-row>
  907. <a-row class="form-row" :gutter="24">
  908. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  909. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="结算账户">
  910. {{ model.accountName }}
  911. </a-form-item>
  912. </a-col>
  913. <a-col v-if="model.deposit" :xl="6" :lg="8" :md="12" :sm="24">
  914. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="扣除订金">
  915. {{ model.deposit }}
  916. </a-form-item>
  917. </a-col>
  918. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  919. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次收款">
  920. {{ model.changeAmount }}
  921. </a-form-item>
  922. </a-col>
  923. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  924. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="二维码">
  925. <!-- <vue-qr :text="model.number" :size="200" /> -->
  926. <vue-qrcode :value="model.number" :options="{ width: 200,margin:2 }"></vue-qrcode>
  927. </a-form-item>
  928. </a-col>
  929. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  930. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次欠款">
  931. {{ model.debt }}
  932. </a-form-item>
  933. </a-col>
  934. <a-col v-if="model.hasBackFlag" :xl="6" :lg="8" :md="12" :sm="24">
  935. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="退货单号">
  936. <template v-for="(item, index) in linkNumberList">
  937. <a @click="myHandleDetail(item.number)">{{ item.number }}</a
  938. ><br />
  939. </template>
  940. </a-form-item>
  941. </a-col>
  942. </a-row>
  943. <a-row class="form-row" :gutter="24">
  944. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  945. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="销售人员">
  946. {{ model.salesManStr }}
  947. </a-form-item>
  948. </a-col>
  949. <a-col v-if="financialBillNoList.length" :xl="6" :lg="8" :md="12" :sm="24">
  950. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收款单号">
  951. <template v-for="(item, index) in financialBillNoList">
  952. <a @click="myHandleFinancialDetail(item.billNo)">{{ item.billNo }}</a
  953. ><br />
  954. </template>
  955. </a-form-item>
  956. </a-col>
  957. </a-row>
  958. </section>
  959. </template>
  960. <!--销售退货-->
  961. <template v-else-if="billType === '销售退货入库'">
  962. <section ref="print" id="saleBackPrint">
  963. <a-row class="form-row" :gutter="24">
  964. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  965. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
  966. <a-input v-decorator="['id']" hidden />
  967. {{ model.organName }}
  968. </a-form-item>
  969. </a-col>
  970. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  971. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
  972. {{ model.operTimeStr }}
  973. </a-form-item>
  974. </a-col>
  975. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  976. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
  977. {{ model.number }}
  978. </a-form-item>
  979. </a-col>
  980. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  981. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
  982. <a @click="myHandleDetail(model.linkNumber)">{{ model.linkNumber }}</a>
  983. </a-form-item>
  984. </a-col>
  985. </a-row>
  986. <div :style="tableWidth">
  987. <a-table
  988. ref="table"
  989. size="middle"
  990. bordered
  991. rowKey="id"
  992. :pagination="false"
  993. :loading="loading"
  994. :columns="columns"
  995. :dataSource="dataSource"
  996. :scroll="{ x: '100%' }"
  997. >
  998. <template slot="customBarCode" slot-scope="text, record">
  999. <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
  1000. <a-popover placement="right" trigger="click">
  1001. <template slot="content"
  1002. ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
  1003. /></template>
  1004. <div class="item-info" v-if="record.imgName">
  1005. <img
  1006. v-if="record.imgName"
  1007. :src="getImgUrl(record.imgName, record.imgSmall)"
  1008. class="item-img"
  1009. title="查看大图"
  1010. />
  1011. </div>
  1012. </a-popover>
  1013. </template>
  1014. </a-table>
  1015. </div>
  1016. <a-row class="form-row" :gutter="24">
  1017. <a-col :lg="24" :md="24" :sm="24">
  1018. <a-form-item
  1019. :labelCol="labelCol"
  1020. :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
  1021. label=""
  1022. style="padding: 20px 10px"
  1023. >
  1024. {{ model.remark }}
  1025. </a-form-item>
  1026. </a-col>
  1027. </a-row>
  1028. <a-row class="form-row" :gutter="24">
  1029. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1030. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="优惠率">
  1031. {{ model.discount }}%
  1032. </a-form-item>
  1033. </a-col>
  1034. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1035. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="退款优惠">
  1036. {{ model.discountMoney }}
  1037. </a-form-item>
  1038. </a-col>
  1039. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1040. <a-form-item
  1041. :labelCol="{ xs: { span: 24 }, sm: { span: 6 } }"
  1042. :wrapperCol="wrapperCol"
  1043. label="优惠后金额"
  1044. >
  1045. {{ model.discountLastMoney }}
  1046. </a-form-item>
  1047. </a-col>
  1048. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1049. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="其它费用">
  1050. {{ model.otherMoney }}
  1051. </a-form-item>
  1052. </a-col>
  1053. </a-row>
  1054. <a-row class="form-row" :gutter="24">
  1055. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1056. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="结算账户">
  1057. {{ model.accountName }}
  1058. </a-form-item>
  1059. </a-col>
  1060. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1061. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次退款">
  1062. {{ model.changeAmount }}
  1063. </a-form-item>
  1064. </a-col>
  1065. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1066. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次欠款">
  1067. {{ model.debt }}
  1068. </a-form-item>
  1069. </a-col>
  1070. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1071. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="销售人员">
  1072. {{ model.salesManStr }}
  1073. </a-form-item>
  1074. </a-col>
  1075. </a-row>
  1076. </section>
  1077. </template>
  1078. <!--其它入库-->
  1079. <template v-else-if="billType === '其它入库'">
  1080. <section ref="print" id="otherInPrint">
  1081. <a-row class="form-row" :gutter="24">
  1082. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1083. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
  1084. <a-input v-decorator="['id']" hidden />
  1085. {{ model.organName }}
  1086. </a-form-item>
  1087. </a-col>
  1088. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1089. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
  1090. {{ model.operTimeStr }}
  1091. </a-form-item>
  1092. </a-col>
  1093. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1094. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
  1095. {{ model.number }}
  1096. </a-form-item>
  1097. </a-col>
  1098. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1099. <a-form-item v-if="model.billType" :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
  1100. {{ model.linkNumber }} {{ model.billType }}
  1101. </a-form-item>
  1102. <a-form-item v-if="!model.billType" :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
  1103. <a @click="myHandleDetail(model.linkNumber)">{{ model.linkNumber }}</a>
  1104. </a-form-item>
  1105. </a-col>
  1106. </a-row>
  1107. <div :style="tableWidth">
  1108. <a-table
  1109. ref="table"
  1110. size="middle"
  1111. bordered
  1112. rowKey="id"
  1113. :pagination="false"
  1114. :loading="loading"
  1115. :columns="columns"
  1116. :dataSource="dataSource"
  1117. :scroll="{ x: '100%' }"
  1118. >
  1119. <template slot="customBarCode" slot-scope="text, record">
  1120. <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
  1121. <a-popover placement="right" trigger="click">
  1122. <template slot="content"
  1123. ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
  1124. /></template>
  1125. <div class="item-info" v-if="record.imgName">
  1126. <img
  1127. v-if="record.imgName"
  1128. :src="getImgUrl(record.imgName, record.imgSmall)"
  1129. class="item-img"
  1130. title="查看大图"
  1131. />
  1132. </div>
  1133. </a-popover>
  1134. </template>
  1135. </a-table>
  1136. </div>
  1137. <a-row class="form-row" :gutter="24">
  1138. <a-col :lg="24" :md="24" :sm="24">
  1139. <a-form-item
  1140. :labelCol="labelCol"
  1141. :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
  1142. label=""
  1143. style="padding: 20px 10px"
  1144. >
  1145. {{ model.remark }}
  1146. </a-form-item>
  1147. </a-col>
  1148. </a-row>
  1149. </section>
  1150. </template>
  1151. <!--其它出库-->
  1152. <template v-else-if="billType === '其它出库'">
  1153. <section ref="print" id="otherOutPrint">
  1154. <a-row class="form-row" :gutter="24">
  1155. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1156. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
  1157. <a-input v-decorator="['id']" hidden />
  1158. {{ model.organName }}
  1159. </a-form-item>
  1160. </a-col>
  1161. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1162. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
  1163. {{ model.operTimeStr }}
  1164. </a-form-item>
  1165. </a-col>
  1166. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1167. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
  1168. {{ model.number }}
  1169. </a-form-item>
  1170. </a-col>
  1171. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1172. <a-form-item v-if="model.billType" :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
  1173. {{ model.linkNumber }} {{ model.billType }}
  1174. </a-form-item>
  1175. <a-form-item v-if="!model.billType" :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
  1176. <a @click="myHandleDetail(model.linkNumber)">{{ model.linkNumber }}</a>
  1177. </a-form-item>
  1178. </a-col>
  1179. </a-row>
  1180. <div :style="tableWidth">
  1181. <a-table
  1182. ref="table"
  1183. size="middle"
  1184. bordered
  1185. rowKey="id"
  1186. :pagination="false"
  1187. :loading="loading"
  1188. :columns="columns"
  1189. :dataSource="dataSource"
  1190. :scroll="{ x: '100%' }"
  1191. >
  1192. <template slot="customBarCode" slot-scope="text, record">
  1193. <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
  1194. <a-popover placement="right" trigger="click">
  1195. <template slot="content"
  1196. ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
  1197. /></template>
  1198. <div class="item-info" v-if="record.imgName">
  1199. <img
  1200. v-if="record.imgName"
  1201. :src="getImgUrl(record.imgName, record.imgSmall)"
  1202. class="item-img"
  1203. title="查看大图"
  1204. />
  1205. </div>
  1206. </a-popover>
  1207. </template>
  1208. </a-table>
  1209. </div>
  1210. <a-row class="form-row" :gutter="24">
  1211. <a-col :lg="24" :md="24" :sm="24">
  1212. <a-form-item
  1213. :labelCol="labelCol"
  1214. :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
  1215. label=""
  1216. style="padding: 20px 10px"
  1217. >
  1218. {{ model.remark }}
  1219. </a-form-item>
  1220. </a-col>
  1221. </a-row>
  1222. </section>
  1223. </template>
  1224. <!--调拨出库-->
  1225. <template v-else-if="billType === '调拨出库'">
  1226. <section ref="print" id="allocationOutPrint">
  1227. <a-row class="form-row" :gutter="24">
  1228. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1229. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
  1230. {{ model.operTimeStr }}
  1231. </a-form-item>
  1232. </a-col>
  1233. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1234. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
  1235. {{ model.number }}
  1236. </a-form-item>
  1237. </a-col>
  1238. <a-col :xl="6" :lg="8" :md="12" :sm="24"></a-col>
  1239. <a-col :xl="6" :lg="8" :md="12" :sm="24"></a-col>
  1240. </a-row>
  1241. <div :style="tableWidth">
  1242. <a-table
  1243. ref="table"
  1244. size="middle"
  1245. bordered
  1246. rowKey="id"
  1247. :scroll="scroll"
  1248. :pagination="false"
  1249. :loading="loading"
  1250. :columns="columns"
  1251. :dataSource="dataSource"
  1252. >
  1253. <template slot="customBarCode" slot-scope="text, record">
  1254. <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
  1255. <a-popover placement="right" trigger="click">
  1256. <template slot="content"
  1257. ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
  1258. /></template>
  1259. <div class="item-info" v-if="record.imgName">
  1260. <img
  1261. v-if="record.imgName"
  1262. :src="getImgUrl(record.imgName, record.imgSmall)"
  1263. class="item-img"
  1264. title="查看大图"
  1265. />
  1266. </div>
  1267. </a-popover>
  1268. </template>
  1269. </a-table>
  1270. </div>
  1271. <a-row class="form-row" :gutter="24">
  1272. <a-col :lg="24" :md="24" :sm="24">
  1273. <a-form-item
  1274. :labelCol="labelCol"
  1275. :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
  1276. label=""
  1277. style="padding: 20px 10px"
  1278. >
  1279. {{ model.remark }}
  1280. </a-form-item>
  1281. </a-col>
  1282. </a-row>
  1283. </section>
  1284. </template>
  1285. <!--组装单-->
  1286. <template v-else-if="billType === '组装单'">
  1287. <section ref="print" id="assemblePrint">
  1288. <a-row class="form-row" :gutter="24">
  1289. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1290. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
  1291. {{ model.operTimeStr }}
  1292. </a-form-item>
  1293. </a-col>
  1294. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1295. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
  1296. {{ model.number }}
  1297. </a-form-item>
  1298. </a-col>
  1299. <a-col :xl="6" :lg="8" :md="12" :sm="24"></a-col>
  1300. <a-col :xl="6" :lg="8" :md="12" :sm="24"></a-col>
  1301. </a-row>
  1302. <div :style="tableWidth">
  1303. <a-table
  1304. ref="table"
  1305. size="middle"
  1306. bordered
  1307. rowKey="id"
  1308. :pagination="false"
  1309. :loading="loading"
  1310. :columns="columns"
  1311. :dataSource="dataSource"
  1312. :scroll="{ x: '100%' }"
  1313. >
  1314. <template slot="customBarCode" slot-scope="text, record">
  1315. <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
  1316. <a-popover placement="right" trigger="click">
  1317. <template slot="content"
  1318. ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
  1319. /></template>
  1320. <div class="item-info" v-if="record.imgName">
  1321. <img
  1322. v-if="record.imgName"
  1323. :src="getImgUrl(record.imgName, record.imgSmall)"
  1324. class="item-img"
  1325. title="查看大图"
  1326. />
  1327. </div>
  1328. </a-popover>
  1329. </template>
  1330. </a-table>
  1331. </div>
  1332. <a-row class="form-row" :gutter="24">
  1333. <a-col :lg="24" :md="24" :sm="24">
  1334. <a-form-item
  1335. :labelCol="labelCol"
  1336. :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
  1337. label=""
  1338. style="padding: 20px 10px"
  1339. >
  1340. {{ model.remark }}
  1341. </a-form-item>
  1342. </a-col>
  1343. </a-row>
  1344. </section>
  1345. </template>
  1346. <!--拆卸单-->
  1347. <template v-else-if="billType === '拆卸单'">
  1348. <section ref="print" id="disassemblePrint">
  1349. <a-row class="form-row" :gutter="24">
  1350. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1351. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
  1352. {{ model.operTimeStr }}
  1353. </a-form-item>
  1354. </a-col>
  1355. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1356. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
  1357. {{ model.number }}
  1358. </a-form-item>
  1359. </a-col>
  1360. <a-col :xl="6" :lg="8" :md="12" :sm="24"></a-col>
  1361. <a-col :xl="6" :lg="8" :md="12" :sm="24"></a-col>
  1362. </a-row>
  1363. <div :style="tableWidth">
  1364. <a-table
  1365. ref="table"
  1366. size="middle"
  1367. bordered
  1368. rowKey="id"
  1369. :pagination="false"
  1370. :loading="loading"
  1371. :columns="columns"
  1372. :dataSource="dataSource"
  1373. :scroll="{ x: '100%' }"
  1374. >
  1375. <template slot="customBarCode" slot-scope="text, record">
  1376. <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
  1377. <a-popover placement="right" trigger="click">
  1378. <template slot="content"
  1379. ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
  1380. /></template>
  1381. <div class="item-info" v-if="record.imgName">
  1382. <img
  1383. v-if="record.imgName"
  1384. :src="getImgUrl(record.imgName, record.imgSmall)"
  1385. class="item-img"
  1386. title="查看大图"
  1387. />
  1388. </div>
  1389. </a-popover>
  1390. </template>
  1391. </a-table>
  1392. </div>
  1393. <a-row class="form-row" :gutter="24">
  1394. <a-col :lg="24" :md="24" :sm="24">
  1395. <a-form-item
  1396. :labelCol="labelCol"
  1397. :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
  1398. label=""
  1399. style="padding: 20px 10px"
  1400. >
  1401. {{ model.remark }}
  1402. </a-form-item>
  1403. </a-col>
  1404. </a-row>
  1405. </section>
  1406. </template>
  1407. <!--盘点复盘-->
  1408. <template v-else-if="billType === '盘点复盘'">
  1409. <section ref="print" id="stockCheckReplayPrint">
  1410. <a-row class="form-row" :gutter="24">
  1411. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1412. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
  1413. {{ model.operTimeStr }}
  1414. </a-form-item>
  1415. </a-col>
  1416. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1417. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
  1418. {{ model.number }}
  1419. </a-form-item>
  1420. </a-col>
  1421. <a-col :xl="6" :lg="8" :md="12" :sm="24">
  1422. <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
  1423. {{ model.linkNumber }}
  1424. </a-form-item>
  1425. </a-col>
  1426. <a-col :xl="6" :lg="8" :md="12" :sm="24"></a-col>
  1427. </a-row>
  1428. <div :style="tableWidth">
  1429. <a-table
  1430. ref="table"
  1431. size="middle"
  1432. bordered
  1433. rowKey="id"
  1434. :pagination="false"
  1435. :loading="loading"
  1436. :columns="columns"
  1437. :dataSource="dataSource"
  1438. :scroll="{ x: '100%' }"
  1439. >
  1440. <template slot="customBarCode" slot-scope="text, record">
  1441. <div :style="record.imgName ? 'float:left;line-height:30px' : 'float:left;'">{{ record.barCode }}</div>
  1442. <a-popover placement="right" trigger="click">
  1443. <template slot="content"
  1444. ><img :src="getImgUrl(record.imgName, record.imgLarge)" width="500px"
  1445. /></template>
  1446. <div class="item-info" v-if="record.imgName">
  1447. <img
  1448. v-if="record.imgName"
  1449. :src="getImgUrl(record.imgName, record.imgSmall)"
  1450. class="item-img"
  1451. title="查看大图"
  1452. />
  1453. </div>
  1454. </a-popover>
  1455. </template>
  1456. </a-table>
  1457. </div>
  1458. <a-row class="form-row" :gutter="24">
  1459. <a-col :lg="24" :md="24" :sm="24">
  1460. <a-form-item
  1461. :labelCol="labelCol"
  1462. :wrapperCol="{ xs: { span: 24 }, sm: { span: 24 } }"
  1463. label=""
  1464. style="padding: 20px 10px"
  1465. >
  1466. {{ model.remark }}
  1467. </a-form-item>
  1468. </a-col>
  1469. </a-row>
  1470. </section>
  1471. </template>
  1472. <template v-if="fileList && fileList.length > 0">
  1473. <a-row class="form-row" :gutter="24">
  1474. <a-col :span="10">
  1475. <a-form-item
  1476. :labelCol="{ xs: { span: 24 }, sm: { span: 3 } }"
  1477. :wrapperCol="{ xs: { span: 24 }, sm: { span: 21 } }"
  1478. label="附件"
  1479. >
  1480. <j-upload v-model="fileList" bizPath="bill" :disabled="true" :buttonVisible="false"></j-upload>
  1481. </a-form-item>
  1482. </a-col>
  1483. <a-col :span="14"></a-col>
  1484. </a-row>
  1485. </template>
  1486. <template v-if="fileList && fileList.length > 0">
  1487. <a-row class="form-row" :gutter="24">
  1488. <a-col :span="10">
  1489. <a-form-item
  1490. :labelCol="{ xs: { span: 24 }, sm: { span: 3 } }"
  1491. :wrapperCol="{ xs: { span: 24 }, sm: { span: 21 } }"
  1492. label="凭证图片"
  1493. >
  1494. <j-upload v-model="voucherPictureList" bizPath="bill" :disabled="true" :buttonVisible="false"></j-upload>
  1495. </a-form-item>
  1496. </a-col>
  1497. <a-col :span="14"></a-col>
  1498. </a-row>
  1499. </template>
  1500. </a-form>
  1501. <bill-print-iframe ref="modalDetail"></bill-print-iframe>
  1502. <financial-detail ref="financialDetailModal"></financial-detail>
  1503. </j-modal>
  1504. </template>
  1505. <script>
  1506. import pick from 'lodash.pick'
  1507. import { getAction, postAction, getFileAccessHttpUrl } from '@/api/manage'
  1508. import {
  1509. findBillDetailByNumber,
  1510. findFinancialDetailByNumber,
  1511. getPlatformConfigByKey,
  1512. getCurrentSystemConfig,
  1513. } from '@/api/api'
  1514. import { getMpListShort, getCheckFlag, exportXlsPost } from '@/utils/util'
  1515. import BillPrintIframe from './BillPrintIframe'
  1516. import FinancialDetail from '../../financial/dialog/FinancialDetail'
  1517. import JUpload from '@/components/jeecg/JUpload'
  1518. import Vue from 'vue'
  1519. // import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  1520. // import QrcodeVue from 'qrcode.vue'
  1521. // import VueQr from 'vue-qr'
  1522. import VueQrcode from '@chenfengyuan/vue-qrcode';
  1523. export default {
  1524. name: 'BillDetail',
  1525. // mixins: [JeecgListMixin],
  1526. components: {
  1527. BillPrintIframe,
  1528. FinancialDetail,
  1529. JUpload,
  1530. VueQrcode,
  1531. // VueQr,
  1532. },
  1533. data() {
  1534. return {
  1535. title: '详情',
  1536. width: '1600px',
  1537. visible: false,
  1538. modalStyle: '',
  1539. model: {},
  1540. isCanBackCheck: true,
  1541. billType: '',
  1542. billPrintFlag: false,
  1543. fileList: [],
  1544. voucherPictureList: [],
  1545. purchaseBySaleFlag: false,
  1546. linkNumberList: [],
  1547. financialBillNoList: [],
  1548. /* 原始反审核是否开启 */
  1549. checkFlag: true,
  1550. /* 是否显示打印按钮 */
  1551. isShowPrintBtn: true,
  1552. tableWidth: {
  1553. width: '1700px',
  1554. },
  1555. tableWidthRetail: {
  1556. width: '1200px',
  1557. },
  1558. labelCol: {
  1559. xs: { span: 24 },
  1560. sm: { span: 6 },
  1561. },
  1562. wrapperCol: {
  1563. xs: { span: 24 },
  1564. sm: { span: 16 },
  1565. },
  1566. form: this.$form.createForm(this),
  1567. loading: false,
  1568. dataSource: [],
  1569. url: {
  1570. detailList: '/depotItem/getDetailList',
  1571. batchSetStatusUrl: '/depotHead/batchSetStatus',
  1572. },
  1573. //表头
  1574. columns: [],
  1575. //列定义
  1576. defColumns: [],
  1577. retailOutColumns: [
  1578. { title: '仓库名称', dataIndex: 'depotName' },
  1579. { title: '条码', dataIndex: 'barCode' },
  1580. { title: '名称', dataIndex: 'name' },
  1581. { title: '规格', dataIndex: 'standard' },
  1582. { title: '型号', dataIndex: 'model' },
  1583. { title: '颜色', dataIndex: 'color' },
  1584. { title: '品牌', dataIndex: 'brand' },
  1585. { title: '制造商', dataIndex: 'mfrs' },
  1586. { title: '扩展信息', dataIndex: 'materialOther' },
  1587. { title: '库存', dataIndex: 'stock' },
  1588. { title: '单位', dataIndex: 'unit' },
  1589. { title: '序列号', dataIndex: 'snList', width: 300 },
  1590. { title: '批号', dataIndex: 'batchNumber' },
  1591. { title: '有效期', dataIndex: 'expirationDate' },
  1592. { title: '多属性', dataIndex: 'sku' },
  1593. { title: '数量', dataIndex: 'operNumber' },
  1594. { title: '单价', dataIndex: 'unitPrice' },
  1595. { title: '金额', dataIndex: 'allPrice' },
  1596. { title: '重量', dataIndex: 'weight' },
  1597. { title: '仓位货架', dataIndex: 'position' },
  1598. { title: '备注', dataIndex: 'remark' },
  1599. ],
  1600. retailBackColumns: [
  1601. { title: '仓库名称', dataIndex: 'depotName' },
  1602. { title: '条码', dataIndex: 'barCode' },
  1603. { title: '名称', dataIndex: 'name' },
  1604. { title: '规格', dataIndex: 'standard' },
  1605. { title: '型号', dataIndex: 'model' },
  1606. { title: '颜色', dataIndex: 'color' },
  1607. { title: '品牌', dataIndex: 'brand' },
  1608. { title: '制造商', dataIndex: 'mfrs' },
  1609. { title: '扩展信息', dataIndex: 'materialOther' },
  1610. { title: '库存', dataIndex: 'stock' },
  1611. { title: '单位', dataIndex: 'unit' },
  1612. { title: '序列号', dataIndex: 'snList', width: 300 },
  1613. { title: '批号', dataIndex: 'batchNumber' },
  1614. { title: '有效期', dataIndex: 'expirationDate' },
  1615. { title: '多属性', dataIndex: 'sku' },
  1616. { title: '数量', dataIndex: 'operNumber' },
  1617. { title: '单价', dataIndex: 'unitPrice' },
  1618. { title: '金额', dataIndex: 'allPrice' },
  1619. { title: '重量', dataIndex: 'weight' },
  1620. { title: '仓位货架', dataIndex: 'position' },
  1621. { title: '备注', dataIndex: 'remark' },
  1622. ],
  1623. purchaseApplyColumns: [
  1624. { title: '条码', dataIndex: 'barCode' },
  1625. { title: '名称', dataIndex: 'name' },
  1626. { title: '规格', dataIndex: 'standard' },
  1627. { title: '型号', dataIndex: 'model' },
  1628. { title: '颜色', dataIndex: 'color' },
  1629. { title: '品牌', dataIndex: 'brand' },
  1630. { title: '制造商', dataIndex: 'mfrs' },
  1631. { title: '扩展信息', dataIndex: 'materialOther' },
  1632. { title: '单位', dataIndex: 'unit' },
  1633. { title: '多属性', dataIndex: 'sku' },
  1634. { title: '数量', dataIndex: 'operNumber' },
  1635. { title: '已采购', dataIndex: 'finishNumber' },
  1636. { title: '备注', dataIndex: 'remark' },
  1637. ],
  1638. purchaseOrderColumns: [
  1639. { title: '批次号', dataIndex: 'batchNumber', width: 90 },
  1640. { title: '名称', dataIndex: 'name', width: 115 },
  1641. // { title: '规格', dataIndex: 'standard', width: 90 },
  1642. { title: '生产日期', dataIndex: 'productionDate', width: 100 },
  1643. { title: '保质期', dataIndex: 'expiryNum', width: 60 },
  1644. { title: '商品条码', dataIndex: 'barCode', width: 90 },
  1645. { title: '仓库名称', dataIndex: 'depotName', width: 90 },
  1646. { title: '仓库货架', dataIndex: 'position', width: 90 },
  1647. { title: '包装规格', dataIndex: 'unitName', width: 90 },
  1648. { title: '型号', dataIndex: 'model', width: 60 },
  1649. { title: '颜色', dataIndex: 'color', width: 60 },
  1650. { title: '品牌', dataIndex: 'brand', width: 90 },
  1651. { title: '制造商', dataIndex: 'mfrs', width: 90 },
  1652. { title: '扩展信息', dataIndex: 'materialOther', width: 90 },
  1653. { title: '库存', dataIndex: 'inventory', width: 90 },
  1654. { title: '单位', dataIndex: 'unit', width: 90 },
  1655. { title: '序列号', dataIndex: 'snList', width: 300 },
  1656. { title: '有效期', dataIndex: 'expirationDate', width: 90 },
  1657. { title: '多属性', dataIndex: 'sku', width: 90 },
  1658. { title: '数量', dataIndex: 'operNumber', width: 90 },
  1659. { title: '已入库', dataIndex: 'finishNumber', width: 90 },
  1660. { title: '单价', dataIndex: 'unitPrice', width: 90 },
  1661. { title: '金额', dataIndex: 'allPrice', width: 90 },
  1662. { title: '税率(%)', dataIndex: 'taxRate', width: 90 },
  1663. { title: '税额', dataIndex: 'taxMoney', width: 90 },
  1664. { title: '价税合计', dataIndex: 'taxLastMoney', width: 90 },
  1665. { title: '实际入库数量', dataIndex: 'actualQuantityInStorage', width: 115 },
  1666. { title: '入库差异', dataIndex: 'warehousingVariance', width: 90 },
  1667. { title: '入库差异原因', dataIndex: 'reasonOfDifference', width: 115 },
  1668. { title: '入库人', dataIndex: 'warehousingUser', width: 90 },
  1669. { title: '入库时间', dataIndex: 'warehousingTime', width: 90 },
  1670. { title: '重量', dataIndex: 'weight', width: 90 },
  1671. { title: '备注', dataIndex: 'remark', width: 90 },
  1672. ],
  1673. purchaseInColumns: [
  1674. { title: '批次号', dataIndex: 'batchNumber', width: 90 },
  1675. { title: '名称', dataIndex: 'name', width: 115 },
  1676. // { title: '规格', dataIndex: 'standard', width: 90 },
  1677. { title: '生产日期', dataIndex: 'productionDate', width: 100 },
  1678. { title: '保质期', dataIndex: 'expiryNum', width: 60 },
  1679. { title: '商品条码', dataIndex: 'barCode', width: 90 },
  1680. { title: '仓库名称', dataIndex: 'depotName', width: 90 },
  1681. { title: '仓库货架', dataIndex: 'position', width: 90 },
  1682. { title: '包装规格', dataIndex: 'unitName', width: 90 },
  1683. { title: '型号', dataIndex: 'model', width: 60 },
  1684. { title: '颜色', dataIndex: 'color', width: 60 },
  1685. { title: '品牌', dataIndex: 'brand', width: 90 },
  1686. { title: '制造商', dataIndex: 'mfrs', width: 90 },
  1687. { title: '扩展信息', dataIndex: 'materialOther', width: 90 },
  1688. { title: '库存', dataIndex: 'inventory', width: 90 },
  1689. { title: '单位', dataIndex: 'unit', width: 90 },
  1690. { title: '序列号', dataIndex: 'snList', width: 300 },
  1691. { title: '有效期', dataIndex: 'expirationDate', width: 90 },
  1692. { title: '多属性', dataIndex: 'sku', width: 90 },
  1693. { title: '入库数量', dataIndex: 'operNumber', width: 90 },
  1694. { title: '已入库', dataIndex: 'finishNumber', width: 90 },
  1695. { title: '单价', dataIndex: 'unitPrice', width: 90 },
  1696. { title: '金额', dataIndex: 'allPrice', width: 90 },
  1697. { title: '税率(%)', dataIndex: 'taxRate', width: 90 },
  1698. { title: '税额', dataIndex: 'taxMoney', width: 90 },
  1699. { title: '价税合计', dataIndex: 'taxLastMoney', width: 90 },
  1700. { title: '实际入库数量', dataIndex: 'actualQuantityInStorage', width: 115 },
  1701. { title: '入库差异', dataIndex: 'warehousingVariance', width: 90 },
  1702. { title: '入库差异原因', dataIndex: 'reasonOfDifference', width: 115 },
  1703. { title: '入库人', dataIndex: 'warehousingUserName', width: 90 },
  1704. { title: '入库时间', dataIndex: 'warehousingTime', width: 90 },
  1705. { title: '重量', dataIndex: 'weight', width: 90 },
  1706. { title: '备注', dataIndex: 'remark', width: 90 },
  1707. ],
  1708. purchaseBackColumns: [
  1709. { title: '仓库名称', dataIndex: 'depotName' },
  1710. { title: '条码', dataIndex: 'barCode' },
  1711. { title: '名称', dataIndex: 'name' },
  1712. { title: '规格', dataIndex: 'standard' },
  1713. { title: '型号', dataIndex: 'model' },
  1714. { title: '颜色', dataIndex: 'color' },
  1715. { title: '品牌', dataIndex: 'brand' },
  1716. { title: '制造商', dataIndex: 'mfrs' },
  1717. { title: '扩展信息', dataIndex: 'materialOther' },
  1718. { title: '库存', dataIndex: 'stock' },
  1719. { title: '单位', dataIndex: 'unit' },
  1720. { title: '序列号', dataIndex: 'snList', width: 300 },
  1721. { title: '批号', dataIndex: 'batchNumber' },
  1722. { title: '有效期', dataIndex: 'expirationDate' },
  1723. { title: '多属性', dataIndex: 'sku' },
  1724. { title: '数量', dataIndex: 'operNumber' },
  1725. { title: '已出库', dataIndex: 'finishNumber' },
  1726. { title: '单价', dataIndex: 'unitPrice' },
  1727. { title: '金额', dataIndex: 'allPrice' },
  1728. { title: '税率(%)', dataIndex: 'taxRate' },
  1729. { title: '税额', dataIndex: 'taxMoney' },
  1730. { title: '价税合计', dataIndex: 'taxLastMoney' },
  1731. { title: '重量', dataIndex: 'weight' },
  1732. { title: '仓位货架', dataIndex: 'position' },
  1733. { title: '备注', dataIndex: 'remark' },
  1734. ],
  1735. saleOrderColumns: [
  1736. { title: '批次号', dataIndex: 'batchNumber', width: 90 },
  1737. { title: '名称', dataIndex: 'name', width: 115 },
  1738. // { title: '规格', dataIndex: 'standard', width: 90 },
  1739. { title: '生产日期', dataIndex: 'productionDate', width: 100 },
  1740. { title: '保质期', dataIndex: 'expiryNum', width: 60 },
  1741. { title: '商品条码', dataIndex: 'barCode', width: 90 },
  1742. { title: '仓库名称', dataIndex: 'depotName', width: 90 },
  1743. { title: '仓库货架', dataIndex: 'position', width: 90 },
  1744. { title: '包装规格', dataIndex: 'unitName', width: 90 },
  1745. // { title: '规格', dataIndex: 'standard', width: 60 },
  1746. { title: '型号', dataIndex: 'model', width: 60 },
  1747. { title: '颜色', dataIndex: 'color', width: 60 },
  1748. { title: '品牌', dataIndex: 'brand', width: 90 },
  1749. { title: '制造商', dataIndex: 'mfrs', width: 90 },
  1750. { title: '扩展信息', dataIndex: 'materialOther', width: 90 },
  1751. { title: '库存', dataIndex: 'inventory', width: 90 },
  1752. { title: '单位', dataIndex: 'unit', width: 90 },
  1753. { title: '序列号', dataIndex: 'snList', width: 300 },
  1754. { title: '有效期', dataIndex: 'expirationDate', width: 90 },
  1755. { title: '多属性', dataIndex: 'sku', width: 90 },
  1756. { title: '数量', dataIndex: 'operNumber', width: 90 },
  1757. { title: '已出库', dataIndex: 'finishNumber', width: 90 },
  1758. { title: '单价', dataIndex: 'unitPrice', width: 90 },
  1759. { title: '金额', dataIndex: 'allPrice', width: 90 },
  1760. { title: '税率(%)', dataIndex: 'taxRate', width: 90 },
  1761. { title: '税额', dataIndex: 'taxMoney', width: 90 },
  1762. { title: '价税合计', dataIndex: 'taxLastMoney', width: 90 },
  1763. { title: '实际出库数量', dataIndex: 'actualQuantityInStorage', width: 115 },
  1764. { title: '出库差异', dataIndex: 'warehousingVariance', width: 90 },
  1765. { title: '出库差异原因', dataIndex: 'reasonOfDifference', width: 115 },
  1766. { title: '出库人', dataIndex: 'warehousingUser', width: 90 },
  1767. { title: '出库时间', dataIndex: 'warehousingTime', width: 90 },
  1768. { title: '重量', dataIndex: 'weight', width: 90 },
  1769. { title: '备注', dataIndex: 'remark', width: 90 },
  1770. ],
  1771. saleOutColumns: [
  1772. { title: '批次号', dataIndex: 'batchNumber', width: 90 },
  1773. { title: '名称', dataIndex: 'name', width: 115 },
  1774. // { title: '规格', dataIndex: 'standard', width: 90 },
  1775. { title: '生产日期', dataIndex: 'productionDate', width: 100 },
  1776. { title: '保质期', dataIndex: 'expiryNum', width: 60 },
  1777. { title: '商品条码', dataIndex: 'barCode', width: 90 },
  1778. { title: '仓库名称', dataIndex: 'depotName', width: 90 },
  1779. { title: '仓库货架', dataIndex: 'position', width: 90 },
  1780. { title: '包装规格', dataIndex: 'unitName', width: 90 },
  1781. // { title: '规格', dataIndex: 'standard', width: 60 },
  1782. { title: '型号', dataIndex: 'model', width: 60 },
  1783. { title: '颜色', dataIndex: 'color', width: 60 },
  1784. { title: '品牌', dataIndex: 'brand', width: 90 },
  1785. { title: '制造商', dataIndex: 'mfrs', width: 90 },
  1786. { title: '扩展信息', dataIndex: 'materialOther', width: 90 },
  1787. { title: '库存', dataIndex: 'inventory', width: 90 },
  1788. { title: '单位', dataIndex: 'unit', width: 90 },
  1789. { title: '序列号', dataIndex: 'snList', width: 300 },
  1790. { title: '有效期', dataIndex: 'expirationDate', width: 90 },
  1791. { title: '多属性', dataIndex: 'sku', width: 90 },
  1792. { title: '数量', dataIndex: 'operNumber', width: 90 },
  1793. { title: '已出库', dataIndex: 'finishNumber', width: 90 },
  1794. { title: '单价', dataIndex: 'unitPrice', width: 90 },
  1795. { title: '金额', dataIndex: 'allPrice', width: 90 },
  1796. { title: '税率(%)', dataIndex: 'taxRate', width: 90 },
  1797. { title: '税额', dataIndex: 'taxMoney', width: 90 },
  1798. { title: '价税合计', dataIndex: 'taxLastMoney', width: 90 },
  1799. { title: '实际出库数量', dataIndex: 'actualQuantityInStorage', width: 115 },
  1800. { title: '出库差异', dataIndex: 'warehousingVariance', width: 90 },
  1801. { title: '出库差异原因', dataIndex: 'reasonOfDifference', width: 115 },
  1802. { title: '出库人', dataIndex: 'warehousingUser', width: 90 },
  1803. { title: '出库时间', dataIndex: 'warehousingTime', width: 90 },
  1804. { title: '重量', dataIndex: 'weight', width: 90 },
  1805. { title: '备注', dataIndex: 'remark', width: 90 },
  1806. ],
  1807. saleBackColumns: [
  1808. { title: '仓库名称', dataIndex: 'depotName' },
  1809. { title: '条码', dataIndex: 'barCode' },
  1810. { title: '名称', dataIndex: 'name' },
  1811. { title: '规格', dataIndex: 'standard' },
  1812. { title: '型号', dataIndex: 'model' },
  1813. { title: '颜色', dataIndex: 'color' },
  1814. { title: '品牌', dataIndex: 'brand' },
  1815. { title: '制造商', dataIndex: 'mfrs' },
  1816. { title: '扩展信息', dataIndex: 'materialOther' },
  1817. { title: '库存', dataIndex: 'stock' },
  1818. { title: '单位', dataIndex: 'unit' },
  1819. { title: '序列号', dataIndex: 'snList', width: 300 },
  1820. { title: '批号', dataIndex: 'batchNumber' },
  1821. { title: '有效期', dataIndex: 'expirationDate' },
  1822. { title: '多属性', dataIndex: 'sku' },
  1823. { title: '数量', dataIndex: 'operNumber' },
  1824. { title: '已入库', dataIndex: 'finishNumber' },
  1825. { title: '单价', dataIndex: 'unitPrice' },
  1826. { title: '金额', dataIndex: 'allPrice' },
  1827. { title: '税率(%)', dataIndex: 'taxRate' },
  1828. { title: '税额', dataIndex: 'taxMoney' },
  1829. { title: '价税合计', dataIndex: 'taxLastMoney' },
  1830. { title: '重量', dataIndex: 'weight' },
  1831. { title: '仓位货架', dataIndex: 'position' },
  1832. { title: '备注', dataIndex: 'remark' },
  1833. ],
  1834. otherInColumns: [
  1835. { title: '批次号', dataIndex: 'batchNumber', width: 90 },
  1836. { title: '名称', dataIndex: 'name', width: 115 },
  1837. // { title: '规格', dataIndex: 'standard', width: 90 },
  1838. { title: '生产日期', dataIndex: 'productionDate', width: 100 },
  1839. { title: '保质期', dataIndex: 'expiryNum', width: 60 },
  1840. { title: '商品条码', dataIndex: 'barCode', width: 90 },
  1841. { title: '仓库名称', dataIndex: 'depotName', width: 90 },
  1842. { title: '仓库货架', dataIndex: 'position', width: 90 },
  1843. { title: '包装规格', dataIndex: 'unitName', width: 90 },
  1844. { title: '型号', dataIndex: 'model', width: 60 },
  1845. { title: '颜色', dataIndex: 'color', width: 60 },
  1846. { title: '品牌', dataIndex: 'brand', width: 90 },
  1847. { title: '制造商', dataIndex: 'mfrs', width: 90 },
  1848. { title: '扩展信息', dataIndex: 'materialOther', width: 90 },
  1849. { title: '库存', dataIndex: 'inventory', width: 90 },
  1850. { title: '单位', dataIndex: 'unit', width: 90 },
  1851. { title: '序列号', dataIndex: 'snList', width: 300 },
  1852. { title: '有效期', dataIndex: 'expirationDate', width: 90 },
  1853. { title: '多属性', dataIndex: 'sku', width: 90 },
  1854. { title: '数量', dataIndex: 'operNumber', width: 90 },
  1855. { title: '单价', dataIndex: 'unitPrice', width: 90 },
  1856. { title: '金额', dataIndex: 'allPrice', width: 90 },
  1857. { title: '实际入库数量', dataIndex: 'actualQuantityInStorage', width: 115 },
  1858. { title: '入库差异', dataIndex: 'warehousingVariance', width: 90 },
  1859. { title: '入库差异原因', dataIndex: 'reasonOfDifference', width: 115 },
  1860. { title: '入库人', dataIndex: 'warehousingUser', width: 90 },
  1861. { title: '入库时间', dataIndex: 'warehousingTime', width: 90 },
  1862. { title: '重量', dataIndex: 'weight', width: 90 },
  1863. ],
  1864. otherOutColumns: [
  1865. { title: '批次号', dataIndex: 'batchNumber', width: 90 },
  1866. { title: '名称', dataIndex: 'name', width: 115 },
  1867. // { title: '规格', dataIndex: 'standard', width: 90 },
  1868. { title: '生产日期', dataIndex: 'productionDate', width: 100 },
  1869. { title: '保质期', dataIndex: 'expiryNum', width: 60 },
  1870. { title: '商品条码', dataIndex: 'barCode', width: 90 },
  1871. { title: '仓库名称', dataIndex: 'depotName', width: 90 },
  1872. { title: '仓库货架', dataIndex: 'position', width: 90 },
  1873. { title: '包装规格', dataIndex: 'unitName', width: 90 },
  1874. // { title: '规格', dataIndex: 'standard', width: 60 },
  1875. { title: '型号', dataIndex: 'model', width: 60 },
  1876. { title: '颜色', dataIndex: 'color', width: 60 },
  1877. { title: '品牌', dataIndex: 'brand', width: 90 },
  1878. { title: '制造商', dataIndex: 'mfrs', width: 90 },
  1879. { title: '扩展信息', dataIndex: 'materialOther', width: 90 },
  1880. { title: '库存', dataIndex: 'inventory', width: 90 },
  1881. { title: '单位', dataIndex: 'unit', width: 90 },
  1882. { title: '序列号', dataIndex: 'snList', width: 300 },
  1883. { title: '有效期', dataIndex: 'expirationDate', width: 90 },
  1884. { title: '多属性', dataIndex: 'sku', width: 90 },
  1885. { title: '数量', dataIndex: 'operNumber', width: 90 },
  1886. { title: '单价', dataIndex: 'unitPrice', width: 90 },
  1887. { title: '金额', dataIndex: 'allPrice', width: 90 },
  1888. { title: '实际出库数量', dataIndex: 'actualQuantityInStorage', width: 115 },
  1889. { title: '出库差异', dataIndex: 'warehousingVariance', width: 90 },
  1890. { title: '出库差异原因', dataIndex: 'reasonOfDifference', width: 115 },
  1891. { title: '出库人', dataIndex: 'warehousingUser', width: 90 },
  1892. { title: '出库时间', dataIndex: 'warehousingTime', width: 90 },
  1893. { title: '重量', dataIndex: 'weight', width: 90 },
  1894. { title: '备注', dataIndex: 'remark', width: 90 },
  1895. ],
  1896. allocationOutColumns: [
  1897. { title: '批次号', dataIndex: 'batchNumber', width: 90 },
  1898. { title: '名称', dataIndex: 'name', width: 115 },
  1899. // { title: '规格', dataIndex: 'standard', width: 90 },
  1900. { title: '生产日期', dataIndex: 'productionDate', width: 100 },
  1901. { title: '保质期', dataIndex: 'expiryNum', width: 60 },
  1902. { title: '商品条码', dataIndex: 'barCode', width: 90 },
  1903. { title: '仓库名称', dataIndex: 'depotName', width: 90 },
  1904. { title: '仓库货架', dataIndex: 'position', width: 90 },
  1905. { title: '包装规格', dataIndex: 'unitName', width: 90 },
  1906. // { title: '规格', dataIndex: 'standard', width: 60 },
  1907. { title: '型号', dataIndex: 'model', width: 60 },
  1908. { title: '颜色', dataIndex: 'color', width: 60 },
  1909. { title: '品牌', dataIndex: 'brand', width: 90 },
  1910. { title: '制造商', dataIndex: 'mfrs', width: 90 },
  1911. { title: '扩展信息', dataIndex: 'materialOther', width: 90 },
  1912. { title: '库存', dataIndex: 'inventory', width: 90 },
  1913. { title: '调入仓库', dataIndex: 'anotherDepotName' },
  1914. { title: '单位', dataIndex: 'unit', width: 90 },
  1915. { title: '多属性', dataIndex: 'sku' },
  1916. { title: '数量', dataIndex: 'operNumber', width: 90 },
  1917. { title: '单价', dataIndex: 'unitPrice', width: 90 },
  1918. { title: '金额', dataIndex: 'allPrice', width: 90 },
  1919. { title: '实际出库数量', dataIndex: 'actualQuantityInStorage', width: 115 },
  1920. { title: '出库差异', dataIndex: 'warehousingVariance', width: 90 },
  1921. { title: '出库差异原因', dataIndex: 'reasonOfDifference', width: 115 },
  1922. { title: '出库人', dataIndex: 'warehousingUser', width: 90 },
  1923. { title: '出库时间', dataIndex: 'warehousingTime', width: 90 },
  1924. { title: '重量', dataIndex: 'weight', width: 90 },
  1925. { title: '备注', dataIndex: 'remark', width: 90 },
  1926. ],
  1927. assembleColumns: [
  1928. { title: '商品类型', dataIndex: 'mType' },
  1929. { title: '仓库名称', dataIndex: 'depotName' },
  1930. { title: '条码', dataIndex: 'barCode' },
  1931. { title: '名称', dataIndex: 'name' },
  1932. { title: '规格', dataIndex: 'standard' },
  1933. { title: '型号', dataIndex: 'model' },
  1934. { title: '颜色', dataIndex: 'color' },
  1935. { title: '品牌', dataIndex: 'brand' },
  1936. { title: '制造商', dataIndex: 'mfrs' },
  1937. { title: '扩展信息', dataIndex: 'materialOther' },
  1938. { title: '库存', dataIndex: 'stock' },
  1939. { title: '单位', dataIndex: 'unit' },
  1940. { title: '多属性', dataIndex: 'sku' },
  1941. { title: '数量', dataIndex: 'operNumber' },
  1942. { title: '单价', dataIndex: 'unitPrice' },
  1943. { title: '金额', dataIndex: 'allPrice' },
  1944. { title: '备注', dataIndex: 'remark' },
  1945. ],
  1946. disassembleColumns: [
  1947. { title: '商品类型', dataIndex: 'mType' },
  1948. { title: '仓库名称', dataIndex: 'depotName' },
  1949. { title: '条码', dataIndex: 'barCode' },
  1950. { title: '名称', dataIndex: 'name' },
  1951. { title: '规格', dataIndex: 'standard' },
  1952. { title: '型号', dataIndex: 'model' },
  1953. { title: '颜色', dataIndex: 'color' },
  1954. { title: '品牌', dataIndex: 'brand' },
  1955. { title: '制造商', dataIndex: 'mfrs' },
  1956. { title: '扩展信息', dataIndex: 'materialOther' },
  1957. { title: '库存', dataIndex: 'stock' },
  1958. { title: '单位', dataIndex: 'unit' },
  1959. { title: '多属性', dataIndex: 'sku' },
  1960. { title: '数量', dataIndex: 'operNumber' },
  1961. { title: '单价', dataIndex: 'unitPrice' },
  1962. { title: '金额', dataIndex: 'allPrice' },
  1963. { title: '备注', dataIndex: 'remark' },
  1964. ],
  1965. stockCheckReplayColumns: [
  1966. { title: '仓库名称', dataIndex: 'depotName' },
  1967. { title: '条码', dataIndex: 'barCode' },
  1968. { title: '名称', dataIndex: 'name' },
  1969. { title: '规格', dataIndex: 'standard' },
  1970. { title: '型号', dataIndex: 'model' },
  1971. { title: '品牌', dataIndex: 'brand' },
  1972. { title: '制造商', dataIndex: 'mfrs' },
  1973. { title: '扩展信息', dataIndex: 'materialOther' },
  1974. { title: '库存', dataIndex: 'stock' },
  1975. { title: '单位', dataIndex: 'unit' },
  1976. { title: '多属性', dataIndex: 'sku' },
  1977. { title: '数量', dataIndex: 'operNumber' },
  1978. { title: '单价', dataIndex: 'unitPrice' },
  1979. { title: '金额', dataIndex: 'allPrice' },
  1980. { title: '备注', dataIndex: 'remark' },
  1981. ],
  1982. }
  1983. },
  1984. created() {
  1985. let realScreenWidth = window.screen.width
  1986. this.width = realScreenWidth < 1500 ? '1200px' : '1600px'
  1987. this.tableWidth = {
  1988. width: '100%',
  1989. }
  1990. this.tableWidthRetail = {
  1991. width: '100%',
  1992. }
  1993. },
  1994. methods: {
  1995. initSetting(record, type, ds) {
  1996. if (type === '零售出库') {
  1997. this.defColumns = this.retailOutColumns
  1998. } else if (type === '零售退货入库') {
  1999. this.defColumns = this.retailBackColumns
  2000. } else if (type === '请购单') {
  2001. this.defColumns = this.purchaseApplyColumns
  2002. } else if (type === '采购订单') {
  2003. this.defColumns = this.purchaseOrderColumns
  2004. } else if (type === '采购入库') {
  2005. this.defColumns = this.purchaseInColumns
  2006. } else if (type === '采购退货出库') {
  2007. this.defColumns = this.purchaseBackColumns
  2008. } else if (type === '销售订单') {
  2009. this.defColumns = this.saleOrderColumns
  2010. } else if (type === '销售出库') {
  2011. this.defColumns = this.saleOutColumns
  2012. } else if (type === '销售退货入库') {
  2013. this.defColumns = this.saleBackColumns
  2014. } else if (type === '其它入库') {
  2015. this.defColumns = this.otherInColumns
  2016. } else if (type === '其它出库') {
  2017. this.defColumns = this.otherOutColumns
  2018. } else if (type === '调拨出库') {
  2019. this.defColumns = this.allocationOutColumns
  2020. } else if (type === '组装单') {
  2021. this.defColumns = this.assembleColumns
  2022. } else if (type === '拆卸单') {
  2023. this.defColumns = this.disassembleColumns
  2024. } else if (type === '盘点复盘') {
  2025. this.defColumns = this.stockCheckReplayColumns
  2026. }
  2027. //判断序列号、批号、有效期、多属性、重量、仓位货架是否有值
  2028. let needAddkeywords = []
  2029. for (let i = 0; i < ds.length; i++) {
  2030. if (ds[i].snList) {
  2031. needAddkeywords.push('snList')
  2032. }
  2033. if (ds[i].batchNumber) {
  2034. needAddkeywords.push('batchNumber')
  2035. }
  2036. if (ds[i].expirationDate) {
  2037. needAddkeywords.push('expirationDate')
  2038. }
  2039. if (ds[i].sku) {
  2040. needAddkeywords.push('sku')
  2041. }
  2042. if (ds[i].weight) {
  2043. needAddkeywords.push('weight')
  2044. }
  2045. if (ds[i].position) {
  2046. needAddkeywords.push('position')
  2047. }
  2048. if (ds[i].brand) {
  2049. needAddkeywords.push('brand')
  2050. }
  2051. if (ds[i].mfrs) {
  2052. needAddkeywords.push('mfrs')
  2053. }
  2054. }
  2055. let currentCol = [
  2056. {
  2057. title: '#',
  2058. dataIndex: '',
  2059. align: 'center',
  2060. width: 30,
  2061. customRender: function (t, r, index) {
  2062. return parseInt(index) + 1
  2063. },
  2064. },
  2065. ]
  2066. if (record.status === '3') {
  2067. //部分采购|部分销售的时候显示全部列
  2068. for (let i = 0; i < this.defColumns.length; i++) {
  2069. currentCol.push(this.defColumns[i])
  2070. }
  2071. this.columns = currentCol
  2072. } else if (record.purchaseStatus === '3') {
  2073. //将已出库的标题转为已采购,针对销售订单转采购订单的场景
  2074. for (let i = 0; i < this.defColumns.length; i++) {
  2075. let info = {}
  2076. info.title = this.defColumns[i].title
  2077. info.dataIndex = this.defColumns[i].dataIndex
  2078. if (this.defColumns[i].width) {
  2079. info.width = this.defColumns[i].width
  2080. }
  2081. if (this.defColumns[i].dataIndex === 'finishNumber') {
  2082. info.title = '已采购'
  2083. }
  2084. if (this.defColumns[i].dataIndex === 'barCode') {
  2085. info.scopedSlots = { customRender: 'customBarCode' }
  2086. }
  2087. currentCol.push(info)
  2088. }
  2089. this.columns = currentCol
  2090. } else {
  2091. for (let i = 0; i < this.defColumns.length; i++) {
  2092. //移除列
  2093. let needRemoveKeywords = [
  2094. 'finishNumber',
  2095. 'snList',
  2096. 'batchNumber',
  2097. 'expirationDate',
  2098. 'sku',
  2099. 'weight',
  2100. 'position',
  2101. 'brand',
  2102. 'mfrs',
  2103. ]
  2104. if (needRemoveKeywords.indexOf(this.defColumns[i].dataIndex) === -1) {
  2105. let info = {}
  2106. info.title = this.defColumns[i].title
  2107. info.dataIndex = this.defColumns[i].dataIndex
  2108. if (this.defColumns[i].width) {
  2109. info.width = this.defColumns[i].width
  2110. }
  2111. if (this.defColumns[i].dataIndex === 'barCode') {
  2112. info.scopedSlots = { customRender: 'customBarCode' }
  2113. }
  2114. currentCol.push(info)
  2115. }
  2116. //添加有数据的列
  2117. if (needAddkeywords.indexOf(this.defColumns[i].dataIndex) > -1) {
  2118. let info = {}
  2119. info.title = this.defColumns[i].title
  2120. info.dataIndex = this.defColumns[i].dataIndex
  2121. if (this.defColumns[i].width) {
  2122. info.width = this.defColumns[i].width
  2123. }
  2124. currentCol.push(info)
  2125. }
  2126. }
  2127. this.columns = currentCol
  2128. }
  2129. },
  2130. initPlatform() {
  2131. getPlatformConfigByKey({ platformKey: 'bill_print_flag' }).then((res) => {
  2132. if (res && res.code === 200) {
  2133. if (
  2134. this.billType === '零售出库' ||
  2135. this.billType === '零售退货入库' ||
  2136. this.billType === '请购单' ||
  2137. this.billType === '采购订单' ||
  2138. this.billType === '采购入库' ||
  2139. this.billType === '采购退货出库' ||
  2140. this.billType === '销售订单' ||
  2141. this.billType === '销售出库' ||
  2142. this.billType === '销售退货入库' ||
  2143. this.billType === '其它入库' ||
  2144. this.billType === '其它出库' ||
  2145. this.billType === '调拨出库' ||
  2146. this.billType === '组装单' ||
  2147. this.billType === '拆卸单'
  2148. ) {
  2149. this.billPrintFlag = res.data.platformValue === '1' ? true : false
  2150. }
  2151. }
  2152. })
  2153. },
  2154. getSystemConfig() {
  2155. getCurrentSystemConfig().then((res) => {
  2156. if (res.code === 200 && res.data) {
  2157. this.purchaseBySaleFlag = res.data.purchaseBySaleFlag === '1' ? true : false
  2158. let multiBillType = res.data.multiBillType
  2159. let multiLevelApprovalFlag = res.data.multiLevelApprovalFlag
  2160. this.checkFlag = getCheckFlag(multiBillType, multiLevelApprovalFlag, this.prefixNo)
  2161. if (res.data.auditPrintFlag === '1') {
  2162. if (this.model.status === '0' || this.model.status === '9') {
  2163. this.isShowPrintBtn = false
  2164. } else {
  2165. this.isShowPrintBtn = true
  2166. }
  2167. } else {
  2168. this.isShowPrintBtn = true
  2169. }
  2170. }
  2171. })
  2172. },
  2173. getBillListByLinkNumber(number) {
  2174. getAction('/depotHead/getBillListByLinkNumber', { number: number }).then((res) => {
  2175. if (res && res.code === 200) {
  2176. this.linkNumberList = res.data
  2177. }
  2178. })
  2179. },
  2180. getFinancialBillNoByBillId(billId) {
  2181. getAction('/accountHead/getFinancialBillNoByBillId', { billId: billId }).then((res) => {
  2182. if (res && res.code === 200) {
  2183. this.financialBillNoList = res.data
  2184. }
  2185. })
  2186. },
  2187. show(record, type, prefixNo) {
  2188. //查询单条单据信息
  2189. findBillDetailByNumber({ number: record.number }).then((res) => {
  2190. if (res && res.code === 200) {
  2191. let item = res.data
  2192. this.billType = type
  2193. this.prefixNo = prefixNo
  2194. //附件下载
  2195. this.fileList = item.fileName
  2196. this.voucherPictureList = item.voucherPicture?item.voucherPicture.split(','):[] //凭证图片
  2197. this.visible = true
  2198. this.modalStyle = 'top:20px;height: 95%;'
  2199. this.model = Object.assign({}, item)
  2200. if (this.model.backAmount) {
  2201. this.model.getAmount = (this.model.changeAmount + this.model.backAmount).toFixed(2)
  2202. } else {
  2203. this.model.getAmount = this.model.changeAmount
  2204. }
  2205. this.model.debt = (
  2206. this.model.discountLastMoney +
  2207. this.model.otherMoney -
  2208. (this.model.deposit + this.model.changeAmount)
  2209. ).toFixed(2)
  2210. this.$nextTick(() => {
  2211. this.form.setFieldsValue(pick(this.model, 'id'))
  2212. })
  2213. let showType = 'basic'
  2214. if (
  2215. item.subType === '采购' ||
  2216. item.subType === '采购退货' ||
  2217. item.subType === '销售' ||
  2218. item.subType === '销售退货'
  2219. ) {
  2220. if (item.status === '3') {
  2221. showType = 'other'
  2222. }
  2223. } else {
  2224. if (item.status === '3') {
  2225. showType = 'basic'
  2226. } else if (item.purchaseStatus === '3') {
  2227. showType = 'purchase'
  2228. }
  2229. }
  2230. let isReadOnly = '1'
  2231. if (item.subType === '组装单' || item.subType === '拆卸单') {
  2232. isReadOnly = '0'
  2233. }
  2234. let params = {
  2235. headerId: this.model.id,
  2236. mpList: getMpListShort(Vue.ls.get('materialPropertyList')), //扩展属性
  2237. linkType: showType,
  2238. isReadOnly: isReadOnly,
  2239. }
  2240. let url = this.readOnly ? this.url.detailList : this.url.detailList
  2241. this.requestSubTableData(item, type, url, params)
  2242. this.initPlatform()
  2243. this.getSystemConfig()
  2244. this.getBillListByLinkNumber(this.model.number)
  2245. this.getFinancialBillNoByBillId(this.model.id)
  2246. }
  2247. })
  2248. },
  2249. requestSubTableData(record, type, url, params, success) {
  2250. this.loading = true
  2251. getAction(url, params)
  2252. .then((res) => {
  2253. if (res && res.code === 200) {
  2254. this.dataSource = res.data.rows
  2255. this.initSetting(record, type, this.dataSource)
  2256. typeof success === 'function' ? success(res) : ''
  2257. }
  2258. })
  2259. .finally(() => {
  2260. this.loading = false
  2261. })
  2262. },
  2263. handleBackCheck() {
  2264. let that = this
  2265. this.$confirm({
  2266. title: '确认操作',
  2267. content: '是否对该单据进行反审核?',
  2268. onOk: function () {
  2269. that.loading = true
  2270. postAction(that.url.batchSetStatusUrl, { status: '0', ids: that.model.id })
  2271. .then((res) => {
  2272. if (res.code === 200) {
  2273. that.$emit('ok')
  2274. that.loading = false
  2275. that.close()
  2276. } else {
  2277. that.$message.warning(res.data.message)
  2278. that.loading = false
  2279. }
  2280. })
  2281. .finally(() => {})
  2282. },
  2283. })
  2284. },
  2285. handleCancel() {
  2286. this.close()
  2287. },
  2288. close() {
  2289. this.$emit('close')
  2290. this.visible = false
  2291. this.modalStyle = ''
  2292. },
  2293. myHandleDetail(billNumber) {
  2294. findBillDetailByNumber({ number: billNumber }).then((res) => {
  2295. if (res && res.code === 200) {
  2296. let type = res.data.type === '其它' ? '' : res.data.type
  2297. this.show(res.data, res.data.subType + type)
  2298. this.title = res.data.subType + type + '-详情'
  2299. }
  2300. })
  2301. },
  2302. myHandleFinancialDetail(billNo) {
  2303. let that = this
  2304. findFinancialDetailByNumber({ billNo: billNo }).then((res) => {
  2305. if (res && res.code === 200) {
  2306. if (that.$refs.financialDetailModal) {
  2307. that.$refs.financialDetailModal.show(res.data, res.data.type)
  2308. that.$refs.financialDetailModal.title = res.data.type + '-详情'
  2309. }
  2310. }
  2311. })
  2312. },
  2313. getImgUrl(imgName, type) {
  2314. if (imgName && imgName.split(',')) {
  2315. type = type ? type + '/' : ''
  2316. return getFileAccessHttpUrl('systemConfig/static/' + type + imgName.split(',')[0])
  2317. } else {
  2318. return ''
  2319. }
  2320. },
  2321. //三联打印预览
  2322. handlePrint() {
  2323. getPlatformConfigByKey({ platformKey: 'bill_print_url' }).then((res) => {
  2324. if (res && res.code === 200) {
  2325. let billPrintUrl = res.data.platformValue + '?no=' + this.model.number
  2326. let billPrintHeight = this.dataSource.length * 50 + 600
  2327. this.$refs.modalDetail.show(this.model, billPrintUrl, billPrintHeight)
  2328. this.$refs.modalDetail.title = this.billType + '-三联打印预览'
  2329. }
  2330. })
  2331. },
  2332. //零售出库|零售退货入库
  2333. retailExportExcel() {
  2334. let list = []
  2335. let head = '仓库名称,条码,名称,规格,型号,颜色,扩展信息,库存,单位,序列号,批号,有效期,多属性,数量,单价,金额,备注'
  2336. for (let i = 0; i < this.dataSource.length; i++) {
  2337. let item = []
  2338. let ds = this.dataSource[i]
  2339. item.push(
  2340. ds.depotName,
  2341. ds.barCode,
  2342. ds.name,
  2343. ds.standard,
  2344. ds.model,
  2345. ds.color,
  2346. ds.materialOther,
  2347. ds.stock,
  2348. ds.unit,
  2349. ds.snList,
  2350. ds.batchNumber,
  2351. ds.expirationDate,
  2352. ds.sku,
  2353. ds.operNumber,
  2354. ds.unitPrice,
  2355. ds.allPrice,
  2356. ds.remark,
  2357. ds.dept
  2358. )
  2359. list.push(item)
  2360. }
  2361. let organName = this.model.organName ? '会员卡号' + this.model.organName : ''
  2362. let tip = organName + ' ' + '单据日期:' + this.model.operTimeStr + ' ' + '单据编号:' + this.model.number
  2363. exportXlsPost(this.billType + '_' + this.model.number, '单据导出', head, tip, list)
  2364. },
  2365. //请购单
  2366. applyExportExcel() {
  2367. let list = []
  2368. let head = '条码,名称,规格,型号,颜色,扩展信息,单位,多属性,原数量,已采购,数量,备注'
  2369. for (let i = 0; i < this.dataSource.length; i++) {
  2370. let item = []
  2371. let ds = this.dataSource[i]
  2372. item.push(
  2373. ds.barCode,
  2374. ds.name,
  2375. ds.standard,
  2376. ds.model,
  2377. ds.color,
  2378. ds.materialOther,
  2379. ds.unit,
  2380. ds.sku,
  2381. ds.preNumber,
  2382. ds.finishNumber,
  2383. ds.operNumber,
  2384. ds.remark,
  2385. ds.dept
  2386. )
  2387. list.push(item)
  2388. }
  2389. let tip = '单据日期:' + this.model.operTimeStr + ' ' + '单据编号:' + this.model.number
  2390. exportXlsPost(this.billType + '_' + this.model.number, '单据导出', head, tip, list)
  2391. },
  2392. //采购订单|销售订单
  2393. orderExportExcel() {
  2394. let list = []
  2395. let finishType = ''
  2396. let organType = ''
  2397. if (this.billType === '采购订单') {
  2398. finishType = '已入库'
  2399. organType = '供应商:'
  2400. } else if (this.billType === '销售订单') {
  2401. finishType = '已出库'
  2402. organType = '客户:'
  2403. }
  2404. let head =
  2405. '条码,名称,规格,型号,颜色,扩展信息,库存,单位,多属性,数量,' +
  2406. finishType +
  2407. ',单价,金额,税率(%),税额,价税合计,备注'
  2408. for (let i = 0; i < this.dataSource.length; i++) {
  2409. let item = []
  2410. let ds = this.dataSource[i]
  2411. item.push(
  2412. ds.barCode,
  2413. ds.name,
  2414. ds.standard,
  2415. ds.model,
  2416. ds.color,
  2417. ds.materialOther,
  2418. ds.stock,
  2419. ds.unit,
  2420. ds.sku,
  2421. ds.operNumber,
  2422. ds.finishNumber,
  2423. ds.unitPrice,
  2424. ds.allPrice,
  2425. ds.taxRate,
  2426. ds.taxMoney,
  2427. ds.taxLastMoney,
  2428. ds.remark,
  2429. ds.dept
  2430. )
  2431. list.push(item)
  2432. }
  2433. let organName = this.model.organName ? this.model.organName : ''
  2434. let tip =
  2435. organType + organName + ' ' + '单据日期:' + this.model.operTimeStr + ' ' + '单据编号:' + this.model.number
  2436. exportXlsPost(this.billType + '_' + this.model.number, '单据导出', head, tip, list)
  2437. },
  2438. //采购入库|采购退货出库|销售出库|销售退货入库
  2439. purchaseSaleExportExcel() {
  2440. let list = []
  2441. let organType = ''
  2442. if (this.billType === '采购入库' || this.billType === '采购退货出库') {
  2443. organType = '供应商:'
  2444. } else if (this.billType === '销售出库' || this.billType === '销售退货入库') {
  2445. organType = '客户:'
  2446. }
  2447. let head =
  2448. '仓库名称,条码,名称,规格,型号,颜色,扩展信息,库存,单位,序列号,批号,有效期,多属性,数量,单价,金额,税率(%),税额,价税合计,重量,备注'
  2449. for (let i = 0; i < this.dataSource.length; i++) {
  2450. let item = []
  2451. let ds = this.dataSource[i]
  2452. item.push(
  2453. ds.depotName,
  2454. ds.barCode,
  2455. ds.name,
  2456. ds.standard,
  2457. ds.model,
  2458. ds.color,
  2459. ds.materialOther,
  2460. ds.stock,
  2461. ds.unit,
  2462. ds.snList,
  2463. ds.batchNumber,
  2464. ds.expirationDate,
  2465. ds.sku,
  2466. ds.operNumber,
  2467. ds.unitPrice,
  2468. ds.allPrice,
  2469. ds.taxRate,
  2470. ds.taxMoney,
  2471. ds.taxLastMoney,
  2472. ds.weight,
  2473. ds.remark,
  2474. ds.dept
  2475. )
  2476. list.push(item)
  2477. }
  2478. let organName = this.model.organName ? this.model.organName : ''
  2479. let linkNumber = this.model.linkNumber ? this.model.linkNumber : ''
  2480. let tip =
  2481. organType +
  2482. organName +
  2483. ' ' +
  2484. '单据日期:' +
  2485. this.model.operTimeStr +
  2486. ' ' +
  2487. '单据编号:' +
  2488. this.model.number +
  2489. '' +
  2490. '关联单号:' +
  2491. linkNumber
  2492. exportXlsPost(this.billType + '_' + this.model.number, '单据导出', head, tip, list)
  2493. },
  2494. //其它入库|其它出库
  2495. otherExportExcel() {
  2496. let list = []
  2497. let organType = ''
  2498. if (this.billType === '其它入库') {
  2499. organType = '供应商:'
  2500. } else if (this.billType === '其它出库') {
  2501. organType = '客户:'
  2502. }
  2503. let head = '仓库名称,条码,名称,规格,型号,颜色,扩展信息,库存,单位,序列号,批号,有效期,多属性,数量,单价,金额,备注'
  2504. for (let i = 0; i < this.dataSource.length; i++) {
  2505. let item = []
  2506. let ds = this.dataSource[i]
  2507. item.push(
  2508. ds.depotName,
  2509. ds.barCode,
  2510. ds.name,
  2511. ds.standard,
  2512. ds.model,
  2513. ds.color,
  2514. ds.materialOther,
  2515. ds.stock,
  2516. ds.unit,
  2517. ds.snList,
  2518. ds.batchNumber,
  2519. ds.expirationDate,
  2520. ds.sku,
  2521. ds.operNumber,
  2522. ds.unitPrice,
  2523. ds.allPrice,
  2524. ds.remark,
  2525. ds.dept
  2526. )
  2527. list.push(item)
  2528. }
  2529. let organName = this.model.organName ? this.model.organName : ''
  2530. let tip =
  2531. organType + organName + ' ' + '单据日期:' + this.model.operTimeStr + ' ' + '单据编号:' + this.model.number
  2532. exportXlsPost(this.billType + '_' + this.model.number, '单据导出', head, tip, list)
  2533. },
  2534. //调拨出库
  2535. allocationOutExportExcel() {
  2536. let list = []
  2537. let head = '仓库名称,条码,名称,规格,型号,颜色,扩展信息,库存,调入仓库,单位,多属性,数量,单价,金额,备注'
  2538. for (let i = 0; i < this.dataSource.length; i++) {
  2539. let item = []
  2540. let ds = this.dataSource[i]
  2541. item.push(
  2542. ds.depotName,
  2543. ds.barCode,
  2544. ds.name,
  2545. ds.standard,
  2546. ds.model,
  2547. ds.color,
  2548. ds.materialOther,
  2549. ds.stock,
  2550. ds.anotherDepotName,
  2551. ds.unit,
  2552. ds.sku,
  2553. ds.operNumber,
  2554. ds.unitPrice,
  2555. ds.allPrice,
  2556. ds.remark,
  2557. ds.dept
  2558. )
  2559. list.push(item)
  2560. }
  2561. let tip = '单据日期:' + this.model.operTimeStr + ' ' + '单据编号:' + this.model.number
  2562. exportXlsPost(this.billType + '_' + this.model.number, '单据导出', head, tip, list)
  2563. },
  2564. //组装单|拆卸单
  2565. assembleExportExcel() {
  2566. let list = []
  2567. let head = ['商品类型,仓库名称,条码,名称,规格,型号,颜色,扩展信息,库存,单位,多属性,数量,单价,金额,备注']
  2568. for (let i = 0; i < this.dataSource.length; i++) {
  2569. let item = []
  2570. let ds = this.dataSource[i]
  2571. item.push(
  2572. ds.mType,
  2573. ds.depotName,
  2574. ds.barCode,
  2575. ds.name,
  2576. ds.standard,
  2577. ds.model,
  2578. ds.color,
  2579. ds.materialOther,
  2580. ds.stock,
  2581. ds.unit,
  2582. ds.sku,
  2583. ds.operNumber,
  2584. ds.unitPrice,
  2585. ds.allPrice,
  2586. ds.remark
  2587. )
  2588. list.push(item)
  2589. }
  2590. let tip = '单据日期:' + this.model.operTimeStr + ' ' + '单据编号:' + this.model.number
  2591. exportXlsPost(this.billType + '_' + this.model.number, '单据导出', head, tip, list)
  2592. },
  2593. //盘点复盘
  2594. stockCheckReplayExportExcel() {
  2595. let list = []
  2596. let head = '仓库名称,条码,名称,规格,型号,扩展信息,库存,单位,多属性,数量,单价,金额,备注'
  2597. for (let i = 0; i < this.dataSource.length; i++) {
  2598. let item = []
  2599. let ds = this.dataSource[i]
  2600. item.push(
  2601. ds.depotName,
  2602. ds.barCode,
  2603. ds.name,
  2604. ds.standard,
  2605. ds.model,
  2606. ds.materialOther,
  2607. ds.stock,
  2608. ds.unit,
  2609. ds.sku,
  2610. ds.operNumber,
  2611. ds.unitPrice,
  2612. ds.allPrice,
  2613. ds.remark
  2614. )
  2615. list.push(item)
  2616. }
  2617. let linkNumber = this.model.linkNumber ? this.model.linkNumber : ''
  2618. let tip =
  2619. '单据日期:' + this.model.operTimeStr + ' ' + '单据编号:' + this.model.number + '' + '关联单号:' + linkNumber
  2620. exportXlsPost(this.billType + '_' + this.model.number, '单据导出', head, tip, list)
  2621. },
  2622. },
  2623. }
  2624. </script>
  2625. <style scoped>
  2626. .item-info {
  2627. float: left;
  2628. width: 30px;
  2629. height: 30px;
  2630. margin-left: 8px;
  2631. }
  2632. .item-img {
  2633. cursor: pointer;
  2634. position: static;
  2635. display: block;
  2636. width: 100%;
  2637. height: 100%;
  2638. object-fit: cover;
  2639. }
  2640. </style>