index.vue 92 KB

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