123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883 |
- <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="0"
- :controls="false"
- :min="0"
- />
- </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>
- </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="860">
- <div id="printMe">
- <div
- id="pdfDom"
- style="width: 800px; padding: 16px; font-size: 12px !important"
- >
- <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: 100px">
- 项目
- <br />
- ITEM NO.
- </td>
- <td>
- 货物描述
- <br />
- DESCRIPTION OF GOODS
- </td>
- <td style="width: 100px">
- 单位
- <br />
- UNIT
- </td>
- <td style="width: 100px; 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: 100px" 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: 100px">
- 单位
- <br />
- UNIT
- </td>
- </template>
- <td style="width: 100px">
- 数量
- <br />
- QUANTITY
- <br />
- (SET/PCS)
- </td>
- <template v-if="[2, 3].includes(openStatus)">
- <td style="width: 100px">
- 单价
- <br />
- UNIT PRICE
- <br />
- {{
- dictValueLabel(
- printDetails.contract.currency,
- accountCurrency
- )
- }}
- </td>
- <td style="width: 100px; 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
- >
- </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"
- >
- <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
- >
- </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 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("/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) => {
- 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 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 {
- 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);
- }
- printCustomsDeclaration.value = res.data;
- });
- }
- // proxy.get("/documents/generateInvoiceAPackPdf", { id: rowData.value.id }).then((res) => {
- // printDetails.value = res.data;
- // });
- };
- 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.getPdfTransverseA4("报关单PDF文件");
- nextTick(() => {
- setTimeout(() => {
- textShow.value = false;
- }, 1000);
- });
- }, 1000);
- }
- };
- 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",
- });
- });
- }
- };
- 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"/>',
- });
- </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;
- }
- </style>
|