index.vue 68 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727
  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.buyAddress }},{{ printDetails.contract.buyPostalCode }},{{ printDetails.contract.buyCityName }},{{
  157. printDetails.contract.buyProvinceName
  158. }},{{ printDetails.contract.buyCountryName }}
  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.sellAddress }},{{ printDetails.contract.sellCityName }},{{ printDetails.contract.sellProvinceName }},{{
  169. printDetails.contract.sellCountryName
  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.sellAddress }},{{ printDetails.contract.sellCityName }},{{ printDetails.contract.sellProvinceName }},{{
  183. printDetails.contract.sellCountryName
  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.buyAddress }},{{ printDetails.contract.buyPostalCode }},{{ printDetails.contract.buyCityName }},{{
  194. printDetails.contract.buyProvinceName
  195. }},{{ printDetails.contract.buyCountryName }}
  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.sumNetWeight }}
  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. <el-button type="primary" @click="clickSave()" size="large">保存</el-button>
  1022. </template>
  1023. </el-dialog>
  1024. </div>
  1025. </template>
  1026. <script setup>
  1027. import { computed, ref } from "vue";
  1028. import byTable from "@/components/byTable/index";
  1029. import byForm from "@/components/byForm/index";
  1030. import { ElMessage, ElMessageBox } from "element-plus";
  1031. import useUserStore from "@/store/modules/user";
  1032. const { proxy } = getCurrentInstance();
  1033. const shipmentList = ref([]);
  1034. const countryData = ref([]);
  1035. const fundsPaymentMethod = ref([]);
  1036. const shippingMethod = ref([]);
  1037. const tradeMethods = ref([]);
  1038. const accountCurrency = ref([]);
  1039. const productUnit = ref([]);
  1040. const sourceList = ref({
  1041. data: [],
  1042. pagination: {
  1043. total: 0,
  1044. pageNum: 1,
  1045. pageSize: 10,
  1046. keyword: "",
  1047. warehouseId: "",
  1048. toWarehouseId: "",
  1049. type: "3",
  1050. },
  1051. });
  1052. const loading = ref(false);
  1053. const config = computed(() => {
  1054. return [
  1055. {
  1056. attrs: {
  1057. label: "归属公司",
  1058. prop: "sellCorporationName",
  1059. "min-width": 260,
  1060. },
  1061. },
  1062. {
  1063. attrs: {
  1064. label: "客户名称",
  1065. prop: "buyCorporationName",
  1066. "min-width": 200,
  1067. },
  1068. },
  1069. {
  1070. attrs: {
  1071. label: "主合同编号",
  1072. prop: "code",
  1073. width: 200,
  1074. },
  1075. },
  1076. {
  1077. attrs: {
  1078. label: "货运详情",
  1079. slot: "acceptCode",
  1080. width: 200,
  1081. },
  1082. },
  1083. {
  1084. attrs: {
  1085. label: "查看单证",
  1086. slot: "toView",
  1087. width: 140,
  1088. },
  1089. },
  1090. {
  1091. attrs: {
  1092. label: "创建时间",
  1093. prop: "createTime",
  1094. width: 160,
  1095. },
  1096. },
  1097. {
  1098. attrs: {
  1099. label: "操作",
  1100. width: "80",
  1101. align: "center",
  1102. },
  1103. renderHTML(row) {
  1104. return [
  1105. {
  1106. attrs: {
  1107. label: "删除",
  1108. type: "primary",
  1109. text: true,
  1110. },
  1111. el: "button",
  1112. click() {
  1113. ElMessageBox.confirm("此操作将永久删除该数据, 是否继续?", "提示", {
  1114. confirmButtonText: "确定",
  1115. cancelButtonText: "取消",
  1116. type: "warning",
  1117. }).then(() => {
  1118. proxy
  1119. .post("/documents/delete", {
  1120. id: row.id,
  1121. })
  1122. .then(() => {
  1123. ElMessage({
  1124. message: "删除成功",
  1125. type: "success",
  1126. });
  1127. getList();
  1128. });
  1129. });
  1130. },
  1131. },
  1132. ];
  1133. },
  1134. },
  1135. ];
  1136. });
  1137. const getDict = () => {
  1138. proxy.post("/customizeArea/list", { parentId: "0" }).then((res) => {
  1139. if (res && res.length > 0) {
  1140. countryData.value = res.map((item) => {
  1141. return {
  1142. label: item.name,
  1143. value: item.id,
  1144. };
  1145. });
  1146. }
  1147. });
  1148. proxy
  1149. .post("/dictTenantData/page", {
  1150. pageNum: 1,
  1151. pageSize: 999,
  1152. dictCode: "funds_payment_method",
  1153. tenantId: useUserStore().user.tenantId,
  1154. })
  1155. .then((res) => {
  1156. if (res.rows && res.rows.length > 0) {
  1157. fundsPaymentMethod.value = res.rows.map((item) => {
  1158. return {
  1159. label: item.dictValue,
  1160. value: item.dictKey,
  1161. };
  1162. });
  1163. }
  1164. });
  1165. proxy
  1166. .post("/dictTenantData/page", {
  1167. pageNum: 1,
  1168. pageSize: 999,
  1169. dictCode: "shipping_method",
  1170. tenantId: useUserStore().user.tenantId,
  1171. })
  1172. .then((res) => {
  1173. if (res.rows && res.rows.length > 0) {
  1174. shippingMethod.value = res.rows.map((item) => {
  1175. return {
  1176. label: item.dictValue,
  1177. value: item.dictKey,
  1178. };
  1179. });
  1180. }
  1181. });
  1182. proxy
  1183. .post("/dictTenantData/page", {
  1184. pageNum: 1,
  1185. pageSize: 999,
  1186. dictCode: "trade_mode",
  1187. tenantId: useUserStore().user.tenantId,
  1188. })
  1189. .then((res) => {
  1190. if (res.rows && res.rows.length > 0) {
  1191. tradeMethods.value = res.rows.map((item) => {
  1192. return {
  1193. label: item.dictValue,
  1194. value: item.dictKey,
  1195. };
  1196. });
  1197. }
  1198. });
  1199. proxy
  1200. .post("/dictTenantData/page", {
  1201. pageNum: 1,
  1202. pageSize: 999,
  1203. dictCode: "account_currency",
  1204. tenantId: useUserStore().user.tenantId,
  1205. })
  1206. .then((res) => {
  1207. if (res.rows && res.rows.length > 0) {
  1208. accountCurrency.value = res.rows.map((item) => {
  1209. return {
  1210. label: item.dictValue,
  1211. value: item.dictKey,
  1212. };
  1213. });
  1214. }
  1215. });
  1216. proxy
  1217. .post("/dictTenantData/page", {
  1218. pageNum: 1,
  1219. pageSize: 999,
  1220. dictCode: "unit",
  1221. tenantId: useUserStore().user.tenantId,
  1222. })
  1223. .then((res) => {
  1224. if (res.rows && res.rows.length > 0) {
  1225. productUnit.value = res.rows.map((item) => {
  1226. return {
  1227. label: item.dictValue,
  1228. value: item.dictKey,
  1229. };
  1230. });
  1231. }
  1232. });
  1233. };
  1234. const getList = async (req) => {
  1235. sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
  1236. loading.value = true;
  1237. proxy.post("/documents/page", sourceList.value.pagination).then((res) => {
  1238. sourceList.value.data = res.rows;
  1239. sourceList.value.pagination.total = res.total;
  1240. setTimeout(() => {
  1241. loading.value = false;
  1242. }, 200);
  1243. });
  1244. };
  1245. getDict();
  1246. getList();
  1247. const dialogVisible = ref(false);
  1248. const loadingDialog = ref(false);
  1249. const submit = ref(null);
  1250. const formOption = reactive({
  1251. inline: true,
  1252. labelWidth: 100,
  1253. itemWidth: 100,
  1254. rules: [],
  1255. });
  1256. const formData = reactive({
  1257. data: {
  1258. documentsProductList: [],
  1259. },
  1260. });
  1261. const formConfig = computed(() => {
  1262. return [
  1263. {
  1264. type: "select",
  1265. prop: "contractId",
  1266. label: "出货主合同",
  1267. required: true,
  1268. data: shipmentList.value,
  1269. fn: (val) => {
  1270. changeContract(val);
  1271. },
  1272. },
  1273. {
  1274. type: "slot",
  1275. slotName: "details",
  1276. label: "产品信息",
  1277. },
  1278. {
  1279. label: "唛头信息",
  1280. },
  1281. {
  1282. type: "select",
  1283. prop: "countryId",
  1284. label: "目的国",
  1285. required: true,
  1286. filterable: true,
  1287. data: countryData.value,
  1288. itemWidth: 40,
  1289. },
  1290. {
  1291. type: "input",
  1292. prop: "portOfDestination",
  1293. label: "目的港",
  1294. itemWidth: 60,
  1295. },
  1296. {
  1297. type: "input",
  1298. prop: "remark",
  1299. label: "唛头明细",
  1300. itemType: "textarea",
  1301. },
  1302. ];
  1303. });
  1304. const rules = ref({
  1305. contractId: [{ required: true, message: "请选择出货主合同", trigger: "change" }],
  1306. countryId: [{ required: true, message: "请选择目的国", trigger: "change" }],
  1307. describes: [{ required: true, message: "请输入货物描述", trigger: "blur" }],
  1308. subDescribe: [{ required: true, message: "请输入副描述", trigger: "blur" }],
  1309. customsCode: [{ required: true, message: "请输入海关编码", trigger: "blur" }],
  1310. quantity: [{ required: true, message: "请输入数量", trigger: "blur" }],
  1311. price: [{ required: true, message: "请输入单价", trigger: "blur" }],
  1312. });
  1313. const openModal = () => {
  1314. proxy.post("/packShipment/list", {}).then((res) => {
  1315. if (res && res.length > 0) {
  1316. shipmentList.value = res.map((item) => {
  1317. return {
  1318. packShipmentId: item.id,
  1319. label: item.contractCode,
  1320. value: item.contractId,
  1321. packDetailIds: item.packDetailIds,
  1322. };
  1323. });
  1324. } else {
  1325. shipmentList.value = [];
  1326. }
  1327. });
  1328. formData.data = {
  1329. documentsProductList: [],
  1330. };
  1331. loadingDialog.value = false;
  1332. dialogVisible.value = true;
  1333. };
  1334. const changeContract = (val) => {
  1335. if (val) {
  1336. let data = shipmentList.value.filter((item) => item.value === val);
  1337. if (data && data.length > 0) {
  1338. formData.data.packShipmentId = data[0].packShipmentId;
  1339. proxy
  1340. .post("/packShipment/productDetailList", {
  1341. packDetailIds: data[0].packDetailIds,
  1342. })
  1343. .then((res) => {
  1344. if (res && res.length > 0) {
  1345. formData.data.documentsProductList = res.map((item) => {
  1346. return {
  1347. businessId: item.businessId,
  1348. productId: item.productId,
  1349. describes: item.remark,
  1350. subDescribe: item.subDescription,
  1351. customsCode: item.customsCode,
  1352. quantity: item.quantity,
  1353. price: item.price,
  1354. type: item.type,
  1355. };
  1356. });
  1357. } else {
  1358. formData.data.documentsProductList = [];
  1359. }
  1360. });
  1361. } else {
  1362. formData.data.documentsProductList = [];
  1363. }
  1364. proxy.post("/contract/detail", { id: val }).then((res) => {
  1365. formData.data.countryId = res.buyCountryId;
  1366. });
  1367. } else {
  1368. formData.data.documentsProductList = [];
  1369. }
  1370. };
  1371. const submitForm = () => {
  1372. submit.value.handleSubmit(() => {
  1373. loadingDialog.value = true;
  1374. proxy.post("/documents/add", formData.data).then(
  1375. () => {
  1376. ElMessage({
  1377. message: "提交成功",
  1378. type: "success",
  1379. });
  1380. dialogVisible.value = false;
  1381. sourceList.value.pagination.pageNum = 1;
  1382. getList();
  1383. },
  1384. (err) => {
  1385. console.log(err);
  1386. loadingDialog.value = false;
  1387. }
  1388. );
  1389. });
  1390. };
  1391. const openAddAcceptCode = ref(false);
  1392. const loadingTwo = ref(false);
  1393. const submitTwo = ref(null);
  1394. const fileList = ref([]);
  1395. const uploadData = ref({});
  1396. const formDataTwo = reactive({
  1397. data: {
  1398. documentsId: "",
  1399. },
  1400. });
  1401. const formConfigTwo = computed(() => {
  1402. return [
  1403. {
  1404. type: "input",
  1405. prop: "acceptCarriage",
  1406. label: "承运方",
  1407. itemType: "text",
  1408. itemWidth: 40,
  1409. },
  1410. {
  1411. type: "input",
  1412. prop: "code",
  1413. label: "单号",
  1414. itemType: "text",
  1415. itemWidth: 60,
  1416. },
  1417. {
  1418. type: "slot",
  1419. prop: "departureTime",
  1420. slotName: "departureTime",
  1421. label: "起运时间",
  1422. },
  1423. {
  1424. type: "input",
  1425. prop: "remark",
  1426. label: "备注",
  1427. itemType: "textarea",
  1428. },
  1429. {
  1430. type: "slot",
  1431. prop: "file",
  1432. slotName: "file",
  1433. label: "上传附件",
  1434. },
  1435. ];
  1436. });
  1437. const rulesTwo = ref({
  1438. acceptCarriage: [{ required: true, message: "请输入承运方", trigger: "blur" }],
  1439. code: [{ required: true, message: "请输入承运单号", trigger: "blur" }],
  1440. departureTime: [{ required: true, message: "请选择起运时间", trigger: "change" }],
  1441. });
  1442. const clickAddAcceptCode = (item) => {
  1443. formDataTwo.data = {
  1444. documentsId: item.id,
  1445. };
  1446. fileList.value = [];
  1447. openAddAcceptCode.value = true;
  1448. };
  1449. const uploadFile = async (file) => {
  1450. const res = await proxy.post("/fileInfo/getSing", { fileName: file.name });
  1451. uploadData.value = res.uploadBody;
  1452. file.id = res.id;
  1453. file.fileName = res.fileName;
  1454. file.fileUrl = res.fileUrl;
  1455. return true;
  1456. };
  1457. const onPreviewFile = (file) => {
  1458. window.open(file.raw.fileUrl, "_blank");
  1459. };
  1460. const submitTwoForm = () => {
  1461. submitTwo.value.handleSubmit(() => {
  1462. if (fileList.value && fileList.value.length > 0) {
  1463. formDataTwo.data.fileList = fileList.value.map((item) => {
  1464. return {
  1465. id: item.raw.id,
  1466. fileName: item.raw.fileName,
  1467. fileUrl: item.raw.fileUrl,
  1468. };
  1469. });
  1470. } else {
  1471. formDataTwo.data.fileList = [];
  1472. }
  1473. loadingTwo.value = true;
  1474. proxy.post("/documentsTransport/add", formDataTwo.data).then(
  1475. () => {
  1476. ElMessage({
  1477. message: "提交成功",
  1478. type: "success",
  1479. });
  1480. openAddAcceptCode.value = false;
  1481. getList();
  1482. },
  1483. (err) => {
  1484. console.log(err);
  1485. loadingTwo.value = false;
  1486. }
  1487. );
  1488. });
  1489. };
  1490. const rowData = ref({});
  1491. const openSelectPrint = ref(false);
  1492. const clickToView = (item) => {
  1493. rowData.value = item;
  1494. openSelectPrint.value = true;
  1495. printDetails.value = {
  1496. packDetailGoodsList: [],
  1497. documents: {},
  1498. contract: {},
  1499. corporation: {},
  1500. packDetailList: [],
  1501. documentsProducts: [],
  1502. customer: {},
  1503. };
  1504. proxy.get("/documents/generateInvoiceAPackPdf", { id: rowData.value.id }).then((res) => {
  1505. printDetails.value = res.data;
  1506. });
  1507. };
  1508. const openPrint = ref(false);
  1509. const openStatus = ref("");
  1510. const printDetails = ref({
  1511. packDetailGoodsList: [],
  1512. documents: {},
  1513. contract: {},
  1514. contractProjectList: [],
  1515. corporation: {},
  1516. packDetailList: [],
  1517. documentsProducts: [],
  1518. customer: {},
  1519. });
  1520. const openCustomsDeclaration = ref(false);
  1521. const printCustomsDeclaration = ref({
  1522. content: {},
  1523. });
  1524. const textShow = ref(false);
  1525. const clickPrint = (status) => {
  1526. // printDetails.value = {
  1527. // packDetailGoodsList: [],
  1528. // documents: {},
  1529. // contract: {},
  1530. // contractProjectList: [],
  1531. // corporation: {},
  1532. // packDetailList: [],
  1533. // documentsProducts: [],
  1534. // customer: {},
  1535. // };
  1536. if ([1, 2, 3].includes(status)) {
  1537. openStatus.value = status;
  1538. openPrint.value = true;
  1539. } else {
  1540. printCustomsDeclaration.value = {
  1541. content: {},
  1542. };
  1543. openStatus.value = status;
  1544. textShow.value = false;
  1545. openCustomsDeclaration.value = true;
  1546. proxy.get("/documents/generateClearanceePdf", { id: rowData.value.id }).then((res) => {
  1547. if (res.data.content) {
  1548. res.data.content = JSON.parse(res.data.content);
  1549. }
  1550. printCustomsDeclaration.value = res.data;
  1551. });
  1552. }
  1553. // proxy.get("/documents/generateInvoiceAPackPdf", { id: rowData.value.id }).then((res) => {
  1554. // printDetails.value = res.data;
  1555. // });
  1556. };
  1557. const clickDownload = () => {
  1558. if (openStatus.value === 1) {
  1559. proxy.getPdf("装箱单PDF文件");
  1560. } else if (openStatus.value === 2) {
  1561. proxy.getPdf("商业发票PDF文件");
  1562. } else if (openStatus.value === 3) {
  1563. proxy.getPdf("销售确认书PDF文件");
  1564. } else if (openStatus.value === 4) {
  1565. textShow.value = true;
  1566. let data = proxy.deepClone(printCustomsDeclaration.value);
  1567. data.content = JSON.stringify(data.content);
  1568. proxy.post("/documentsPdf/add", data).then();
  1569. setTimeout(() => {
  1570. proxy.getPdfTransverseA4("报关单PDF文件");
  1571. nextTick(() => {
  1572. setTimeout(() => {
  1573. textShow.value = false;
  1574. }, 1000);
  1575. });
  1576. }, 1000);
  1577. }
  1578. };
  1579. const clickSave = () => {
  1580. if (openStatus.value === 1) {
  1581. proxy.getPdf("装箱单PDF文件");
  1582. } else if (openStatus.value === 2) {
  1583. proxy.getPdf("商业发票PDF文件");
  1584. } else if (openStatus.value === 3) {
  1585. proxy.getPdf("销售确认书PDF文件");
  1586. } else if (openStatus.value === 4) {
  1587. textShow.value = true;
  1588. let data = proxy.deepClone(printCustomsDeclaration.value);
  1589. data.content = JSON.stringify(data.content);
  1590. proxy.post("/documentsPdf/add", data).then((res) => {
  1591. ElMessage({
  1592. message: "保存成功",
  1593. type: "success",
  1594. });
  1595. });
  1596. }
  1597. };
  1598. const getStyle = (text) => {
  1599. if (text) {
  1600. return text.replace(/\n|\r\n/g, "<br>");
  1601. } else {
  1602. return "";
  1603. }
  1604. };
  1605. const statistics = (label, label2, index) => {
  1606. let num = 0;
  1607. if (printDetails.value.documentsProducts && printDetails.value.documentsProducts.length > 0) {
  1608. printDetails.value.documentsProducts.map((item) => {
  1609. if (label2) {
  1610. if (item[label] && item[label2]) {
  1611. num = parseFloat(Number(num) + Number(item[label]) * Number(item[label2])).toFixed(index);
  1612. }
  1613. } else {
  1614. if (item[label]) {
  1615. num = parseFloat(Number(num) + Number(item[label])).toFixed(index);
  1616. }
  1617. }
  1618. });
  1619. }
  1620. return num;
  1621. };
  1622. const getAllMoney = (num) => {
  1623. let money = num;
  1624. if (printDetails.value.contractProjectList && printDetails.value.contractProjectList.length > 0) {
  1625. printDetails.value.contractProjectList.map((item) => {
  1626. if (item.amount) {
  1627. money = parseFloat(Number(money) + Number(item.amount)).toFixed(2);
  1628. }
  1629. });
  1630. }
  1631. return money;
  1632. };
  1633. </script>
  1634. <style lang="scss" scoped>
  1635. .tenant {
  1636. padding: 20px;
  1637. }
  1638. ::v-deep(.el-input-number .el-input__inner) {
  1639. text-align: left;
  1640. }
  1641. .baseRow {
  1642. min-height: 20px;
  1643. border-top: 1px solid black;
  1644. border-left: 1px solid black;
  1645. }
  1646. .contentRow {
  1647. border-right: 1px solid black;
  1648. line-height: 20px;
  1649. padding-left: 4px;
  1650. }
  1651. .three {
  1652. width: 100%;
  1653. border: 1px solid black;
  1654. }
  1655. .three thead {
  1656. text-align: center;
  1657. line-height: 20px;
  1658. font-weight: 700;
  1659. }
  1660. .three th {
  1661. border-right: 1px solid black;
  1662. border-bottom: 1px solid black;
  1663. }
  1664. .three td {
  1665. line-height: 20px;
  1666. border-right: 1px solid black;
  1667. border-bottom: 1px solid black;
  1668. }
  1669. .one {
  1670. width: 100%;
  1671. text-align: center;
  1672. border-top: 1px solid black;
  1673. border-left: 1px solid black;
  1674. table-layout: fixed;
  1675. }
  1676. .one td {
  1677. border: 0;
  1678. line-height: 18px;
  1679. border-right: 1px solid black;
  1680. border-bottom: 1px solid black;
  1681. }
  1682. .two {
  1683. width: 100%;
  1684. text-align: center;
  1685. border-top: 1px solid black;
  1686. border-left: 1px solid black;
  1687. table-layout: fixed;
  1688. }
  1689. .two th {
  1690. border: 0;
  1691. line-height: 18px;
  1692. border-right: 1px solid black;
  1693. border-bottom: 1px solid black;
  1694. background-color: #dce6f1;
  1695. }
  1696. .two td {
  1697. border: 0;
  1698. line-height: 18px;
  1699. border-right: 1px solid black;
  1700. border-bottom: 1px solid black;
  1701. }
  1702. :deep(#pdfDom .el-textarea__inner) {
  1703. background: transparent !important;
  1704. overflow-y: hidden;
  1705. padding: 0 4px !important;
  1706. resize: none;
  1707. }
  1708. :deep(#pdfDom .el-textarea) {
  1709. --el-input-focus-border: transparent;
  1710. --el-input-transparent-border: 0 0 0 0px;
  1711. --el-input-border-color: transparent;
  1712. --el-input-hover-border: 0px !important;
  1713. --el-input-hover-border-color: transparent;
  1714. --el-input-focus-border-color: transparent;
  1715. --el-input-clear-hover-color: transparent;
  1716. box-shadow: 0 0 0 0px !important;
  1717. --el-input-border: 0px;
  1718. }
  1719. </style>