index.vue 111 KB

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