index.vue 107 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415
  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. >
  18. <template #acceptCode="{ item }">
  19. <div>
  20. <div style="color: #409eff" v-if="item.acceptCode">
  21. {{ item.acceptCarriage }} ({{ item.acceptCode }})
  22. </div>
  23. <div v-else>
  24. <el-button
  25. type="warning"
  26. style="background-color: var(--el-button-bg-color) !important"
  27. @click="clickAddAcceptCode(item)"
  28. >填写</el-button
  29. >
  30. </div>
  31. </div>
  32. </template>
  33. <template #toView="{ item }">
  34. <div>
  35. <el-button
  36. type="warning"
  37. style="background-color: var(--el-button-bg-color) !important"
  38. @click="clickToView(item)"
  39. >查看</el-button
  40. >
  41. </div>
  42. </template>
  43. </byTable>
  44. </div>
  45. <el-dialog
  46. title="创建单证"
  47. v-if="dialogVisible"
  48. v-model="dialogVisible"
  49. width="1000"
  50. >
  51. <byForm
  52. :formConfig="formConfig"
  53. :formOption="formOption"
  54. v-model="formData.data"
  55. :rules="rules"
  56. ref="submit"
  57. v-loading="loadingDialog"
  58. >
  59. <template #details>
  60. <div style="width: 100%">
  61. <el-table
  62. :data="formData.data.documentsProductList"
  63. style="width: 100%; margin-top: 16px"
  64. >
  65. <el-table-column label="货物描述" min-width="240">
  66. <template #default="{ row, $index }">
  67. <div style="width: 100%">
  68. <el-form-item
  69. :prop="'documentsProductList.' + $index + '.describes'"
  70. :rules="rules.describes"
  71. :inline-message="true"
  72. >
  73. <el-input
  74. v-model="row.describes"
  75. placeholder="请输入货物描述"
  76. />
  77. </el-form-item>
  78. </div>
  79. </template>
  80. </el-table-column>
  81. <el-table-column label="副描述" min-width="200">
  82. <template #default="{ row, $index }">
  83. <div style="width: 100%">
  84. <el-form-item
  85. :prop="'documentsProductList.' + $index + '.subDescribe'"
  86. :rules="rules.subDescribe"
  87. :inline-message="true"
  88. >
  89. <el-input
  90. v-model="row.subDescribe"
  91. placeholder="请输入副描述"
  92. />
  93. </el-form-item>
  94. </div>
  95. </template>
  96. </el-table-column>
  97. <el-table-column label="海关编码" width="160">
  98. <template #default="{ row, $index }">
  99. <div style="width: 100%">
  100. <el-form-item
  101. :prop="'documentsProductList.' + $index + '.customsCode'"
  102. :rules="rules.customsCode"
  103. :inline-message="true"
  104. >
  105. <el-input
  106. v-model="row.customsCode"
  107. placeholder="请输入海关编码"
  108. />
  109. </el-form-item>
  110. </div>
  111. </template>
  112. </el-table-column>
  113. <el-table-column label="数量" width="160">
  114. <template #default="{ row, $index }">
  115. <div style="width: 100%">
  116. <el-form-item
  117. :prop="'documentsProductList.' + $index + '.quantity'"
  118. :rules="rules.quantity"
  119. :inline-message="true"
  120. >
  121. <el-input-number
  122. v-model="row.quantity"
  123. placeholder="请输入数量"
  124. style="width: 100%"
  125. :precision="0"
  126. :controls="false"
  127. :min="0"
  128. />
  129. </el-form-item>
  130. </div>
  131. </template>
  132. </el-table-column>
  133. <el-table-column label="单价" width="160">
  134. <template #default="{ row, $index }">
  135. <div style="width: 100%">
  136. <el-form-item
  137. :prop="'documentsProductList.' + $index + '.price'"
  138. :rules="rules.price"
  139. :inline-message="true"
  140. >
  141. <el-input-number
  142. v-model="row.price"
  143. placeholder="请输入单价"
  144. style="width: 100%"
  145. :precision="2"
  146. :controls="false"
  147. :min="0"
  148. />
  149. </el-form-item>
  150. </div>
  151. </template>
  152. </el-table-column>
  153. </el-table>
  154. </div>
  155. </template>
  156. </byForm>
  157. <template #footer>
  158. <el-button @click="dialogVisible = false" size="large">取 消</el-button>
  159. <el-button type="primary" @click="submitForm()" size="large"
  160. >确 定</el-button
  161. >
  162. </template>
  163. </el-dialog>
  164. <el-dialog
  165. title="货运详情"
  166. v-if="openAddAcceptCode"
  167. v-model="openAddAcceptCode"
  168. width="600"
  169. >
  170. <byForm
  171. :formConfig="formConfigTwo"
  172. :formOption="formOption"
  173. v-model="formDataTwo.data"
  174. :rules="rulesTwo"
  175. ref="submitTwo"
  176. v-loading="loadingTwo"
  177. >
  178. <template #departureTime>
  179. <div>
  180. <el-date-picker
  181. v-model="formDataTwo.data.departureTime"
  182. type="datetime"
  183. placeholder="请选择起运时间"
  184. value-format="YYYY-MM-DD HH:mm:ss"
  185. />
  186. </div>
  187. </template>
  188. <template #file>
  189. <div style="width: 100%">
  190. <el-upload
  191. v-model:fileList="fileList"
  192. action="https://winfaster.obs.cn-south-1.myhuaweicloud.com"
  193. :data="uploadData"
  194. multiple
  195. :before-upload="uploadFile"
  196. :on-preview="onPreviewFile"
  197. >
  198. <el-button>选择</el-button>
  199. </el-upload>
  200. </div>
  201. </template>
  202. </byForm>
  203. <template #footer>
  204. <el-button @click="openAddAcceptCode = false" size="large"
  205. >取 消</el-button
  206. >
  207. <el-button type="primary" @click="submitTwoForm()" size="large"
  208. >确 定</el-button
  209. >
  210. </template>
  211. </el-dialog>
  212. <el-dialog
  213. title="打印"
  214. v-if="openSelectPrint"
  215. v-model="openSelectPrint"
  216. width="600"
  217. >
  218. <div>
  219. <el-button @click="clickPrint(1)" type="primary">装箱单</el-button>
  220. <el-button @click="clickPrint(2)" type="primary">商业发票</el-button>
  221. <el-button @click="clickPrint(3)" type="primary">销售确认书</el-button>
  222. <el-button @click="clickPrint(4)" type="primary">报关单</el-button>
  223. <el-button @click="clickPrint(5)" type="primary"
  224. >代理报关委托书</el-button
  225. >
  226. </div>
  227. <template #footer>
  228. <el-button @click="openSelectPrint = false" size="large"
  229. >关闭</el-button
  230. >
  231. </template>
  232. </el-dialog>
  233. <el-dialog title="打印" v-if="openPrint" v-model="openPrint" width="660">
  234. <div id="printMe">
  235. <div
  236. id="pdfDom"
  237. style="padding: 16px; font-size: 12px !important; font-family: 'msyh'"
  238. >
  239. <div v-if="openStatus === 1">
  240. <div style="font-size: 16px; text-align: center; font-weight: 700">
  241. 装箱单
  242. </div>
  243. <div
  244. style="
  245. font-size: 16px;
  246. text-align: center;
  247. text-decoration: underline;
  248. font-weight: 700;
  249. "
  250. >
  251. PACKING LIST
  252. </div>
  253. </div>
  254. <div v-else-if="openStatus === 2">
  255. <div style="font-size: 16px; text-align: center; font-weight: 700">
  256. 商业发票
  257. </div>
  258. <div
  259. style="
  260. font-size: 16px;
  261. text-align: center;
  262. text-decoration: underline;
  263. font-weight: 700;
  264. "
  265. >
  266. COMMERCIAL INVOICE
  267. </div>
  268. </div>
  269. <div v-else-if="openStatus === 3">
  270. <div style="font-size: 16px; text-align: center; font-weight: 700">
  271. 合同
  272. </div>
  273. <div
  274. style="
  275. font-size: 16px;
  276. text-align: center;
  277. text-decoration: underline;
  278. font-weight: 700;
  279. "
  280. >
  281. CONTRACT
  282. </div>
  283. </div>
  284. <div style="padding-top: 8px" v-if="[1, 2].includes(openStatus)">
  285. <div>C.I. NO. : {{ printDetails.contract.code }}</div>
  286. <div>C.I. DATE: {{ printDetails.date }}</div>
  287. </div>
  288. <div style="padding-top: 8px" v-else-if="[3].includes(openStatus)">
  289. <div>P.I. NO. : {{ printDetails.contract.code }}</div>
  290. <div>P.I. DATE: {{ printDetails.date }}</div>
  291. </div>
  292. <!-- <div style="height: 16px"></div> -->
  293. <div
  294. style="border: 1px solid black; display: flex"
  295. v-if="[1, 2].includes(openStatus)"
  296. >
  297. <div
  298. style="
  299. width: 50%;
  300. border-right: 1px solid black;
  301. padding-left: 4px;
  302. "
  303. >
  304. <div style="font-weight: 700">买方 SOLD TO MESSRS:</div>
  305. <div>{{ printDetails.customer.name }}</div>
  306. <div style="padding-top: 16px" v-if="[2].includes(openStatus)">
  307. <span style="font-weight: 700">TAX NUMBER:</span>
  308. <span> {{ printDetails.contract.taxNumber }} </span>
  309. </div>
  310. <div style="padding: 16px 0">
  311. {{ printDetails.contract.buyAddress }},{{
  312. printDetails.contract.buyPostalCode
  313. }},{{ printDetails.contract.buyCityName }},{{
  314. printDetails.contract.buyProvinceName
  315. }},{{ printDetails.contract.buyCountryName }}
  316. </div>
  317. <div v-if="[2].includes(openStatus)">
  318. <span style="font-weight: 700">POST CODE:</span>
  319. <span> {{ printDetails.contract.buyPostalCode }} </span>
  320. </div>
  321. <div style="padding-top: 16px">
  322. CONTRACT: {{ printDetails.contract.buyContactName }}
  323. </div>
  324. <div>TEL.: {{ printDetails.contract.buyContactNumber }}</div>
  325. </div>
  326. <div style="width: 50%; padding-left: 4px">
  327. <div style="font-weight: 700">卖方 VENDOR:</div>
  328. <div>{{ printDetails.corporation.name }}</div>
  329. <div>{{ printDetails.corporation.nameEn }}</div>
  330. <div style="padding: 16px 0">
  331. {{ printDetails.contract.sellAddress }},{{
  332. printDetails.contract.sellCityName
  333. }},{{ printDetails.contract.sellProvinceName }},{{
  334. printDetails.contract.sellCountryName
  335. }}
  336. </div>
  337. <div>CONTRACT: {{ printDetails.contract.sellContactName }}</div>
  338. <div>TEL.: {{ printDetails.contract.sellContactNumber }}</div>
  339. </div>
  340. </div>
  341. <div
  342. style="border: 1px solid black; display: flex"
  343. v-else-if="[3].includes(openStatus)"
  344. >
  345. <div
  346. style="
  347. width: 50%;
  348. border-right: 1px solid black;
  349. padding-left: 4px;
  350. "
  351. >
  352. <div style="font-weight: 700">卖方 VENDOR:</div>
  353. <div>{{ printDetails.corporation.name }}</div>
  354. <div>{{ printDetails.corporation.nameEn }}</div>
  355. <div style="padding: 16px 0">
  356. {{ printDetails.contract.sellAddress }},{{
  357. printDetails.contract.sellCityName
  358. }},{{ printDetails.contract.sellProvinceName }},{{
  359. printDetails.contract.sellCountryName
  360. }}
  361. </div>
  362. <div>CONTRACT: {{ printDetails.contract.sellContactName }}</div>
  363. <div>TEL.: {{ printDetails.contract.sellContactNumber }}</div>
  364. </div>
  365. <div style="width: 50%; padding-left: 4px">
  366. <div style="font-weight: 700">买方 BUYER:</div>
  367. <div>{{ printDetails.customer.name }}</div>
  368. <div style="padding-top: 16px">
  369. <span style="font-weight: 700">TAX NUMBER:</span>
  370. <span> {{ printDetails.contract.taxNumber }} </span>
  371. </div>
  372. <div style="padding: 16px 0">
  373. {{ printDetails.contract.buyAddress }},{{
  374. printDetails.contract.buyPostalCode
  375. }},{{ printDetails.contract.buyCityName }},{{
  376. printDetails.contract.buyProvinceName
  377. }},{{ printDetails.contract.buyCountryName }}
  378. </div>
  379. <div>
  380. <span style="font-weight: 700">POST CODE:</span>
  381. <span> {{ printDetails.contract.buyPostalCode }} </span>
  382. </div>
  383. <div style="padding-top: 16px">
  384. CONTRACT: {{ printDetails.contract.buyContactName }}
  385. </div>
  386. <div>TEL.: {{ printDetails.contract.buyContactNumber }}</div>
  387. </div>
  388. </div>
  389. <div style="height: 16px"></div>
  390. <div
  391. style="border: 1px solid black"
  392. v-if="[1, 2].includes(openStatus)"
  393. >
  394. <div style="display: flex; width: 100%">
  395. <div
  396. style="
  397. width: 33%;
  398. border-bottom: 1px solid black;
  399. border-right: 1px solid black;
  400. padding-left: 4px;
  401. "
  402. >
  403. <div style="font-weight: 700">原产国 COUNTRY OF ORIGIN:</div>
  404. <div>{{ printDetails.contract.sellCountryName }}</div>
  405. </div>
  406. <div
  407. style="
  408. width: 34%;
  409. border-bottom: 1px solid black;
  410. border-right: 1px solid black;
  411. padding-left: 4px;
  412. "
  413. >
  414. <div style="font-weight: 700">
  415. 目的国 COUNTRY OF DESTINATION:
  416. </div>
  417. <div>{{ printDetails.documents.countryName }}</div>
  418. </div>
  419. <div
  420. style="
  421. width: 33%;
  422. border-bottom: 1px solid black;
  423. padding-left: 4px;
  424. "
  425. >
  426. <div style="font-weight: 700">贸易方式 TERMS OF DELIVERY:</div>
  427. <div>
  428. {{
  429. dictValueLabel(
  430. printDetails.contract.tradeMethods,
  431. tradeMethods
  432. )
  433. }}
  434. </div>
  435. </div>
  436. </div>
  437. <div style="display: flex; width: 100%">
  438. <div
  439. style="
  440. width: 33%;
  441. border-bottom: 1px solid black;
  442. border-right: 1px solid black;
  443. padding-left: 4px;
  444. "
  445. >
  446. <div style="font-weight: 700">付款方式 TERMS OF PAYMENT:</div>
  447. <div>
  448. {{ printDetails.contract.remark }}
  449. </div>
  450. </div>
  451. <div
  452. style="
  453. width: 34%;
  454. border-bottom: 1px solid black;
  455. border-right: 1px solid black;
  456. padding-left: 4px;
  457. "
  458. >
  459. <div style="font-weight: 700">交货期 DELIVERY TIME:</div>
  460. <div>{{ printDetails.contract.deliveryTime }}</div>
  461. </div>
  462. <div
  463. style="
  464. width: 33%;
  465. border-bottom: 1px solid black;
  466. padding-left: 4px;
  467. "
  468. >
  469. <div style="font-weight: 700">运输方式 EXPORT BY/VIA:</div>
  470. <div>
  471. {{
  472. dictValueLabel(
  473. printDetails.contract.transportMethod,
  474. shippingMethod
  475. )
  476. }}
  477. </div>
  478. </div>
  479. </div>
  480. <div style="display: flex; width: 100%">
  481. <div
  482. style="
  483. width: 33%;
  484. border-right: 1px solid black;
  485. padding-left: 4px;
  486. "
  487. >
  488. <div style="font-weight: 700">装卸港 PLACE OF DISCHARGE:</div>
  489. <div>{{ printDetails.contract.transportRemark }}</div>
  490. </div>
  491. <div
  492. style="
  493. width: 34%;
  494. border-right: 1px solid black;
  495. padding-left: 4px;
  496. "
  497. >
  498. <div style="font-weight: 700">目的港 FINAL DESTINATION:</div>
  499. <div>{{ printDetails.documents.portOfDestination }}</div>
  500. </div>
  501. <div style="width: 33%; padding-left: 4px">
  502. <div style="font-weight: 700">质保期 WARRANTY:</div>
  503. <div>
  504. <span v-if="printDetails.contract.warranty"
  505. >{{ printDetails.contract.warranty }}天</span
  506. >
  507. </div>
  508. </div>
  509. </div>
  510. </div>
  511. <div
  512. style="border: 1px solid black"
  513. v-else-if="[3].includes(openStatus)"
  514. >
  515. <div style="display: flex; width: 100%">
  516. <div
  517. style="
  518. width: 33%;
  519. border-bottom: 1px solid black;
  520. border-right: 1px solid black;
  521. padding-left: 4px;
  522. "
  523. >
  524. <div style="font-weight: 700">COUNTRY OF ORIGIN:</div>
  525. <div>{{ printDetails.contract.sellCountryName }}</div>
  526. </div>
  527. <div
  528. style="
  529. width: 34%;
  530. border-bottom: 1px solid black;
  531. border-right: 1px solid black;
  532. padding-left: 4px;
  533. "
  534. >
  535. <div style="font-weight: 700">COUNTRY OF DESTINATION:</div>
  536. <div>{{ printDetails.documents.countryName }}</div>
  537. </div>
  538. <div
  539. style="
  540. width: 33%;
  541. border-bottom: 1px solid black;
  542. padding-left: 4px;
  543. "
  544. >
  545. <div style="font-weight: 700">PLACE OF DISCHARGE:</div>
  546. <div>{{ printDetails.contract.transportRemark }}</div>
  547. </div>
  548. </div>
  549. <div style="display: flex; width: 100%">
  550. <div
  551. style="
  552. width: 33%;
  553. border-bottom: 1px solid black;
  554. border-right: 1px solid black;
  555. padding-left: 4px;
  556. "
  557. >
  558. <div style="font-weight: 700">TERMS OF DELIVERY:</div>
  559. <div>
  560. {{
  561. dictValueLabel(
  562. printDetails.contract.tradeMethods,
  563. tradeMethods
  564. )
  565. }}
  566. </div>
  567. </div>
  568. <div
  569. style="
  570. width: 34%;
  571. border-bottom: 1px solid black;
  572. border-right: 1px solid black;
  573. padding-left: 4px;
  574. "
  575. >
  576. <div style="font-weight: 700">CURRENCY:</div>
  577. <div>
  578. {{ printDetails.contract.currency }}
  579. </div>
  580. </div>
  581. <div
  582. style="
  583. width: 33%;
  584. border-bottom: 1px solid black;
  585. padding-left: 4px;
  586. "
  587. >
  588. <div style="font-weight: 700">EXPORT BY/VIA:</div>
  589. <div>
  590. {{
  591. dictValueLabel(
  592. printDetails.contract.transportMethod,
  593. shippingMethod
  594. )
  595. }}
  596. </div>
  597. </div>
  598. </div>
  599. <div style="display: flex; width: 100%">
  600. <div
  601. style="
  602. width: 33%;
  603. border-right: 1px solid black;
  604. padding-left: 4px;
  605. "
  606. >
  607. <div style="font-weight: 700">DELIVERY TIME:</div>
  608. <div>{{ printDetails.contract.deliveryTime }}</div>
  609. </div>
  610. <div style="width: 67%; padding-left: 4px">
  611. <div style="font-weight: 700">付款方式 TERMS OF PAYMENT:</div>
  612. <div>
  613. {{ printDetails.contract.remark }}
  614. </div>
  615. </div>
  616. </div>
  617. </div>
  618. <div style="height: 16px"></div>
  619. <div
  620. style="border: 1px solid black"
  621. v-if="[1, 2].includes(openStatus)"
  622. >
  623. <div style="display: flex; width: 100%">
  624. <div
  625. style="
  626. width: 33%;
  627. border-right: 1px solid black;
  628. padding-left: 4px;
  629. "
  630. >
  631. <div style="font-weight: 700">唛头及箱号 MARK & NUMBERS</div>
  632. <div
  633. style="padding: 8px 0"
  634. v-html="getStyle(printDetails.documents.remark)"
  635. ></div>
  636. </div>
  637. <div
  638. style="
  639. width: 34%;
  640. border-right: 1px solid black;
  641. padding-left: 4px;
  642. "
  643. >
  644. <div style="font-weight: 700">
  645. 包装规格 PACKING & DESCRIPTION
  646. </div>
  647. <div
  648. v-if="
  649. printDetails.packDetailList &&
  650. printDetails.packDetailList.length > 0
  651. "
  652. >
  653. <div
  654. style="padding: 8px 0"
  655. v-for="(item, index) in printDetails.packDetailList"
  656. :key="index"
  657. >
  658. <span style="padding-right: 16px">{{ index + 1 }}</span>
  659. <span v-if="item.boxLong">{{ item.boxLong }}cm</span>
  660. <span>*</span>
  661. <span v-if="item.boxWide">{{ item.boxWide }}cm</span>
  662. <span>*</span>
  663. <span v-if="item.boxHigh">{{ item.boxHigh }}cm</span>
  664. <span>*</span>
  665. <span>{{ item.packQuantity }}TNS</span>
  666. </div>
  667. </div>
  668. </div>
  669. <div style="width: 33%; padding-left: 4px">
  670. <div style="font-weight: 700">总毛重 TOTAL GROSS WEIGHT/KG</div>
  671. <div>{{ printDetails.sumRoughWeight }}</div>
  672. <div style="font-weight: 700">总净重 TOTAL NET WEIGHT/KG</div>
  673. <div>{{ printDetails.sumNetWeight }}</div>
  674. <div style="font-weight: 700">总体积 TOTAL DIMENSION/M3</div>
  675. <div>{{ printDetails.sumBomVolume }}</div>
  676. </div>
  677. </div>
  678. </div>
  679. <div style="height: 16px"></div>
  680. <!-- 装箱单 -->
  681. <table
  682. class="three"
  683. cellspacing="0"
  684. cellpadding="0"
  685. border="0"
  686. style="width: 100%; border-bottom: 0"
  687. v-if="[1].includes(openStatus)"
  688. >
  689. <thead>
  690. <tr>
  691. <td style="width: 80px">
  692. 项目
  693. <br />
  694. ITEM NO.
  695. </td>
  696. <td>
  697. 货物描述
  698. <br />
  699. DESCRIPTION OF GOODS
  700. </td>
  701. <td style="width: 80px">
  702. 单位
  703. <br />
  704. UNIT
  705. </td>
  706. <td style="width: 80px; border-right: 0">
  707. 数量
  708. <br />
  709. QUANTITY
  710. <br />
  711. (SET/PCS)
  712. </td>
  713. </tr>
  714. </thead>
  715. <!-- 其他 -->
  716. <tbody
  717. v-if="
  718. printDetails.documentsProducts &&
  719. printDetails.documentsProducts.length > 0
  720. "
  721. >
  722. <tr
  723. v-for="(item, index) in printDetails.documentsProducts"
  724. :key="index"
  725. >
  726. <td style="text-align: center">{{ index + 1 }}</td>
  727. <td>
  728. <div style="text-align: center">{{ item.describes }}</div>
  729. <div style="text-align: center">{{ item.subDescribe }}</div>
  730. <div style="text-align: center">
  731. HS CODE: {{ item.customsCode }}
  732. </div>
  733. </td>
  734. <td style="text-align: center">
  735. {{ dictValueLabel(item.productUnit, productUnit) }}
  736. </td>
  737. <td style="text-align: center; border-right: 0">
  738. {{ item.quantity }}
  739. </td>
  740. </tr>
  741. </tbody>
  742. </table>
  743. <!-- 商业发票、销售确认书 -->
  744. <table
  745. class="three"
  746. cellspacing="0"
  747. cellpadding="0"
  748. border="0"
  749. style="width: 100%; border-bottom: 0"
  750. v-if="[2, 3].includes(openStatus)"
  751. >
  752. <thead>
  753. <tr>
  754. <td style="width: 80px" v-if="[2, 3].includes(openStatus)">
  755. 项目
  756. <br />
  757. ITEM NO.
  758. </td>
  759. <td>
  760. 货物描述
  761. <br />
  762. DESCRIPTION OF GOODS
  763. </td>
  764. <template v-if="[3].includes(openStatus)">
  765. <td style="width: 80px">
  766. 单位
  767. <br />
  768. UNIT
  769. </td>
  770. </template>
  771. <td style="width: 80px">
  772. 数量
  773. <br />
  774. QUANTITY
  775. <br />
  776. (SET/PCS)
  777. </td>
  778. <template v-if="[2, 3].includes(openStatus)">
  779. <td style="width: 80px">
  780. 单价
  781. <br />
  782. UNIT PRICE
  783. <br />
  784. {{
  785. dictValueLabel(
  786. printDetails.contract.currency,
  787. accountCurrency
  788. )
  789. }}
  790. </td>
  791. <td style="width: 80px; border-right: 0">
  792. 总价
  793. <br />
  794. TOTAL PRICE
  795. <br />
  796. {{
  797. dictValueLabel(
  798. printDetails.contract.currency,
  799. accountCurrency
  800. )
  801. }}
  802. </td>
  803. </template>
  804. </tr>
  805. </thead>
  806. <!-- 其他 -->
  807. <tbody
  808. v-if="
  809. printDetails.documentsProducts &&
  810. printDetails.documentsProducts.length > 0 &&
  811. [2, 3].includes(openStatus)
  812. "
  813. >
  814. <tr
  815. v-for="(item, index) in printDetails.documentsProducts"
  816. :key="index"
  817. >
  818. <td style="text-align: center">{{ index + 1 }}</td>
  819. <td>
  820. <div style="text-align: center">{{ item.describes }}</div>
  821. <div style="text-align: center">{{ item.subDescribe }}</div>
  822. <div style="text-align: center">
  823. HS CODE: {{ item.customsCode }}
  824. </div>
  825. </td>
  826. <td style="text-align: center" v-if="[3].includes(openStatus)">
  827. {{ dictValueLabel(item.productUnit, productUnit) }}
  828. </td>
  829. <td style="text-align: center">{{ item.quantity }}</td>
  830. <td
  831. style="text-align: center"
  832. v-if="[2, 3].includes(openStatus)"
  833. >
  834. {{ printDetails.contract.currency }}{{ item.price }}
  835. </td>
  836. <td
  837. style="text-align: center; border-right: 0"
  838. v-if="[2, 3].includes(openStatus)"
  839. >
  840. {{ printDetails.contract.currency
  841. }}{{
  842. parseFloat(
  843. Number(item.quantity) * Number(item.price)
  844. ).toFixed(2)
  845. }}
  846. </td>
  847. </tr>
  848. </tbody>
  849. <!-- 商业发票 -->
  850. <template v-if="[2].includes(openStatus)">
  851. <tr>
  852. <td :colspan="2" style="text-align: left; padding-left: 4px">
  853. SUBTOTAL:
  854. </td>
  855. <td style="text-align: center">
  856. {{ statistics("quantity", "", 0) }}
  857. </td>
  858. <td></td>
  859. <td style="text-align: center">
  860. {{ printDetails.contract.currency
  861. }}{{ statistics("price", "quantity", 2) }}
  862. </td>
  863. </tr>
  864. <template
  865. v-if="
  866. printDetails.contractProjectList &&
  867. printDetails.contractProjectList.length > 0
  868. "
  869. >
  870. <tr
  871. v-for="(item, index) in printDetails.contractProjectList"
  872. :key="index"
  873. >
  874. <td :colspan="4" style="text-align: left; padding-left: 4px">
  875. {{ item.payName }}:
  876. </td>
  877. <td style="text-align: center">
  878. {{ printDetails.contract.currency }}{{ item.amount }}
  879. </td>
  880. </tr>
  881. </template>
  882. <tr>
  883. <td :colspan="4" style="text-align: left; padding-left: 4px">
  884. TOTAL
  885. {{
  886. dictValueLabel(
  887. printDetails.contract.tradeMethods,
  888. tradeMethods
  889. )
  890. }}
  891. PRICE:
  892. </td>
  893. <td style="text-align: center">
  894. {{ printDetails.contract.currency
  895. }}{{ getAllMoney(statistics("price", "quantity", 2)) }}
  896. </td>
  897. </tr>
  898. </template>
  899. <!-- 销售确认书 -->
  900. <template v-if="[3].includes(openStatus)">
  901. <tr>
  902. <td :colspan="3" style="text-align: left; padding-left: 4px">
  903. SUBTOTAL:
  904. </td>
  905. <td style="text-align: center">
  906. {{ statistics("quantity", "", 0) }}
  907. </td>
  908. <td></td>
  909. <td style="text-align: center">
  910. {{ printDetails.contract.currency
  911. }}{{ statistics("price", "quantity", 2) }}
  912. </td>
  913. </tr>
  914. <template
  915. v-if="
  916. printDetails.contractProjectList &&
  917. printDetails.contractProjectList.length > 0
  918. "
  919. >
  920. <tr
  921. v-for="(item, index) in printDetails.contractProjectList"
  922. :key="index"
  923. >
  924. <td :colspan="5" style="text-align: left; padding-left: 4px">
  925. {{ item.payName }}:
  926. </td>
  927. <td style="text-align: center">
  928. {{ printDetails.contract.currency }}{{ item.amount }}
  929. </td>
  930. </tr>
  931. </template>
  932. <tr>
  933. <td :colspan="5" style="text-align: left; padding-left: 4px">
  934. TOTAL
  935. {{
  936. dictValueLabel(
  937. printDetails.contract.tradeMethods,
  938. tradeMethods
  939. )
  940. }}
  941. PRICE:
  942. </td>
  943. <td style="text-align: center">
  944. {{ printDetails.contract.currency
  945. }}{{ getAllMoney(statistics("price", "quantity", 2)) }}
  946. </td>
  947. </tr>
  948. </template>
  949. </table>
  950. <!-- 装箱单 -->
  951. <div v-if="[1].includes(openStatus)">
  952. <div style="font-weight: 700; padding: 4px 0">
  953. THE PACK FOR ABOVE CARGO ARE AS BELOWING SHOWS:
  954. </div>
  955. <table
  956. class="three"
  957. cellspacing="0"
  958. cellpadding="0"
  959. border="0"
  960. style="width: 100%; border-bottom: 0"
  961. >
  962. <thead>
  963. <tr>
  964. <td style="width: 100px">
  965. 箱号
  966. <br />
  967. Case NO.
  968. </td>
  969. <td>
  970. 货物描述
  971. <br />
  972. DESCRIPTION OF GOODS
  973. </td>
  974. <td style="width: 100px">
  975. 数量
  976. <br />
  977. QUANTITY
  978. <br />
  979. (SET/PCS)
  980. </td>
  981. <td style="width: 100px">
  982. 净重
  983. <br />
  984. N.W./ KG
  985. </td>
  986. <td style="width: 100px; border-right: 0">
  987. 毛重
  988. <br />
  989. G.W./ KG
  990. </td>
  991. </tr>
  992. </thead>
  993. <tbody
  994. v-if="
  995. printDetails.packDetailList &&
  996. printDetails.packDetailList.length > 0
  997. "
  998. >
  999. <template
  1000. v-for="(item, index) in printDetails.packDetailList"
  1001. :key="index"
  1002. >
  1003. <tr
  1004. v-for="(sonItem, sonIndex) in item.documentsProductList"
  1005. :key="sonIndex"
  1006. >
  1007. <td
  1008. style="text-align: center"
  1009. :rowspan="item.documentsProductList.length"
  1010. v-if="sonIndex === 0"
  1011. >
  1012. {{ index + 1 }}
  1013. </td>
  1014. <td>
  1015. <div style="text-align: center">
  1016. {{ sonItem.describes }}
  1017. </div>
  1018. <div style="text-align: center">
  1019. {{ sonItem.subDescribe }}
  1020. </div>
  1021. <div style="text-align: center">
  1022. HS CODE: {{ sonItem.customsCode }}
  1023. </div>
  1024. </td>
  1025. <td style="text-align: center">{{ sonItem.quantity }}</td>
  1026. <td
  1027. :rowspan="item.documentsProductList.length"
  1028. style="text-align: center"
  1029. v-if="sonIndex === 0"
  1030. >
  1031. {{ item.netWeight }}
  1032. </td>
  1033. <td
  1034. :rowspan="item.documentsProductList.length"
  1035. style="text-align: center; border-right: 0"
  1036. v-if="sonIndex === 0"
  1037. >
  1038. {{ item.roughWeight }}
  1039. </td>
  1040. </tr>
  1041. </template>
  1042. </tbody>
  1043. </table>
  1044. <!-- <table
  1045. class="three"
  1046. cellspacing="0"
  1047. cellpadding="0"
  1048. border="0"
  1049. style="width: 100%; border-bottom: 0"
  1050. v-if="
  1051. printDetails.packDetailList &&
  1052. printDetails.packDetailList.length > 0
  1053. "
  1054. >
  1055. <tbody
  1056. v-for="(item, index) in printDetails.packDetailList"
  1057. :key="index"
  1058. >
  1059. <tr
  1060. v-for="(itemAAA, indexAAA) in item.packDetailGoodsList"
  1061. :key="indexAAA"
  1062. >
  1063. <td
  1064. :rowspan="item.packDetailGoodsList.length"
  1065. style="text-align: center; width: 100px"
  1066. v-if="indexAAA === 0"
  1067. >
  1068. CTN NO.{{ index + 1 }}
  1069. </td>
  1070. <td>
  1071. <div style="text-align: center">{{ itemAAA.remark }}</div>
  1072. </td>
  1073. <td style="text-align: center; width: 100px">
  1074. {{ itemAAA.unit }}
  1075. </td>
  1076. <td style="text-align: center; width: 100px">
  1077. {{ itemAAA.quantity }}
  1078. </td>
  1079. <td
  1080. :rowspan="item.packDetailGoodsList.length"
  1081. style="text-align: center; width: 200px; border-right: 0"
  1082. v-if="indexAAA === 0"
  1083. >
  1084. <span v-if="item.boxLong">{{ item.boxLong }}cm</span>
  1085. <span>*</span>
  1086. <span v-if="item.boxLong">{{ item.boxWide }}cm</span>
  1087. <span>*</span>
  1088. <span v-if="item.boxLong">{{ item.boxHigh }}cm</span>
  1089. <span> / {{ item.roughWeight }}KG</span>
  1090. </td>
  1091. </tr>
  1092. </tbody>
  1093. </table> -->
  1094. </div>
  1095. <div v-if="[3].includes(openStatus)">
  1096. <div style="height: 16px"></div>
  1097. <div class="baseRow">
  1098. <div class="contentRow" style="width: 100%; font-weight: 700">
  1099. ACCOUNT INFORMATION:
  1100. </div>
  1101. </div>
  1102. <div class="baseRow" style="border-bottom: 1px solid black">
  1103. <div class="contentRow" style="width: 100%">
  1104. <div
  1105. style="
  1106. line-height: 24px;
  1107. padding-left: 4px;
  1108. word-break: break-all;
  1109. word-wrap: break-word;
  1110. "
  1111. >
  1112. Beneficiary Name: {{ printDetails.contract.beneficiaryName }}
  1113. </div>
  1114. <div
  1115. style="
  1116. line-height: 24px;
  1117. padding-left: 4px;
  1118. word-break: break-all;
  1119. word-wrap: break-word;
  1120. "
  1121. >
  1122. Beneficiary Bank: {{ printDetails.contract.beneficiaryBank }}
  1123. </div>
  1124. <div
  1125. style="
  1126. line-height: 24px;
  1127. padding-left: 4px;
  1128. word-break: break-all;
  1129. word-wrap: break-word;
  1130. "
  1131. >
  1132. Beneficiary Bank Address:
  1133. {{ printDetails.contract.beneficiaryBankAddress }}
  1134. </div>
  1135. <div
  1136. style="
  1137. line-height: 24px;
  1138. padding-left: 4px;
  1139. word-break: break-all;
  1140. word-wrap: break-word;
  1141. "
  1142. >
  1143. Beneficiary Account Number:
  1144. {{ printDetails.contract.beneficiaryAccountNumber }}
  1145. </div>
  1146. <div
  1147. style="
  1148. line-height: 24px;
  1149. padding-left: 4px;
  1150. word-break: break-all;
  1151. word-wrap: break-word;
  1152. "
  1153. >
  1154. Swift Code: {{ printDetails.contract.swiftCode }}
  1155. </div>
  1156. <div
  1157. style="
  1158. line-height: 24px;
  1159. padding-left: 4px;
  1160. word-break: break-all;
  1161. word-wrap: break-word;
  1162. "
  1163. >
  1164. Beneficiary Address:
  1165. {{ printDetails.contract.beneficiaryAddress }}
  1166. </div>
  1167. </div>
  1168. </div>
  1169. <div style="height: 32px"></div>
  1170. <div style="display: flex">
  1171. <div style="width: 50%">
  1172. <div style="font-weight: 700">CONFIRMED BY VENDOR:</div>
  1173. <div>{{ printDetails.corporation.nameEn }}</div>
  1174. </div>
  1175. <div style="width: 50%">
  1176. <div style="font-weight: 700">CONFIRMED BY BUYER:</div>
  1177. <div>{{ printDetails.customer.name }}</div>
  1178. </div>
  1179. </div>
  1180. </div>
  1181. </div>
  1182. </div>
  1183. <template #footer>
  1184. <el-button @click="openPrint = false" size="large">取消</el-button>
  1185. <el-button type="primary" @click="clickDownload()" size="large"
  1186. >下载PDF</el-button
  1187. >
  1188. </template>
  1189. </el-dialog>
  1190. <el-dialog
  1191. title="打印"
  1192. v-if="openCustomsDeclaration"
  1193. v-model="openCustomsDeclaration"
  1194. width="1460"
  1195. >
  1196. <div id="printMe">
  1197. <div
  1198. id="pdfDom"
  1199. style="
  1200. width: 1400px;
  1201. padding: 16px;
  1202. font-size: 12px !important;
  1203. font-family: 'msyh';
  1204. "
  1205. >
  1206. <table cellspacing="0" cellpadding="0" border="0" class="one">
  1207. <tr>
  1208. <td colspan="8">
  1209. <span style="font-weight: 700"
  1210. >出口货物正式报关单草单/申报信息填制模板</span
  1211. >
  1212. </td>
  1213. </tr>
  1214. <tr>
  1215. <td colspan="2" style="background-color: #dce6f1">
  1216. <div>发件公司清关负责人</div>
  1217. <div>联系电话/手机(必填)</div>
  1218. </td>
  1219. <td colspan="2" style="background-color: #ebf1de">
  1220. <div
  1221. style="word-wrap: break-word; padding: 0 4px"
  1222. v-if="textShow"
  1223. >
  1224. {{ printCustomsDeclaration.content.contacts }}
  1225. </div>
  1226. <div
  1227. style="word-wrap: break-word; padding: 0 4px"
  1228. v-if="textShow"
  1229. >
  1230. {{ printCustomsDeclaration.content.contactsMobile }}
  1231. </div>
  1232. <el-input
  1233. autosize
  1234. type="textarea"
  1235. v-if="!textShow"
  1236. v-model="printCustomsDeclaration.content.contacts"
  1237. size="small"
  1238. />
  1239. <el-input
  1240. autosize
  1241. type="textarea"
  1242. v-if="!textShow"
  1243. v-model="printCustomsDeclaration.content.contactsMobile"
  1244. size="small"
  1245. />
  1246. </td>
  1247. <td colspan="2" style="background-color: #dce6f1">
  1248. <span>联系人邮箱</span>
  1249. </td>
  1250. <td
  1251. colspan="2"
  1252. style="background-color: #ebf1de; text-align: left"
  1253. >
  1254. <div
  1255. style="word-wrap: break-word; padding: 0 4px"
  1256. v-if="textShow"
  1257. >
  1258. {{ printCustomsDeclaration.content.contactsEmail }}
  1259. </div>
  1260. <el-input
  1261. autosize
  1262. type="textarea"
  1263. v-if="!textShow"
  1264. v-model="printCustomsDeclaration.content.contactsEmail"
  1265. size="small"
  1266. />
  1267. </td>
  1268. </tr>
  1269. <tr style="background-color: #dce6f1">
  1270. <td colspan="2">
  1271. <span>境内发货人名称(填写发货公司中文名称)</span>
  1272. </td>
  1273. <td colspan="2">
  1274. <span
  1275. >境内发货人代码(填写18位统一社会信用代码,没有信用证代码填报10位海关备案编码)</span
  1276. >
  1277. </td>
  1278. <td colspan="2">
  1279. <span>出境关别(不用填写)</span>
  1280. </td>
  1281. <td colspan="2">
  1282. <span>备案号(如是手册的请填写)</span>
  1283. </td>
  1284. </tr>
  1285. <tr>
  1286. <td colspan="2">
  1287. <div
  1288. style="word-wrap: break-word; padding: 0 4px"
  1289. v-if="textShow"
  1290. >
  1291. {{ printCustomsDeclaration.content.companyNameChinese }}
  1292. </div>
  1293. <el-input
  1294. autosize
  1295. type="textarea"
  1296. v-if="!textShow"
  1297. v-model="printCustomsDeclaration.content.companyNameChinese"
  1298. size="small"
  1299. />
  1300. </td>
  1301. <td colspan="2">
  1302. <div
  1303. style="word-wrap: break-word; padding: 0 4px"
  1304. v-if="textShow"
  1305. >
  1306. {{ printCustomsDeclaration.content.organizationCode }}
  1307. </div>
  1308. <el-input
  1309. autosize
  1310. type="textarea"
  1311. v-if="!textShow"
  1312. v-model="printCustomsDeclaration.content.organizationCode"
  1313. size="small"
  1314. />
  1315. </td>
  1316. <td colspan="2">
  1317. <div
  1318. style="word-wrap: break-word; padding: 0 4px"
  1319. v-if="textShow"
  1320. >
  1321. {{ printCustomsDeclaration.content.exitCustoms }}
  1322. </div>
  1323. <el-input
  1324. autosize
  1325. type="textarea"
  1326. v-if="!textShow"
  1327. v-model="printCustomsDeclaration.content.exitCustoms"
  1328. size="small"
  1329. />
  1330. </td>
  1331. <td colspan="2">
  1332. <div
  1333. style="word-wrap: break-word; padding: 0 4px"
  1334. v-if="textShow"
  1335. >
  1336. {{ printCustomsDeclaration.content.recordNo }}
  1337. </div>
  1338. <el-input
  1339. autosize
  1340. type="textarea"
  1341. v-if="!textShow"
  1342. v-model="printCustomsDeclaration.content.recordNo"
  1343. size="small"
  1344. />
  1345. </td>
  1346. </tr>
  1347. <tr style="background-color: #dce6f1">
  1348. <td colspan="2">
  1349. <span
  1350. >境外收货人(指合同买方或合同指定的收货人公司英文名称)</span
  1351. >
  1352. </td>
  1353. <td colspan="2">
  1354. <span
  1355. >境外收货人代码(AEO互认企业需填报AEO编码;不填默认非AEO互认)</span
  1356. >
  1357. </td>
  1358. <td colspan="2">
  1359. <span>运输方式(不用填写)</span>
  1360. </td>
  1361. <td>
  1362. <span>运输工具名称及航次号(不用填写)</span>
  1363. </td>
  1364. <td>
  1365. <span>提运单号(指12位快递运单号码)</span>
  1366. </td>
  1367. </tr>
  1368. <tr>
  1369. <td colspan="2" style="background-color: #ebf1de">
  1370. <div
  1371. style="word-wrap: break-word; padding: 0 4px"
  1372. v-if="textShow"
  1373. >
  1374. {{ printCustomsDeclaration.content.customerCompanyName }}
  1375. </div>
  1376. <el-input
  1377. autosize
  1378. type="textarea"
  1379. v-if="!textShow"
  1380. v-model="printCustomsDeclaration.content.customerCompanyName"
  1381. size="small"
  1382. />
  1383. </td>
  1384. <td colspan="2">
  1385. <div
  1386. style="word-wrap: break-word; padding: 0 4px"
  1387. v-if="textShow"
  1388. >
  1389. {{ printCustomsDeclaration.content.overseasConsigneeCode }}
  1390. </div>
  1391. <el-input
  1392. autosize
  1393. type="textarea"
  1394. v-if="!textShow"
  1395. v-model="
  1396. printCustomsDeclaration.content.overseasConsigneeCode
  1397. "
  1398. size="small"
  1399. />
  1400. </td>
  1401. <td colspan="2">
  1402. <div
  1403. style="word-wrap: break-word; padding: 0 4px"
  1404. v-if="textShow"
  1405. >
  1406. {{ printCustomsDeclaration.content.typeOfShipping }}
  1407. </div>
  1408. <el-input
  1409. autosize
  1410. type="textarea"
  1411. v-if="!textShow"
  1412. v-model="printCustomsDeclaration.content.typeOfShipping"
  1413. size="small"
  1414. />
  1415. </td>
  1416. <td>
  1417. <div
  1418. style="word-wrap: break-word; padding: 0 4px"
  1419. v-if="textShow"
  1420. >
  1421. {{ printCustomsDeclaration.content.meansOfTransport }}
  1422. </div>
  1423. <el-input
  1424. autosize
  1425. type="textarea"
  1426. v-if="!textShow"
  1427. v-model="printCustomsDeclaration.content.meansOfTransport"
  1428. size="small"
  1429. />
  1430. </td>
  1431. <td>
  1432. <div
  1433. style="word-wrap: break-word; padding: 0 4px"
  1434. v-if="textShow"
  1435. >
  1436. {{ printCustomsDeclaration.content.waybillCode }}
  1437. </div>
  1438. <el-input
  1439. autosize
  1440. type="textarea"
  1441. v-if="!textShow"
  1442. v-model="printCustomsDeclaration.content.waybillCode"
  1443. size="small"
  1444. />
  1445. </td>
  1446. </tr>
  1447. <tr style="background-color: #dce6f1">
  1448. <td colspan="2">
  1449. <span>生产销售单位(指生产该产品的公司名称)</span>
  1450. </td>
  1451. <td colspan="2">
  1452. <span
  1453. >生产销售单位代码(填写18位统一社会信用代码,没有信用证代码填写“NO”)</span
  1454. >
  1455. </td>
  1456. <td colspan="2">
  1457. <span>监管方式</span>
  1458. </td>
  1459. <td>
  1460. <span>征免性质(与监管方式对应填写)</span>
  1461. </td>
  1462. <td>
  1463. <span>许可证号(如需许可证的请填写)</span>
  1464. </td>
  1465. </tr>
  1466. <tr>
  1467. <td colspan="2">
  1468. <div
  1469. style="word-wrap: break-word; padding: 0 4px"
  1470. v-if="textShow"
  1471. >
  1472. {{
  1473. printCustomsDeclaration.content.productCompanyNameChinese
  1474. }}
  1475. </div>
  1476. <el-input
  1477. autosize
  1478. type="textarea"
  1479. v-if="!textShow"
  1480. v-model="
  1481. printCustomsDeclaration.content.productCompanyNameChinese
  1482. "
  1483. size="small"
  1484. />
  1485. </td>
  1486. <td colspan="2">
  1487. <div
  1488. style="word-wrap: break-word; padding: 0 4px"
  1489. v-if="textShow"
  1490. >
  1491. {{ printCustomsDeclaration.content.productOrganizationCode }}
  1492. </div>
  1493. <el-input
  1494. autosize
  1495. type="textarea"
  1496. v-if="!textShow"
  1497. v-model="
  1498. printCustomsDeclaration.content.productOrganizationCode
  1499. "
  1500. size="small"
  1501. />
  1502. </td>
  1503. <td colspan="2">
  1504. <div
  1505. style="word-wrap: break-word; padding: 0 4px"
  1506. v-if="textShow"
  1507. >
  1508. {{ printCustomsDeclaration.content.supervisionMode }}
  1509. </div>
  1510. <el-input
  1511. autosize
  1512. type="textarea"
  1513. v-if="!textShow"
  1514. v-model="printCustomsDeclaration.content.supervisionMode"
  1515. size="small"
  1516. />
  1517. </td>
  1518. <td>
  1519. <div
  1520. style="word-wrap: break-word; padding: 0 4px"
  1521. v-if="textShow"
  1522. >
  1523. {{ printCustomsDeclaration.content.exemptionNature }}
  1524. </div>
  1525. <el-input
  1526. autosize
  1527. type="textarea"
  1528. v-if="!textShow"
  1529. v-model="printCustomsDeclaration.content.exemptionNature"
  1530. size="small"
  1531. />
  1532. </td>
  1533. <td>
  1534. <div
  1535. style="word-wrap: break-word; padding: 0 4px"
  1536. v-if="textShow"
  1537. >
  1538. {{ printCustomsDeclaration.content.licenseKey }}
  1539. </div>
  1540. <el-input
  1541. autosize
  1542. type="textarea"
  1543. v-if="!textShow"
  1544. v-model="printCustomsDeclaration.content.licenseKey"
  1545. size="small"
  1546. />
  1547. </td>
  1548. </tr>
  1549. <tr style="background-color: #dce6f1">
  1550. <td colspan="2">
  1551. <span>合同协议号(根据合同填写)</span>
  1552. </td>
  1553. <td colspan="2">
  1554. <span>贸易国(合同买方所在国)</span>
  1555. </td>
  1556. <td colspan="2">
  1557. <span>运抵国</span>
  1558. </td>
  1559. <td>
  1560. <span>指运港(不用填写)</span>
  1561. </td>
  1562. <td>
  1563. <span>离境口岸(不用填写)</span>
  1564. </td>
  1565. </tr>
  1566. <tr>
  1567. <td colspan="2" style="background-color: #ebf1de">
  1568. <div
  1569. style="word-wrap: break-word; padding: 0 4px"
  1570. v-if="textShow"
  1571. >
  1572. {{ printCustomsDeclaration.content.contractCode }}
  1573. </div>
  1574. <el-input
  1575. autosize
  1576. type="textarea"
  1577. v-if="!textShow"
  1578. v-model="printCustomsDeclaration.content.contractCode"
  1579. size="small"
  1580. />
  1581. </td>
  1582. <td colspan="2" style="background-color: #ebf1de">
  1583. <div
  1584. style="word-wrap: break-word; padding: 0 4px"
  1585. v-if="textShow"
  1586. >
  1587. {{ printCustomsDeclaration.content.tradingCountry }}
  1588. </div>
  1589. <el-input
  1590. autosize
  1591. type="textarea"
  1592. v-if="!textShow"
  1593. v-model="printCustomsDeclaration.content.tradingCountry"
  1594. size="small"
  1595. />
  1596. </td>
  1597. <td colspan="2" style="background-color: #ebf1de">
  1598. <div
  1599. style="word-wrap: break-word; padding: 0 4px"
  1600. v-if="textShow"
  1601. >
  1602. {{ printCustomsDeclaration.content.arrivalCountry }}
  1603. </div>
  1604. <el-input
  1605. autosize
  1606. type="textarea"
  1607. v-if="!textShow"
  1608. v-model="printCustomsDeclaration.content.arrivalCountry"
  1609. size="small"
  1610. />
  1611. </td>
  1612. <td>
  1613. <div
  1614. style="word-wrap: break-word; padding: 0 4px"
  1615. v-if="textShow"
  1616. >
  1617. {{ printCustomsDeclaration.content.portOfDestination }}
  1618. </div>
  1619. <el-input
  1620. autosize
  1621. type="textarea"
  1622. v-if="!textShow"
  1623. v-model="printCustomsDeclaration.content.portOfDestination"
  1624. size="small"
  1625. />
  1626. </td>
  1627. <td>
  1628. <div
  1629. style="word-wrap: break-word; padding: 0 4px"
  1630. v-if="textShow"
  1631. >
  1632. {{ printCustomsDeclaration.content.departurePort }}
  1633. </div>
  1634. <el-input
  1635. autosize
  1636. type="textarea"
  1637. v-if="!textShow"
  1638. v-model="printCustomsDeclaration.content.departurePort"
  1639. size="small"
  1640. />
  1641. </td>
  1642. </tr>
  1643. <tr style="background-color: #dce6f1">
  1644. <td>
  1645. <span>包装种类</span>
  1646. </td>
  1647. <td>
  1648. <span>件数(运单和装箱单一致)</span>
  1649. </td>
  1650. <td>
  1651. <span>毛重(千克)</span>
  1652. </td>
  1653. <td>
  1654. <span>净重(千克)</span>
  1655. </td>
  1656. <td>
  1657. <span>成交方式</span>
  1658. </td>
  1659. <td>
  1660. <span>运费</span>
  1661. </td>
  1662. <td>
  1663. <span>保费</span>
  1664. </td>
  1665. <td>
  1666. <span>杂费(如有请填写)</span>
  1667. </td>
  1668. </tr>
  1669. <tr>
  1670. <td style="background-color: #ebf1de">
  1671. <div
  1672. style="word-wrap: break-word; padding: 0 4px"
  1673. v-if="textShow"
  1674. >
  1675. {{ printCustomsDeclaration.content.packageType }}
  1676. </div>
  1677. <el-input
  1678. autosize
  1679. type="textarea"
  1680. v-if="!textShow"
  1681. v-model="printCustomsDeclaration.content.packageType"
  1682. size="small"
  1683. />
  1684. </td>
  1685. <td style="background-color: #ebf1de">
  1686. <div
  1687. style="word-wrap: break-word; padding: 0 4px"
  1688. v-if="textShow"
  1689. >
  1690. {{ printCustomsDeclaration.content.sumPackQuantity }}
  1691. </div>
  1692. <el-input
  1693. autosize
  1694. type="textarea"
  1695. v-if="!textShow"
  1696. v-model="printCustomsDeclaration.content.sumPackQuantity"
  1697. size="small"
  1698. />
  1699. </td>
  1700. <td style="background-color: #ebf1de">
  1701. <div
  1702. style="word-wrap: break-word; padding: 0 4px"
  1703. v-if="textShow"
  1704. >
  1705. {{ printCustomsDeclaration.content.sumRoughWeight }}
  1706. </div>
  1707. <el-input
  1708. autosize
  1709. type="textarea"
  1710. v-if="!textShow"
  1711. v-model="printCustomsDeclaration.content.sumRoughWeight"
  1712. size="small"
  1713. />
  1714. </td>
  1715. <td style="background-color: #ebf1de">
  1716. <div
  1717. style="word-wrap: break-word; padding: 0 4px"
  1718. v-if="textShow"
  1719. >
  1720. {{ printCustomsDeclaration.content.sumNetWeight }}
  1721. </div>
  1722. <el-input
  1723. autosize
  1724. type="textarea"
  1725. v-if="!textShow"
  1726. v-model="printCustomsDeclaration.content.sumNetWeight"
  1727. size="small"
  1728. />
  1729. </td>
  1730. <td style="background-color: #ebf1de">
  1731. <div
  1732. style="word-wrap: break-word; padding: 0 4px"
  1733. v-if="textShow"
  1734. >
  1735. {{ printCustomsDeclaration.content.tradeModeName }}
  1736. </div>
  1737. <el-input
  1738. autosize
  1739. type="textarea"
  1740. v-if="!textShow"
  1741. v-model="printCustomsDeclaration.content.tradeModeName"
  1742. size="small"
  1743. />
  1744. </td>
  1745. <td>
  1746. <div
  1747. style="word-wrap: break-word; padding: 0 4px"
  1748. v-if="textShow"
  1749. >
  1750. {{ printCustomsDeclaration.content.freightPrice }}
  1751. </div>
  1752. <el-input
  1753. autosize
  1754. type="textarea"
  1755. v-if="!textShow"
  1756. v-model="printCustomsDeclaration.content.freightPrice"
  1757. size="small"
  1758. />
  1759. </td>
  1760. <td>
  1761. <div
  1762. style="word-wrap: break-word; padding: 0 4px"
  1763. v-if="textShow"
  1764. >
  1765. {{ printCustomsDeclaration.content.premiumPrice }}
  1766. </div>
  1767. <el-input
  1768. autosize
  1769. type="textarea"
  1770. v-if="!textShow"
  1771. v-model="printCustomsDeclaration.content.premiumPrice"
  1772. size="small"
  1773. />
  1774. </td>
  1775. <td>
  1776. <div
  1777. style="word-wrap: break-word; padding: 0 4px"
  1778. v-if="textShow"
  1779. >
  1780. {{ printCustomsDeclaration.content.incidentalPrice }}
  1781. </div>
  1782. <el-input
  1783. autosize
  1784. type="textarea"
  1785. v-if="!textShow"
  1786. v-model="printCustomsDeclaration.content.incidentalPrice"
  1787. size="small"
  1788. />
  1789. </td>
  1790. </tr>
  1791. <tr>
  1792. <td colspan="3" style="background-color: #dce6f1">
  1793. <span>随附单证及编号(常见如通关单号、原进口报关单号)</span>
  1794. </td>
  1795. <td colspan="5">
  1796. <div
  1797. style="word-wrap: break-word; padding: 0 4px"
  1798. v-if="textShow"
  1799. >
  1800. {{ printCustomsDeclaration.content.documentsAttached }}
  1801. </div>
  1802. <el-input
  1803. autosize
  1804. type="textarea"
  1805. v-if="!textShow"
  1806. v-model="printCustomsDeclaration.content.documentsAttached"
  1807. size="small"
  1808. />
  1809. </td>
  1810. </tr>
  1811. <tr>
  1812. <td colspan="2" style="background-color: #dce6f1">
  1813. <span>标记唛码及备注</span>
  1814. </td>
  1815. <td colspan="2" style="background-color: #ebf1de">
  1816. <div
  1817. style="word-wrap: break-word; padding: 0 4px"
  1818. v-if="textShow"
  1819. >
  1820. {{ printCustomsDeclaration.content.shippingMark }}
  1821. </div>
  1822. <el-input
  1823. autosize
  1824. type="textarea"
  1825. v-if="!textShow"
  1826. v-model="printCustomsDeclaration.content.shippingMark"
  1827. size="small"
  1828. />
  1829. </td>
  1830. <td style="background-color: #dce6f1">
  1831. <span>境内货源地</span>
  1832. </td>
  1833. <td
  1834. colspan="3"
  1835. style="background-color: #ebf1de; text-align: left"
  1836. >
  1837. <div
  1838. style="word-wrap: break-word; padding: 0 4px"
  1839. v-if="textShow"
  1840. >
  1841. {{ printCustomsDeclaration.content.withinChinaSource }}
  1842. </div>
  1843. <el-input
  1844. autosize
  1845. type="textarea"
  1846. v-if="!textShow"
  1847. v-model="printCustomsDeclaration.content.withinChinaSource"
  1848. size="small"
  1849. />
  1850. </td>
  1851. </tr>
  1852. </table>
  1853. <table cellspacing="0" cellpadding="0" border="0" class="two">
  1854. <tr>
  1855. <th style="width: 20px">
  1856. <span>项号</span>
  1857. </th>
  1858. <th style="width: 140px">
  1859. <span>商品编号(13位)原10位海关编码+3位检验检疫附加编码</span>
  1860. </th>
  1861. <th style="width: 140px">
  1862. <span>商品名称</span>
  1863. </th>
  1864. <th>
  1865. <span>品牌</span>
  1866. </th>
  1867. <th>
  1868. <span>品牌类型</span>
  1869. </th>
  1870. <th style="width: 140px">
  1871. <span>出口享惠情况(不填写则默认不享受)</span>
  1872. </th>
  1873. <th>
  1874. <span>型号</span>
  1875. </th>
  1876. <th style="width: 140px">
  1877. <span>税号所需申报要素(如:用途、材质等)</span>
  1878. </th>
  1879. <th>
  1880. <span>各项净重</span>
  1881. </th>
  1882. <th>
  1883. <span>成交数量</span>
  1884. </th>
  1885. <th>
  1886. <span>成交单位</span>
  1887. </th>
  1888. <th>
  1889. <span>原产国(地区)</span>
  1890. </th>
  1891. <th>
  1892. <span>总价与币制</span>
  1893. </th>
  1894. <th>
  1895. <span>成交单价</span>
  1896. </th>
  1897. <th>
  1898. <span>EXW 单价</span>
  1899. </th>
  1900. </tr>
  1901. <template
  1902. v-if="
  1903. printCustomsDeclaration.content.products &&
  1904. printCustomsDeclaration.content.products.length > 0
  1905. "
  1906. >
  1907. <tr
  1908. v-for="(item, index) in printCustomsDeclaration.content
  1909. .products"
  1910. :key="index"
  1911. >
  1912. <td>
  1913. <span>{{ index + 1 }}</span>
  1914. </td>
  1915. <td>
  1916. <div
  1917. style="word-wrap: break-word; padding: 0 4px"
  1918. v-if="textShow"
  1919. >
  1920. {{ item.customsCode }}
  1921. </div>
  1922. <el-input
  1923. autosize
  1924. type="textarea"
  1925. v-if="!textShow"
  1926. v-model="item.customsCode"
  1927. size="small"
  1928. />
  1929. </td>
  1930. <td>
  1931. <div
  1932. style="word-wrap: break-word; padding: 0 4px"
  1933. v-if="textShow"
  1934. >
  1935. {{ item.productName }}
  1936. </div>
  1937. <el-input
  1938. autosize
  1939. type="textarea"
  1940. v-if="!textShow"
  1941. v-model="item.productName"
  1942. size="small"
  1943. />
  1944. </td>
  1945. <td>
  1946. <div
  1947. style="word-wrap: break-word; padding: 0 4px"
  1948. v-if="textShow"
  1949. >
  1950. {{ item.brand }}
  1951. </div>
  1952. <el-input
  1953. autosize
  1954. type="textarea"
  1955. v-if="!textShow"
  1956. v-model="item.brand"
  1957. size="small"
  1958. />
  1959. </td>
  1960. <td>
  1961. <div
  1962. style="word-wrap: break-word; padding: 0 4px"
  1963. v-if="textShow"
  1964. >
  1965. {{ item.brandType }}
  1966. </div>
  1967. <el-input
  1968. autosize
  1969. type="textarea"
  1970. v-if="!textShow"
  1971. v-model="item.brandType"
  1972. size="small"
  1973. />
  1974. </td>
  1975. <td>
  1976. <div
  1977. style="word-wrap: break-word; padding: 0 4px"
  1978. v-if="textShow"
  1979. >
  1980. {{ item.exportBenefits }}
  1981. </div>
  1982. <el-input
  1983. autosize
  1984. type="textarea"
  1985. v-if="!textShow"
  1986. v-model="item.exportBenefits"
  1987. size="small"
  1988. />
  1989. </td>
  1990. <td>
  1991. <div
  1992. style="word-wrap: break-word; padding: 0 4px"
  1993. v-if="textShow"
  1994. >
  1995. {{ item.productModelChinese }}
  1996. </div>
  1997. <el-input
  1998. autosize
  1999. type="textarea"
  2000. v-if="!textShow"
  2001. v-model="item.productModelChinese"
  2002. size="small"
  2003. />
  2004. </td>
  2005. <td>
  2006. <div
  2007. style="word-wrap: break-word; padding: 0 4px"
  2008. v-if="textShow"
  2009. >
  2010. {{ item.declareRemark }}
  2011. </div>
  2012. <el-input
  2013. autosize
  2014. type="textarea"
  2015. v-if="!textShow"
  2016. v-model="item.declareRemark"
  2017. size="small"
  2018. />
  2019. </td>
  2020. <td>
  2021. <div
  2022. style="word-wrap: break-word; padding: 0 4px"
  2023. v-if="textShow"
  2024. >
  2025. {{ item.netWeight }}
  2026. </div>
  2027. <el-input
  2028. autosize
  2029. type="textarea"
  2030. v-if="!textShow"
  2031. v-model="item.netWeight"
  2032. size="small"
  2033. />
  2034. </td>
  2035. <td>
  2036. <div
  2037. style="word-wrap: break-word; padding: 0 4px"
  2038. v-if="textShow"
  2039. >
  2040. {{ item.quantity }}
  2041. </div>
  2042. <el-input
  2043. autosize
  2044. type="textarea"
  2045. v-if="!textShow"
  2046. v-model="item.quantity"
  2047. size="small"
  2048. />
  2049. </td>
  2050. <td>
  2051. <div
  2052. style="word-wrap: break-word; padding: 0 4px"
  2053. v-if="textShow"
  2054. >
  2055. {{ item.unit }}
  2056. </div>
  2057. <el-input
  2058. autosize
  2059. type="textarea"
  2060. v-if="!textShow"
  2061. v-model="item.unit"
  2062. size="small"
  2063. />
  2064. </td>
  2065. <td>
  2066. <div
  2067. style="word-wrap: break-word; padding: 0 4px"
  2068. v-if="textShow"
  2069. >
  2070. {{ item.countryChinese }}
  2071. </div>
  2072. <el-input
  2073. autosize
  2074. type="textarea"
  2075. v-if="!textShow"
  2076. v-model="item.countryChinese"
  2077. size="small"
  2078. />
  2079. </td>
  2080. <td>
  2081. <div
  2082. style="word-wrap: break-word; padding: 0 4px"
  2083. v-if="textShow"
  2084. >
  2085. {{ item.sumPrice }}
  2086. </div>
  2087. <el-input
  2088. autosize
  2089. type="textarea"
  2090. v-if="!textShow"
  2091. v-model="item.sumPrice"
  2092. size="small"
  2093. />
  2094. </td>
  2095. <td>
  2096. <div
  2097. style="word-wrap: break-word; padding: 0 4px"
  2098. v-if="textShow"
  2099. >
  2100. {{ item.declaredPrice }}
  2101. </div>
  2102. <el-input
  2103. autosize
  2104. type="textarea"
  2105. v-if="!textShow"
  2106. v-model="item.declaredPrice"
  2107. size="small"
  2108. />
  2109. </td>
  2110. <td>
  2111. <div
  2112. style="word-wrap: break-word; padding: 0 4px"
  2113. v-if="textShow"
  2114. >
  2115. {{ item.exwPrice }}
  2116. </div>
  2117. <el-input
  2118. autosize
  2119. type="textarea"
  2120. v-if="!textShow"
  2121. v-model="item.exwPrice"
  2122. size="small"
  2123. />
  2124. </td>
  2125. </tr>
  2126. </template>
  2127. <tr>
  2128. <td colspan="15" style="text-align: left; padding-left: 8px">
  2129. <span style="color: red">
  2130. 我司保证以上所提供的信息及资料准确无误,如在海关申报、查验时有任何异议,所造成的损失及后果由我司承担。
  2131. 确认签名/盖章:_________________________
  2132. </span>
  2133. </td>
  2134. </tr>
  2135. </table>
  2136. </div>
  2137. </div>
  2138. <template #footer>
  2139. <el-button @click="openCustomsDeclaration = false" size="large"
  2140. >取消</el-button
  2141. >
  2142. <el-button type="primary" @click="clickDownload()" size="large"
  2143. >下载PDF</el-button
  2144. >
  2145. <el-button type="primary" @click="clickSave()" size="large"
  2146. >保存</el-button
  2147. >
  2148. </template>
  2149. </el-dialog>
  2150. <el-dialog
  2151. title="代理报关委托书"
  2152. v-if="mandateDialog"
  2153. v-model="mandateDialog"
  2154. width="1000"
  2155. >
  2156. <div>
  2157. <el-button type="primary" @click="textShowOne = !textShowOne"
  2158. ><span v-show="!textShowOne">切换只读状态</span>
  2159. <span v-show="textShowOne">切换编辑状态</span></el-button
  2160. >
  2161. </div>
  2162. <div id="mandate" style="padding: 30px">
  2163. <div class="title">代 理 报 关 委 托 书</div>
  2164. <div style="text-align: right">
  2165. <span>编号:</span>
  2166. <span v-if="textShowOne">{{ mandateData.a }}</span>
  2167. <el-input
  2168. style="width: 200px"
  2169. autosize
  2170. type="textarea"
  2171. v-if="!textShowOne"
  2172. v-model="mandateData.a"
  2173. size="small"
  2174. />
  2175. </div>
  2176. <div>
  2177. <span v-if="textShowOne">{{ mandateData.b }}</span>
  2178. <el-input
  2179. style="width: 200px"
  2180. autosize
  2181. type="textarea"
  2182. v-if="!textShowOne"
  2183. v-model="mandateData.b"
  2184. size="small"
  2185. />
  2186. <span v-if="textShowOne">:</span>
  2187. </div>
  2188. <div>
  2189. <span style="padding-left: 2em">我单位现</span>
  2190. <span v-if="textShowOne">{{ mandateData.c ? "长期" : "逐票" }}</span>
  2191. <span class="select_height">
  2192. <el-select
  2193. v-model="mandateData.c"
  2194. class="m-2"
  2195. placeholder=""
  2196. v-if="!textShowOne"
  2197. >
  2198. <el-option label="逐票" value="0" />
  2199. <el-option label="长期" value="1" />
  2200. </el-select>
  2201. </span>
  2202. 委托贵公司代理
  2203. <span v-if="textShowOne">
  2204. 〔<span v-for="(item, index) in mandateData.arr" :key="index">
  2205. {{ showLabelData(item) }}
  2206. <span v-if="index < mandateData.arr.length - 1">,</span>
  2207. </span>
  2208. </span>
  2209. <el-select
  2210. v-model="mandateData.arr"
  2211. multiple
  2212. placeholder=""
  2213. style="width: 240px"
  2214. v-if="!textShowOne"
  2215. >
  2216. <el-option
  2217. v-for="item in selectData"
  2218. :key="item.value"
  2219. :label="item.label"
  2220. :value="item.value"
  2221. />
  2222. </el-select>
  2223. 等通关事宜。详见《委托报关协议》
  2224. </div>
  2225. <div style="text-indent: 2em">
  2226. 我单位保证遵守海关有关法律、法规、规章,保证所提供的情况真实、完整、单货相符,无侵犯他
  2227. 人知识产权的行为。否则,愿承担相关法律责任。
  2228. </div>
  2229. <div style="text-indent: 2em">
  2230. 本委托书有效期自签字之日起至<span v-if="textShowOne">{{
  2231. getChineseDate(mandateData.d)
  2232. }}</span
  2233. ><el-date-picker
  2234. v-model="mandateData.d"
  2235. type="date"
  2236. placeholder=""
  2237. size="default"
  2238. v-if="!textShowOne"
  2239. />止。
  2240. </div>
  2241. <div style="text-align: right; padding-right: 150px">
  2242. 委托方(盖章)
  2243. </div>
  2244. <div style="margin: 20px 0; text-align: right; padding-right: 100px">
  2245. 法定代表人或其授权签署《代理报关委托书》的人(签字)
  2246. </div>
  2247. <div style="text-align: right">
  2248. <span v-if="textShowOne">{{ getChineseDate(mandateData.e) }}</span>
  2249. <el-date-picker
  2250. v-model="mandateData.e"
  2251. type="date"
  2252. placeholder=""
  2253. size="default"
  2254. v-if="!textShowOne"
  2255. />
  2256. </div>
  2257. <div class="title" style="margin-bottom: 10px">委 托 报 关 协 议</div>
  2258. <div style="text-indent: 2em">
  2259. 为明确委托报关具体事项和各自责任,双方经平等协商签定协议如下:
  2260. </div>
  2261. <div style="width: 100%; overflow: hidden">
  2262. <div style="width: 49%; float: left">
  2263. <table border="1" style="width: 100%" class="table-mandate">
  2264. <tr>
  2265. <td style="width: 33%">委托方</td>
  2266. <td style="width: 67%">
  2267. <span v-if="textShowOne">{{
  2268. dictValueLabel(mandateData.f, companyData)
  2269. }}</span>
  2270. <span class="select_height">
  2271. <el-select
  2272. v-model="mandateData.f"
  2273. class="m-2"
  2274. placeholder=""
  2275. v-if="!textShowOne"
  2276. style="height: 26px"
  2277. >
  2278. <el-option
  2279. v-for="item in companyData"
  2280. :key="item.value"
  2281. :label="item.label"
  2282. :value="item.value"
  2283. /> </el-select
  2284. ></span>
  2285. </td>
  2286. </tr>
  2287. <tr>
  2288. <td>主要货物名称</td>
  2289. <td></td>
  2290. </tr>
  2291. <tr>
  2292. <td>HS 编码</td>
  2293. <td></td>
  2294. </tr>
  2295. <tr>
  2296. <td>进/出口日期</td>
  2297. <td>
  2298. <span v-if="textShowOne">{{
  2299. getChineseDate(mandateData.g)
  2300. }}</span>
  2301. <el-date-picker
  2302. v-model="mandateData.g"
  2303. type="date"
  2304. placeholder=""
  2305. size="default"
  2306. v-if="!textShowOne"
  2307. style="height: 26px"
  2308. />
  2309. </td>
  2310. </tr>
  2311. <tr>
  2312. <td>提运单号</td>
  2313. <td>
  2314. <span v-if="textShowOne">{{ mandateData.h }}</span>
  2315. <el-input
  2316. autosize
  2317. type="textarea"
  2318. v-if="!textShowOne"
  2319. v-model="mandateData.h"
  2320. size="small"
  2321. />
  2322. </td>
  2323. </tr>
  2324. <tr>
  2325. <td>贸易方式</td>
  2326. <td></td>
  2327. </tr>
  2328. <tr>
  2329. <td>数(重)量</td>
  2330. <td></td>
  2331. </tr>
  2332. <tr>
  2333. <td>包装情况</td>
  2334. <td>
  2335. <span v-if="textShowOne">{{ mandateData.j }}</span>
  2336. <el-input
  2337. autosize
  2338. type="textarea"
  2339. v-if="!textShowOne"
  2340. v-model="mandateData.j"
  2341. size="small"
  2342. />
  2343. </td>
  2344. </tr>
  2345. <tr>
  2346. <td>原产地/货源地</td>
  2347. <td></td>
  2348. </tr>
  2349. <tr>
  2350. <td></td>
  2351. <td></td>
  2352. </tr>
  2353. <tr>
  2354. <td colspan="2" style="text-align: left; height: auto">
  2355. <span> 其他要求:</span>
  2356. <span v-if="textShowOne">{{ mandateData.k }}</span>
  2357. <el-input
  2358. autosize
  2359. type="textarea"
  2360. v-if="!textShowOne"
  2361. v-model="mandateData.k"
  2362. size="small"
  2363. :rows="3"
  2364. style="width: 82%"
  2365. />
  2366. </td>
  2367. </tr>
  2368. <tr>
  2369. <td colspan="2" style="text-align: left; height: auto">
  2370. 背面所列通用条款是本协议不可分割的一部分,对本协
  2371. 议的签署构成了对背面通用条款的同意。
  2372. </td>
  2373. </tr>
  2374. <tr>
  2375. <td colspan="2" style="text-align: left">
  2376. <div style="display: flex">
  2377. <div>委托方签章:</div>
  2378. <div style="height: 200px"></div>
  2379. </div>
  2380. <div style="text-align: left">经办人签字:</div>
  2381. <div style="display: flex; justify-content: space-between">
  2382. <div>联系电话:</div>
  2383. <div>年 月 日</div>
  2384. </div>
  2385. </td>
  2386. </tr>
  2387. </table>
  2388. </div>
  2389. <div style="width: 2%; float: left; opacity: 0">1</div>
  2390. <div style="width: 49%; float: left">
  2391. <table border="1" style="width: 100%" class="table-mandate">
  2392. <tr>
  2393. <td style="width: 33%">被委托方</td>
  2394. <td colspan="2">
  2395. <span v-if="textShowOne"></span>
  2396. </td>
  2397. </tr>
  2398. <tr>
  2399. <td>*报关单编码</td>
  2400. <td colspan="2" style="text-align: left">No.</td>
  2401. </tr>
  2402. <tr>
  2403. <td rowspan="4">收到单证日期</td>
  2404. <td style="width: 33%">合同</td>
  2405. <td style="width: 34%">发票</td>
  2406. </tr>
  2407. <tr>
  2408. <td>装箱清单</td>
  2409. <td>提(运)单</td>
  2410. </tr>
  2411. <tr>
  2412. <td>加工贸易手册</td>
  2413. <td>许可证件</td>
  2414. </tr>
  2415. <tr>
  2416. <td
  2417. colspan="2"
  2418. style="text-align: left; height: 144px; vertical-align: top"
  2419. >
  2420. 其他
  2421. <!-- <el-input
  2422. autosize
  2423. type="textarea"
  2424. v-if="!textShowOne"
  2425. v-model="mandateData.exwPrice"
  2426. size="small"
  2427. :rows="3"
  2428. style="width: 67%"
  2429. /> -->
  2430. </td>
  2431. </tr>
  2432. <tr>
  2433. <td>报关收费</td>
  2434. <td colspan="2" style="text-align: left">
  2435. 人民币:<span style="float: right; padding-right: 20px"
  2436. >元</span
  2437. >
  2438. </td>
  2439. </tr>
  2440. <tr>
  2441. <td colspan="3" style="text-align: left; height: auto">
  2442. 承诺说明: <span v-if="textShowOne"></span>
  2443. </td>
  2444. </tr>
  2445. <tr>
  2446. <td colspan="3" style="text-align: left; height: auto">
  2447. 背面所列通用条款是本协议不可分割的一部分,对本协
  2448. 议的签署构成了对背面通用条款的同意。
  2449. </td>
  2450. </tr>
  2451. <tr>
  2452. <td colspan="3" style="text-align: left">
  2453. <div style="display: flex">
  2454. <div>被委托方签章:</div>
  2455. <div style="height: 200px"></div>
  2456. </div>
  2457. <div style="text-align: left">报关人员签名:</div>
  2458. <div style="display: flex; justify-content: space-between">
  2459. <div>联系电话:</div>
  2460. <div>年 月 日</div>
  2461. </div>
  2462. </td>
  2463. </tr>
  2464. </table>
  2465. </div>
  2466. </div>
  2467. <div style="text-align: right">中国报关协会监制</div>
  2468. </div>
  2469. </el-dialog>
  2470. </div>
  2471. </template>
  2472. <script setup>
  2473. import { computed, ref } from "vue";
  2474. import byTable from "@/components/byTable/index";
  2475. import byForm from "@/components/byForm/index";
  2476. import { ElMessage, ElMessageBox } from "element-plus";
  2477. import useUserStore from "@/store/modules/user";
  2478. const { proxy } = getCurrentInstance();
  2479. const shipmentList = ref([]);
  2480. const countryData = ref([]);
  2481. const fundsPaymentMethod = ref([]);
  2482. const shippingMethod = ref([]);
  2483. const tradeMethods = ref([]);
  2484. const accountCurrency = ref([]);
  2485. const productUnit = ref([]);
  2486. const sourceList = ref({
  2487. data: [],
  2488. pagination: {
  2489. total: 0,
  2490. pageNum: 1,
  2491. pageSize: 10,
  2492. keyword: "",
  2493. warehouseId: "",
  2494. toWarehouseId: "",
  2495. type: "3",
  2496. },
  2497. });
  2498. const loading = ref(false);
  2499. const config = computed(() => {
  2500. return [
  2501. {
  2502. attrs: {
  2503. label: "归属公司",
  2504. prop: "sellCorporationName",
  2505. "min-width": 260,
  2506. },
  2507. },
  2508. {
  2509. attrs: {
  2510. label: "客户名称",
  2511. prop: "buyCorporationName",
  2512. "min-width": 200,
  2513. },
  2514. },
  2515. {
  2516. attrs: {
  2517. label: "主合同编号",
  2518. prop: "code",
  2519. width: 200,
  2520. },
  2521. },
  2522. {
  2523. attrs: {
  2524. label: "货运详情",
  2525. slot: "acceptCode",
  2526. width: 200,
  2527. },
  2528. },
  2529. {
  2530. attrs: {
  2531. label: "查看单证",
  2532. slot: "toView",
  2533. width: 140,
  2534. },
  2535. },
  2536. {
  2537. attrs: {
  2538. label: "创建时间",
  2539. prop: "createTime",
  2540. width: 160,
  2541. },
  2542. },
  2543. {
  2544. attrs: {
  2545. label: "操作",
  2546. width: "80",
  2547. align: "center",
  2548. },
  2549. renderHTML(row) {
  2550. return [
  2551. {
  2552. attrs: {
  2553. label: "删除",
  2554. type: "primary",
  2555. text: true,
  2556. },
  2557. el: "button",
  2558. click() {
  2559. ElMessageBox.confirm(
  2560. "此操作将永久删除该数据, 是否继续?",
  2561. "提示",
  2562. {
  2563. confirmButtonText: "确定",
  2564. cancelButtonText: "取消",
  2565. type: "warning",
  2566. }
  2567. ).then(() => {
  2568. proxy
  2569. .post("/documents/delete", {
  2570. id: row.id,
  2571. })
  2572. .then(() => {
  2573. ElMessage({
  2574. message: "删除成功",
  2575. type: "success",
  2576. });
  2577. getList();
  2578. });
  2579. });
  2580. },
  2581. },
  2582. ];
  2583. },
  2584. },
  2585. ];
  2586. });
  2587. const companyData = ref([]);
  2588. const getDict = () => {
  2589. proxy.post("/customizeArea/list", { parentId: "0" }).then((res) => {
  2590. if (res && res.length > 0) {
  2591. countryData.value = res.map((item) => {
  2592. return {
  2593. label: item.name,
  2594. value: item.id,
  2595. };
  2596. });
  2597. }
  2598. });
  2599. proxy
  2600. .post("/corporation/page", { pageNum: 1, pageSize: 9999 })
  2601. .then((res) => {
  2602. companyData.value = res.rows.map((x) => ({
  2603. ...x,
  2604. label: x.name,
  2605. value: x.id,
  2606. }));
  2607. });
  2608. proxy
  2609. .post("/dictTenantData/page", {
  2610. pageNum: 1,
  2611. pageSize: 999,
  2612. dictCode: "funds_payment_method",
  2613. tenantId: useUserStore().user.tenantId,
  2614. })
  2615. .then((res) => {
  2616. if (res.rows && res.rows.length > 0) {
  2617. fundsPaymentMethod.value = res.rows.map((item) => {
  2618. return {
  2619. label: item.dictValue,
  2620. value: item.dictKey,
  2621. };
  2622. });
  2623. }
  2624. });
  2625. proxy
  2626. .post("/dictTenantData/page", {
  2627. pageNum: 1,
  2628. pageSize: 999,
  2629. dictCode: "shipping_method",
  2630. tenantId: useUserStore().user.tenantId,
  2631. })
  2632. .then((res) => {
  2633. if (res.rows && res.rows.length > 0) {
  2634. shippingMethod.value = res.rows.map((item) => {
  2635. return {
  2636. label: item.dictValue,
  2637. value: item.dictKey,
  2638. };
  2639. });
  2640. }
  2641. });
  2642. proxy
  2643. .post("/dictTenantData/page", {
  2644. pageNum: 1,
  2645. pageSize: 999,
  2646. dictCode: "trade_mode",
  2647. tenantId: useUserStore().user.tenantId,
  2648. })
  2649. .then((res) => {
  2650. if (res.rows && res.rows.length > 0) {
  2651. tradeMethods.value = res.rows.map((item) => {
  2652. return {
  2653. label: item.dictValue,
  2654. value: item.dictKey,
  2655. };
  2656. });
  2657. }
  2658. });
  2659. proxy
  2660. .post("/dictTenantData/page", {
  2661. pageNum: 1,
  2662. pageSize: 999,
  2663. dictCode: "account_currency",
  2664. tenantId: useUserStore().user.tenantId,
  2665. })
  2666. .then((res) => {
  2667. if (res.rows && res.rows.length > 0) {
  2668. accountCurrency.value = res.rows.map((item) => {
  2669. return {
  2670. label: item.dictValue,
  2671. value: item.dictKey,
  2672. };
  2673. });
  2674. }
  2675. });
  2676. proxy
  2677. .post("/dictTenantData/page", {
  2678. pageNum: 1,
  2679. pageSize: 999,
  2680. dictCode: "unit",
  2681. tenantId: useUserStore().user.tenantId,
  2682. })
  2683. .then((res) => {
  2684. if (res.rows && res.rows.length > 0) {
  2685. productUnit.value = res.rows.map((item) => {
  2686. return {
  2687. label: item.dictValue,
  2688. value: item.dictKey,
  2689. };
  2690. });
  2691. }
  2692. });
  2693. };
  2694. const getList = async (req) => {
  2695. sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
  2696. loading.value = true;
  2697. proxy.post("/documents/page", sourceList.value.pagination).then((res) => {
  2698. sourceList.value.data = res.rows;
  2699. sourceList.value.pagination.total = res.total;
  2700. setTimeout(() => {
  2701. loading.value = false;
  2702. }, 200);
  2703. });
  2704. };
  2705. getDict();
  2706. getList();
  2707. const dialogVisible = ref(false);
  2708. const loadingDialog = ref(false);
  2709. const submit = ref(null);
  2710. const formOption = reactive({
  2711. inline: true,
  2712. labelWidth: 100,
  2713. itemWidth: 100,
  2714. rules: [],
  2715. });
  2716. const formData = reactive({
  2717. data: {
  2718. documentsProductList: [],
  2719. },
  2720. });
  2721. const formConfig = computed(() => {
  2722. return [
  2723. {
  2724. type: "select",
  2725. prop: "contractId",
  2726. label: "出货主合同",
  2727. required: true,
  2728. data: shipmentList.value,
  2729. fn: (val) => {
  2730. changeContract(val);
  2731. },
  2732. },
  2733. {
  2734. type: "slot",
  2735. slotName: "details",
  2736. label: "产品信息",
  2737. },
  2738. {
  2739. label: "唛头信息",
  2740. },
  2741. {
  2742. type: "select",
  2743. prop: "countryId",
  2744. label: "目的国",
  2745. required: true,
  2746. filterable: true,
  2747. data: countryData.value,
  2748. itemWidth: 40,
  2749. },
  2750. {
  2751. type: "input",
  2752. prop: "portOfDestination",
  2753. label: "目的港",
  2754. itemWidth: 60,
  2755. },
  2756. {
  2757. type: "input",
  2758. prop: "remark",
  2759. label: "唛头明细",
  2760. itemType: "textarea",
  2761. },
  2762. ];
  2763. });
  2764. const rules = ref({
  2765. contractId: [
  2766. { required: true, message: "请选择出货主合同", trigger: "change" },
  2767. ],
  2768. countryId: [{ required: true, message: "请选择目的国", trigger: "change" }],
  2769. describes: [{ required: true, message: "请输入货物描述", trigger: "blur" }],
  2770. subDescribe: [{ required: true, message: "请输入副描述", trigger: "blur" }],
  2771. customsCode: [{ required: true, message: "请输入海关编码", trigger: "blur" }],
  2772. quantity: [{ required: true, message: "请输入数量", trigger: "blur" }],
  2773. price: [{ required: true, message: "请输入单价", trigger: "blur" }],
  2774. });
  2775. const openModal = () => {
  2776. proxy.post("/packShipment/list", {}).then((res) => {
  2777. if (res && res.length > 0) {
  2778. shipmentList.value = res.map((item) => {
  2779. return {
  2780. packShipmentId: item.id,
  2781. label: item.contractCode,
  2782. value: item.contractId,
  2783. packDetailIds: item.packDetailIds,
  2784. };
  2785. });
  2786. } else {
  2787. shipmentList.value = [];
  2788. }
  2789. });
  2790. formData.data = {
  2791. documentsProductList: [],
  2792. };
  2793. loadingDialog.value = false;
  2794. dialogVisible.value = true;
  2795. };
  2796. const changeContract = (val) => {
  2797. if (val) {
  2798. let data = shipmentList.value.filter((item) => item.value === val);
  2799. if (data && data.length > 0) {
  2800. formData.data.packShipmentId = data[0].packShipmentId;
  2801. proxy
  2802. .post("/packShipment/productDetailList", {
  2803. packDetailIds: data[0].packDetailIds,
  2804. })
  2805. .then((res) => {
  2806. if (res && res.length > 0) {
  2807. formData.data.documentsProductList = res.map((item) => {
  2808. return {
  2809. businessId: item.businessId,
  2810. productId: item.productId,
  2811. describes: item.remark,
  2812. subDescribe: item.subDescription,
  2813. customsCode: item.customsCode,
  2814. quantity: item.quantity,
  2815. price: item.price,
  2816. type: item.type,
  2817. };
  2818. });
  2819. } else {
  2820. formData.data.documentsProductList = [];
  2821. }
  2822. });
  2823. } else {
  2824. formData.data.documentsProductList = [];
  2825. }
  2826. proxy.post("/contract/detail", { id: val }).then((res) => {
  2827. formData.data.countryId = res.buyCountryId;
  2828. });
  2829. } else {
  2830. formData.data.documentsProductList = [];
  2831. }
  2832. };
  2833. const submitForm = () => {
  2834. submit.value.handleSubmit(() => {
  2835. loadingDialog.value = true;
  2836. proxy.post("/documents/add", formData.data).then(
  2837. () => {
  2838. ElMessage({
  2839. message: "提交成功",
  2840. type: "success",
  2841. });
  2842. dialogVisible.value = false;
  2843. sourceList.value.pagination.pageNum = 1;
  2844. getList();
  2845. },
  2846. (err) => {
  2847. console.log(err);
  2848. loadingDialog.value = false;
  2849. }
  2850. );
  2851. });
  2852. };
  2853. const openAddAcceptCode = ref(false);
  2854. const loadingTwo = ref(false);
  2855. const submitTwo = ref(null);
  2856. const fileList = ref([]);
  2857. const uploadData = ref({});
  2858. const formDataTwo = reactive({
  2859. data: {
  2860. documentsId: "",
  2861. },
  2862. });
  2863. const formConfigTwo = computed(() => {
  2864. return [
  2865. {
  2866. type: "input",
  2867. prop: "acceptCarriage",
  2868. label: "承运方",
  2869. itemType: "text",
  2870. itemWidth: 40,
  2871. },
  2872. {
  2873. type: "input",
  2874. prop: "code",
  2875. label: "单号",
  2876. itemType: "text",
  2877. itemWidth: 60,
  2878. },
  2879. {
  2880. type: "slot",
  2881. prop: "departureTime",
  2882. slotName: "departureTime",
  2883. label: "起运时间",
  2884. },
  2885. {
  2886. type: "input",
  2887. prop: "remark",
  2888. label: "备注",
  2889. itemType: "textarea",
  2890. },
  2891. {
  2892. type: "slot",
  2893. prop: "file",
  2894. slotName: "file",
  2895. label: "上传附件",
  2896. },
  2897. ];
  2898. });
  2899. const rulesTwo = ref({
  2900. acceptCarriage: [
  2901. { required: true, message: "请输入承运方", trigger: "blur" },
  2902. ],
  2903. code: [{ required: true, message: "请输入承运单号", trigger: "blur" }],
  2904. departureTime: [
  2905. { required: true, message: "请选择起运时间", trigger: "change" },
  2906. ],
  2907. });
  2908. const clickAddAcceptCode = (item) => {
  2909. formDataTwo.data = {
  2910. documentsId: item.id,
  2911. };
  2912. fileList.value = [];
  2913. openAddAcceptCode.value = true;
  2914. };
  2915. const uploadFile = async (file) => {
  2916. const res = await proxy.post("/fileInfo/getSing", { fileName: file.name });
  2917. uploadData.value = res.uploadBody;
  2918. file.id = res.id;
  2919. file.fileName = res.fileName;
  2920. file.fileUrl = res.fileUrl;
  2921. return true;
  2922. };
  2923. const onPreviewFile = (file) => {
  2924. window.open(file.raw.fileUrl, "_blank");
  2925. };
  2926. const submitTwoForm = () => {
  2927. submitTwo.value.handleSubmit(() => {
  2928. if (fileList.value && fileList.value.length > 0) {
  2929. formDataTwo.data.fileList = fileList.value.map((item) => {
  2930. return {
  2931. id: item.raw.id,
  2932. fileName: item.raw.fileName,
  2933. fileUrl: item.raw.fileUrl,
  2934. };
  2935. });
  2936. } else {
  2937. formDataTwo.data.fileList = [];
  2938. }
  2939. loadingTwo.value = true;
  2940. proxy.post("/documentsTransport/add", formDataTwo.data).then(
  2941. () => {
  2942. ElMessage({
  2943. message: "提交成功",
  2944. type: "success",
  2945. });
  2946. openAddAcceptCode.value = false;
  2947. getList();
  2948. },
  2949. (err) => {
  2950. console.log(err);
  2951. loadingTwo.value = false;
  2952. }
  2953. );
  2954. });
  2955. };
  2956. const rowData = ref({});
  2957. const openSelectPrint = ref(false);
  2958. const clickToView = (item) => {
  2959. rowData.value = item;
  2960. openSelectPrint.value = true;
  2961. printDetails.value = {
  2962. packDetailGoodsList: [],
  2963. documents: {},
  2964. contract: {},
  2965. corporation: {},
  2966. packDetailList: [],
  2967. documentsProducts: [],
  2968. customer: {},
  2969. };
  2970. proxy
  2971. .get("/documents/generateInvoiceAPackPdf", { id: rowData.value.id })
  2972. .then((res) => {
  2973. let arr = [];
  2974. for (let i = 0; i < res.data.documentsProducts.length; i++) {
  2975. const ele = res.data.documentsProducts[i];
  2976. let index = -1;
  2977. if (i === 0) {
  2978. arr.push(ele);
  2979. } else {
  2980. const isHaveProduct = arr.some((x, i) => {
  2981. if (x.productId === ele.productId) {
  2982. index = i;
  2983. return true;
  2984. }
  2985. });
  2986. if (isHaveProduct && index >= 0) {
  2987. arr[index].quantity += ele.quantity;
  2988. } else {
  2989. arr.push(ele);
  2990. }
  2991. }
  2992. }
  2993. res.data.documentsProducts = arr;
  2994. printDetails.value = res.data;
  2995. });
  2996. };
  2997. const openPrint = ref(false);
  2998. const openStatus = ref("");
  2999. const printDetails = ref({
  3000. packDetailGoodsList: [],
  3001. documents: {},
  3002. contract: {},
  3003. contractProjectList: [],
  3004. corporation: {},
  3005. packDetailList: [],
  3006. documentsProducts: [],
  3007. customer: {},
  3008. });
  3009. const openCustomsDeclaration = ref(false);
  3010. const printCustomsDeclaration = ref({
  3011. content: {},
  3012. });
  3013. const textShow = ref(false);
  3014. const textShowOne = ref(false);
  3015. const mandateDialog = ref(false);
  3016. const mandateData = ref({
  3017. arr: [],
  3018. });
  3019. const selectData = ref([
  3020. {
  3021. label: "A",
  3022. value: "0",
  3023. },
  3024. {
  3025. label: "B",
  3026. value: "1",
  3027. },
  3028. {
  3029. label: "C",
  3030. value: "2",
  3031. },
  3032. {
  3033. label: "D",
  3034. value: "3",
  3035. },
  3036. {
  3037. label: "E",
  3038. value: "4",
  3039. },
  3040. {
  3041. label: "F",
  3042. value: "5",
  3043. },
  3044. {
  3045. label: "G",
  3046. value: "6",
  3047. },
  3048. {
  3049. label: "H",
  3050. value: "7",
  3051. },
  3052. ]);
  3053. const selectDataOne = ref([
  3054. {
  3055. label: "填单申报",
  3056. value: "0",
  3057. },
  3058. {
  3059. label: "申请、联系和配合实施检验检疫",
  3060. value: "1",
  3061. },
  3062. {
  3063. label: "辅助查验",
  3064. value: "2",
  3065. },
  3066. {
  3067. label: "代缴税款",
  3068. value: "3",
  3069. },
  3070. {
  3071. label: "设立手册(账册)",
  3072. value: "4",
  3073. },
  3074. {
  3075. label: "核销手册(账册)",
  3076. value: "5",
  3077. },
  3078. {
  3079. label: "领取海关相关单证",
  3080. value: "6",
  3081. },
  3082. {
  3083. label: "其他",
  3084. value: "7",
  3085. },
  3086. ]);
  3087. const clickPrint = (status) => {
  3088. // printDetails.value = {
  3089. // packDetailGoodsList: [],
  3090. // documents: {},
  3091. // contract: {},
  3092. // contractProjectList: [],
  3093. // corporation: {},
  3094. // packDetailList: [],
  3095. // documentsProducts: [],
  3096. // customer: {},
  3097. // };
  3098. if ([1, 2, 3].includes(status)) {
  3099. openStatus.value = status;
  3100. openPrint.value = true;
  3101. } else if ([4].includes(status)) {
  3102. printCustomsDeclaration.value = {
  3103. content: {},
  3104. };
  3105. openStatus.value = status;
  3106. textShow.value = false;
  3107. openCustomsDeclaration.value = true;
  3108. proxy
  3109. .get("/documents/generateClearanceePdf", { id: rowData.value.id })
  3110. .then((res) => {
  3111. if (res.data.content) {
  3112. res.data.content = JSON.parse(res.data.content);
  3113. // if (
  3114. // res.data.content.products &&
  3115. // res.data.content.products.length > 0
  3116. // ) {
  3117. // let arr = [];
  3118. // for (let i = 0; i < res.data.content.products.length; i++) {
  3119. // const ele = res.data.content.products[i];
  3120. // let index = -1;
  3121. // if (i === 0) {
  3122. // arr.push(ele);
  3123. // } else {
  3124. // const isHaveProduct = arr.some((x, i) => {
  3125. // if (x.productId === ele.productId) {
  3126. // index = i;
  3127. // return true;
  3128. // }
  3129. // });
  3130. // if (isHaveProduct && index >= 0) {
  3131. // arr[index].quantity += ele.quantity;
  3132. // } else {
  3133. // arr.push(ele);
  3134. // }
  3135. // }
  3136. // }
  3137. // res.data.content.products = arr;
  3138. // }
  3139. }
  3140. printCustomsDeclaration.value = res.data;
  3141. });
  3142. } else {
  3143. openStatus.value = status;
  3144. mandateDialog.value = true;
  3145. proxy.post(`/documentsPdf/detail?id=${rowData.value.id}`).then((res) => {
  3146. console.log(res, "sada");
  3147. });
  3148. }
  3149. };
  3150. const clickDownload = () => {
  3151. if (openStatus.value === 1) {
  3152. proxy.getPdf("装箱单PDF文件");
  3153. } else if (openStatus.value === 2) {
  3154. proxy.getPdf("商业发票PDF文件");
  3155. } else if (openStatus.value === 3) {
  3156. proxy.getPdf("销售确认书PDF文件");
  3157. } else if (openStatus.value === 4) {
  3158. textShow.value = true;
  3159. let data = proxy.deepClone(printCustomsDeclaration.value);
  3160. data.content = JSON.stringify(data.content);
  3161. proxy.post("/documentsPdf/add", data).then();
  3162. setTimeout(() => {
  3163. proxy.getPdf("报关单PDF文件", 1400);
  3164. nextTick(() => {
  3165. setTimeout(() => {
  3166. textShow.value = false;
  3167. }, 1000);
  3168. });
  3169. }, 1000);
  3170. }
  3171. };
  3172. const clickSave = () => {
  3173. if (openStatus.value === 1) {
  3174. proxy.getPdf("装箱单PDF文件");
  3175. } else if (openStatus.value === 2) {
  3176. proxy.getPdf("商业发票PDF文件");
  3177. } else if (openStatus.value === 3) {
  3178. proxy.getPdf("销售确认书PDF文件");
  3179. } else if (openStatus.value === 4) {
  3180. textShow.value = true;
  3181. let data = proxy.deepClone(printCustomsDeclaration.value);
  3182. data.content = JSON.stringify(data.content);
  3183. proxy.post("/documentsPdf/add", data).then((res) => {
  3184. ElMessage({
  3185. message: "保存成功",
  3186. type: "success",
  3187. });
  3188. });
  3189. }
  3190. };
  3191. const getStyle = (text) => {
  3192. if (text) {
  3193. return text.replace(/\n|\r\n/g, "<br>");
  3194. } else {
  3195. return "";
  3196. }
  3197. };
  3198. const statistics = (label, label2, index) => {
  3199. let num = 0;
  3200. if (
  3201. printDetails.value.documentsProducts &&
  3202. printDetails.value.documentsProducts.length > 0
  3203. ) {
  3204. printDetails.value.documentsProducts.map((item) => {
  3205. if (label2) {
  3206. if (item[label] && item[label2]) {
  3207. num = parseFloat(
  3208. Number(num) + Number(item[label]) * Number(item[label2])
  3209. ).toFixed(index);
  3210. }
  3211. } else {
  3212. if (item[label]) {
  3213. num = parseFloat(Number(num) + Number(item[label])).toFixed(index);
  3214. }
  3215. }
  3216. });
  3217. }
  3218. return num;
  3219. };
  3220. const getAllMoney = (num) => {
  3221. let money = num;
  3222. if (
  3223. printDetails.value.contractProjectList &&
  3224. printDetails.value.contractProjectList.length > 0
  3225. ) {
  3226. printDetails.value.contractProjectList.map((item) => {
  3227. if (item.amount) {
  3228. money = parseFloat(Number(money) + Number(item.amount)).toFixed(2);
  3229. }
  3230. });
  3231. }
  3232. return money;
  3233. };
  3234. const printObj = ref({
  3235. id: "printMe",
  3236. popTitle: "",
  3237. extraCss:
  3238. "https://cdn.bootcdn.net/ajax/libs/animate.css/4.1.1/animate.compat.css, https://cdn.bootcdn.net/ajax/libs/hover.css/2.3.1/css/hover-min.css",
  3239. extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>',
  3240. });
  3241. const getChineseDate = (date) => {
  3242. if (date) {
  3243. let year = date.getFullYear();
  3244. let month = date.getMonth() + 1;
  3245. let day = date.getDate();
  3246. return year + "年" + month + "月" + day + "日 ";
  3247. }
  3248. };
  3249. const showLabelData = (val) => {
  3250. const current = selectDataOne.value.find((x) => x.value === val);
  3251. if (current && current.label) {
  3252. return current.label;
  3253. }
  3254. };
  3255. </script>
  3256. <style lang="scss" scoped>
  3257. .tenant {
  3258. padding: 20px;
  3259. }
  3260. ::v-deep(.el-input-number .el-input__inner) {
  3261. text-align: left;
  3262. }
  3263. .baseRow {
  3264. min-height: 20px;
  3265. border-top: 1px solid black;
  3266. border-left: 1px solid black;
  3267. }
  3268. .contentRow {
  3269. border-right: 1px solid black;
  3270. line-height: 20px;
  3271. padding-left: 4px;
  3272. }
  3273. .three {
  3274. width: 100%;
  3275. border: 1px solid black;
  3276. }
  3277. .three thead {
  3278. text-align: center;
  3279. line-height: 20px;
  3280. font-weight: 700;
  3281. }
  3282. .three th {
  3283. border-right: 1px solid black;
  3284. border-bottom: 1px solid black;
  3285. }
  3286. .three td {
  3287. line-height: 20px;
  3288. border-right: 1px solid black;
  3289. border-bottom: 1px solid black;
  3290. }
  3291. .one {
  3292. width: 100%;
  3293. text-align: center;
  3294. border-top: 1px solid black;
  3295. border-left: 1px solid black;
  3296. table-layout: fixed;
  3297. }
  3298. .one td {
  3299. border: 0;
  3300. line-height: 18px;
  3301. border-right: 1px solid black;
  3302. border-bottom: 1px solid black;
  3303. }
  3304. .two {
  3305. width: 100%;
  3306. text-align: center;
  3307. border-top: 1px solid black;
  3308. border-left: 1px solid black;
  3309. table-layout: fixed;
  3310. }
  3311. .two th {
  3312. border: 0;
  3313. line-height: 18px;
  3314. border-right: 1px solid black;
  3315. border-bottom: 1px solid black;
  3316. background-color: #dce6f1;
  3317. }
  3318. .two td {
  3319. border: 0;
  3320. line-height: 18px;
  3321. border-right: 1px solid black;
  3322. border-bottom: 1px solid black;
  3323. }
  3324. :deep(#pdfDom .el-textarea__inner) {
  3325. background: transparent !important;
  3326. overflow-y: hidden;
  3327. padding: 0 4px !important;
  3328. resize: none;
  3329. }
  3330. :deep(#pdfDom .el-textarea) {
  3331. --el-input-focus-border: transparent;
  3332. --el-input-transparent-border: 0 0 0 0px;
  3333. --el-input-border-color: transparent;
  3334. --el-input-hover-border: 0px !important;
  3335. --el-input-hover-border-color: transparent;
  3336. --el-input-focus-border-color: transparent;
  3337. --el-input-clear-hover-color: transparent;
  3338. box-shadow: 0 0 0 0px !important;
  3339. --el-input-border: 0px;
  3340. }
  3341. // 委托单
  3342. :deep(#mandate .el-textarea__inner) {
  3343. // background: transparent !important;
  3344. min-height: 27px;
  3345. overflow-y: hidden;
  3346. // padding: 0 4px !important;
  3347. resize: none;
  3348. }
  3349. :deep(#mandate .el-input__wrapper) {
  3350. // box-shadow: 0 0 0 0px !important;
  3351. // --el-input-border: 0px;
  3352. }
  3353. :deep(#mandate .el-input__suffix-inner) {
  3354. // display: none;
  3355. }
  3356. :deep(#mandate .el-input__prefix-inner) {
  3357. // display: none;
  3358. }
  3359. :deep(#mandate .select_height .el-input__wrapper) {
  3360. // height: 26px;
  3361. }
  3362. :deep(#mandate .el-textarea) {
  3363. // --el-input-focus-border: transparent;
  3364. // --el-input-transparent-border: 0 0 0 0px;
  3365. // --el-input-border-color: transparent;
  3366. // --el-input-hover-border: 0px !important;
  3367. // --el-input-hover-border-color: transparent;
  3368. // --el-input-focus-border-color: transparent;
  3369. // --el-input-clear-hover-color: transparent;
  3370. // box-shadow: 0 0 0 0px !important;
  3371. // --el-input-border: 0px;
  3372. }
  3373. :deep(#mandate .el-input__inner) {
  3374. // border: none;
  3375. // box-shadow: none;
  3376. // --el-input-border: none;
  3377. }
  3378. #mandate {
  3379. .title {
  3380. font-size: 20px;
  3381. font-weight: 700;
  3382. text-align: center;
  3383. }
  3384. }
  3385. .table-mandate {
  3386. border-collapse: collapse;
  3387. border-spacing: 0;
  3388. td {
  3389. text-align: center;
  3390. padding: 4px 8px;
  3391. height: 36px;
  3392. }
  3393. }
  3394. </style>