index.vue 68 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733
  1. <template>
  2. <div class="tenant">
  3. <div class="content">
  4. <byTable
  5. :source="sourceList.data"
  6. :pagination="sourceList.pagination"
  7. :config="config"
  8. :loading="loading"
  9. highlight-current-row
  10. :action-list="[
  11. {
  12. text: '创建单证',
  13. action: () => openModal(),
  14. },
  15. ]"
  16. @get-list="getList">
  17. <template #acceptCode="{ item }">
  18. <div>
  19. <div style="color: #409eff" v-if="item.acceptCode">{{ item.acceptCarriage }} ({{ item.acceptCode }})</div>
  20. <div v-else>
  21. <el-button type="warning" style="background-color: var(--el-button-bg-color) !important" @click="clickAddAcceptCode(item)">填写</el-button>
  22. </div>
  23. </div>
  24. </template>
  25. <template #toView="{ item }">
  26. <div>
  27. <el-button type="warning" style="background-color: var(--el-button-bg-color) !important" @click="clickToView(item)">查看</el-button>
  28. </div>
  29. </template>
  30. </byTable>
  31. </div>
  32. <el-dialog title="创建单证" v-if="dialogVisible" v-model="dialogVisible" width="1000">
  33. <byForm :formConfig="formConfig" :formOption="formOption" v-model="formData.data" :rules="rules" ref="submit" v-loading="loadingDialog">
  34. <template #details>
  35. <div style="width: 100%">
  36. <el-table :data="formData.data.documentsProductList" style="width: 100%; margin-top: 16px">
  37. <el-table-column label="货物描述" min-width="240">
  38. <template #default="{ row, $index }">
  39. <div style="width: 100%">
  40. <el-form-item :prop="'documentsProductList.' + $index + '.describes'" :rules="rules.describes" :inline-message="true">
  41. <el-input v-model="row.describes" placeholder="请输入货物描述" />
  42. </el-form-item>
  43. </div>
  44. </template>
  45. </el-table-column>
  46. <el-table-column label="副描述" min-width="200">
  47. <template #default="{ row, $index }">
  48. <div style="width: 100%">
  49. <el-form-item :prop="'documentsProductList.' + $index + '.subDescribe'" :rules="rules.subDescribe" :inline-message="true">
  50. <el-input v-model="row.subDescribe" placeholder="请输入副描述" />
  51. </el-form-item>
  52. </div>
  53. </template>
  54. </el-table-column>
  55. <el-table-column label="海关编码" width="160">
  56. <template #default="{ row, $index }">
  57. <div style="width: 100%">
  58. <el-form-item :prop="'documentsProductList.' + $index + '.customsCode'" :rules="rules.customsCode" :inline-message="true">
  59. <el-input v-model="row.customsCode" placeholder="请输入海关编码" />
  60. </el-form-item>
  61. </div>
  62. </template>
  63. </el-table-column>
  64. <el-table-column label="数量" width="160">
  65. <template #default="{ row, $index }">
  66. <div style="width: 100%">
  67. <el-form-item :prop="'documentsProductList.' + $index + '.quantity'" :rules="rules.quantity" :inline-message="true">
  68. <el-input-number v-model="row.quantity" placeholder="请输入数量" style="width: 100%" :precision="0" :controls="false" :min="0" />
  69. </el-form-item>
  70. </div>
  71. </template>
  72. </el-table-column>
  73. <el-table-column label="单价" width="160">
  74. <template #default="{ row, $index }">
  75. <div style="width: 100%">
  76. <el-form-item :prop="'documentsProductList.' + $index + '.price'" :rules="rules.price" :inline-message="true">
  77. <el-input-number v-model="row.price" placeholder="请输入单价" style="width: 100%" :precision="2" :controls="false" :min="0" />
  78. </el-form-item>
  79. </div>
  80. </template>
  81. </el-table-column>
  82. </el-table>
  83. </div>
  84. </template>
  85. </byForm>
  86. <template #footer>
  87. <el-button @click="dialogVisible = false" size="large">取 消</el-button>
  88. <el-button type="primary" @click="submitForm()" size="large">确 定</el-button>
  89. </template>
  90. </el-dialog>
  91. <el-dialog title="货运详情" v-if="openAddAcceptCode" v-model="openAddAcceptCode" width="600">
  92. <byForm :formConfig="formConfigTwo" :formOption="formOption" v-model="formDataTwo.data" :rules="rulesTwo" ref="submitTwo" v-loading="loadingTwo">
  93. <template #departureTime>
  94. <div>
  95. <el-date-picker v-model="formDataTwo.data.departureTime" type="datetime" placeholder="请选择起运时间" value-format="YYYY-MM-DD HH:mm:ss" />
  96. </div>
  97. </template>
  98. <template #file>
  99. <div style="width: 100%">
  100. <el-upload
  101. v-model:fileList="fileList"
  102. action="https://winfaster.obs.cn-south-1.myhuaweicloud.com"
  103. :data="uploadData"
  104. multiple
  105. :before-upload="uploadFile"
  106. :on-preview="onPreviewFile">
  107. <el-button>选择</el-button>
  108. </el-upload>
  109. </div>
  110. </template>
  111. </byForm>
  112. <template #footer>
  113. <el-button @click="openAddAcceptCode = false" size="large">取 消</el-button>
  114. <el-button type="primary" @click="submitTwoForm()" size="large">确 定</el-button>
  115. </template>
  116. </el-dialog>
  117. <el-dialog title="打印" v-if="openSelectPrint" v-model="openSelectPrint" width="600">
  118. <div>
  119. <el-button @click="clickPrint(1)" type="primary">装箱单</el-button>
  120. <el-button @click="clickPrint(2)" type="primary">商业发票</el-button>
  121. <el-button @click="clickPrint(3)" type="primary">销售确认书</el-button>
  122. <el-button @click="clickPrint(4)" type="primary">报关单</el-button>
  123. </div>
  124. <template #footer>
  125. <el-button @click="openSelectPrint = false" size="large">关闭</el-button>
  126. </template>
  127. </el-dialog>
  128. <el-dialog title="打印" v-if="openPrint" v-model="openPrint" width="860">
  129. <div id="pdfDom" style="width: 800px; padding: 16px; font-size: 12px !important">
  130. <div v-if="openStatus === 1">
  131. <div style="font-size: 16px; text-align: center; font-weight: 700">装箱单</div>
  132. <div style="font-size: 16px; text-align: center; text-decoration: underline; font-weight: 700">PACKING LIST</div>
  133. </div>
  134. <div v-else-if="openStatus === 2">
  135. <div style="font-size: 16px; text-align: center; font-weight: 700">商业发票</div>
  136. <div style="font-size: 16px; text-align: center; text-decoration: underline; font-weight: 700">COMMERCIAL INVOICE</div>
  137. </div>
  138. <div v-else-if="openStatus === 3">
  139. <div style="font-size: 16px; text-align: center; font-weight: 700">合同</div>
  140. <div style="font-size: 16px; text-align: center; text-decoration: underline; font-weight: 700">CONTRACT</div>
  141. </div>
  142. <div style="padding-top: 8px" v-if="[1, 2].includes(openStatus)">
  143. <div>C.I. NO. : {{ printDetails.contract.code }}</div>
  144. <div>C.I. DATE: {{ printDetails.date }}</div>
  145. </div>
  146. <div style="padding-top: 8px" v-else-if="[3].includes(openStatus)">
  147. <div>P.I. NO. : {{ printDetails.contract.code }}</div>
  148. <div>P.I. DATE: {{ printDetails.date }}</div>
  149. </div>
  150. <!-- <div style="height: 16px"></div> -->
  151. <div style="border: 1px solid black; display: flex" v-if="[1, 2].includes(openStatus)">
  152. <div style="width: 50%; border-right: 1px solid black; padding-left: 4px">
  153. <div style="font-weight: 700">买方 SOLD TO MESSRS:</div>
  154. <div>{{ printDetails.customer.name }}</div>
  155. <!-- <div style="font-weight: 700;padding-top: 16px" v-if="[ 2].includes(openStatus)">TAX NUMBER:</div> -->
  156. <div style="padding: 16px 0">
  157. {{ printDetails.contract.buyAddress }},{{ printDetails.contract.buyPostalCode }},{{ printDetails.contract.buyCityName }},{{
  158. printDetails.contract.buyProvinceName
  159. }},{{ printDetails.contract.buyCountryName }}
  160. </div>
  161. <!-- style="padding-top: 16px "<div style="font-weight: 700" v-if="[2].includes(openStatus)">POST CODE: {{ printDetails.contract.buyPostalCode }}</div> -->
  162. <div >CONTRACT: {{ printDetails.contract.buyContactName }}</div>
  163. <div>TEL.: {{ printDetails.contract.buyContactNumber }}</div>
  164. </div>
  165. <div style="width: 50%; padding-left: 4px">
  166. <div style="font-weight: 700">卖方 VENDOR:</div>
  167. <div>{{ printDetails.corporation.name }}</div>
  168. <div>{{ printDetails.corporation.nameEn }}</div>
  169. <div style="padding: 16px 0">
  170. {{ printDetails.contract.sellAddress }},{{ printDetails.contract.sellCityName }},{{ printDetails.contract.sellProvinceName }},{{
  171. printDetails.contract.sellCountryName
  172. }}
  173. </div>
  174. <div >CONTRACT: {{ printDetails.contract.sellContactName }}</div>
  175. <div>TEL.: {{ printDetails.contract.sellContactNumber }}</div>
  176. </div>
  177. </div>
  178. <div style="border: 1px solid black; display: flex" v-else-if="[3].includes(openStatus)">
  179. <div style="width: 50%; border-right: 1px solid black; padding-left: 4px">
  180. <div style="font-weight: 700">卖方 VENDOR:</div>
  181. <div>{{ printDetails.corporation.name }}</div>
  182. <div>{{ printDetails.corporation.nameEn }}</div>
  183. <div style="padding: 16px 0">
  184. {{ printDetails.contract.sellAddress }},{{ printDetails.contract.sellCityName }},{{ printDetails.contract.sellProvinceName }},{{
  185. printDetails.contract.sellCountryName
  186. }}
  187. </div>
  188. <div>CONTRACT: {{ printDetails.contract.sellContactName }}</div>
  189. <div>TEL.: {{ printDetails.contract.sellContactNumber }}</div>
  190. </div>
  191. <div style="width: 50%; padding-left: 4px">
  192. <div style="font-weight: 700">买方 BUYER:</div>
  193. <div>{{ printDetails.customer.name }}</div>
  194. <!-- <div style="font-weight: 700;padding-top: 16px " >TAX NUMBER:</div> -->
  195. <div style="padding: 16px 0">
  196. {{ printDetails.contract.buyAddress }},{{ printDetails.contract.buyPostalCode }},{{ printDetails.contract.buyCityName }},{{
  197. printDetails.contract.buyProvinceName
  198. }},{{ printDetails.contract.buyCountryName }}
  199. </div>
  200. <!-- style="padding-top: 16px "<div style="font-weight: 700">POST CODE: {{ printDetails.contract.buyPostalCode }}</div> -->
  201. <div >CONTRACT: {{ printDetails.contract.buyContactName }}</div>
  202. <div>TEL.: {{ printDetails.contract.buyContactNumber }}</div>
  203. </div>
  204. </div>
  205. <div style="height: 16px"></div>
  206. <div style="border: 1px solid black" v-if="[1, 2].includes(openStatus)">
  207. <div style="display: flex; width: 100%">
  208. <div style="width: 33%; border-bottom: 1px solid black; border-right: 1px solid black; padding-left: 4px">
  209. <div style="font-weight: 700">原产国 COUNTRY OF ORIGIN:</div>
  210. <div>{{ printDetails.contract.sellCountryName }}</div>
  211. </div>
  212. <div style="width: 34%; border-bottom: 1px solid black; border-right: 1px solid black; padding-left: 4px">
  213. <div style="font-weight: 700">目的国 COUNTRY OF DESTINATION:</div>
  214. <div>{{ printDetails.documents.countryName }}</div>
  215. </div>
  216. <div style="width: 33%; border-bottom: 1px solid black; padding-left: 4px">
  217. <div style="font-weight: 700">贸易方式 TERMS OF DELIVERY:</div>
  218. <div>
  219. {{ dictValueLabel(printDetails.contract.tradeMethods, tradeMethods) }}
  220. </div>
  221. </div>
  222. </div>
  223. <div style="display: flex; width: 100%">
  224. <div style="width: 33%; border-bottom: 1px solid black; border-right: 1px solid black; padding-left: 4px">
  225. <div style="font-weight: 700">付款方式 TERMS OF PAYMENT:</div>
  226. <div>
  227. {{ printDetails.contract.remark }}
  228. </div>
  229. </div>
  230. <div style="width: 34%; border-bottom: 1px solid black; border-right: 1px solid black; padding-left: 4px">
  231. <div style="font-weight: 700">交货期 DELIVERY TIME:</div>
  232. <div>{{ printDetails.contract.deliveryTime }}</div>
  233. </div>
  234. <div style="width: 33%; border-bottom: 1px solid black; padding-left: 4px">
  235. <div style="font-weight: 700">运输方式 EXPORT BY/VIA:</div>
  236. <div>
  237. {{ dictValueLabel(printDetails.contract.transportMethod, shippingMethod) }}
  238. </div>
  239. </div>
  240. </div>
  241. <div style="display: flex; width: 100%">
  242. <div style="width: 33%; border-right: 1px solid black; padding-left: 4px">
  243. <div style="font-weight: 700">装卸港 PLACE OF DISCHARGE:</div>
  244. <div>{{ printDetails.contract.transportRemark }}</div>
  245. </div>
  246. <div style="width: 34%; border-right: 1px solid black; padding-left: 4px">
  247. <div style="font-weight: 700">目的港 FINAL DESTINATION:</div>
  248. <div>{{ printDetails.documents.portOfDestination }}</div>
  249. </div>
  250. <div style="width: 33%; padding-left: 4px">
  251. <div style="font-weight: 700">质保期 WARRANTY:</div>
  252. <div>
  253. <span v-if="printDetails.contract.warranty">{{ printDetails.contract.warranty }}天</span>
  254. </div>
  255. </div>
  256. </div>
  257. </div>
  258. <div style="border: 1px solid black" v-else-if="[3].includes(openStatus)">
  259. <div style="display: flex; width: 100%">
  260. <div style="width: 33%; border-bottom: 1px solid black; border-right: 1px solid black; padding-left: 4px">
  261. <div style="font-weight: 700">COUNTRY OF ORIGIN:</div>
  262. <div>{{ printDetails.contract.sellCountryName }}</div>
  263. </div>
  264. <div style="width: 34%; border-bottom: 1px solid black; border-right: 1px solid black; padding-left: 4px">
  265. <div style="font-weight: 700">COUNTRY OF DESTINATION:</div>
  266. <div>{{ printDetails.documents.countryName }}</div>
  267. </div>
  268. <div style="width: 33%; border-bottom: 1px solid black; padding-left: 4px">
  269. <div style="font-weight: 700">PLACE OF DISCHARGE:</div>
  270. <div>{{ printDetails.contract.transportRemark }}</div>
  271. </div>
  272. </div>
  273. <div style="display: flex; width: 100%">
  274. <div style="width: 33%; border-bottom: 1px solid black; border-right: 1px solid black; padding-left: 4px">
  275. <div style="font-weight: 700">TERMS OF DELIVERY:</div>
  276. <div>
  277. {{ dictValueLabel(printDetails.contract.tradeMethods, tradeMethods) }}
  278. </div>
  279. </div>
  280. <div style="width: 34%; border-bottom: 1px solid black; border-right: 1px solid black; padding-left: 4px">
  281. <div style="font-weight: 700">CURRENCY:</div>
  282. <div>
  283. {{ printDetails.contract.currency }}
  284. </div>
  285. </div>
  286. <div style="width: 33%; border-bottom: 1px solid black; padding-left: 4px">
  287. <div style="font-weight: 700">EXPORT BY/VIA:</div>
  288. <div>
  289. {{ dictValueLabel(printDetails.contract.transportMethod, shippingMethod) }}
  290. </div>
  291. </div>
  292. </div>
  293. <div style="display: flex; width: 100%">
  294. <div style="width: 33%; border-right: 1px solid black; padding-left: 4px">
  295. <div style="font-weight: 700">DELIVERY TIME:</div>
  296. <div>{{ printDetails.contract.deliveryTime }}</div>
  297. </div>
  298. <div style="width: 67%; padding-left: 4px">
  299. <div style="font-weight: 700">付款方式 TERMS OF PAYMENT:</div>
  300. <div>
  301. {{ printDetails.contract.remark }}
  302. </div>
  303. </div>
  304. </div>
  305. </div>
  306. <div style="height: 16px"></div>
  307. <div style="border: 1px solid black" v-if="[1, 2].includes(openStatus)">
  308. <div style="display: flex; width: 100%">
  309. <div style="width: 33%; border-right: 1px solid black; padding-left: 4px">
  310. <div style="font-weight: 700">唛头及箱号 MARK & NUMBERS</div>
  311. <div style="padding: 8px 0" v-html="getStyle(printDetails.documents.remark)"></div>
  312. </div>
  313. <div style="width: 34%; border-right: 1px solid black; padding-left: 4px">
  314. <div style="font-weight: 700">包装规格 PACKING & DESCRIPTION</div>
  315. <div v-if="printDetails.packDetailList && printDetails.packDetailList.length > 0">
  316. <div style="padding: 8px 0" v-for="(item, index) in printDetails.packDetailList" :key="index">
  317. <span style="padding-right: 16px">{{ index + 1 }}</span>
  318. <span v-if="item.boxLong">{{ item.boxLong }}cm</span>
  319. <span>*</span>
  320. <span v-if="item.boxWide">{{ item.boxWide }}cm</span>
  321. <span>*</span>
  322. <span v-if="item.boxHigh">{{ item.boxHigh }}cm</span>
  323. <span>*</span>
  324. <span>{{ item.packQuantity }}TNS</span>
  325. </div>
  326. </div>
  327. </div>
  328. <div style="width: 33%; padding-left: 4px">
  329. <div style="font-weight: 700">总毛重 TOTAL GROSS WEIGHT/KG</div>
  330. <div>{{ printDetails.sumRoughWeight }}</div>
  331. <div style="font-weight: 700">总净重 TOTAL NET WEIGHT/KG</div>
  332. <div>{{ printDetails.sumNetWeight }}</div>
  333. <div style="font-weight: 700">总体积 TOTAL DIMENSION/M3</div>
  334. <div>{{ printDetails.sumBomVolume }}</div>
  335. </div>
  336. </div>
  337. </div>
  338. <div style="height: 16px"></div>
  339. <table class="three" cellspacing="0" cellpadding="0" border="0" style="width: 100%; border-bottom: 0">
  340. <thead>
  341. <tr>
  342. <td style="width: 100px">
  343. 项目
  344. <br />
  345. ITEM NO.
  346. </td>
  347. <td>
  348. 货物描述
  349. <br />
  350. DESCRIPTION OF GOODS
  351. </td>
  352. <template v-if="[3].includes(openStatus)">
  353. <td style="width: 100px">
  354. 单位
  355. <br />
  356. UNIT
  357. </td>
  358. </template>
  359. <td style="width: 100px">
  360. 数量
  361. <br />
  362. QUANTITY
  363. <br />
  364. (SET/PCS)
  365. </td>
  366. <template v-if="[1].includes(openStatus)">
  367. <td style="width: 100px">
  368. 净重
  369. <br />
  370. N.W./ KG
  371. </td>
  372. <td style="width: 100px; border-right: 0">
  373. 毛重
  374. <br />
  375. G.W./ KG
  376. </td>
  377. </template>
  378. <template v-if="[2, 3].includes(openStatus)">
  379. <td style="width: 100px">
  380. 单价
  381. <br />
  382. UNIT PRICE
  383. <br />
  384. {{ dictValueLabel(printDetails.contract.currency, accountCurrency) }}
  385. </td>
  386. <td style="width: 100px; border-right: 0">
  387. 总价
  388. <br />
  389. TOTAL PRICE
  390. <br />
  391. {{ dictValueLabel(printDetails.contract.currency, accountCurrency) }}
  392. </td>
  393. </template>
  394. </tr>
  395. </thead>
  396. <tbody v-if="printDetails.documentsProducts && printDetails.documentsProducts.length > 0">
  397. <tr v-for="(item, index) in printDetails.documentsProducts" :key="index">
  398. <td style="text-align: center">{{ index + 1 }}</td>
  399. <td>
  400. <div style="text-align: center">{{ item.describes }}</div>
  401. <div style="text-align: center">{{ item.subDescribe }}</div>
  402. <div style="text-align: center">HS CODE: {{ item.customsCode }}</div>
  403. </td>
  404. <td style="text-align: center" v-if="[3].includes(openStatus)">
  405. {{ dictValueLabel(item.productUnit, productUnit) }}
  406. </td>
  407. <td style="text-align: center">{{ item.quantity }}</td>
  408. <td :rowspan="printDetails.documentsProducts.length" style="text-align: center" v-if="index === 0 && [1].includes(openStatus)">
  409. {{ printDetails.sumNetWeight }}
  410. </td>
  411. <td :rowspan="printDetails.documentsProducts.length" style="text-align: center; border-right: 0" v-if="index === 0 && [1].includes(openStatus)">
  412. {{ printDetails.sumRoughWeight }}
  413. </td>
  414. <td style="text-align: center" v-if="[2, 3].includes(openStatus)">{{ printDetails.contract.currency }}{{ item.price }}</td>
  415. <td style="text-align: center; border-right: 0" v-if="[2, 3].includes(openStatus)">
  416. {{ printDetails.contract.currency }}{{ parseFloat(Number(item.quantity) * Number(item.price)).toFixed(2) }}
  417. </td>
  418. </tr>
  419. </tbody>
  420. <template v-if="[2].includes(openStatus)">
  421. <tr>
  422. <td :colspan="2" style="text-align: left; padding-left: 4px">SUBTOTAL:</td>
  423. <td style="text-align: center">
  424. {{ statistics("quantity", "", 0) }}
  425. </td>
  426. <td></td>
  427. <td style="text-align: center">{{ printDetails.contract.currency }}{{ statistics("price", "quantity", 2) }}</td>
  428. </tr>
  429. <template v-if="printDetails.contractProjectList && printDetails.contractProjectList.length > 0">
  430. <tr v-for="(item, index) in printDetails.contractProjectList" :key="index">
  431. <td :colspan="4" style="text-align: left; padding-left: 4px">{{ item.payName }}:</td>
  432. <td style="text-align: center">{{ printDetails.contract.currency }}{{ item.amount }}</td>
  433. </tr>
  434. </template>
  435. <tr>
  436. <td :colspan="4" style="text-align: left; padding-left: 4px">
  437. TOTAL {{ dictValueLabel(printDetails.contract.tradeMethods, tradeMethods) }} PRICE:
  438. </td>
  439. <td style="text-align: center">{{ printDetails.contract.currency }}{{ getAllMoney(statistics("price", "quantity", 2)) }}</td>
  440. </tr>
  441. </template>
  442. <template v-if="[3].includes(openStatus)">
  443. <tr>
  444. <td :colspan="3" style="text-align: left; padding-left: 4px">SUBTOTAL:</td>
  445. <td style="text-align: center">
  446. {{ statistics("quantity", "", 0) }}
  447. </td>
  448. <td></td>
  449. <td style="text-align: center">{{ printDetails.contract.currency }}{{ statistics("price", "quantity", 2) }}</td>
  450. </tr>
  451. <template v-if="printDetails.contractProjectList && printDetails.contractProjectList.length > 0">
  452. <tr v-for="(item, index) in printDetails.contractProjectList" :key="index">
  453. <td :colspan="5" style="text-align: left; padding-left: 4px">{{ item.payName }}:</td>
  454. <td style="text-align: center">{{ printDetails.contract.currency }}{{ item.amount }}</td>
  455. </tr>
  456. </template>
  457. <tr>
  458. <td :colspan="5" style="text-align: left; padding-left: 4px">
  459. TOTAL {{ dictValueLabel(printDetails.contract.tradeMethods, tradeMethods) }} PRICE:
  460. </td>
  461. <td style="text-align: center">{{ printDetails.contract.currency }}{{ getAllMoney(statistics("price", "quantity", 2)) }}</td>
  462. </tr>
  463. </template>
  464. </table>
  465. <div v-if="[1].includes(openStatus)">
  466. <div style="font-weight: 700; padding: 4px 0">THE PACK FOR ABOVE CARGO ARE AS BELOWING SHOWS:</div>
  467. <table
  468. class="three"
  469. cellspacing="0"
  470. cellpadding="0"
  471. border="0"
  472. style="width: 100%; border-bottom: 0"
  473. v-if="printDetails.packDetailList && printDetails.packDetailList.length > 0">
  474. <tbody v-for="(item, index) in printDetails.packDetailList" :key="index">
  475. <tr v-for="(itemAAA, indexAAA) in item.packDetailGoodsList" :key="indexAAA">
  476. <td :rowspan="item.packDetailGoodsList.length" style="text-align: center; width: 100px" v-if="indexAAA === 0">CTN NO.{{ index + 1 }}</td>
  477. <td>
  478. <div style="text-align: center">{{ itemAAA.remark }}</div>
  479. </td>
  480. <td style="text-align: center; width: 100px">
  481. {{ itemAAA.unit }}
  482. </td>
  483. <td style="text-align: center; width: 100px">
  484. {{ itemAAA.quantity }}
  485. </td>
  486. <td :rowspan="item.packDetailGoodsList.length" style="text-align: center; width: 200px; border-right: 0" v-if="indexAAA === 0">
  487. <span v-if="item.boxLong">{{ item.boxLong }}cm</span>
  488. <span>*</span>
  489. <span v-if="item.boxLong">{{ item.boxWide }}cm</span>
  490. <span>*</span>
  491. <span v-if="item.boxLong">{{ item.boxHigh }}cm</span>
  492. <span> / {{ item.roughWeight }}KG</span>
  493. </td>
  494. </tr>
  495. </tbody>
  496. </table>
  497. </div>
  498. <div v-if="[3].includes(openStatus)">
  499. <div style="height: 16px"></div>
  500. <div class="baseRow">
  501. <div class="contentRow" style="width: 100%; font-weight: 700">ACCOUNT INFORMATION:</div>
  502. </div>
  503. <div class="baseRow" style="border-bottom: 1px solid black">
  504. <div class="contentRow" style="width: 100%">
  505. <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">
  506. Beneficiary Name: {{ printDetails.contract.beneficiaryName }}
  507. </div>
  508. <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">
  509. Beneficiary Bank: {{ printDetails.contract.beneficiaryBank }}
  510. </div>
  511. <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">
  512. Beneficiary Bank Address:
  513. {{ printDetails.contract.beneficiaryBankAddress }}
  514. </div>
  515. <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">
  516. Beneficiary Account Number:
  517. {{ printDetails.contract.beneficiaryAccountNumber }}
  518. </div>
  519. <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">
  520. Swift Code: {{ printDetails.contract.swiftCode }}
  521. </div>
  522. <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">
  523. Beneficiary Address:
  524. {{ printDetails.contract.beneficiaryAddress }}
  525. </div>
  526. </div>
  527. </div>
  528. <div style="height: 32px"></div>
  529. <div style="display: flex">
  530. <div style="width: 50%">
  531. <div style="font-weight: 700">CONFIRMED BY VENDOR:</div>
  532. <div>{{ printDetails.corporation.nameEn }}</div>
  533. </div>
  534. <div style="width: 50%">
  535. <div style="font-weight: 700">CONFIRMED BY BUYER:</div>
  536. <div>{{ printDetails.customer.name }}</div>
  537. </div>
  538. </div>
  539. </div>
  540. </div>
  541. <template #footer>
  542. <el-button @click="openPrint = false" size="large">取消</el-button>
  543. <el-button type="primary" @click="clickDownload()" size="large">下载PDF</el-button>
  544. </template>
  545. </el-dialog>
  546. <el-dialog title="打印" v-if="openCustomsDeclaration" v-model="openCustomsDeclaration" width="1460">
  547. <div id="pdfDom" style="width: 1400px; padding: 16px; font-size: 12px !important">
  548. <table cellspacing="0" cellpadding="0" border="0" class="one">
  549. <tr>
  550. <td colspan="8">
  551. <span style="font-weight: 700">出口货物正式报关单草单/申报信息填制模板</span>
  552. </td>
  553. </tr>
  554. <tr>
  555. <td colspan="2" style="background-color: #dce6f1">
  556. <div>发件公司清关负责人</div>
  557. <div>联系电话/手机(必填)</div>
  558. </td>
  559. <td colspan="2" style="background-color: #ebf1de">
  560. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  561. {{ printCustomsDeclaration.content.contacts }}
  562. </div>
  563. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  564. {{ printCustomsDeclaration.content.contactsMobile }}
  565. </div>
  566. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.contacts" size="small" />
  567. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.contactsMobile" size="small" />
  568. </td>
  569. <td colspan="2" style="background-color: #dce6f1">
  570. <span>联系人邮箱</span>
  571. </td>
  572. <td colspan="2" style="background-color: #ebf1de; text-align: left">
  573. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  574. {{ printCustomsDeclaration.content.contactsEmail }}
  575. </div>
  576. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.contactsEmail" size="small" />
  577. </td>
  578. </tr>
  579. <tr style="background-color: #dce6f1">
  580. <td colspan="2">
  581. <span>境内发货人名称(填写发货公司中文名称)</span>
  582. </td>
  583. <td colspan="2">
  584. <span>境内发货人代码(填写18位统一社会信用代码,没有信用证代码填报10位海关备案编码)</span>
  585. </td>
  586. <td colspan="2">
  587. <span>出境关别(不用填写)</span>
  588. </td>
  589. <td colspan="2">
  590. <span>备案号(如是手册的请填写)</span>
  591. </td>
  592. </tr>
  593. <tr>
  594. <td colspan="2">
  595. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  596. {{ printCustomsDeclaration.content.companyNameChinese }}
  597. </div>
  598. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.companyNameChinese" size="small" />
  599. </td>
  600. <td colspan="2">
  601. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  602. {{ printCustomsDeclaration.content.organizationCode }}
  603. </div>
  604. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.organizationCode" size="small" />
  605. </td>
  606. <td colspan="2">
  607. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  608. {{ printCustomsDeclaration.content.exitCustoms }}
  609. </div>
  610. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.exitCustoms" size="small" />
  611. </td>
  612. <td colspan="2">
  613. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  614. {{ printCustomsDeclaration.content.recordNo }}
  615. </div>
  616. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.recordNo" size="small" />
  617. </td>
  618. </tr>
  619. <tr style="background-color: #dce6f1">
  620. <td colspan="2">
  621. <span>境外收货人(指合同买方或合同指定的收货人公司英文名称)</span>
  622. </td>
  623. <td colspan="2">
  624. <span>境外收货人代码(AEO互认企业需填报AEO编码;不填默认非AEO互认)</span>
  625. </td>
  626. <td colspan="2">
  627. <span>运输方式(不用填写)</span>
  628. </td>
  629. <td>
  630. <span>运输工具名称及航次号(不用填写)</span>
  631. </td>
  632. <td>
  633. <span>提运单号(指12位快递运单号码)</span>
  634. </td>
  635. </tr>
  636. <tr>
  637. <td colspan="2" style="background-color: #ebf1de">
  638. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  639. {{ printCustomsDeclaration.content.customerCompanyName }}
  640. </div>
  641. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.customerCompanyName" size="small" />
  642. </td>
  643. <td colspan="2">
  644. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  645. {{ printCustomsDeclaration.content.overseasConsigneeCode }}
  646. </div>
  647. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.overseasConsigneeCode" size="small" />
  648. </td>
  649. <td colspan="2">
  650. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  651. {{ printCustomsDeclaration.content.typeOfShipping }}
  652. </div>
  653. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.typeOfShipping" size="small" />
  654. </td>
  655. <td>
  656. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  657. {{ printCustomsDeclaration.content.meansOfTransport }}
  658. </div>
  659. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.meansOfTransport" size="small" />
  660. </td>
  661. <td>
  662. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  663. {{ printCustomsDeclaration.content.waybillCode }}
  664. </div>
  665. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.waybillCode" size="small" />
  666. </td>
  667. </tr>
  668. <tr style="background-color: #dce6f1">
  669. <td colspan="2">
  670. <span>生产销售单位(指生产该产品的公司名称)</span>
  671. </td>
  672. <td colspan="2">
  673. <span>生产销售单位代码(填写18位统一社会信用代码,没有信用证代码填写“NO”)</span>
  674. </td>
  675. <td colspan="2">
  676. <span>监管方式</span>
  677. </td>
  678. <td>
  679. <span>征免性质(与监管方式对应填写)</span>
  680. </td>
  681. <td>
  682. <span>许可证号(如需许可证的请填写)</span>
  683. </td>
  684. </tr>
  685. <tr>
  686. <td colspan="2">
  687. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  688. {{ printCustomsDeclaration.content.productCompanyNameChinese }}
  689. </div>
  690. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.productCompanyNameChinese" size="small" />
  691. </td>
  692. <td colspan="2">
  693. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  694. {{ printCustomsDeclaration.content.productOrganizationCode }}
  695. </div>
  696. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.productOrganizationCode" size="small" />
  697. </td>
  698. <td colspan="2">
  699. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  700. {{ printCustomsDeclaration.content.supervisionMode }}
  701. </div>
  702. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.supervisionMode" size="small" />
  703. </td>
  704. <td>
  705. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  706. {{ printCustomsDeclaration.content.exemptionNature }}
  707. </div>
  708. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.exemptionNature" size="small" />
  709. </td>
  710. <td>
  711. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  712. {{ printCustomsDeclaration.content.licenseKey }}
  713. </div>
  714. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.licenseKey" size="small" />
  715. </td>
  716. </tr>
  717. <tr style="background-color: #dce6f1">
  718. <td colspan="2">
  719. <span>合同协议号(根据合同填写)</span>
  720. </td>
  721. <td colspan="2">
  722. <span>贸易国(合同买方所在国)</span>
  723. </td>
  724. <td colspan="2">
  725. <span>运抵国</span>
  726. </td>
  727. <td>
  728. <span>指运港(不用填写)</span>
  729. </td>
  730. <td>
  731. <span>离境口岸(不用填写)</span>
  732. </td>
  733. </tr>
  734. <tr>
  735. <td colspan="2" style="background-color: #ebf1de">
  736. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  737. {{ printCustomsDeclaration.content.contractCode }}
  738. </div>
  739. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.contractCode" size="small" />
  740. </td>
  741. <td colspan="2" style="background-color: #ebf1de">
  742. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  743. {{ printCustomsDeclaration.content.tradingCountry }}
  744. </div>
  745. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.tradingCountry" size="small" />
  746. </td>
  747. <td colspan="2" style="background-color: #ebf1de">
  748. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  749. {{ printCustomsDeclaration.content.arrivalCountry }}
  750. </div>
  751. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.arrivalCountry" size="small" />
  752. </td>
  753. <td>
  754. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  755. {{ printCustomsDeclaration.content.portOfDestination }}
  756. </div>
  757. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.portOfDestination" size="small" />
  758. </td>
  759. <td>
  760. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  761. {{ printCustomsDeclaration.content.departurePort }}
  762. </div>
  763. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.departurePort" size="small" />
  764. </td>
  765. </tr>
  766. <tr style="background-color: #dce6f1">
  767. <td>
  768. <span>包装种类</span>
  769. </td>
  770. <td>
  771. <span>件数(运单和装箱单一致)</span>
  772. </td>
  773. <td>
  774. <span>毛重(千克)</span>
  775. </td>
  776. <td>
  777. <span>净重(千克)</span>
  778. </td>
  779. <td>
  780. <span>成交方式</span>
  781. </td>
  782. <td>
  783. <span>运费</span>
  784. </td>
  785. <td>
  786. <span>保费</span>
  787. </td>
  788. <td>
  789. <span>杂费(如有请填写)</span>
  790. </td>
  791. </tr>
  792. <tr>
  793. <td style="background-color: #ebf1de">
  794. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  795. {{ printCustomsDeclaration.content.packageType }}
  796. </div>
  797. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.packageType" size="small" />
  798. </td>
  799. <td style="background-color: #ebf1de">
  800. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  801. {{ printCustomsDeclaration.content.sumPackQuantity }}
  802. </div>
  803. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.sumPackQuantity" size="small" />
  804. </td>
  805. <td style="background-color: #ebf1de">
  806. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  807. {{ printCustomsDeclaration.content.sumRoughWeight }}
  808. </div>
  809. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.sumRoughWeight" size="small" />
  810. </td>
  811. <td style="background-color: #ebf1de">
  812. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  813. {{ printCustomsDeclaration.content.sumNetWeight }}
  814. </div>
  815. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.sumNetWeight" size="small" />
  816. </td>
  817. <td style="background-color: #ebf1de">
  818. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  819. {{ printCustomsDeclaration.content.tradeModeName }}
  820. </div>
  821. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.tradeModeName" size="small" />
  822. </td>
  823. <td>
  824. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  825. {{ printCustomsDeclaration.content.freightPrice }}
  826. </div>
  827. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.freightPrice" size="small" />
  828. </td>
  829. <td>
  830. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  831. {{ printCustomsDeclaration.content.premiumPrice }}
  832. </div>
  833. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.premiumPrice" size="small" />
  834. </td>
  835. <td>
  836. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  837. {{ printCustomsDeclaration.content.incidentalPrice }}
  838. </div>
  839. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.incidentalPrice" size="small" />
  840. </td>
  841. </tr>
  842. <tr>
  843. <td colspan="3" style="background-color: #dce6f1">
  844. <span>随附单证及编号(常见如通关单号、原进口报关单号)</span>
  845. </td>
  846. <td colspan="5">
  847. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  848. {{ printCustomsDeclaration.content.documentsAttached }}
  849. </div>
  850. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.documentsAttached" size="small" />
  851. </td>
  852. </tr>
  853. <tr>
  854. <td colspan="2" style="background-color: #dce6f1">
  855. <span>标记唛码及备注</span>
  856. </td>
  857. <td colspan="2" style="background-color: #ebf1de">
  858. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  859. {{ printCustomsDeclaration.content.shippingMark }}
  860. </div>
  861. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.shippingMark" size="small" />
  862. </td>
  863. <td style="background-color: #dce6f1">
  864. <span>境内货源地</span>
  865. </td>
  866. <td colspan="3" style="background-color: #ebf1de; text-align: left">
  867. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  868. {{ printCustomsDeclaration.content.withinChinaSource }}
  869. </div>
  870. <el-input autosize type="textarea" v-if="!textShow" v-model="printCustomsDeclaration.content.withinChinaSource" size="small" />
  871. </td>
  872. </tr>
  873. </table>
  874. <table cellspacing="0" cellpadding="0" border="0" class="two">
  875. <tr>
  876. <th style="width: 20px">
  877. <span>项号</span>
  878. </th>
  879. <th style="width: 140px">
  880. <span>商品编号(13位)原10位海关编码+3位检验检疫附加编码</span>
  881. </th>
  882. <th style="width: 140px">
  883. <span>商品名称</span>
  884. </th>
  885. <th>
  886. <span>品牌</span>
  887. </th>
  888. <th>
  889. <span>品牌类型</span>
  890. </th>
  891. <th style="width: 140px">
  892. <span>出口享惠情况(不填写则默认不享受)</span>
  893. </th>
  894. <th>
  895. <span>型号</span>
  896. </th>
  897. <th style="width: 140px">
  898. <span>税号所需申报要素(如:用途、材质等)</span>
  899. </th>
  900. <th>
  901. <span>各项净重</span>
  902. </th>
  903. <th>
  904. <span>成交数量</span>
  905. </th>
  906. <th>
  907. <span>成交单位</span>
  908. </th>
  909. <th>
  910. <span>原产国(地区)</span>
  911. </th>
  912. <th>
  913. <span>总价与币制</span>
  914. </th>
  915. <th>
  916. <span>成交单价</span>
  917. </th>
  918. <th>
  919. <span>EXW 单价</span>
  920. </th>
  921. </tr>
  922. <template v-if="printCustomsDeclaration.content.products && printCustomsDeclaration.content.products.length > 0">
  923. <tr v-for="(item, index) in printCustomsDeclaration.content.products" :key="index">
  924. <td>
  925. <span>{{ index + 1 }}</span>
  926. </td>
  927. <td>
  928. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  929. {{ item.customsCode }}
  930. </div>
  931. <el-input autosize type="textarea" v-if="!textShow" v-model="item.customsCode" size="small" />
  932. </td>
  933. <td>
  934. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  935. {{ item.productName }}
  936. </div>
  937. <el-input autosize type="textarea" v-if="!textShow" v-model="item.productName" size="small" />
  938. </td>
  939. <td>
  940. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  941. {{ item.brand }}
  942. </div>
  943. <el-input autosize type="textarea" v-if="!textShow" v-model="item.brand" size="small" />
  944. </td>
  945. <td>
  946. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  947. {{ item.brandType }}
  948. </div>
  949. <el-input autosize type="textarea" v-if="!textShow" v-model="item.brandType" size="small" />
  950. </td>
  951. <td>
  952. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  953. {{ item.exportBenefits }}
  954. </div>
  955. <el-input autosize type="textarea" v-if="!textShow" v-model="item.exportBenefits" size="small" />
  956. </td>
  957. <td>
  958. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  959. {{ item.productModelChinese }}
  960. </div>
  961. <el-input autosize type="textarea" v-if="!textShow" v-model="item.productModelChinese" size="small" />
  962. </td>
  963. <td>
  964. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  965. {{ item.declareRemark }}
  966. </div>
  967. <el-input autosize type="textarea" v-if="!textShow" v-model="item.declareRemark" size="small" />
  968. </td>
  969. <td>
  970. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  971. {{ item.netWeight }}
  972. </div>
  973. <el-input autosize type="textarea" v-if="!textShow" v-model="item.netWeight" size="small" />
  974. </td>
  975. <td>
  976. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  977. {{ item.quantity }}
  978. </div>
  979. <el-input autosize type="textarea" v-if="!textShow" v-model="item.quantity" size="small" />
  980. </td>
  981. <td>
  982. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  983. {{ item.unit }}
  984. </div>
  985. <el-input autosize type="textarea" v-if="!textShow" v-model="item.unit" size="small" />
  986. </td>
  987. <td>
  988. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  989. {{ item.countryChinese }}
  990. </div>
  991. <el-input autosize type="textarea" v-if="!textShow" v-model="item.countryChinese" size="small" />
  992. </td>
  993. <td>
  994. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  995. {{ item.sumPrice }}
  996. </div>
  997. <el-input autosize type="textarea" v-if="!textShow" v-model="item.sumPrice" size="small" />
  998. </td>
  999. <td>
  1000. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  1001. {{ item.declaredPrice }}
  1002. </div>
  1003. <el-input autosize type="textarea" v-if="!textShow" v-model="item.declaredPrice" size="small" />
  1004. </td>
  1005. <td>
  1006. <div style="word-wrap: break-word; padding: 0 4px" v-if="textShow">
  1007. {{ item.exwPrice }}
  1008. </div>
  1009. <el-input autosize type="textarea" v-if="!textShow" v-model="item.exwPrice" size="small" />
  1010. </td>
  1011. </tr>
  1012. </template>
  1013. <tr>
  1014. <td colspan="15" style="text-align: left; padding-left: 8px">
  1015. <span style="color: red">
  1016. 我司保证以上所提供的信息及资料准确无误,如在海关申报、查验时有任何异议,所造成的损失及后果由我司承担。 确认签名/盖章:_________________________
  1017. </span>
  1018. </td>
  1019. </tr>
  1020. </table>
  1021. </div>
  1022. <template #footer>
  1023. <el-button @click="openCustomsDeclaration = false" size="large">取消</el-button>
  1024. <el-button type="primary" @click="clickDownload()" size="large">下载PDF</el-button>
  1025. <el-button type="primary" @click="clickSave()" size="large">保存</el-button>
  1026. </template>
  1027. </el-dialog>
  1028. </div>
  1029. </template>
  1030. <script setup>
  1031. import { computed, ref } from "vue";
  1032. import byTable from "@/components/byTable/index";
  1033. import byForm from "@/components/byForm/index";
  1034. import { ElMessage, ElMessageBox } from "element-plus";
  1035. import useUserStore from "@/store/modules/user";
  1036. const { proxy } = getCurrentInstance();
  1037. const shipmentList = ref([]);
  1038. const countryData = ref([]);
  1039. const fundsPaymentMethod = ref([]);
  1040. const shippingMethod = ref([]);
  1041. const tradeMethods = ref([]);
  1042. const accountCurrency = ref([]);
  1043. const productUnit = ref([]);
  1044. const sourceList = ref({
  1045. data: [],
  1046. pagination: {
  1047. total: 0,
  1048. pageNum: 1,
  1049. pageSize: 10,
  1050. keyword: "",
  1051. warehouseId: "",
  1052. toWarehouseId: "",
  1053. type: "3",
  1054. },
  1055. });
  1056. const loading = ref(false);
  1057. const config = computed(() => {
  1058. return [
  1059. {
  1060. attrs: {
  1061. label: "归属公司",
  1062. prop: "sellCorporationName",
  1063. "min-width": 260,
  1064. },
  1065. },
  1066. {
  1067. attrs: {
  1068. label: "客户名称",
  1069. prop: "buyCorporationName",
  1070. "min-width": 200,
  1071. },
  1072. },
  1073. {
  1074. attrs: {
  1075. label: "主合同编号",
  1076. prop: "code",
  1077. width: 200,
  1078. },
  1079. },
  1080. {
  1081. attrs: {
  1082. label: "货运详情",
  1083. slot: "acceptCode",
  1084. width: 200,
  1085. },
  1086. },
  1087. {
  1088. attrs: {
  1089. label: "查看单证",
  1090. slot: "toView",
  1091. width: 140,
  1092. },
  1093. },
  1094. {
  1095. attrs: {
  1096. label: "创建时间",
  1097. prop: "createTime",
  1098. width: 160,
  1099. },
  1100. },
  1101. {
  1102. attrs: {
  1103. label: "操作",
  1104. width: "80",
  1105. align: "center",
  1106. },
  1107. renderHTML(row) {
  1108. return [
  1109. {
  1110. attrs: {
  1111. label: "删除",
  1112. type: "primary",
  1113. text: true,
  1114. },
  1115. el: "button",
  1116. click() {
  1117. ElMessageBox.confirm("此操作将永久删除该数据, 是否继续?", "提示", {
  1118. confirmButtonText: "确定",
  1119. cancelButtonText: "取消",
  1120. type: "warning",
  1121. }).then(() => {
  1122. proxy
  1123. .post("/documents/delete", {
  1124. id: row.id,
  1125. })
  1126. .then(() => {
  1127. ElMessage({
  1128. message: "删除成功",
  1129. type: "success",
  1130. });
  1131. getList();
  1132. });
  1133. });
  1134. },
  1135. },
  1136. ];
  1137. },
  1138. },
  1139. ];
  1140. });
  1141. const getDict = () => {
  1142. proxy.post("/customizeArea/list", { parentId: "0" }).then((res) => {
  1143. if (res && res.length > 0) {
  1144. countryData.value = res.map((item) => {
  1145. return {
  1146. label: item.name,
  1147. value: item.id,
  1148. };
  1149. });
  1150. }
  1151. });
  1152. proxy
  1153. .post("/dictTenantData/page", {
  1154. pageNum: 1,
  1155. pageSize: 999,
  1156. dictCode: "funds_payment_method",
  1157. tenantId: useUserStore().user.tenantId,
  1158. })
  1159. .then((res) => {
  1160. if (res.rows && res.rows.length > 0) {
  1161. fundsPaymentMethod.value = res.rows.map((item) => {
  1162. return {
  1163. label: item.dictValue,
  1164. value: item.dictKey,
  1165. };
  1166. });
  1167. }
  1168. });
  1169. proxy
  1170. .post("/dictTenantData/page", {
  1171. pageNum: 1,
  1172. pageSize: 999,
  1173. dictCode: "shipping_method",
  1174. tenantId: useUserStore().user.tenantId,
  1175. })
  1176. .then((res) => {
  1177. if (res.rows && res.rows.length > 0) {
  1178. shippingMethod.value = res.rows.map((item) => {
  1179. return {
  1180. label: item.dictValue,
  1181. value: item.dictKey,
  1182. };
  1183. });
  1184. }
  1185. });
  1186. proxy
  1187. .post("/dictTenantData/page", {
  1188. pageNum: 1,
  1189. pageSize: 999,
  1190. dictCode: "trade_mode",
  1191. tenantId: useUserStore().user.tenantId,
  1192. })
  1193. .then((res) => {
  1194. if (res.rows && res.rows.length > 0) {
  1195. tradeMethods.value = res.rows.map((item) => {
  1196. return {
  1197. label: item.dictValue,
  1198. value: item.dictKey,
  1199. };
  1200. });
  1201. }
  1202. });
  1203. proxy
  1204. .post("/dictTenantData/page", {
  1205. pageNum: 1,
  1206. pageSize: 999,
  1207. dictCode: "account_currency",
  1208. tenantId: useUserStore().user.tenantId,
  1209. })
  1210. .then((res) => {
  1211. if (res.rows && res.rows.length > 0) {
  1212. accountCurrency.value = res.rows.map((item) => {
  1213. return {
  1214. label: item.dictValue,
  1215. value: item.dictKey,
  1216. };
  1217. });
  1218. }
  1219. });
  1220. proxy
  1221. .post("/dictTenantData/page", {
  1222. pageNum: 1,
  1223. pageSize: 999,
  1224. dictCode: "unit",
  1225. tenantId: useUserStore().user.tenantId,
  1226. })
  1227. .then((res) => {
  1228. if (res.rows && res.rows.length > 0) {
  1229. productUnit.value = res.rows.map((item) => {
  1230. return {
  1231. label: item.dictValue,
  1232. value: item.dictKey,
  1233. };
  1234. });
  1235. }
  1236. });
  1237. };
  1238. const getList = async (req) => {
  1239. sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
  1240. loading.value = true;
  1241. proxy.post("/documents/page", sourceList.value.pagination).then((res) => {
  1242. sourceList.value.data = res.rows;
  1243. sourceList.value.pagination.total = res.total;
  1244. setTimeout(() => {
  1245. loading.value = false;
  1246. }, 200);
  1247. });
  1248. };
  1249. getDict();
  1250. getList();
  1251. const dialogVisible = ref(false);
  1252. const loadingDialog = ref(false);
  1253. const submit = ref(null);
  1254. const formOption = reactive({
  1255. inline: true,
  1256. labelWidth: 100,
  1257. itemWidth: 100,
  1258. rules: [],
  1259. });
  1260. const formData = reactive({
  1261. data: {
  1262. documentsProductList: [],
  1263. },
  1264. });
  1265. const formConfig = computed(() => {
  1266. return [
  1267. {
  1268. type: "select",
  1269. prop: "contractId",
  1270. label: "出货主合同",
  1271. required: true,
  1272. data: shipmentList.value,
  1273. fn: (val) => {
  1274. changeContract(val);
  1275. },
  1276. },
  1277. {
  1278. type: "slot",
  1279. slotName: "details",
  1280. label: "产品信息",
  1281. },
  1282. {
  1283. label: "唛头信息",
  1284. },
  1285. {
  1286. type: "select",
  1287. prop: "countryId",
  1288. label: "目的国",
  1289. required: true,
  1290. filterable: true,
  1291. data: countryData.value,
  1292. itemWidth: 40,
  1293. },
  1294. {
  1295. type: "input",
  1296. prop: "portOfDestination",
  1297. label: "目的港",
  1298. itemWidth: 60,
  1299. },
  1300. {
  1301. type: "input",
  1302. prop: "remark",
  1303. label: "唛头明细",
  1304. itemType: "textarea",
  1305. },
  1306. ];
  1307. });
  1308. const rules = ref({
  1309. contractId: [{ required: true, message: "请选择出货主合同", trigger: "change" }],
  1310. countryId: [{ required: true, message: "请选择目的国", trigger: "change" }],
  1311. describes: [{ required: true, message: "请输入货物描述", trigger: "blur" }],
  1312. subDescribe: [{ required: true, message: "请输入副描述", trigger: "blur" }],
  1313. customsCode: [{ required: true, message: "请输入海关编码", trigger: "blur" }],
  1314. quantity: [{ required: true, message: "请输入数量", trigger: "blur" }],
  1315. price: [{ required: true, message: "请输入单价", trigger: "blur" }],
  1316. });
  1317. const openModal = () => {
  1318. proxy.post("/packShipment/list", {}).then((res) => {
  1319. if (res && res.length > 0) {
  1320. shipmentList.value = res.map((item) => {
  1321. return {
  1322. packShipmentId: item.id,
  1323. label: item.contractCode,
  1324. value: item.contractId,
  1325. packDetailIds: item.packDetailIds,
  1326. };
  1327. });
  1328. } else {
  1329. shipmentList.value = [];
  1330. }
  1331. });
  1332. formData.data = {
  1333. documentsProductList: [],
  1334. };
  1335. loadingDialog.value = false;
  1336. dialogVisible.value = true;
  1337. };
  1338. const changeContract = (val) => {
  1339. if (val) {
  1340. let data = shipmentList.value.filter((item) => item.value === val);
  1341. if (data && data.length > 0) {
  1342. formData.data.packShipmentId = data[0].packShipmentId;
  1343. proxy
  1344. .post("/packShipment/productDetailList", {
  1345. packDetailIds: data[0].packDetailIds,
  1346. })
  1347. .then((res) => {
  1348. if (res && res.length > 0) {
  1349. formData.data.documentsProductList = res.map((item) => {
  1350. return {
  1351. businessId: item.businessId,
  1352. productId: item.productId,
  1353. describes: item.remark,
  1354. subDescribe: item.subDescription,
  1355. customsCode: item.customsCode,
  1356. quantity: item.quantity,
  1357. price: item.price,
  1358. type: item.type,
  1359. };
  1360. });
  1361. } else {
  1362. formData.data.documentsProductList = [];
  1363. }
  1364. });
  1365. } else {
  1366. formData.data.documentsProductList = [];
  1367. }
  1368. proxy.post("/contract/detail", { id: val }).then((res) => {
  1369. formData.data.countryId = res.buyCountryId;
  1370. });
  1371. } else {
  1372. formData.data.documentsProductList = [];
  1373. }
  1374. };
  1375. const submitForm = () => {
  1376. submit.value.handleSubmit(() => {
  1377. loadingDialog.value = true;
  1378. proxy.post("/documents/add", formData.data).then(
  1379. () => {
  1380. ElMessage({
  1381. message: "提交成功",
  1382. type: "success",
  1383. });
  1384. dialogVisible.value = false;
  1385. sourceList.value.pagination.pageNum = 1;
  1386. getList();
  1387. },
  1388. (err) => {
  1389. console.log(err);
  1390. loadingDialog.value = false;
  1391. }
  1392. );
  1393. });
  1394. };
  1395. const openAddAcceptCode = ref(false);
  1396. const loadingTwo = ref(false);
  1397. const submitTwo = ref(null);
  1398. const fileList = ref([]);
  1399. const uploadData = ref({});
  1400. const formDataTwo = reactive({
  1401. data: {
  1402. documentsId: "",
  1403. },
  1404. });
  1405. const formConfigTwo = computed(() => {
  1406. return [
  1407. {
  1408. type: "input",
  1409. prop: "acceptCarriage",
  1410. label: "承运方",
  1411. itemType: "text",
  1412. itemWidth: 40,
  1413. },
  1414. {
  1415. type: "input",
  1416. prop: "code",
  1417. label: "单号",
  1418. itemType: "text",
  1419. itemWidth: 60,
  1420. },
  1421. {
  1422. type: "slot",
  1423. prop: "departureTime",
  1424. slotName: "departureTime",
  1425. label: "起运时间",
  1426. },
  1427. {
  1428. type: "input",
  1429. prop: "remark",
  1430. label: "备注",
  1431. itemType: "textarea",
  1432. },
  1433. {
  1434. type: "slot",
  1435. prop: "file",
  1436. slotName: "file",
  1437. label: "上传附件",
  1438. },
  1439. ];
  1440. });
  1441. const rulesTwo = ref({
  1442. acceptCarriage: [{ required: true, message: "请输入承运方", trigger: "blur" }],
  1443. code: [{ required: true, message: "请输入承运单号", trigger: "blur" }],
  1444. departureTime: [{ required: true, message: "请选择起运时间", trigger: "change" }],
  1445. });
  1446. const clickAddAcceptCode = (item) => {
  1447. formDataTwo.data = {
  1448. documentsId: item.id,
  1449. };
  1450. fileList.value = [];
  1451. openAddAcceptCode.value = true;
  1452. };
  1453. const uploadFile = async (file) => {
  1454. const res = await proxy.post("/fileInfo/getSing", { fileName: file.name });
  1455. uploadData.value = res.uploadBody;
  1456. file.id = res.id;
  1457. file.fileName = res.fileName;
  1458. file.fileUrl = res.fileUrl;
  1459. return true;
  1460. };
  1461. const onPreviewFile = (file) => {
  1462. window.open(file.raw.fileUrl, "_blank");
  1463. };
  1464. const submitTwoForm = () => {
  1465. submitTwo.value.handleSubmit(() => {
  1466. if (fileList.value && fileList.value.length > 0) {
  1467. formDataTwo.data.fileList = fileList.value.map((item) => {
  1468. return {
  1469. id: item.raw.id,
  1470. fileName: item.raw.fileName,
  1471. fileUrl: item.raw.fileUrl,
  1472. };
  1473. });
  1474. } else {
  1475. formDataTwo.data.fileList = [];
  1476. }
  1477. loadingTwo.value = true;
  1478. proxy.post("/documentsTransport/add", formDataTwo.data).then(
  1479. () => {
  1480. ElMessage({
  1481. message: "提交成功",
  1482. type: "success",
  1483. });
  1484. openAddAcceptCode.value = false;
  1485. getList();
  1486. },
  1487. (err) => {
  1488. console.log(err);
  1489. loadingTwo.value = false;
  1490. }
  1491. );
  1492. });
  1493. };
  1494. const rowData = ref({});
  1495. const openSelectPrint = ref(false);
  1496. const clickToView = (item) => {
  1497. rowData.value = item;
  1498. openSelectPrint.value = true;
  1499. printDetails.value = {
  1500. packDetailGoodsList: [],
  1501. documents: {},
  1502. contract: {},
  1503. corporation: {},
  1504. packDetailList: [],
  1505. documentsProducts: [],
  1506. customer: {},
  1507. };
  1508. proxy.get("/documents/generateInvoiceAPackPdf", { id: rowData.value.id }).then((res) => {
  1509. printDetails.value = res.data;
  1510. });
  1511. };
  1512. const openPrint = ref(false);
  1513. const openStatus = ref("");
  1514. const printDetails = ref({
  1515. packDetailGoodsList: [],
  1516. documents: {},
  1517. contract: {},
  1518. contractProjectList: [],
  1519. corporation: {},
  1520. packDetailList: [],
  1521. documentsProducts: [],
  1522. customer: {},
  1523. });
  1524. const openCustomsDeclaration = ref(false);
  1525. const printCustomsDeclaration = ref({
  1526. content: {},
  1527. });
  1528. const textShow = ref(false);
  1529. const clickPrint = (status) => {
  1530. // printDetails.value = {
  1531. // packDetailGoodsList: [],
  1532. // documents: {},
  1533. // contract: {},
  1534. // contractProjectList: [],
  1535. // corporation: {},
  1536. // packDetailList: [],
  1537. // documentsProducts: [],
  1538. // customer: {},
  1539. // };
  1540. if ([1, 2, 3].includes(status)) {
  1541. openStatus.value = status;
  1542. openPrint.value = true;
  1543. } else {
  1544. printCustomsDeclaration.value = {
  1545. content: {},
  1546. };
  1547. openStatus.value = status;
  1548. textShow.value = false;
  1549. openCustomsDeclaration.value = true;
  1550. proxy.get("/documents/generateClearanceePdf", { id: rowData.value.id }).then((res) => {
  1551. if (res.data.content) {
  1552. res.data.content = JSON.parse(res.data.content);
  1553. }
  1554. printCustomsDeclaration.value = res.data;
  1555. });
  1556. }
  1557. // proxy.get("/documents/generateInvoiceAPackPdf", { id: rowData.value.id }).then((res) => {
  1558. // printDetails.value = res.data;
  1559. // });
  1560. };
  1561. const clickDownload = () => {
  1562. if (openStatus.value === 1) {
  1563. proxy.getPdf("装箱单PDF文件");
  1564. } else if (openStatus.value === 2) {
  1565. proxy.getPdf("商业发票PDF文件");
  1566. } else if (openStatus.value === 3) {
  1567. proxy.getPdf("销售确认书PDF文件");
  1568. } else if (openStatus.value === 4) {
  1569. textShow.value = true;
  1570. let data = proxy.deepClone(printCustomsDeclaration.value);
  1571. data.content = JSON.stringify(data.content);
  1572. proxy.post("/documentsPdf/add", data).then();
  1573. setTimeout(() => {
  1574. proxy.getPdfTransverseA4("报关单PDF文件");
  1575. nextTick(() => {
  1576. setTimeout(() => {
  1577. textShow.value = false;
  1578. }, 1000);
  1579. });
  1580. }, 1000);
  1581. }
  1582. };
  1583. const clickSave = () => {
  1584. if (openStatus.value === 1) {
  1585. proxy.getPdf("装箱单PDF文件");
  1586. } else if (openStatus.value === 2) {
  1587. proxy.getPdf("商业发票PDF文件");
  1588. } else if (openStatus.value === 3) {
  1589. proxy.getPdf("销售确认书PDF文件");
  1590. } else if (openStatus.value === 4) {
  1591. textShow.value = true;
  1592. let data = proxy.deepClone(printCustomsDeclaration.value);
  1593. data.content = JSON.stringify(data.content);
  1594. proxy.post("/documentsPdf/add", data).then((res) => {
  1595. ElMessage({
  1596. message: "保存成功",
  1597. type: "success",
  1598. });
  1599. });
  1600. }
  1601. };
  1602. const getStyle = (text) => {
  1603. if (text) {
  1604. return text.replace(/\n|\r\n/g, "<br>");
  1605. } else {
  1606. return "";
  1607. }
  1608. };
  1609. const statistics = (label, label2, index) => {
  1610. let num = 0;
  1611. if (printDetails.value.documentsProducts && printDetails.value.documentsProducts.length > 0) {
  1612. printDetails.value.documentsProducts.map((item) => {
  1613. if (label2) {
  1614. if (item[label] && item[label2]) {
  1615. num = parseFloat(Number(num) + Number(item[label]) * Number(item[label2])).toFixed(index);
  1616. }
  1617. } else {
  1618. if (item[label]) {
  1619. num = parseFloat(Number(num) + Number(item[label])).toFixed(index);
  1620. }
  1621. }
  1622. });
  1623. }
  1624. return num;
  1625. };
  1626. const getAllMoney = (num) => {
  1627. let money = num;
  1628. if (printDetails.value.contractProjectList && printDetails.value.contractProjectList.length > 0) {
  1629. printDetails.value.contractProjectList.map((item) => {
  1630. if (item.amount) {
  1631. money = parseFloat(Number(money) + Number(item.amount)).toFixed(2);
  1632. }
  1633. });
  1634. }
  1635. return money;
  1636. };
  1637. </script>
  1638. <style lang="scss" scoped>
  1639. .tenant {
  1640. padding: 20px;
  1641. }
  1642. ::v-deep(.el-input-number .el-input__inner) {
  1643. text-align: left;
  1644. }
  1645. .baseRow {
  1646. min-height: 20px;
  1647. border-top: 1px solid black;
  1648. border-left: 1px solid black;
  1649. }
  1650. .contentRow {
  1651. border-right: 1px solid black;
  1652. line-height: 20px;
  1653. padding-left: 4px;
  1654. }
  1655. .three {
  1656. width: 100%;
  1657. border: 1px solid black;
  1658. }
  1659. .three thead {
  1660. text-align: center;
  1661. line-height: 20px;
  1662. font-weight: 700;
  1663. }
  1664. .three th {
  1665. border-right: 1px solid black;
  1666. border-bottom: 1px solid black;
  1667. }
  1668. .three td {
  1669. line-height: 20px;
  1670. border-right: 1px solid black;
  1671. border-bottom: 1px solid black;
  1672. }
  1673. .one {
  1674. width: 100%;
  1675. text-align: center;
  1676. border-top: 1px solid black;
  1677. border-left: 1px solid black;
  1678. table-layout: fixed;
  1679. }
  1680. .one td {
  1681. border: 0;
  1682. line-height: 18px;
  1683. border-right: 1px solid black;
  1684. border-bottom: 1px solid black;
  1685. }
  1686. .two {
  1687. width: 100%;
  1688. text-align: center;
  1689. border-top: 1px solid black;
  1690. border-left: 1px solid black;
  1691. table-layout: fixed;
  1692. }
  1693. .two th {
  1694. border: 0;
  1695. line-height: 18px;
  1696. border-right: 1px solid black;
  1697. border-bottom: 1px solid black;
  1698. background-color: #dce6f1;
  1699. }
  1700. .two td {
  1701. border: 0;
  1702. line-height: 18px;
  1703. border-right: 1px solid black;
  1704. border-bottom: 1px solid black;
  1705. }
  1706. :deep(#pdfDom .el-textarea__inner) {
  1707. background: transparent !important;
  1708. overflow-y: hidden;
  1709. padding: 0 4px !important;
  1710. resize: none;
  1711. }
  1712. :deep(#pdfDom .el-textarea) {
  1713. --el-input-focus-border: transparent;
  1714. --el-input-transparent-border: 0 0 0 0px;
  1715. --el-input-border-color: transparent;
  1716. --el-input-hover-border: 0px !important;
  1717. --el-input-hover-border-color: transparent;
  1718. --el-input-focus-border-color: transparent;
  1719. --el-input-clear-hover-color: transparent;
  1720. box-shadow: 0 0 0 0px !important;
  1721. --el-input-border: 0px;
  1722. }
  1723. </style>