index.vue 67 KB

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