BillDetail.vue 132 KB

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