1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463 |
- <template>
- <div class="tenant">
- <div class="content">
- <byTable
- :source="sourceList.data"
- :pagination="sourceList.pagination"
- :config="config"
- :loading="loading"
- highlight-current-row
- :action-list="[
- {
- text: '创建单证',
- action: () => openModal(),
- },
- ]"
- @get-list="getList"
- >
- <template #acceptCode="{ item }">
- <div>
- <div style="color: #409eff" v-if="item.acceptCode">
- {{ item.acceptCarriage }} ({{ item.acceptCode }})
- </div>
- <div v-else>
- <el-button
- type="warning"
- style="background-color: var(--el-button-bg-color) !important"
- @click="clickAddAcceptCode(item)"
- >填写</el-button
- >
- </div>
- </div>
- </template>
- <template #toView="{ item }">
- <div>
- <el-button
- type="warning"
- style="background-color: var(--el-button-bg-color) !important"
- @click="clickToView(item)"
- >查看</el-button
- >
- </div>
- </template>
- </byTable>
- </div>
- <el-dialog
- title="创建单证"
- v-if="dialogVisible"
- v-model="dialogVisible"
- width="1000"
- >
- <byForm
- :formConfig="formConfig"
- :formOption="formOption"
- v-model="formData.data"
- :rules="rules"
- ref="submit"
- v-loading="loadingDialog"
- >
- <template #details>
- <div style="width: 100%">
- <el-table
- :data="formData.data.documentsProductList"
- style="width: 100%; margin-top: 16px"
- >
- <el-table-column label="货物描述" min-width="240">
- <template #default="{ row, $index }">
- <div style="width: 100%">
- <el-form-item
- :prop="'documentsProductList.' + $index + '.describes'"
- :rules="rules.describes"
- :inline-message="true"
- >
- <el-input
- v-model="row.describes"
- placeholder="请输入货物描述"
- />
- </el-form-item>
- </div>
- </template>
- </el-table-column>
- <el-table-column label="副描述" min-width="200">
- <template #default="{ row, $index }">
- <div style="width: 100%">
- <el-form-item
- :prop="'documentsProductList.' + $index + '.subDescribe'"
- :rules="rules.subDescribe"
- :inline-message="true"
- >
- <el-input
- v-model="row.subDescribe"
- placeholder="请输入副描述"
- />
- </el-form-item>
- </div>
- </template>
- </el-table-column>
- <el-table-column label="海关编码" width="160">
- <template #default="{ row, $index }">
- <div style="width: 100%">
- <el-form-item
- :prop="'documentsProductList.' + $index + '.customsCode'"
- :rules="rules.customsCode"
- :inline-message="true"
- >
- <el-input
- v-model="row.customsCode"
- placeholder="请输入海关编码"
- />
- </el-form-item>
- </div>
- </template>
- </el-table-column>
- <el-table-column label="数量" width="160">
- <template #default="{ row, $index }">
- <div style="width: 100%">
- <el-form-item
- :prop="'documentsProductList.' + $index + '.quantity'"
- :rules="rules.quantity"
- :inline-message="true"
- >
- <el-input-number
- v-model="row.quantity"
- placeholder="请输入数量"
- style="width: 100%"
- :precision="2"
- :controls="false"
- :min="0"
- onmousewheel="return false;"
- />
- </el-form-item>
- </div>
- </template>
- </el-table-column>
- <el-table-column label="单价" width="160">
- <template #default="{ row, $index }">
- <div style="width: 100%">
- <el-form-item
- :prop="'documentsProductList.' + $index + '.price'"
- :rules="rules.price"
- :inline-message="true"
- >
- <el-input-number
- v-model="row.price"
- placeholder="请输入单价"
- style="width: 100%"
- :precision="2"
- :controls="false"
- :min="0"
- />
- </el-form-item>
- </div>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </template>
- </byForm>
- <template #footer>
- <el-button @click="dialogVisible = false" size="large">取 消</el-button>
- <el-button type="primary" @click="submitForm()" size="large"
- >确 定</el-button
- >
- </template>
- </el-dialog>
- <el-dialog
- title="货运详情"
- v-if="openAddAcceptCode"
- v-model="openAddAcceptCode"
- width="600"
- >
- <byForm
- :formConfig="formConfigTwo"
- :formOption="formOption"
- v-model="formDataTwo.data"
- :rules="rulesTwo"
- ref="submitTwo"
- v-loading="loadingTwo"
- >
- <template #departureTime>
- <div>
- <el-date-picker
- v-model="formDataTwo.data.departureTime"
- type="datetime"
- placeholder="请选择起运时间"
- value-format="YYYY-MM-DD HH:mm:ss"
- />
- </div>
- </template>
- <template #file>
- <div style="width: 100%">
- <el-upload
- v-model:fileList="fileList"
- action="https://winfaster.obs.cn-south-1.myhuaweicloud.com"
- :data="uploadData"
- multiple
- :before-upload="uploadFile"
- :on-preview="onPreviewFile"
- >
- <el-button>选择</el-button>
- </el-upload>
- </div>
- </template>
- </byForm>
- <template #footer>
- <el-button @click="openAddAcceptCode = false" size="large"
- >取 消</el-button
- >
- <el-button type="primary" @click="submitTwoForm()" size="large"
- >确 定</el-button
- >
- </template>
- </el-dialog>
- <el-dialog
- title="打印"
- v-if="openSelectPrint"
- v-model="openSelectPrint"
- width="600"
- >
- <div>
- <el-button @click="clickPrint(1)" type="primary">装箱单</el-button>
- <el-button @click="clickPrint(2)" type="primary">商业发票</el-button>
- <el-button @click="clickPrint(3)" type="primary">销售确认书</el-button>
- <el-button @click="clickPrint(4)" type="primary">报关单</el-button>
- <el-button @click="clickPrint(5)" type="primary"
- >代理报关委托书</el-button
- >
- </div>
- <template #footer>
- <el-button @click="openSelectPrint = false" size="large"
- >关闭</el-button
- >
- </template>
- </el-dialog>
- <el-dialog title="打印" v-if="openPrint" v-model="openPrint" width="660">
- <div id="printMe">
- <div
- id="pdfDom"
- style="padding: 16px; font-size: 12px !important; font-family: 'msyh'"
- >
- <div v-if="openStatus === 1">
- <div style="font-size: 16px; text-align: center; font-weight: 700">
- 装箱单
- </div>
- <div
- style="
- font-size: 16px;
- text-align: center;
- text-decoration: underline;
- font-weight: 700;
- "
- >
- PACKING LIST
- </div>
- </div>
- <div v-else-if="openStatus === 2">
- <div style="font-size: 16px; text-align: center; font-weight: 700">
- 商业发票
- </div>
- <div
- style="
- font-size: 16px;
- text-align: center;
- text-decoration: underline;
- font-weight: 700;
- "
- >
- COMMERCIAL INVOICE
- </div>
- </div>
- <div v-else-if="openStatus === 3">
- <div style="font-size: 16px; text-align: center; font-weight: 700">
- 合同
- </div>
- <div
- style="
- font-size: 16px;
- text-align: center;
- text-decoration: underline;
- font-weight: 700;
- "
- >
- CONTRACT
- </div>
- </div>
- <div style="padding-top: 8px" v-if="[1, 2].includes(openStatus)">
- <div>C.I. NO. : {{ printDetails.contract.code }}</div>
- <div>C.I. DATE: {{ printDetails.date }}</div>
- </div>
- <div style="padding-top: 8px" v-else-if="[3].includes(openStatus)">
- <div>P.I. NO. : {{ printDetails.contract.code }}</div>
- <div>P.I. DATE: {{ printDetails.date }}</div>
- </div>
- <!-- <div style="height: 16px"></div> -->
- <div
- style="border: 1px solid black; display: flex"
- v-if="[1, 2].includes(openStatus)"
- >
- <div
- style="
- width: 50%;
- border-right: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">买方 SOLD TO MESSRS:</div>
- <div>{{ printDetails.customer.name }}</div>
- <div style="padding-top: 16px" v-if="[2].includes(openStatus)">
- <span style="font-weight: 700">TAX NUMBER:</span>
- <span> {{ printDetails.contract.taxNumber }} </span>
- </div>
- <div style="padding: 16px 0">
- {{ printDetails.contract.buyAddress }},{{
- printDetails.contract.buyPostalCode
- }},{{ printDetails.contract.buyCityName }},{{
- printDetails.contract.buyProvinceName
- }},{{ printDetails.contract.buyCountryName }}
- </div>
- <div v-if="[2].includes(openStatus)">
- <span style="font-weight: 700">POST CODE:</span>
- <span> {{ printDetails.contract.buyPostalCode }} </span>
- </div>
- <div style="padding-top: 16px">
- CONTRACT: {{ printDetails.contract.buyContactName }}
- </div>
- <div>TEL.: {{ printDetails.contract.buyContactNumber }}</div>
- </div>
- <div style="width: 50%; padding-left: 4px">
- <div style="font-weight: 700">卖方 VENDOR:</div>
- <div>{{ printDetails.corporation.name }}</div>
- <div>{{ printDetails.corporation.nameEn }}</div>
- <div style="padding: 16px 0">
- {{ printDetails.contract.sellAddress }},{{
- printDetails.contract.sellCityName
- }},{{ printDetails.contract.sellProvinceName }},{{
- printDetails.contract.sellCountryName
- }}
- </div>
- <div>CONTRACT: {{ printDetails.contract.sellContactName }}</div>
- <div>TEL.: {{ printDetails.contract.sellContactNumber }}</div>
- </div>
- </div>
- <div
- style="border: 1px solid black; display: flex"
- v-else-if="[3].includes(openStatus)"
- >
- <div
- style="
- width: 50%;
- border-right: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">卖方 VENDOR:</div>
- <div>{{ printDetails.corporation.name }}</div>
- <div>{{ printDetails.corporation.nameEn }}</div>
- <div style="padding: 16px 0">
- {{ printDetails.contract.sellAddress }},{{
- printDetails.contract.sellCityName
- }},{{ printDetails.contract.sellProvinceName }},{{
- printDetails.contract.sellCountryName
- }}
- </div>
- <div>CONTRACT: {{ printDetails.contract.sellContactName }}</div>
- <div>TEL.: {{ printDetails.contract.sellContactNumber }}</div>
- </div>
- <div style="width: 50%; padding-left: 4px">
- <div style="font-weight: 700">买方 BUYER:</div>
- <div>{{ printDetails.customer.name }}</div>
- <div style="padding-top: 16px">
- <span style="font-weight: 700">TAX NUMBER:</span>
- <span> {{ printDetails.contract.taxNumber }} </span>
- </div>
- <div style="padding: 16px 0">
- {{ printDetails.contract.buyAddress }},{{
- printDetails.contract.buyPostalCode
- }},{{ printDetails.contract.buyCityName }},{{
- printDetails.contract.buyProvinceName
- }},{{ printDetails.contract.buyCountryName }}
- </div>
- <div>
- <span style="font-weight: 700">POST CODE:</span>
- <span> {{ printDetails.contract.buyPostalCode }} </span>
- </div>
- <div style="padding-top: 16px">
- CONTRACT: {{ printDetails.contract.buyContactName }}
- </div>
- <div>TEL.: {{ printDetails.contract.buyContactNumber }}</div>
- </div>
- </div>
- <div style="height: 16px"></div>
- <div
- style="border: 1px solid black"
- v-if="[1, 2].includes(openStatus)"
- >
- <div style="display: flex; width: 100%">
- <div
- style="
- width: 33%;
- border-bottom: 1px solid black;
- border-right: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">原产国 COUNTRY OF ORIGIN:</div>
- <div>{{ printDetails.contract.sellCountryName }}</div>
- </div>
- <div
- style="
- width: 34%;
- border-bottom: 1px solid black;
- border-right: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">
- 目的国 COUNTRY OF DESTINATION:
- </div>
- <div>{{ printDetails.documents.countryName }}</div>
- </div>
- <div
- style="
- width: 33%;
- border-bottom: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">贸易方式 TERMS OF DELIVERY:</div>
- <div>
- {{
- dictValueLabel(
- printDetails.contract.tradeMethods,
- tradeMethods
- )
- }}
- </div>
- </div>
- </div>
- <div style="display: flex; width: 100%">
- <div
- style="
- width: 33%;
- border-bottom: 1px solid black;
- border-right: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">付款方式 TERMS OF PAYMENT:</div>
- <div>
- {{ printDetails.contract.remark }}
- </div>
- </div>
- <div
- style="
- width: 34%;
- border-bottom: 1px solid black;
- border-right: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">交货期 DELIVERY TIME:</div>
- <div>{{ printDetails.contract.deliveryTime }}</div>
- </div>
- <div
- style="
- width: 33%;
- border-bottom: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">运输方式 EXPORT BY/VIA:</div>
- <div>
- {{
- dictValueLabel(
- printDetails.contract.transportMethod,
- shippingMethod
- )
- }}
- </div>
- </div>
- </div>
- <div style="display: flex; width: 100%">
- <div
- style="
- width: 33%;
- border-right: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">装卸港 PLACE OF DISCHARGE:</div>
- <div>{{ printDetails.contract.transportRemark }}</div>
- </div>
- <div
- style="
- width: 34%;
- border-right: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">目的港 FINAL DESTINATION:</div>
- <div>{{ printDetails.documents.portOfDestination }}</div>
- </div>
- <div style="width: 33%; padding-left: 4px">
- <div style="font-weight: 700">质保期 WARRANTY:</div>
- <div>
- <span v-if="printDetails.contract.warranty"
- >{{ printDetails.contract.warranty }}天</span
- >
- </div>
- </div>
- </div>
- </div>
- <div
- style="border: 1px solid black"
- v-else-if="[3].includes(openStatus)"
- >
- <div style="display: flex; width: 100%">
- <div
- style="
- width: 33%;
- border-bottom: 1px solid black;
- border-right: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">COUNTRY OF ORIGIN:</div>
- <div>{{ printDetails.contract.sellCountryName }}</div>
- </div>
- <div
- style="
- width: 34%;
- border-bottom: 1px solid black;
- border-right: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">COUNTRY OF DESTINATION:</div>
- <div>{{ printDetails.documents.countryName }}</div>
- </div>
- <div
- style="
- width: 33%;
- border-bottom: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">PLACE OF DISCHARGE:</div>
- <div>{{ printDetails.contract.transportRemark }}</div>
- </div>
- </div>
- <div style="display: flex; width: 100%">
- <div
- style="
- width: 33%;
- border-bottom: 1px solid black;
- border-right: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">TERMS OF DELIVERY:</div>
- <div>
- {{
- dictValueLabel(
- printDetails.contract.tradeMethods,
- tradeMethods
- )
- }}
- </div>
- </div>
- <div
- style="
- width: 34%;
- border-bottom: 1px solid black;
- border-right: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">CURRENCY:</div>
- <div>
- {{ printDetails.contract.currency }}
- </div>
- </div>
- <div
- style="
- width: 33%;
- border-bottom: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">EXPORT BY/VIA:</div>
- <div>
- {{
- dictValueLabel(
- printDetails.contract.transportMethod,
- shippingMethod
- )
- }}
- </div>
- </div>
- </div>
- <div style="display: flex; width: 100%">
- <div
- style="
- width: 33%;
- border-right: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">DELIVERY TIME:</div>
- <div>{{ printDetails.contract.deliveryTime }}</div>
- </div>
- <div style="width: 67%; padding-left: 4px">
- <div style="font-weight: 700">付款方式 TERMS OF PAYMENT:</div>
- <div>
- {{ printDetails.contract.remark }}
- </div>
- </div>
- </div>
- </div>
- <div style="height: 16px"></div>
- <div
- style="border: 1px solid black"
- v-if="[1, 2].includes(openStatus)"
- >
- <div style="display: flex; width: 100%">
- <div
- style="
- width: 33%;
- border-right: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">唛头及箱号 MARK & NUMBERS</div>
- <div
- style="padding: 8px 0"
- v-html="getStyle(printDetails.documents.remark)"
- ></div>
- </div>
- <div
- style="
- width: 34%;
- border-right: 1px solid black;
- padding-left: 4px;
- "
- >
- <div style="font-weight: 700">
- 包装规格 PACKING & DESCRIPTION
- </div>
- <div
- v-if="
- printDetails.packDetailList &&
- printDetails.packDetailList.length > 0
- "
- >
- <div
- style="padding: 8px 0"
- v-for="(item, index) in printDetails.packDetailList"
- :key="index"
- >
- <span style="padding-right: 16px">{{ index + 1 }}</span>
- <span v-if="item.boxLong">{{ item.boxLong }}cm</span>
- <span>*</span>
- <span v-if="item.boxWide">{{ item.boxWide }}cm</span>
- <span>*</span>
- <span v-if="item.boxHigh">{{ item.boxHigh }}cm</span>
- <span>*</span>
- <span>{{ item.packQuantity }}TNS</span>
- </div>
- </div>
- </div>
- <div style="width: 33%; padding-left: 4px">
- <div style="font-weight: 700">总毛重 TOTAL GROSS WEIGHT/KG</div>
- <div>{{ printDetails.sumRoughWeight }}</div>
- <div style="font-weight: 700">总净重 TOTAL NET WEIGHT/KG</div>
- <div>{{ printDetails.sumNetWeight }}</div>
- <div style="font-weight: 700">总体积 TOTAL DIMENSION/M3</div>
- <div>{{ printDetails.sumBomVolume }}</div>
- </div>
- </div>
- </div>
- <div style="height: 16px"></div>
- <!-- 装箱单 -->
- <table
- class="three"
- cellspacing="0"
- cellpadding="0"
- border="0"
- style="width: 100%; border-bottom: 0"
- v-if="[1].includes(openStatus)"
- >
- <thead>
- <tr>
- <td style="width: 80px">
- 项目
- <br />
- ITEM NO.
- </td>
- <td>
- 货物描述
- <br />
- DESCRIPTION OF GOODS
- </td>
- <td style="width: 80px">
- 单位
- <br />
- UNIT
- </td>
- <td style="width: 80px; border-right: 0">
- 数量
- <br />
- QUANTITY
- <br />
- (SET/PCS)
- </td>
- </tr>
- </thead>
- <!-- 其他 -->
- <tbody
- v-if="
- printDetails.documentsProducts &&
- printDetails.documentsProducts.length > 0
- "
- >
- <tr
- v-for="(item, index) in printDetails.documentsProducts"
- :key="index"
- >
- <td style="text-align: center">{{ index + 1 }}</td>
- <td>
- <div style="text-align: center">{{ item.describes }}</div>
- <div style="text-align: center">{{ item.subDescribe }}</div>
- <div style="text-align: center">
- HS CODE: {{ item.customsCode }}
- </div>
- </td>
- <td style="text-align: center">
- {{ dictValueLabel(item.productUnit, productUnit) }}
- </td>
- <td style="text-align: center; border-right: 0">
- {{ item.quantity }}
- </td>
- </tr>
- </tbody>
- </table>
- <!-- 商业发票、销售确认书 -->
- <table
- class="three"
- cellspacing="0"
- cellpadding="0"
- border="0"
- style="width: 100%; border-bottom: 0"
- v-if="[2, 3].includes(openStatus)"
- >
- <thead>
- <tr>
- <td style="width: 80px" v-if="[2, 3].includes(openStatus)">
- 项目
- <br />
- ITEM NO.
- </td>
- <td>
- 货物描述
- <br />
- DESCRIPTION OF GOODS
- </td>
- <template v-if="[3].includes(openStatus)">
- <td style="width: 80px">
- 单位
- <br />
- UNIT
- </td>
- </template>
- <td style="width: 80px">
- 数量
- <br />
- QUANTITY
- <br />
- (SET/PCS)
- </td>
- <template v-if="[2, 3].includes(openStatus)">
- <td style="width: 80px">
- 单价
- <br />
- UNIT PRICE
- <br />
- {{
- dictValueLabel(
- printDetails.contract.currency,
- accountCurrency
- )
- }}
- </td>
- <td style="width: 80px; border-right: 0">
- 总价
- <br />
- TOTAL PRICE
- <br />
- {{
- dictValueLabel(
- printDetails.contract.currency,
- accountCurrency
- )
- }}
- </td>
- </template>
- </tr>
- </thead>
- <!-- 其他 -->
- <tbody
- v-if="
- printDetails.documentsProducts &&
- printDetails.documentsProducts.length > 0 &&
- [2, 3].includes(openStatus)
- "
- >
- <tr
- v-for="(item, index) in printDetails.documentsProducts"
- :key="index"
- >
- <td style="text-align: center">{{ index + 1 }}</td>
- <td>
- <div style="text-align: center">{{ item.describes }}</div>
- <div style="text-align: center">{{ item.subDescribe }}</div>
- <div style="text-align: center">
- HS CODE: {{ item.customsCode }}
- </div>
- </td>
- <td style="text-align: center" v-if="[3].includes(openStatus)">
- {{ dictValueLabel(item.productUnit, productUnit) }}
- </td>
- <td style="text-align: center">{{ item.quantity }}</td>
- <td
- style="text-align: center"
- v-if="[2, 3].includes(openStatus)"
- >
- {{ printDetails.contract.currency }}{{ item.price }}
- </td>
- <td
- style="text-align: center; border-right: 0"
- v-if="[2, 3].includes(openStatus)"
- >
- {{ printDetails.contract.currency
- }}{{
- parseFloat(
- Number(item.quantity) * Number(item.price)
- ).toFixed(2)
- }}
- </td>
- </tr>
- </tbody>
- <!-- 商业发票 -->
- <template v-if="[2].includes(openStatus)">
- <tr>
- <td :colspan="2" style="text-align: left; padding-left: 4px">
- SUBTOTAL:
- </td>
- <td style="text-align: center">
- {{ statistics("quantity", "", 0) }}
- </td>
- <td></td>
- <td style="text-align: center">
- {{ printDetails.contract.currency
- }}{{ statistics("price", "quantity", 2) }}
- </td>
- </tr>
- <template
- v-if="
- printDetails.contractProjectList &&
- printDetails.contractProjectList.length > 0
- "
- >
- <tr
- v-for="(item, index) in printDetails.contractProjectList"
- :key="index"
- >
- <td :colspan="4" style="text-align: left; padding-left: 4px">
- {{ item.payName }}:
- </td>
- <td style="text-align: center">
- {{ printDetails.contract.currency }}{{ item.amount }}
- </td>
- </tr>
- </template>
- <tr>
- <td :colspan="4" style="text-align: left; padding-left: 4px">
- TOTAL
- {{
- dictValueLabel(
- printDetails.contract.tradeMethods,
- tradeMethods
- )
- }}
- PRICE:
- </td>
- <td style="text-align: center">
- {{ printDetails.contract.currency
- }}{{ getAllMoney(statistics("price", "quantity", 2)) }}
- </td>
- </tr>
- </template>
- <!-- 销售确认书 -->
- <template v-if="[3].includes(openStatus)">
- <tr>
- <td :colspan="3" style="text-align: left; padding-left: 4px">
- SUBTOTAL:
- </td>
- <td style="text-align: center">
- {{ statistics("quantity", "", 0) }}
- </td>
- <td></td>
- <td style="text-align: center">
- {{ printDetails.contract.currency
- }}{{ statistics("price", "quantity", 2) }}
- </td>
- </tr>
- <template
- v-if="
- printDetails.contractProjectList &&
- printDetails.contractProjectList.length > 0
- "
- >
- <tr
- v-for="(item, index) in printDetails.contractProjectList"
- :key="index"
- >
- <td :colspan="5" style="text-align: left; padding-left: 4px">
- {{ item.payName }}:
- </td>
- <td style="text-align: center">
- {{ printDetails.contract.currency }}{{ item.amount }}
- </td>
- </tr>
- </template>
- <tr>
- <td :colspan="5" style="text-align: left; padding-left: 4px">
- TOTAL
- {{
- dictValueLabel(
- printDetails.contract.tradeMethods,
- tradeMethods
- )
- }}
- PRICE:
- </td>
- <td style="text-align: center">
- {{ printDetails.contract.currency
- }}{{ getAllMoney(statistics("price", "quantity", 2)) }}
- </td>
- </tr>
- </template>
- </table>
- <!-- 装箱单 -->
- <div v-if="[1].includes(openStatus)">
- <div style="font-weight: 700; padding: 4px 0">
- THE PACK FOR ABOVE CARGO ARE AS BELOWING SHOWS:
- </div>
- <table
- class="three"
- cellspacing="0"
- cellpadding="0"
- border="0"
- style="width: 100%; border-bottom: 0"
- >
- <thead>
- <tr>
- <td style="width: 100px">
- 箱号
- <br />
- Case NO.
- </td>
- <td>
- 货物描述
- <br />
- DESCRIPTION OF GOODS
- </td>
- <td style="width: 100px">
- 数量
- <br />
- QUANTITY
- <br />
- (SET/PCS)
- </td>
- <td style="width: 100px">
- 净重
- <br />
- N.W./ KG
- </td>
- <td style="width: 100px; border-right: 0">
- 毛重
- <br />
- G.W./ KG
- </td>
- </tr>
- </thead>
- <tbody
- v-if="
- printDetails.packDetailList &&
- printDetails.packDetailList.length > 0
- "
- >
- <template
- v-for="(item, index) in printDetails.packDetailList"
- :key="index"
- >
- <tr
- v-for="(sonItem, sonIndex) in item.documentsProductList"
- :key="sonIndex"
- >
- <td
- style="text-align: center"
- :rowspan="item.documentsProductList.length"
- v-if="sonIndex === 0"
- >
- {{ index + 1 }}
- </td>
- <td>
- <div style="text-align: center">
- {{ sonItem.describes }}
- </div>
- <div style="text-align: center">
- {{ sonItem.subDescribe }}
- </div>
- <div style="text-align: center">
- HS CODE: {{ sonItem.customsCode }}
- </div>
- </td>
- <td style="text-align: center">{{ sonItem.quantity }}</td>
- <td
- :rowspan="item.documentsProductList.length"
- style="text-align: center"
- v-if="sonIndex === 0"
- >
- {{ item.netWeight }}
- </td>
- <td
- :rowspan="item.documentsProductList.length"
- style="text-align: center; border-right: 0"
- v-if="sonIndex === 0"
- >
- {{ item.roughWeight }}
- </td>
- </tr>
- </template>
- </tbody>
- </table>
- <!-- <table
- class="three"
- cellspacing="0"
- cellpadding="0"
- border="0"
- style="width: 100%; border-bottom: 0"
- v-if="
- printDetails.packDetailList &&
- printDetails.packDetailList.length > 0
- "
- >
- <tbody
- v-for="(item, index) in printDetails.packDetailList"
- :key="index"
- >
- <tr
- v-for="(itemAAA, indexAAA) in item.packDetailGoodsList"
- :key="indexAAA"
- >
- <td
- :rowspan="item.packDetailGoodsList.length"
- style="text-align: center; width: 100px"
- v-if="indexAAA === 0"
- >
- CTN NO.{{ index + 1 }}
- </td>
- <td>
- <div style="text-align: center">{{ itemAAA.remark }}</div>
- </td>
- <td style="text-align: center; width: 100px">
- {{ itemAAA.unit }}
- </td>
- <td style="text-align: center; width: 100px">
- {{ itemAAA.quantity }}
- </td>
- <td
- :rowspan="item.packDetailGoodsList.length"
- style="text-align: center; width: 200px; border-right: 0"
- v-if="indexAAA === 0"
- >
- <span v-if="item.boxLong">{{ item.boxLong }}cm</span>
- <span>*</span>
- <span v-if="item.boxLong">{{ item.boxWide }}cm</span>
- <span>*</span>
- <span v-if="item.boxLong">{{ item.boxHigh }}cm</span>
- <span> / {{ item.roughWeight }}KG</span>
- </td>
- </tr>
- </tbody>
- </table> -->
- </div>
- <div v-if="[3].includes(openStatus)">
- <div style="height: 16px"></div>
- <div class="baseRow">
- <div class="contentRow" style="width: 100%; font-weight: 700">
- ACCOUNT INFORMATION:
- </div>
- </div>
- <div class="baseRow" style="border-bottom: 1px solid black">
- <div class="contentRow" style="width: 100%">
- <div
- style="
- line-height: 24px;
- padding-left: 4px;
- word-break: break-all;
- word-wrap: break-word;
- "
- >
- Beneficiary Name: {{ printDetails.contract.beneficiaryName }}
- </div>
- <div
- style="
- line-height: 24px;
- padding-left: 4px;
- word-break: break-all;
- word-wrap: break-word;
- "
- >
- Beneficiary Bank: {{ printDetails.contract.beneficiaryBank }}
- </div>
- <div
- style="
- line-height: 24px;
- padding-left: 4px;
- word-break: break-all;
- word-wrap: break-word;
- "
- >
- Beneficiary Bank Address:
- {{ printDetails.contract.beneficiaryBankAddress }}
- </div>
- <div
- style="
- line-height: 24px;
- padding-left: 4px;
- word-break: break-all;
- word-wrap: break-word;
- "
- >
- Beneficiary Account Number:
- {{ printDetails.contract.beneficiaryAccountNumber }}
- </div>
- <div
- style="
- line-height: 24px;
- padding-left: 4px;
- word-break: break-all;
- word-wrap: break-word;
- "
- >
- Swift Code: {{ printDetails.contract.swiftCode }}
- </div>
- <div
- style="
- line-height: 24px;
- padding-left: 4px;
- word-break: break-all;
- word-wrap: break-word;
- "
- >
- Beneficiary Address:
- {{ printDetails.contract.beneficiaryAddress }}
- </div>
- </div>
- </div>
- <div style="height: 32px"></div>
- <div style="display: flex">
- <div style="width: 50%">
- <div style="font-weight: 700">CONFIRMED BY VENDOR:</div>
- <div>{{ printDetails.corporation.nameEn }}</div>
- </div>
- <div style="width: 50%">
- <div style="font-weight: 700">CONFIRMED BY BUYER:</div>
- <div>{{ printDetails.customer.name }}</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <template #footer>
- <el-button @click="openPrint = false" size="large">取消</el-button>
- <el-button type="primary" @click="clickDownload()" size="large"
- >下载PDF
- </el-button>
- <el-button v-print="printObj" size="large">打印</el-button>
- </template>
- </el-dialog>
- <el-dialog
- title="打印"
- v-if="openCustomsDeclaration"
- v-model="openCustomsDeclaration"
- width="1460"
- >
- <div id="printMe">
- <div
- id="pdfDom"
- style="
- width: 1400px;
- padding: 16px;
- font-size: 12px !important;
- font-family: 'msyh';
- "
- >
- <table cellspacing="0" cellpadding="0" border="0" class="one">
- <tr>
- <td colspan="8">
- <span style="font-weight: 700"
- >出口货物正式报关单草单/申报信息填制模板</span
- >
- </td>
- </tr>
- <tr>
- <td colspan="2" style="background-color: #dce6f1">
- <div>发件公司清关负责人</div>
- <div>联系电话/手机(必填)</div>
- </td>
- <td colspan="2" style="background-color: #ebf1de">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.contacts }}
- </div>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.contactsMobile }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.contacts"
- size="small"
- />
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.contactsMobile"
- size="small"
- />
- </td>
- <td colspan="2" style="background-color: #dce6f1">
- <span>联系人邮箱</span>
- </td>
- <td
- colspan="2"
- style="background-color: #ebf1de; text-align: left"
- >
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.contactsEmail }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.contactsEmail"
- size="small"
- />
- </td>
- </tr>
- <tr style="background-color: #dce6f1">
- <td colspan="2">
- <span>境内发货人名称(填写发货公司中文名称)</span>
- </td>
- <td colspan="2">
- <span
- >境内发货人代码(填写18位统一社会信用代码,没有信用证代码填报10位海关备案编码)</span
- >
- </td>
- <td colspan="2">
- <span>出境关别(不用填写)</span>
- </td>
- <td colspan="2">
- <span>备案号(如是手册的请填写)</span>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.companyNameChinese }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.companyNameChinese"
- size="small"
- />
- </td>
- <td colspan="2">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.organizationCode }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.organizationCode"
- size="small"
- />
- </td>
- <td colspan="2">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.exitCustoms }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.exitCustoms"
- size="small"
- />
- </td>
- <td colspan="2">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.recordNo }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.recordNo"
- size="small"
- />
- </td>
- </tr>
- <tr style="background-color: #dce6f1">
- <td colspan="2">
- <span
- >境外收货人(指合同买方或合同指定的收货人公司英文名称)</span
- >
- </td>
- <td colspan="2">
- <span
- >境外收货人代码(AEO互认企业需填报AEO编码;不填默认非AEO互认)</span
- >
- </td>
- <td colspan="2">
- <span>运输方式(不用填写)</span>
- </td>
- <td>
- <span>运输工具名称及航次号(不用填写)</span>
- </td>
- <td>
- <span>提运单号(指12位快递运单号码)</span>
- </td>
- </tr>
- <tr>
- <td colspan="2" style="background-color: #ebf1de">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.customerCompanyName }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.customerCompanyName"
- size="small"
- />
- </td>
- <td colspan="2">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.overseasConsigneeCode }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="
- printCustomsDeclaration.content.overseasConsigneeCode
- "
- size="small"
- />
- </td>
- <td colspan="2">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.typeOfShipping }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.typeOfShipping"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.meansOfTransport }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.meansOfTransport"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.waybillCode }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.waybillCode"
- size="small"
- />
- </td>
- </tr>
- <tr style="background-color: #dce6f1">
- <td colspan="2">
- <span>生产销售单位(指生产该产品的公司名称)</span>
- </td>
- <td colspan="2">
- <span
- >生产销售单位代码(填写18位统一社会信用代码,没有信用证代码填写“NO”)</span
- >
- </td>
- <td colspan="2">
- <span>监管方式</span>
- </td>
- <td>
- <span>征免性质(与监管方式对应填写)</span>
- </td>
- <td>
- <span>许可证号(如需许可证的请填写)</span>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{
- printCustomsDeclaration.content.productCompanyNameChinese
- }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="
- printCustomsDeclaration.content.productCompanyNameChinese
- "
- size="small"
- />
- </td>
- <td colspan="2">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.productOrganizationCode }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="
- printCustomsDeclaration.content.productOrganizationCode
- "
- size="small"
- />
- </td>
- <td colspan="2">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.supervisionMode }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.supervisionMode"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.exemptionNature }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.exemptionNature"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.licenseKey }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.licenseKey"
- size="small"
- />
- </td>
- </tr>
- <tr style="background-color: #dce6f1">
- <td colspan="2">
- <span>合同协议号(根据合同填写)</span>
- </td>
- <td colspan="2">
- <span>贸易国(合同买方所在国)</span>
- </td>
- <td colspan="2">
- <span>运抵国</span>
- </td>
- <td>
- <span>指运港(不用填写)</span>
- </td>
- <td>
- <span>离境口岸(不用填写)</span>
- </td>
- </tr>
- <tr>
- <td colspan="2" style="background-color: #ebf1de">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.contractCode }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.contractCode"
- size="small"
- />
- </td>
- <td colspan="2" style="background-color: #ebf1de">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.tradingCountry }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.tradingCountry"
- size="small"
- />
- </td>
- <td colspan="2" style="background-color: #ebf1de">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.arrivalCountry }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.arrivalCountry"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.portOfDestination }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.portOfDestination"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.departurePort }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.departurePort"
- size="small"
- />
- </td>
- </tr>
- <tr style="background-color: #dce6f1">
- <td>
- <span>包装种类</span>
- </td>
- <td>
- <span>件数(运单和装箱单一致)</span>
- </td>
- <td>
- <span>毛重(千克)</span>
- </td>
- <td>
- <span>净重(千克)</span>
- </td>
- <td>
- <span>成交方式</span>
- </td>
- <td>
- <span>运费</span>
- </td>
- <td>
- <span>保费</span>
- </td>
- <td>
- <span>杂费(如有请填写)</span>
- </td>
- </tr>
- <tr>
- <td style="background-color: #ebf1de">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.packageType }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.packageType"
- size="small"
- />
- </td>
- <td style="background-color: #ebf1de">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.sumPackQuantity }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.sumPackQuantity"
- size="small"
- />
- </td>
- <td style="background-color: #ebf1de">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.sumRoughWeight }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.sumRoughWeight"
- size="small"
- />
- </td>
- <td style="background-color: #ebf1de">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.sumNetWeight }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.sumNetWeight"
- size="small"
- />
- </td>
- <td style="background-color: #ebf1de">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.tradeModeName }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.tradeModeName"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.freightPrice }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.freightPrice"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.premiumPrice }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.premiumPrice"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.incidentalPrice }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.incidentalPrice"
- size="small"
- />
- </td>
- </tr>
- <tr>
- <td colspan="3" style="background-color: #dce6f1">
- <span>随附单证及编号(常见如通关单号、原进口报关单号)</span>
- </td>
- <td colspan="5">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.documentsAttached }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.documentsAttached"
- size="small"
- />
- </td>
- </tr>
- <tr>
- <td colspan="2" style="background-color: #dce6f1">
- <span>标记唛码及备注</span>
- </td>
- <td colspan="2" style="background-color: #ebf1de">
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.shippingMark }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.shippingMark"
- size="small"
- />
- </td>
- <td style="background-color: #dce6f1">
- <span>境内货源地</span>
- </td>
- <td
- colspan="3"
- style="background-color: #ebf1de; text-align: left"
- >
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ printCustomsDeclaration.content.withinChinaSource }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="printCustomsDeclaration.content.withinChinaSource"
- size="small"
- />
- </td>
- </tr>
- </table>
- <table cellspacing="0" cellpadding="0" border="0" class="two">
- <tr>
- <th style="width: 20px">
- <span>项号</span>
- </th>
- <th style="width: 140px">
- <span>商品编号(13位)原10位海关编码+3位检验检疫附加编码</span>
- </th>
- <th style="width: 140px">
- <span>商品名称</span>
- </th>
- <th>
- <span>品牌</span>
- </th>
- <th>
- <span>品牌类型</span>
- </th>
- <th style="width: 140px">
- <span>出口享惠情况(不填写则默认不享受)</span>
- </th>
- <th>
- <span>型号</span>
- </th>
- <th style="width: 140px">
- <span>税号所需申报要素(如:用途、材质等)</span>
- </th>
- <th>
- <span>各项净重</span>
- </th>
- <th>
- <span>成交数量</span>
- </th>
- <th>
- <span>成交单位</span>
- </th>
- <th>
- <span>原产国(地区)</span>
- </th>
- <th>
- <span>总价与币制</span>
- </th>
- <th>
- <span>成交单价</span>
- </th>
- <th>
- <span>EXW 单价</span>
- </th>
- </tr>
- <template
- v-if="
- printCustomsDeclaration.content.products &&
- printCustomsDeclaration.content.products.length > 0
- "
- >
- <tr
- v-for="(item, index) in printCustomsDeclaration.content
- .products"
- :key="index"
- >
- <td>
- <span>{{ index + 1 }}</span>
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ item.customsCode }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="item.customsCode"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ item.productName }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="item.productName"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ item.brand }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="item.brand"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ item.brandType }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="item.brandType"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ item.exportBenefits }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="item.exportBenefits"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ item.productModelChinese }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="item.productModelChinese"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ item.declareRemark }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="item.declareRemark"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ item.netWeight }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="item.netWeight"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ item.quantity }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="item.quantity"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ item.unit }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="item.unit"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ item.countryChinese }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="item.countryChinese"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ item.sumPrice }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="item.sumPrice"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ item.declaredPrice }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="item.declaredPrice"
- size="small"
- />
- </td>
- <td>
- <div
- style="word-wrap: break-word; padding: 0 4px"
- v-if="textShow"
- >
- {{ item.exwPrice }}
- </div>
- <el-input
- autosize
- type="textarea"
- v-if="!textShow"
- v-model="item.exwPrice"
- size="small"
- />
- </td>
- </tr>
- </template>
- <tr>
- <td colspan="15" style="text-align: left; padding-left: 8px">
- <span style="color: red">
- 我司保证以上所提供的信息及资料准确无误,如在海关申报、查验时有任何异议,所造成的损失及后果由我司承担。
- 确认签名/盖章:_________________________
- </span>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <template #footer>
- <el-button @click="openCustomsDeclaration = false" size="large"
- >取消</el-button
- >
- <el-button type="primary" @click="clickDownload()" size="large"
- >下载PDF</el-button
- >
- <el-button type="primary" @click="clickSave()" size="large"
- >保存</el-button
- >
- <el-button v-print="printObj" size="large">打印</el-button>
- </template>
- </el-dialog>
- <el-dialog
- title="代理报关委托书"
- v-if="mandateDialog"
- v-model="mandateDialog"
- width="1000"
- >
- <div id="pdfDomOne" style="font-family: 'msyh'">
- <div id="mandate" style="padding: 30px; font-size: 13px">
- <div class="title">代 理 报 关 委 托 书</div>
- <div style="text-align: right">
- <span>编号:</span>
- <span v-if="textShowOne">{{ mandateData.code }}</span>
- <el-input
- style="width: 200px"
- autosize
- placeholder="请输入"
- type="textarea"
- v-if="!textShowOne"
- v-model="mandateData.code"
- size="small"
- />
- </div>
- <div>
- <span v-if="textShowOne">{{ mandateData.codeOne }}</span>
- <el-input
- style="width: 200px"
- autosize
- placeholder="请输入"
- type="textarea"
- v-if="!textShowOne"
- v-model="mandateData.codeOne"
- size="small"
- />
- :
- </div>
- <div>
- <span style="padding-left: 2em">我单位现</span>
- <span v-if="textShowOne">
- {{ mandateData.type }}
- </span>
- <span>
- <el-select
- v-model="mandateData.type"
- placeholder="请选择"
- v-if="!textShowOne"
- style="width: 150px; margin: 0 5px"
- >
- <el-option label="A" value="A" />
- <el-option label="B" value="B" />
- </el-select>
- </span>
- (A 逐票、B 长期) 委托贵公司代理
- <span v-if="textShowOne">
- <span v-for="(item, index) in mandateData.agentList" :key="index">
- {{ item }}
- <span v-if="index < mandateData.agentList.length - 1">,</span>
- </span>
- </span>
- <el-select
- v-model="mandateData.agentList"
- multiple
- placeholder="请选择"
- style="width: 240px; margin: 0 5px"
- v-if="!textShowOne"
- >
- <el-option
- v-for="item in selectData"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- />
- </el-select>
- 等通关事宜。〔A、填单申报 B、申请、联系 和配合实施检验检疫
- C、辅助查验 D、代缴税款
- E、设立手册(账册)F、核销手册(账册)G、领取海 关相关单证
- H、其他〕详见《委托报关协议》
- </div>
- <div style="text-indent: 2em">
- 我单位保证遵守海关有关法律、法规、规章,保证所提供的情况真实、完整、单货相符,无侵犯他
- 人知识产权的行为。否则,愿承担相关法律责任。
- </div>
- <div style="text-indent: 2em">
- 本委托书有效期自签字之日起至<span v-if="textShowOne">{{
- getChineseDate(mandateData.stopDate)
- }}</span
- ><el-date-picker
- v-model="mandateData.stopDate"
- type="date"
- placeholder="请选择"
- size="default"
- value-format="YYYY-MM-DD"
- v-if="!textShowOne"
- style="width: 150px; margin: 0 5px"
- />止。
- </div>
- <div style="text-align: right; padding-right: 150px">
- 委托方(盖章)
- </div>
- <div style="margin: 20px 0; text-align: right; padding-right: 100px">
- 法定代表人或其授权签署《代理报关委托书》的人(签字)
- </div>
- <div style="text-align: right">
- <span v-if="textShowOne">{{
- getChineseDate(mandateData.signDate)
- }}</span>
- <el-date-picker
- v-model="mandateData.signDate"
- type="date"
- placeholder="请选择"
- size="default"
- value-format="YYYY-MM-DD"
- v-if="!textShowOne"
- style="width: 150px; margin: 0 5px"
- />
- </div>
- <div class="title" style="margin-bottom: 10px">委 托 报 关 协 议</div>
- <div style="text-indent: 2em">
- 为明确委托报关具体事项和各自责任,双方经平等协商签定协议如下:
- </div>
- <div style="width: 100%; overflow: hidden">
- <div style="width: 49%; float: left">
- <table border="1" style="width: 100%" class="table-mandate">
- <tr>
- <td style="width: 33%">委托方</td>
- <td style="width: 67%">
- <span v-if="textShowOne">{{
- dictValueLabel(mandateData.companyId, companyData)
- }}</span>
- <span>
- <el-select
- v-model="mandateData.companyId"
- placeholder="请选择"
- v-if="!textShowOne"
- style="height: 26px; width: 100%"
- class="m-2 select_height"
- >
- <el-option
- v-for="item in companyData"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- /> </el-select
- ></span>
- </td>
- </tr>
- <tr>
- <td>主要货物名称</td>
- <td>{{ mandateData.productName }}</td>
- </tr>
- <tr>
- <td>HS 编码</td>
- <td>{{ mandateData.customerCode }}</td>
- </tr>
- <tr>
- <td>进/出口日期</td>
- <td>
- <span v-if="textShowOne">{{
- getChineseDate(mandateData.importOrExportDate)
- }}</span>
- <el-date-picker
- v-model="mandateData.importOrExportDate"
- type="date"
- placeholder="请选择"
- size="default"
- value-format="YYYY-MM-DD"
- v-if="!textShowOne"
- style="height: 26px; width: 100%"
- />
- </td>
- </tr>
- <tr>
- <td>提运单号</td>
- <td>
- <span v-if="textShowOne">{{
- mandateData.transportCode
- }}</span>
- <el-input
- autosize
- placeholder="请输入"
- type="textarea"
- v-if="!textShowOne"
- v-model="mandateData.transportCode"
- size="small"
- />
- </td>
- </tr>
- <tr>
- <td>贸易方式</td>
- <td>
- {{
- dictValueLabel(mandateData.trade_methods, tradeMethods)
- }}
- </td>
- </tr>
- <tr>
- <td>数(重)量</td>
- <td>{{ mandateData.productQuantity }}</td>
- </tr>
- <tr>
- <td>包装情况</td>
- <td>
- <span v-if="textShowOne">{{ mandateData.package }}</span>
- <el-input
- autosize
- type="textarea"
- placeholder="请输入"
- v-if="!textShowOne"
- v-model="mandateData.package"
- size="small"
- />
- </td>
- </tr>
- <tr>
- <td>原产地/货源地</td>
- <td>{{ mandateData.transport_method }}</td>
- </tr>
- <tr>
- <td
- colspan="2"
- style="
- text-align: left;
- height: 120px;
- vertical-align: top;
- position: relative;
- "
- >
- <span style="position: absolute; left: 8px; top: 4px">
- 其他要求:</span
- >
- <span v-if="textShowOne" style="margin-left: 65px">{{
- mandateData.otherAsk
- }}</span>
- <el-input
- autosize
- placeholder="请输入"
- type="textarea"
- v-if="!textShowOne"
- v-model="mandateData.otherAsk"
- size="small"
- :rows="5"
- style="width: 82%; margin-left: 65px"
- />
- </td>
- </tr>
- <tr>
- <td colspan="2" style="text-align: left; height: auto">
- 背面所列通用条款是本协议不可分割的一部分,对本协
- 议的签署构成了对背面通用条款的同意。
- </td>
- </tr>
- <tr>
- <td colspan="2" style="text-align: left">
- <div style="display: flex">
- <div>委托方签章:</div>
- <div style="height: 100px"></div>
- </div>
- <div style="text-align: left">经办人签字:</div>
- <div style="display: flex; justify-content: space-between">
- <div>联系电话:</div>
- <div>年 月 日</div>
- </div>
- </td>
- </tr>
- </table>
- </div>
- <div style="width: 2%; float: left; opacity: 0">1</div>
- <div style="width: 49%; float: left">
- <table border="1" style="width: 100%" class="table-mandate">
- <tr>
- <td style="width: 33%">被委托方</td>
- <td colspan="2">
- <span v-if="textShowOne"></span>
- </td>
- </tr>
- <tr>
- <td>*报关单编码</td>
- <td colspan="2" style="text-align: left">No.</td>
- </tr>
- <tr>
- <td rowspan="4">收到单证日期</td>
- <td style="width: 33%">合同</td>
- <td style="width: 34%">发票</td>
- </tr>
- <tr>
- <td>装箱清单</td>
- <td>提(运)单</td>
- </tr>
- <tr>
- <td>加工贸易手册</td>
- <td>许可证件</td>
- </tr>
- <tr>
- <td
- colspan="2"
- style="
- text-align: left;
- height: 80.05px;
- vertical-align: top;
- "
- >
- 其他
- <!-- <el-input
- autosize
- type="textarea"
- v-if="!textShowOne"
- v-model="mandateData.exwPrice"
- size="small"
- :rows="3"
- style="width: 67%"
- /> -->
- </td>
- </tr>
- <tr>
- <td>报关收费</td>
- <td colspan="2" style="text-align: left">
- 人民币:<span style="float: right; padding-right: 20px"
- >元</span
- >
- </td>
- </tr>
- <tr>
- <td
- colspan="3"
- style="text-align: left; height: 120px; vertical-align: top"
- >
- 承诺说明: <span v-if="textShowOne"></span>
- </td>
- </tr>
- <tr>
- <td colspan="3" style="text-align: left; height: auto">
- 背面所列通用条款是本协议不可分割的一部分,对本协
- 议的签署构成了对背面通用条款的同意。
- </td>
- </tr>
- <tr>
- <td colspan="3" style="text-align: left">
- <div style="display: flex">
- <div>被委托方签章:</div>
- <div style="height: 100px"></div>
- </div>
- <div style="text-align: left">报关人员签名:</div>
- <div style="display: flex; justify-content: space-between">
- <div>联系电话:</div>
- <div>年 月 日</div>
- </div>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <div style="text-align: right">中国报关协会监制</div>
- </div>
- </div>
- <template #footer>
- <el-button @click="mandateDialog = false" size="large">取消</el-button>
- <el-button
- type="primary"
- @click="textShowOne = !textShowOne"
- size="large"
- ><span v-show="!textShowOne">切换只读状态</span>
- <span v-show="textShowOne">切换编辑状态</span></el-button
- >
- <el-button type="primary" @click="clickDownload()" size="large"
- >下载PDF</el-button
- >
- <el-button type="primary" @click="clickSave()" size="large"
- >保存</el-button
- >
- <el-button v-print="pdfDomOne2" size="large">打印</el-button>
- </template>
- </el-dialog>
- </div>
- </template>
- <script setup>
- import { computed, ref } from "vue";
- import byTable from "@/components/byTable/index";
- import byForm from "@/components/byForm/index";
- import { ElMessage, ElMessageBox } from "element-plus";
- import useUserStore from "@/store/modules/user";
- const { proxy } = getCurrentInstance();
- const shipmentList = ref([]);
- const countryData = ref([]);
- const fundsPaymentMethod = ref([]);
- const shippingMethod = ref([]);
- const tradeMethods = ref([]);
- const accountCurrency = ref([]);
- const productUnit = ref([]);
- const sourceList = ref({
- data: [],
- pagination: {
- total: 0,
- pageNum: 1,
- pageSize: 10,
- keyword: "",
- warehouseId: "",
- toWarehouseId: "",
- type: "3",
- },
- });
- const loading = ref(false);
- const config = computed(() => {
- return [
- {
- attrs: {
- label: "归属公司",
- prop: "sellCorporationName",
- "min-width": 260,
- },
- },
- {
- attrs: {
- label: "客户名称",
- prop: "buyCorporationName",
- "min-width": 200,
- },
- },
- {
- attrs: {
- label: "主合同编号",
- prop: "code",
- width: 200,
- },
- },
- {
- attrs: {
- label: "货运详情",
- slot: "acceptCode",
- width: 200,
- },
- },
- {
- attrs: {
- label: "查看单证",
- slot: "toView",
- width: 140,
- },
- },
- {
- attrs: {
- label: "创建时间",
- prop: "createTime",
- width: 160,
- },
- },
- {
- attrs: {
- label: "操作",
- width: "80",
- align: "center",
- },
- renderHTML(row) {
- return [
- {
- attrs: {
- label: "删除",
- type: "primary",
- text: true,
- },
- el: "button",
- click() {
- ElMessageBox.confirm(
- "此操作将永久删除该数据, 是否继续?",
- "提示",
- {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- }
- ).then(() => {
- proxy
- .post("/documents/delete", {
- id: row.id,
- })
- .then(() => {
- ElMessage({
- message: "删除成功",
- type: "success",
- });
- getList();
- });
- });
- },
- },
- ];
- },
- },
- ];
- });
- const companyData = ref([]);
- const getDict = () => {
- proxy.post("/customizeArea/list", { parentId: "0" }).then((res) => {
- if (res && res.length > 0) {
- countryData.value = res.map((item) => {
- return {
- label: item.name,
- value: item.id,
- };
- });
- }
- });
- proxy
- .post("/corporation/page", { pageNum: 1, pageSize: 9999 })
- .then((res) => {
- companyData.value = res.rows.map((x) => ({
- ...x,
- label: x.name,
- value: x.id,
- }));
- });
- proxy
- .post("/dictTenantData/page", {
- pageNum: 1,
- pageSize: 999,
- dictCode: "funds_payment_method",
- tenantId: useUserStore().user.tenantId,
- })
- .then((res) => {
- if (res.rows && res.rows.length > 0) {
- fundsPaymentMethod.value = res.rows.map((item) => {
- return {
- label: item.dictValue,
- value: item.dictKey,
- };
- });
- }
- });
- proxy
- .post("/dictTenantData/page", {
- pageNum: 1,
- pageSize: 999,
- dictCode: "shipping_method",
- tenantId: useUserStore().user.tenantId,
- })
- .then((res) => {
- if (res.rows && res.rows.length > 0) {
- shippingMethod.value = res.rows.map((item) => {
- return {
- label: item.dictValue,
- value: item.dictKey,
- };
- });
- }
- });
- proxy
- .post("/dictTenantData/page", {
- pageNum: 1,
- pageSize: 999,
- dictCode: "trade_mode",
- tenantId: useUserStore().user.tenantId,
- })
- .then((res) => {
- if (res.rows && res.rows.length > 0) {
- tradeMethods.value = res.rows.map((item) => {
- return {
- label: item.dictValue,
- value: item.dictKey,
- };
- });
- }
- });
- proxy
- .post("/dictTenantData/page", {
- pageNum: 1,
- pageSize: 999,
- dictCode: "account_currency",
- tenantId: useUserStore().user.tenantId,
- })
- .then((res) => {
- if (res.rows && res.rows.length > 0) {
- accountCurrency.value = res.rows.map((item) => {
- return {
- label: item.dictValue,
- value: item.dictKey,
- };
- });
- }
- });
- proxy
- .post("/dictTenantData/page", {
- pageNum: 1,
- pageSize: 999,
- dictCode: "unit",
- tenantId: useUserStore().user.tenantId,
- })
- .then((res) => {
- if (res.rows && res.rows.length > 0) {
- productUnit.value = res.rows.map((item) => {
- return {
- label: item.dictValue,
- value: item.dictKey,
- };
- });
- }
- });
- };
- const getList = async (req) => {
- sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
- loading.value = true;
- proxy.post("/documents/page", sourceList.value.pagination).then((res) => {
- sourceList.value.data = res.rows;
- sourceList.value.pagination.total = res.total;
- setTimeout(() => {
- loading.value = false;
- }, 200);
- });
- };
- getDict();
- getList();
- const dialogVisible = ref(false);
- const loadingDialog = ref(false);
- const submit = ref(null);
- const formOption = reactive({
- inline: true,
- labelWidth: 100,
- itemWidth: 100,
- rules: [],
- });
- const formData = reactive({
- data: {
- documentsProductList: [],
- },
- });
- const formConfig = computed(() => {
- return [
- {
- type: "select",
- prop: "contractId",
- label: "出货主合同",
- required: true,
- data: shipmentList.value,
- fn: (val) => {
- changeContract(val);
- },
- },
- {
- type: "slot",
- slotName: "details",
- label: "产品信息",
- },
- {
- label: "唛头信息",
- },
- {
- type: "select",
- prop: "countryId",
- label: "目的国",
- required: true,
- filterable: true,
- data: countryData.value,
- itemWidth: 40,
- },
- {
- type: "input",
- prop: "portOfDestination",
- label: "目的港",
- itemWidth: 60,
- },
- {
- type: "input",
- prop: "remark",
- label: "唛头明细",
- itemType: "textarea",
- },
- ];
- });
- const rules = ref({
- contractId: [
- { required: true, message: "请选择出货主合同", trigger: "change" },
- ],
- countryId: [{ required: true, message: "请选择目的国", trigger: "change" }],
- describes: [{ required: true, message: "请输入货物描述", trigger: "blur" }],
- subDescribe: [{ required: true, message: "请输入副描述", trigger: "blur" }],
- customsCode: [{ required: true, message: "请输入海关编码", trigger: "blur" }],
- quantity: [{ required: true, message: "请输入数量", trigger: "blur" }],
- price: [{ required: true, message: "请输入单价", trigger: "blur" }],
- });
- const openModal = () => {
- proxy.post("/packShipment/list", {}).then((res) => {
- if (res && res.length > 0) {
- shipmentList.value = res.map((item) => {
- return {
- packShipmentId: item.id,
- label: item.contractCode,
- value: item.contractId,
- packDetailIds: item.packDetailIds,
- };
- });
- } else {
- shipmentList.value = [];
- }
- });
- formData.data = {
- documentsProductList: [],
- };
- loadingDialog.value = false;
- dialogVisible.value = true;
- };
- const changeContract = (val) => {
- if (val) {
- let data = shipmentList.value.filter((item) => item.value === val);
- if (data && data.length > 0) {
- formData.data.packShipmentId = data[0].packShipmentId;
- proxy
- .post("/packShipment/productDetailList", {
- packDetailIds: data[0].packDetailIds,
- })
- .then((res) => {
- if (res && res.length > 0) {
- formData.data.documentsProductList = res.map((item) => {
- return {
- businessId: item.businessId,
- productId: item.productId,
- describes: item.remark,
- subDescribe: item.subDescription,
- customsCode: item.customsCode,
- quantity: item.quantity,
- price: item.price,
- type: item.type,
- };
- });
- } else {
- formData.data.documentsProductList = [];
- }
- });
- } else {
- formData.data.documentsProductList = [];
- }
- proxy.post("/contract/detail", { id: val }).then((res) => {
- formData.data.countryId = res.buyCountryId;
- });
- } else {
- formData.data.documentsProductList = [];
- }
- };
- const submitForm = () => {
- submit.value.handleSubmit(() => {
- loadingDialog.value = true;
- proxy.post("/documents/add", formData.data).then(
- () => {
- ElMessage({
- message: "提交成功",
- type: "success",
- });
- dialogVisible.value = false;
- sourceList.value.pagination.pageNum = 1;
- getList();
- },
- (err) => {
- console.log(err);
- loadingDialog.value = false;
- }
- );
- });
- };
- const openAddAcceptCode = ref(false);
- const loadingTwo = ref(false);
- const submitTwo = ref(null);
- const fileList = ref([]);
- const uploadData = ref({});
- const formDataTwo = reactive({
- data: {
- documentsId: "",
- },
- });
- const formConfigTwo = computed(() => {
- return [
- {
- type: "input",
- prop: "acceptCarriage",
- label: "承运方",
- itemType: "text",
- itemWidth: 40,
- },
- {
- type: "input",
- prop: "code",
- label: "单号",
- itemType: "text",
- itemWidth: 60,
- },
- {
- type: "slot",
- prop: "departureTime",
- slotName: "departureTime",
- label: "起运时间",
- },
- {
- type: "input",
- prop: "remark",
- label: "备注",
- itemType: "textarea",
- },
- {
- type: "slot",
- prop: "file",
- slotName: "file",
- label: "上传附件",
- },
- ];
- });
- const rulesTwo = ref({
- acceptCarriage: [
- { required: true, message: "请输入承运方", trigger: "blur" },
- ],
- code: [{ required: true, message: "请输入承运单号", trigger: "blur" }],
- departureTime: [
- { required: true, message: "请选择起运时间", trigger: "change" },
- ],
- });
- const clickAddAcceptCode = (item) => {
- formDataTwo.data = {
- documentsId: item.id,
- };
- fileList.value = [];
- openAddAcceptCode.value = true;
- };
- const uploadFile = async (file) => {
- const res = await proxy.post("/fileInfo/getSing", { fileName: file.name });
- uploadData.value = res.uploadBody;
- file.id = res.id;
- file.fileName = res.fileName;
- file.fileUrl = res.fileUrl;
- return true;
- };
- const onPreviewFile = (file) => {
- window.open(file.raw.fileUrl, "_blank");
- };
- const submitTwoForm = () => {
- submitTwo.value.handleSubmit(() => {
- if (fileList.value && fileList.value.length > 0) {
- formDataTwo.data.fileList = fileList.value.map((item) => {
- return {
- id: item.raw.id,
- fileName: item.raw.fileName,
- fileUrl: item.raw.fileUrl,
- };
- });
- } else {
- formDataTwo.data.fileList = [];
- }
- loadingTwo.value = true;
- proxy.post("/documentsTransport/add", formDataTwo.data).then(
- () => {
- ElMessage({
- message: "提交成功",
- type: "success",
- });
- openAddAcceptCode.value = false;
- getList();
- },
- (err) => {
- console.log(err);
- loadingTwo.value = false;
- }
- );
- });
- };
- const rowData = ref({});
- const openSelectPrint = ref(false);
- const clickToView = (item) => {
- rowData.value = item;
- openSelectPrint.value = true;
- printDetails.value = {
- packDetailGoodsList: [],
- documents: {},
- contract: {},
- corporation: {},
- packDetailList: [],
- documentsProducts: [],
- customer: {},
- };
- proxy
- .get("/documents/generateInvoiceAPackPdf", { id: rowData.value.id })
- .then((res) => {
- let arr = [];
- for (let i = 0; i < res.data.documentsProducts.length; i++) {
- const ele = res.data.documentsProducts[i];
- let index = -1;
- if (i === 0) {
- arr.push(ele);
- } else {
- const isHaveProduct = arr.some((x, i) => {
- if (x.productId === ele.productId) {
- index = i;
- return true;
- }
- });
- if (isHaveProduct && index >= 0) {
- arr[index].quantity += ele.quantity;
- } else {
- arr.push(ele);
- }
- }
- }
- res.data.documentsProducts = arr;
- printDetails.value = res.data;
- });
- };
- const openPrint = ref(false);
- const openStatus = ref("");
- const printDetails = ref({
- packDetailGoodsList: [],
- documents: {},
- contract: {},
- contractProjectList: [],
- corporation: {},
- packDetailList: [],
- documentsProducts: [],
- customer: {},
- });
- const openCustomsDeclaration = ref(false);
- const printCustomsDeclaration = ref({
- content: {},
- });
- const textShow = ref(false);
- const textShowOne = ref(false);
- const mandateDialog = ref(false);
- const mandateData = ref({
- arr: [],
- });
- const selectData = ref([
- {
- label: "A",
- value: "A",
- },
- {
- label: "B",
- value: "B",
- },
- {
- label: "C",
- value: "C",
- },
- {
- label: "D",
- value: "D",
- },
- {
- label: "E",
- value: "E",
- },
- {
- label: "F",
- value: "F",
- },
- {
- label: "G",
- value: "G",
- },
- {
- label: "H",
- value: "H",
- },
- ]);
- const clickPrint = (status) => {
- // printDetails.value = {
- // packDetailGoodsList: [],
- // documents: {},
- // contract: {},
- // contractProjectList: [],
- // corporation: {},
- // packDetailList: [],
- // documentsProducts: [],
- // customer: {},
- // };
- if ([1, 2, 3].includes(status)) {
- openStatus.value = status;
- openPrint.value = true;
- } else if ([4].includes(status)) {
- printCustomsDeclaration.value = {
- content: {},
- };
- openStatus.value = status;
- textShow.value = false;
- openCustomsDeclaration.value = true;
- proxy
- .get("/documents/generateClearanceePdf", { id: rowData.value.id })
- .then((res) => {
- if (res.data.content) {
- res.data.content = JSON.parse(res.data.content);
- // if (
- // res.data.content.products &&
- // res.data.content.products.length > 0
- // ) {
- // let arr = [];
- // for (let i = 0; i < res.data.content.products.length; i++) {
- // const ele = res.data.content.products[i];
- // let index = -1;
- // if (i === 0) {
- // arr.push(ele);
- // } else {
- // const isHaveProduct = arr.some((x, i) => {
- // if (x.productId === ele.productId) {
- // index = i;
- // return true;
- // }
- // });
- // if (isHaveProduct && index >= 0) {
- // arr[index].quantity += ele.quantity;
- // } else {
- // arr.push(ele);
- // }
- // }
- // }
- // res.data.content.products = arr;
- // }
- }
- printCustomsDeclaration.value = res.data;
- });
- } else {
- openStatus.value = status;
- mandateDialog.value = true;
- proxy
- .post("/documentsPdf/powerDetail", { id: rowData.value.id })
- .then((res) => {
- if (res && res.agentList) {
- res.agentList = res.agentList.split(",");
- } else {
- res.agentList = [];
- }
- mandateData.value = res;
- });
- }
- };
- const clickDownload = () => {
- if (openStatus.value === 1) {
- proxy.getPdf("装箱单PDF文件");
- } else if (openStatus.value === 2) {
- proxy.getPdf("商业发票PDF文件");
- } else if (openStatus.value === 3) {
- proxy.getPdf("销售确认书PDF文件");
- } else if (openStatus.value === 4) {
- textShow.value = true;
- let data = proxy.deepClone(printCustomsDeclaration.value);
- data.content = JSON.stringify(data.content);
- proxy.post("/documentsPdf/add", data).then();
- setTimeout(() => {
- proxy.getPdf("报关单PDF文件", 1400);
- nextTick(() => {
- setTimeout(() => {
- textShow.value = false;
- }, 1000);
- });
- }, 1000);
- } else if (openStatus.value === 5) {
- textShowOne.value = true;
- proxy.getPdf("代理报关委托书", 1000, "pdfDomOne");
- }
- };
- const clickSave = () => {
- if (openStatus.value === 1) {
- proxy.getPdf("装箱单PDF文件");
- } else if (openStatus.value === 2) {
- proxy.getPdf("商业发票PDF文件");
- } else if (openStatus.value === 3) {
- proxy.getPdf("销售确认书PDF文件");
- } else if (openStatus.value === 4) {
- textShow.value = true;
- let data = proxy.deepClone(printCustomsDeclaration.value);
- data.content = JSON.stringify(data.content);
- proxy.post("/documentsPdf/add", data).then((res) => {
- ElMessage({
- message: "保存成功",
- type: "success",
- });
- });
- } else if (openStatus.value === 5) {
- let content = proxy.deepClone(mandateData.value);
- content.agentList = content.agentList.join(",");
- const data = {
- documentId: rowData.value.id,
- contractCode: rowData.value.code,
- dataType: 1,
- content: JSON.stringify(content),
- };
- proxy.post("/documentsPdf/add", data).then((res) => {
- ElMessage({
- message: "保存成功",
- type: "success",
- });
- textShowOne.value = true;
- });
- }
- };
- const getStyle = (text) => {
- if (text) {
- return text.replace(/\n|\r\n/g, "<br>");
- } else {
- return "";
- }
- };
- const statistics = (label, label2, index) => {
- let num = 0;
- if (
- printDetails.value.documentsProducts &&
- printDetails.value.documentsProducts.length > 0
- ) {
- printDetails.value.documentsProducts.map((item) => {
- if (label2) {
- if (item[label] && item[label2]) {
- num = parseFloat(
- Number(num) + Number(item[label]) * Number(item[label2])
- ).toFixed(index);
- }
- } else {
- if (item[label]) {
- num = parseFloat(Number(num) + Number(item[label])).toFixed(index);
- }
- }
- });
- }
- return num;
- };
- const getAllMoney = (num) => {
- let money = num;
- if (
- printDetails.value.contractProjectList &&
- printDetails.value.contractProjectList.length > 0
- ) {
- printDetails.value.contractProjectList.map((item) => {
- if (item.amount) {
- money = parseFloat(Number(money) + Number(item.amount)).toFixed(2);
- }
- });
- }
- return money;
- };
- const printObj = ref({
- id: "printMe",
- popTitle: "",
- extraCss:
- "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",
- extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>',
- });
- const pdfDomOne2 = ref({
- id: "pdfDomOne",
- popTitle: "",
- extraCss:
- "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",
- extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>',
- });
- const getChineseDate = (date) => {
- if (date) {
- const newDate = new Date(date);
- let year = newDate.getFullYear();
- let month = newDate.getMonth() + 1;
- let day = newDate.getDate();
- return year + "年" + month + "月" + day + "日 ";
- }
- };
- </script>
- <style lang="scss" scoped>
- .tenant {
- padding: 20px;
- }
- ::v-deep(.el-input-number .el-input__inner) {
- text-align: left;
- }
- .baseRow {
- min-height: 20px;
- border-top: 1px solid black;
- border-left: 1px solid black;
- }
- .contentRow {
- border-right: 1px solid black;
- line-height: 20px;
- padding-left: 4px;
- }
- .three {
- width: 100%;
- border: 1px solid black;
- }
- .three thead {
- text-align: center;
- line-height: 20px;
- font-weight: 700;
- }
- .three th {
- border-right: 1px solid black;
- border-bottom: 1px solid black;
- }
- .three td {
- line-height: 20px;
- border-right: 1px solid black;
- border-bottom: 1px solid black;
- }
- .one {
- width: 100%;
- text-align: center;
- border-top: 1px solid black;
- border-left: 1px solid black;
- table-layout: fixed;
- }
- .one td {
- border: 0;
- line-height: 18px;
- border-right: 1px solid black;
- border-bottom: 1px solid black;
- }
- .two {
- width: 100%;
- text-align: center;
- border-top: 1px solid black;
- border-left: 1px solid black;
- table-layout: fixed;
- }
- .two th {
- border: 0;
- line-height: 18px;
- border-right: 1px solid black;
- border-bottom: 1px solid black;
- background-color: #dce6f1;
- }
- .two td {
- border: 0;
- line-height: 18px;
- border-right: 1px solid black;
- border-bottom: 1px solid black;
- }
- :deep(#pdfDom .el-textarea__inner) {
- background: transparent !important;
- overflow-y: hidden;
- padding: 0 4px !important;
- resize: none;
- }
- :deep(#pdfDom .el-textarea) {
- --el-input-focus-border: transparent;
- --el-input-transparent-border: 0 0 0 0px;
- --el-input-border-color: transparent;
- --el-input-hover-border: 0px !important;
- --el-input-hover-border-color: transparent;
- --el-input-focus-border-color: transparent;
- --el-input-clear-hover-color: transparent;
- box-shadow: 0 0 0 0px !important;
- --el-input-border: 0px;
- }
- // 委托单
- :deep(#mandate .el-textarea__inner) {
- // background: transparent !important;
- min-height: 27px;
- overflow-y: hidden;
- // padding: 0 4px !important;
- resize: none;
- }
- :deep(#mandate .el-input__wrapper) {
- // box-shadow: 0 0 0 0px !important;
- // --el-input-border: 0px;
- }
- :deep(#mandate .el-input__suffix-inner) {
- // display: none;
- }
- :deep(#mandate .el-input__prefix-inner) {
- // display: none;
- }
- :deep(#mandate .select_height .el-input__wrapper) {
- height: 26px;
- }
- :deep(#mandate .el-textarea) {
- // --el-input-focus-border: transparent;
- // --el-input-transparent-border: 0 0 0 0px;
- // --el-input-border-color: transparent;
- // --el-input-hover-border: 0px !important;
- // --el-input-hover-border-color: transparent;
- // --el-input-focus-border-color: transparent;
- // --el-input-clear-hover-color: transparent;
- // box-shadow: 0 0 0 0px !important;
- // --el-input-border: 0px;
- }
- :deep(#mandate .el-input__inner) {
- // border: none;
- // box-shadow: none;
- // --el-input-border: none;
- }
- #mandate {
- .title {
- font-size: 20px;
- font-weight: 700;
- text-align: center;
- }
- }
- .table-mandate {
- border-collapse: collapse;
- border-spacing: 0;
- td {
- text-align: center;
- padding: 4px 8px;
- }
- }
- </style>
|