| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383 | 
							- <template>
 
-     <div class="borderless" v-loading="pageLoading">
 
-         <div class="customer-head">
 
-             <div class="customer-back">
 
-                 <!--        <i class="back-icon el-icon-arrow-left"></i><i style="font-style:normal">返回管理列表</i>-->
 
-                 <el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left"
 
-                     @click="backToList">返回列表
 
-                 </el-button>
 
-             </div>
 
-             <div class="add-customer-btn">
 
-                 <!--<el-popover-->
 
-                 <!--    placement="bottom-end"-->
 
-                 <!--    width="100"-->
 
-                 <!--    trigger="hover">-->
 
-                 <!--    <div>-->
 
-                 <!--    </div>-->
 
-                 <!--<el-dropdown style="line-height: 0">-->
 
-                 <!--    <el-button size="small" type="success" style="margin-right: 8px"-->
 
-                 <!--               :loading="saveLoading" :disabled="!form.id" >-->
 
-                 <!--        发送 EDI<i class="el-icon-arrow-down el-icon--right"></i>-->
 
-                 <!--    </el-button>-->
 
-                 <!--    <el-dropdown-menu slot="dropdown">-->
 
-                 <!--        <el-dropdown-item v-for="item in ediData" :key="item.id"-->
 
-                 <!--                          @click.native="editypesSendingEdifun(item)">{{item.cnName}}-->
 
-                 <!--        </el-dropdown-item>-->
 
-                 <!--    </el-dropdown-menu>-->
 
-                 <!--</el-dropdown>-->
 
-                 <el-button size="small" type="primary" @click="addEdit">新 建
 
-                 </el-button>
 
-                 <el-button type="success" size="small" @click="CopyDocumentsfun">复制单据
 
-                 </el-button>
 
-                 <el-button v-if="bigtabs == 'fy'" size="small" :loading="saveLoading" @click="previewDialogfun"
 
-                     :disabled="!form.id">预 览
 
-                 </el-button>
 
-                 <el-button size="small" type="warning" :disabled="!form.id || detailData.seeDisabled || showLock"
 
-                     v-if="form.status == 1" @click.stop="revokeDocumentApproval">撤销单据请核
 
-                 </el-button>
 
-                 <el-button size="small" type="success" :disabled="!form.id || detailData.seeDisabled || showLock"
 
-                     v-if="form.status == 0 || form.status == 4" @click.stop="DocumentApproval">单据请核
 
-                 </el-button>
 
-                 <!--<el-button  size="small" type="primary" style="margin-right: 8px" v-if="detailData.seeDisabled"-->
 
-                 <!--            :loading="saveLoading" @click="editHandle">编 辑-->
 
-                 <!--</el-button>-->
 
-                 <el-button size="small" type="primary" style="margin-right: 8px"
 
-                     :disabled="detailData.seeDisabled || showLock" :loading="saveLoading" @click="editCustomer">保 存
 
-                 </el-button>
 
-                 <el-dropdown style="line-height: 0">
 
-                     <el-button type="warning" :loading="saveLoading" :disabled="!form.id" size="small">
 
-                         审 批<i class="el-icon-arrow-down el-icon--right"></i>
 
-                     </el-button>
 
-                     <el-dropdown-menu slot="dropdown">
 
-                         <!--<el-dropdown-item @click.native="examineBtn('审批')" :disabled="isExamineBtn && !detailData.check">审批-->
 
-                         <!--</el-dropdown-item>-->
 
-                         <el-dropdown-item @click.native="
 
-                             (checkScheduleDialog = true),
 
-                             (checkId = form.id)
 
-                             ">审核进度
 
-                         </el-dropdown-item>
 
-                     </el-dropdown-menu>
 
-                 </el-dropdown>
 
-             </div>
 
-         </div>
 
-         <div style="margin-top: 50px">
 
-             <el-tabs type="border-card" v-model="bigtabs" @tab-click="bigHandleClick">
 
-                 <el-tab-pane label="委托信息" name="wt" class="scrollable-container">
 
-                     <div>
 
-                         <el-form :model="form" ref="form" label-width="90px" class="demo-ruleForm">
 
-                             <containerTitle title="基础资料"></containerTitle>
 
-                             <basic-container :showBtn="true">
 
-                                 <el-row :gutter="60">
 
-                                     <el-col v-for="(item,
 
-                                         index) in basicData.column" :key="index" :span="8">
 
-                                         <!--数组-->
 
-                                         <div v-if="item instanceof Array"
 
-                                             style="display: flex;align-items: center;justify-content: space-between">
 
-                                             <el-row>
 
-                                                 <el-col :span="item[0].span
 
-                                                     ? item[0].span
 
-                                                     : 12
 
-                                                     ">
 
-                                                     <el-form-item :label="item[0].label" :prop="item[0].prop"
 
-                                                         :rules="item[0].rules" :label-width="item[0].labelWidth
 
-                                                             " :disabled="showLock">
 
-                                                         <span slot="label" v-if="item[0].label">
 
-                                                             <span v-if="
 
-                                                                 item[0]
 
-                                                                     .label ==
 
-                                                                 'HB/L NO'
 
-                                                             " style="color: #4c9e44;cursor: pointer;text-decoration: underline;"
 
-                                                                 @click="
 
-                                                                     applyforfun(
 
-                                                                         item[0]
 
-                                                                             .label
 
-                                                                     )
 
-                                                                     ">{{
 
-                                                                         item[0]
 
-                                                                             .label
 
-                                                                     }}
 
-                                                             </span>
 
-                                                             <span v-else style="color: #1e9fff">{{
 
-                                                                 item[0]
 
-                                                                     .label
 
-                                                             }}</span>
 
-                                                         </span>
 
-                                                         <span v-if="
 
-                                                             item[0].type ==
 
-                                                             'button'
 
-                                                         "></span>
 
-                                                         <!--<el-button v-if="item[0].type == 'button'" :disabled="detailData.seeDisabled || item[0].disabled"-->
 
-                                                         <!--           size="mini" type="success" icon="el-icon-circle-plus" circle-->
 
-                                                         <!--           @click="applyforfun(item[0].label)" >-->
 
-                                                         <!--</el-button>-->
 
-                                                         <search-query v-else-if="
 
-                                                             item[0].type ==
 
-                                                             'select'
 
-                                                         " :datalist="item[0].dicData
 
-                                                             " :selectValue="form[
 
-                                                                 item[0].prop
 
-                                                             ]
 
-                                                                 " :filterable="true" :allowCreate="item[0]
 
-                                                                     .allowCreate ||
 
-                                                                     false
 
-                                                                     " :clearable="false" :remote="true" :disabled="detailData.seeDisabled ||
 
-                                                                         item[0]
 
-                                                                             .disabled ||
 
-                                                                         showLock
 
-                                                                         " :buttonIf="false" :placeholder="`${item[0]
 
-                                                                             .text ||
 
-                                                                             ''}`
 
-                                                                             " :forParameter="item[0]
 
-                                                                                 .forParameter
 
-                                                                                 " @remoteMethod="
 
-                                                                                     remoteMethod(
 
-                                                                                         $event,
 
-                                                                                         item[0].prop
 
-                                                                                     )
 
-                                                                                     " @corpChange="
 
-                                                                                         corpChange(
 
-                                                                                             $event,
 
-                                                                                             item[0].prop
 
-                                                                                         )
 
-                                                                                         " @corpFocus="
 
-                                                                                             remoteMethod(
 
-                                                                                                 $event,
 
-                                                                                                 item[0].prop
 
-                                                                                             )
 
-                                                                                             ">
 
-                                                         </search-query>
 
-                                                         <el-input v-else type="age" style="width: 100%;" v-model="form[
 
-                                                             item[0].prop
 
-                                                         ]
 
-                                                             " size="small" autocomplete="off" :disabled="detailData.seeDisabled ||
 
-                                                                 item[0]
 
-                                                                     .disabled ||
 
-                                                                 showLock
 
-                                                                 " :placeholder="item[0].text ||
 
-                                                                     ''
 
-                                                                     "></el-input>
 
-                                                     </el-form-item>
 
-                                                 </el-col>
 
-                                                 <el-col :span="item[1].span
 
-                                                     ? item[1].span
 
-                                                     : 12
 
-                                                     ">
 
-                                                     <el-form-item :label="item[1].label" :prop="item[1].prop"
 
-                                                         :rules="item[1].rules" :label-width="item[1].labelWidth
 
-                                                             " :disabled="showLock">
 
-                                                         <span slot="label" v-if="item[1].label">
 
-                                                             <span style="color: #1e9fff">{{
 
-                                                                 item[1]
 
-                                                                     .label
 
-                                                             }}</span>
 
-                                                         </span>
 
-                                                         <el-date-picker v-if="
 
-                                                             item[1].type ==
 
-                                                             'date'
 
-                                                         " v-model="form[
 
-                                                             item[1].prop
 
-                                                         ]
 
-                                                             " clearable style="width: 100%;" type="date" size="small"
 
-                                                             :disabled="detailData.seeDisabled ||
 
-                                                                 item[1]
 
-                                                                     .disabled ||
 
-                                                                 showLock
 
-                                                                 " value-format="yyyy-MM-dd HH:mm" placeholder="选择日期">
 
-                                                         </el-date-picker>
 
-                                                         <search-query v-else-if="
 
-                                                             item[1].type ==
 
-                                                             'select'
 
-                                                         " :datalist="item[1].dicData
 
-                                                             " :selectValue="form[
 
-                                                                 item[1].prop
 
-                                                             ]
 
-                                                                 " :filterable="true" :clearable="false" :remote="true"
 
-                                                             :disabled="detailData.seeDisabled ||
 
-                                                                 item[1]
 
-                                                                     .disabled ||
 
-                                                                 showLock
 
-                                                                 " :buttonIf="false" :placeholder="`${item[1]
 
-                                                                     .text ||
 
-                                                                     ''}`
 
-                                                                     " :forParameter="item[1]
 
-                                                                         .forParameter
 
-                                                                         " @remoteMethod="
 
-                                                                             remoteMethod(
 
-                                                                                 $event,
 
-                                                                                 item[1].prop
 
-                                                                             )
 
-                                                                             " @corpChange="
 
-                                                                                 corpChange(
 
-                                                                                     $event,
 
-                                                                                     item[1].prop
 
-                                                                                 )
 
-                                                                                 " @corpFocus="
 
-                                                                                     remoteMethod(
 
-                                                                                         $event,
 
-                                                                                         item[1].prop
 
-                                                                                     )
 
-                                                                                     ">
 
-                                                         </search-query>
 
-                                                         <tree-select v-else-if="
 
-                                                             item[1].type == 'tree'" v-model="form[item[1].prop]
 
-                                                                 " filterable :data="item[1].dicData
 
-                                                                     " :props="item[1]
 
-                                                                         .forParameter
 
-                                                                         " nodeKey="title" size="small" :disabled="detailData.seeDisabled ||
 
-                                                                         item[1]
 
-                                                                             .disabled ||
 
-                                                                         showLock
 
-                                                                         " :multiple="false" :clearable="false"
 
-                                                             :placeholder="`${item[1]
 
-                                                                 .text ||
 
-                                                                 ''}`
 
-                                                                 " @selectChange="
 
-                                                                     corpChange(
 
-                                                                         $event,
 
-                                                                         item[1].prop
 
-                                                                     )
 
-                                                                     ">
 
-                                                         </tree-select>
 
-                                                         <el-input v-else type="age" style="width: 100%;" v-model="form[
 
-                                                             item[1].prop
 
-                                                         ]
 
-                                                             " size="small" autocomplete="off" :disabled="detailData.seeDisabled ||
 
-                                                                 item[1]
 
-                                                                     .disabled ||
 
-                                                                 showLock
 
-                                                                 " :placeholder="item[1].text ||
 
-                                                                     ''
 
-                                                                     "></el-input>
 
-                                                     </el-form-item>
 
-                                                 </el-col>
 
-                                                 <el-col v-if="item[2]" :span="item[2].span
 
-                                                     ? item[2].span
 
-                                                     : 12
 
-                                                     ">
 
-                                                     <el-form-item :label="item[2].label" :prop="item[2].prop"
 
-                                                         :rules="item[2].rules" :label-width="item[2].labelWidth
 
-                                                             " :disabled="detailData.seeDisabled ||
 
-                                                                 item[2]
 
-                                                                     .disabled ||
 
-                                                                 showLock
 
-                                                                 ">
 
-                                                         <span slot="label" v-if="item[2].label">
 
-                                                             <span style="color: #1e9fff">{{
 
-                                                                 item[2]
 
-                                                                     .label
 
-                                                             }}</span>
 
-                                                         </span>
 
-                                                         <search-query v-if="
 
-                                                             item[2].type ==
 
-                                                             'select'
 
-                                                         " :datalist="item[2].dicData
 
-                                                             " :selectValue="form[
 
-                                                                 item[2].prop
 
-                                                             ]
 
-                                                                 " :filterable="true" :clearable="false" :remote="true"
 
-                                                             :disabled="detailData.seeDisabled ||
 
-                                                                 item[2]
 
-                                                                     .disabled ||
 
-                                                                 showLock
 
-                                                                 " :buttonIf="false" :forParameter="item[2]
 
-                                                                     .forParameter
 
-                                                                     " :placeholder="`${item[2]
 
-                                                                         .text ||
 
-                                                                         ''}`
 
-                                                                         " @remoteMethod="
 
-                                                                             remoteMethod(
 
-                                                                                 $event,
 
-                                                                                 item[2].prop
 
-                                                                             )
 
-                                                                             " @corpChange="
 
-                                                                                 corpChange(
 
-                                                                                     $event,
 
-                                                                                     item[2].prop
 
-                                                                                 )
 
-                                                                                 " @corpFocus="
 
-                                                                                     remoteMethod(
 
-                                                                                         $event,
 
-                                                                                         item[2].prop
 
-                                                                                     )
 
-                                                                                     ">
 
-                                                         </search-query>
 
-                                                         <el-input v-else type="age" style="width: 100%;" v-model="form[
 
-                                                             item[2].prop
 
-                                                         ]
 
-                                                             " size="small" autocomplete="off" :disabled="detailData.seeDisabled ||
 
-                                                                 item[1]
 
-                                                                     .disabled ||
 
-                                                                 showLock
 
-                                                                 " :placeholder="item[2].text ||
 
-                                                                     ''
 
-                                                                     "></el-input>
 
-                                                     </el-form-item>
 
-                                                 </el-col>
 
-                                             </el-row>
 
-                                         </div>
 
-                                         <!--对象-->
 
-                                         <div v-else>
 
-                                             <el-form-item :label="item.label" :prop="item.prop" :rules="item.rules"
 
-                                                 :disabled="showLock">
 
-                                                 <span slot="label" v-if="item.label">
 
-                                                     <span style="color: #1e9fff">{{ item.label }}</span>
 
-                                                 </span>
 
-                                                 <search-query v-if="item.type == 'select'" ref="searchQueryRef"
 
-                                                     :datalist="item.dicData" :selectValue="form[item.prop]
 
-                                                         " :filterable="true" :clearable="false" :remote="true"
 
-                                                     :disabled="detailData.seeDisabled ||
 
-                                                         item.disabled ||
 
-                                                         showLock
 
-                                                         " :buttonIf="item.buttonIf" :forParameter="item.forParameter
 
-                                                             " :joinData="item.joinData" :placeholder="`${item.text || ''}`
 
-                                                                 " @remoteMethod="
 
-                                                                     remoteMethod(
 
-                                                                         $event,
 
-                                                                         item.prop
 
-                                                                     )
 
-                                                                     " @corpChange="
 
-                                                                         corpChange(
 
-                                                                             $event,
 
-                                                                             item.prop
 
-                                                                         )
 
-                                                                         " @corpFocus="
 
-                                                                             remoteMethod(
 
-                                                                                 $event,
 
-                                                                                 item.prop
 
-                                                                             )
 
-                                                                             " @eldialogConfirm="
 
-                                                                                 eldialogConfirm(
 
-                                                                                     item.slot
 
-                                                                                 )
 
-                                                                                 ">
 
-                                                     <bcorps v-show="item.slot ==
 
-                                                         'bcorps'
 
-                                                         " ref="bcorps" :eldialog="true" @selectionChange="
 
-                                                             eldialogMultipleChoice(
 
-                                                                 $event,
 
-                                                                 item.slot
 
-                                                             )
 
-                                                             ">
 
-                                                     </bcorps>
 
-                                                     <bcorpstypedefine v-show="item.slot ==
 
-                                                         'bcorpstypedefine'
 
-                                                         ">
 
-                                                     </bcorpstypedefine>
 
-                                                 </search-query>
 
-                                                 <el-input v-else type="age" style="width: 100%;"
 
-                                                     v-model="form[item.prop]" size="small" autocomplete="off" :disabled="detailData.seeDisabled ||
 
-                                                         item.disabled ||
 
-                                                         showLock
 
-                                                         " :placeholder="item.text || ''
 
-                                                             "></el-input>
 
-                                             </el-form-item>
 
-                                         </div>
 
-                                     </el-col>
 
-                                 </el-row>
 
-                             </basic-container>
 
-                         </el-form>
 
-                     </div>
 
-                     <div class="customer-main margintop">
 
-                         <containerTitle title="详细"></containerTitle>
 
-                         <basic-container :showBtn="true">
 
-                             <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
 
-                                 <el-tab-pane label="委托详情" name="first">
 
-                                     <entrustment-lnformation :assemblyForm="form" :detailData="detailData"
 
-                                         :disabled="showLock" :generateBillsfalse="generateBillsfalse" @billsDetailfun="
 
-                                             billsDetailfun(form.id)
 
-                                             ">
 
-                                     </entrustment-lnformation>
 
-                                 </el-tab-pane>
 
-                                 <el-tab-pane label="配箱信息" name="second">
 
-                                     <DistributionBox :assemblyForm="form" :detailData="detailData" :disabled="showLock"
 
-                                         :pleasereviewType="pleasereviewType" @billsDetailfun="
 
-                                             billsDetailfun(form.id)
 
-                                             ">
 
-                                     </DistributionBox>
 
-                                 </el-tab-pane>
 
-                                 <!--<el-tab-pane label="MB/L信息" name="third">-->
 
-                                 <!--    <mbinformation :assemblyForm="form" :detailData="detailData"></mbinformation>-->
 
-                                 <!--</el-tab-pane>-->
 
-                                 <el-tab-pane label="报表管理" name="fourth" v-if="
 
-                                     roleName.indexOf('admin') != -1
 
-                                         ? true
 
-                                         : roleName.indexOf('报表管理') != -1
 
-                                             ? true
 
-                                             : false
 
-                                 ">
 
-                                     <reports :id="form.id" :assemblyForm="form" :disabled="detailData.seeDisabled || showLock
 
-                                         " businessValue="HYJK"></reports>
 
-                                 </el-tab-pane>
 
-                                 <!--<el-tab-pane label="EDI CODE" name="sixth">-->
 
-                                 <!--    <edicode :assemblyForm="form" :detailData="detailData"></edicode>-->
 
-                                 <!--</el-tab-pane>-->
 
-                                 <el-tab-pane label="文件中心" name="seventh">
 
-                                     <filescenter ref="filescenter" :assemblyForm="form" :detailData="detailData"
 
-                                         @billsDetailfun="
 
-                                             billsDetailfun(form.id)
 
-                                             " :disabled="showLock"></filescenter>
 
-                                 </el-tab-pane>
 
-                             </el-tabs>
 
-                         </basic-container>
 
-                         <basic-container :showBtn="true" v-if="
 
-                             activeName == 'first' || activeName == 'third'
 
-                         ">
 
-                             <formbottom :assemblyForm="form" :generateBillsfalse="generateBillsfalse"
 
-                                 :disabled="showLock" :detailData="detailData"></formbottom>
 
-                         </basic-container>
 
-                     </div>
 
-                 </el-tab-pane>
 
-                 <el-tab-pane label="费用信息" name="fy" class="scrollable-container" v-if="
 
-                     roleName.indexOf('admin') != -1
 
-                         ? true
 
-                         : roleName.indexOf('应收修改') != -1 ||
 
-                         roleName.indexOf('应付修改') != -1 ||
 
-                         roleName.indexOf('应收查看') != -1 ||
 
-                         roleName.indexOf('应付查看') != -1
 
-                 ">
 
-                     <feecenter :assemblyForm="form" :copyFormData="copyFormData" :detailData="detailData"
 
-                         :disabled="showLock" :pleasereviewType="pleasereviewType" :pid="form.id"
 
-                         @billsDetailfun="billsDetailfun(form.id)">
 
-                     </feecenter>
 
-                 </el-tab-pane>
 
-                 <el-tab-pane label="单证中心" name="dz" class="scrollable-container">
 
-                     <document-center ref="documentCenter" :detailData="detailData" :assemblyForm="form"
 
-                         :disabled="showLock"></document-center>
 
-                 </el-tab-pane>
 
-                 <el-tab-pane label="分单列表" name="fd" class="scrollable-container" v-if="form.billType == 'MM'">
 
-                     <Split-list :detailData="detailData" :assemblyForm="form" :data="billsListAllData"
 
-                         :disabled="showLock" @billsListAllfun="billsListAllfun(form.id)"></Split-list>
 
-                 </el-tab-pane>
 
-             </el-tabs>
 
-         </div>
 
-         <!--审核弹窗-->
 
-         <el-dialog append-to-body title="审批进度" class="el-dialogDeep" :visible.sync="checkScheduleDialog" width="40%"
 
-             :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
 
-             <check-schedule :checkId="checkId" :batchNo="batchNo" @choceScheduleFun="choceScheduleFun" :printShow="true"
 
-                 businessType="HYJK" classifyCode='费用' groupCode='销售报告'></check-schedule>
 
-         </el-dialog>
 
-         <!--预览报表弹窗-->
 
-         <el-dialog append-to-body title="预览报表" class="el-dialogDeep" :visible.sync="previewDialog" width="60%"
 
-             :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
 
-             <business-reports :id="form.id" :disabled="detailData.seeDisabled"></business-reports>
 
-         </el-dialog>
 
-     </div>
 
- </template>
 
- <script>
 
- import EntrustmentLnformation from "@/views/iosBasicData/OceanFreightImport/bills/assembly/EntrustmentLnformation.vue";
 
- import mbinformation from "@/views/iosBasicData/OceanFreightImport/bills/assembly/mbinformation.vue";
 
- import reports from "@/views/iosBasicData/OceanFreightImport/bills/assembly/reports.vue";
 
- import formbottom from "@/views/iosBasicData/OceanFreightImport/bills/assembly/formbottom.vue";
 
- import edicode from "@/views/iosBasicData/OceanFreightImport/bills/assembly/edicode.vue";
 
- import filescenter from "@/views/iosBasicData/OceanFreightImport/bills/assembly/filescenter.vue";
 
- import DistributionBox from "@/views/iosBasicData/OceanFreightImport/bills/assembly/DistributionBox.vue";
 
- import feecenter from "@/views/iosBasicData/OceanFreightImport/bills/assembly/feecenter.vue";
 
- import { getList as userGetList } from "@/api/system/user";
 
- import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
 
- import TreeSelect from "@/components/iosbasic-data/TreeSelect.vue";
 
- import bcorps from "@/views/iosBasicData/bcorps/index.vue";
 
- import bcorpstypedefine from "@/views/iosBasicData/bcorps/bcorpstypedefine.vue";
 
- import SplitList from "@/views/iosBasicData/OceanFreightImport/bills/assembly/SplitList.vue";
 
- import { getLazylist } from "@/api/basicData/agreement";
 
- import { getBcorpsList, getBcorpslistByType } from "@/api/iosBasicData/bcorps";
 
- import { getBlocationsList } from "@/api/iosBasicData/blocations";
 
- import { getBcorpsattnList } from "@/api/iosBasicData/bcorpsattn";
 
- import { getWorkDicts } from "@/api/system/dictbiz";
 
- import { getDeptLazyTree, getDeptTree, getLazyList } from "@/api/system/dept";
 
- import {
 
-     billsCheckBills,
 
-     billsCopyBills,
 
-     billsDetail,
 
-     billsGetBillNo,
 
-     billsListAll,
 
-     billsRevokeCheckBills,
 
-     editypesSendingEdi,
 
-     billsSubmit,
 
-     deptGetDetailPol,
 
-     postSelectByUser
 
- } from "@/api/iosBasicData/bills";
 
- import { dateFormat } from "@/util/date";
 
- import checkSchedule from "@/components/checkH/checkSchedule.vue";
 
- import { getBvesselsList } from "@/api/iosBasicData/bvessels";
 
- import DocumentCenter from "@/views/iosBasicData/OceanFreightImport/bills/assembly/DocumentCenter.vue";
 
- import businessReports from "@/views/iosBasicData/OceanFreightImport/bills/assembly/businessReports.vue";
 
- import { popupReminder } from "@/util/messageReminder";
 
- import editypes from "@/views/iosBasicData/editypes/index.vue";
 
- import { editypesList } from "@/api/iosBasicData/editypes";
 
- import { verifyEnglish } from "@/util/date";
 
- import { contrastObj, contrastList } from "@/util/contrastData";
 
- import { selectListLos } from "@/api/approval/processConfig";
 
- import { similarValues } from "@/util/verifyData";
 
- import { isProcurement } from "@/api/basicData/configuration";
 
- import _ from "lodash";
 
- export default {
 
-     components: {
 
-         checkSchedule,
 
-         SearchQuery,
 
-         EntrustmentLnformation,
 
-         formbottom,
 
-         mbinformation,
 
-         reports,
 
-         edicode,
 
-         filescenter,
 
-         DistributionBox,
 
-         feecenter,
 
-         bcorps,
 
-         bcorpstypedefine,
 
-         SplitList,
 
-         TreeSelect,
 
-         DocumentCenter,
 
-         businessReports,
 
-         editypes
 
-     },
 
-     props: {
 
-         detailData: {
 
-             type: Object
 
-         }
 
-     },
 
-     data() {
 
-         return {
 
-             showLock: false,
 
-             ediData: [], // edi 列表数据
 
-             previewDialog: false, // 预览报表弹窗开启
 
-             generateBillsfalse: false, // 如果生成账单就禁用
 
-             pleasereviewType: false, // 如果请核就禁用
 
-             checkScheduleDialog: false, // 审核弹窗
 
-             checkId: "", // 审核需要的id
 
-             batchNo: "",
 
-             billsListAllData: [], // 分单列表数据
 
-             pageLoading: false, // 全屏的动画
 
-             saveLoading: false,
 
-             copyFormData: {}, // 详情的备份数据
 
-             // 详情数据
 
-             form: {
 
-                 billDate: dateFormat(new Date(), "yyyy-MM-dd") + " 00:00", // 单据日期 默认 当天
 
-                 operatorName: JSON.parse(localStorage.getItem("saber-userInfo"))
 
-                     .content.user_name, // OP 默认登录人
 
-                 operatorId: JSON.parse(localStorage.getItem("saber-userInfo"))
 
-                     .content.user_id, // OP 默认登录人
 
-                 businessType: "SI", // 业务类型 默认 海运出口
 
-                 businessTypes: "海运",
 
-                 seaType: "I", // 进出口 默认出口 E=出口 I=进口"
 
-                 billType: "DD", // 单据类型 默认 直单
 
-                 accDeptName: JSON.parse(localStorage.getItem('sysitemData')).deptName,
 
-                 accDept: JSON.parse(localStorage.getItem('sysitemData')).deptId,
 
-                 operatorDeptName: JSON.parse(localStorage.getItem('sysitemData')).deptName,
 
-                 operatorDept: JSON.parse(localStorage.getItem('sysitemData')).deptId,
 
-                 issueType: "ORI", // 签单方式 默认 正本
 
-                 mpaymode: "PP", // 主单付费方式 默认PP
 
-                 hpaymode: "PP", // 分单付费方式 默认 PP
 
-                 loadType:
 
-                     JSON.parse(localStorage.getItem("saber-tenantId"))
 
-                         .content == "409341"
 
-                         ? "FCL"
 
-                         : "整箱", // 装箱方式默认整箱
 
-                 srcType: "OWN", // 业务来源默认公司   来源 内容 默认登录人所属公司
 
-                 numberOfObl: "THREE", // 正本份数 默认 THREE
 
-                 numberOfCopy: "THREE", // 副本份数 默认 THREE
 
-                 cargoType: "dry", // 货物类型默认普货
 
-                 marks: "N/M",
 
-                 dgPackingLevel: "0", // 危险品包装等级
 
-                 filesList: [], // 文件中心
 
-                 feeCenterListD: [], // 收
 
-                 feeCenterListC: [], // 付
 
-                 preContainersList: [], // 箱
 
-                 feeCenterAmendList: [],
 
-                 placeReceiptName: "",
 
-                 placeReceiptNamePrint: "",
 
-                 polEnName: "",
 
-                 polNamePrint: "",
 
-                 podEnName: "",
 
-                 podNamePrint: "",
 
-                 destinationName: "",
 
-                 destinationNamePrint: "",
 
-                 detail: {},
 
-                 hmmEdi: {},
 
-             },
 
-             oldForm: {
 
-                 billDate: dateFormat(new Date(), "yyyy-MM-dd") + " 00:00", // 单据日期 默认 当天
 
-                 operatorName: JSON.parse(localStorage.getItem("saber-userInfo"))
 
-                     .content.user_name, // OP 默认登录人
 
-                 operatorId: JSON.parse(localStorage.getItem("saber-userInfo"))
 
-                     .content.user_id, // OP 默认登录人
 
-                 businessType: "SI", // 业务类型 默认 海运出口
 
-                 businessTypes: "海运",
 
-                 seaType: "I", // 进出口 默认出口 E=出口 I=进口"
 
-                 billType: "DD", // 单据类型 默认 直单
 
-                 accDeptName: JSON.parse(localStorage.getItem('sysitemData')).deptName,
 
-                 accDept: JSON.parse(localStorage.getItem('sysitemData')).deptId,
 
-                 operatorDeptName: JSON.parse(localStorage.getItem('sysitemData')).deptName,
 
-                 operatorDept: JSON.parse(localStorage.getItem('sysitemData')).deptId,
 
-                 issueType: "ORI", // 签单方式 默认 正本
 
-                 mpaymode: "PP", // 主单付费方式 默认PP
 
-                 hpaymode: "PP", // 分单付费方式 默认 PP
 
-                 loadType:
 
-                     JSON.parse(localStorage.getItem("saber-tenantId"))
 
-                         .content == "409341"
 
-                         ? "FCL"
 
-                         : "整箱", // 装箱方式默认整箱
 
-                 srcType: "OWN", // 业务来源默认公司   来源 内容 默认登录人所属公司
 
-                 numberOfObl: "THREE", // 正本份数 默认 THREE
 
-                 numberOfCopy: "THREE", // 副本份数 默认 THREE
 
-                 cargoType: "dry", // 货物类型默认普货
 
-                 marks: "N/M",
 
-                 dgPackingLevel: "0", // 危险品包装等级
 
-                 filesList: [], // 文件中心
 
-                 feeCenterListD: [], // 收
 
-                 feeCenterListC: [], // 付
 
-                 preContainersList: [], // 箱
 
-                 feeCenterAmendList: [],
 
-                 placeReceiptName: "",
 
-                 placeReceiptNamePrint: "",
 
-                 polEnName: "",
 
-                 polNamePrint: "",
 
-                 podEnName: "",
 
-                 podNamePrint: "",
 
-                 destinationName: "",
 
-                 destinationNamePrint: "",
 
-                 detail: {},
 
-                 hmmEdi: {},
 
-             },
 
-             // 循环的配置
 
-             basicData: {
 
-                 column: [
 
-                     {
 
-                         label: "客户名称", // 调往来单位接口
 
-                         prop: "corpCnName",
 
-                         text: "请选择客户名称",
 
-                         type: "select",
 
-                         dicData: [],
 
-                         disabled: false,
 
-                         buttonIf: true,
 
-                         joinData: true,
 
-                         slot: "bcorps",
 
-                         forParameter: {
 
-                             key: "id",
 
-                             label: "cnName",
 
-                             value: "cnName",
 
-                             short: "shortName"
 
-                         },
 
-                         rules: [
 
-                             {
 
-                                 required: true,
 
-                                 message: " ",
 
-                                 trigger: "blur"
 
-                             }
 
-                         ]
 
-                     },
 
-                     [
 
-                         {
 
-                             label: "客户OP", // 客户联系人姓名 电话和邮箱带出来,可以修改 往来单位接口 需要传一个客户名称的值过去
 
-                             prop: "corpAttnName",
 
-                             text: "姓名",
 
-                             type: "select",
 
-                             dicData: [],
 
-                             span: 10,
 
-                             disabled: false,
 
-                             allowCreate: true,
 
-                             forParameter: {
 
-                                 key: "id",
 
-                                 label: "cname",
 
-                                 value: "cname"
 
-                             }
 
-                         },
 
-                         {
 
-                             label: "", //客户联系人电话
 
-                             prop: "corpAttnTel",
 
-                             text: "电话",
 
-                             labelWidth: "10px",
 
-                             disabled: false,
 
-                             span: 7
 
-                             // rules: [{
 
-                             //     required: true,
 
-                             //     message: "",
 
-                             //     trigger: "blur"
 
-                             // }]
 
-                         },
 
-                         {
 
-                             label: "", // 客户联系人邮箱
 
-                             prop: "corpAttnEmail",
 
-                             text: "邮箱",
 
-                             labelWidth: "10px",
 
-                             disabled: false,
 
-                             span: 7
 
-                             // rules: [{
 
-                             //     required: true,
 
-                             //     message: " ",
 
-                             //     trigger: "blur"
 
-                             // }]
 
-                         }
 
-                     ],
 
-                     [
 
-                         {
 
-                             label: "业务来源", // OWN=公司  AGENT=代理 SALES=业务员
 
-                             prop: "srcType",
 
-                             text: "请选择业务来源",
 
-                             type: "select",
 
-                             disabled: true,
 
-                             forParameter: {
 
-                                 key: "dictKey",
 
-                                 label: "dictValue",
 
-                                 value: "dictKey"
 
-                             },
 
-                             dicData: []
 
-                         },
 
-                         {
 
-                             label: "",
 
-                             prop: "srcCnName", // 来源中文 公司不是下拉写死公司两字 业务员调用户管理列表 代理调往来单位四个代理数据
 
-                             text: "请选择来源",
 
-                             labelWidth: "30px",
 
-                             type: "select",
 
-                             disabled: true,
 
-                             dicData: [],
 
-                             forParameter: {
 
-                                 key: "id",
 
-                                 label: "cnName",
 
-                                 value: "cnName"
 
-                             }
 
-                         }
 
-                     ],
 
-                     [
 
-                         {
 
-                             label: "HB/L NO", //弹窗点击确认还是取消申请 调后台接口获取到一个编号
 
-                             prop: "HB/L NO",
 
-                             type: "button",
 
-                             span: 4,
 
-                             disabled: false
 
-                         },
 
-                         {
 
-                             label: "",
 
-                             text: "请输入HB/L NO",
 
-                             prop: "hblno",
 
-                             labelWidth: "6px",
 
-                             span: 14,
 
-                             disabled: true
 
-                         },
 
-                         {
 
-                             label: "", // HB/L 付款方式 PP=预付, CC=到付, FPA, Other', 申请之后默认 PP
 
-                             text: "付款方式",
 
-                             prop: "hpaymode",
 
-                             labelWidth: "30px",
 
-                             disabled: false,
 
-                             type: "select",
 
-                             span: 6,
 
-                             dicData: [],
 
-                             forParameter: {
 
-                                 key: "dictKey",
 
-                                 label: "dictValue",
 
-                                 value: "dictKey"
 
-                             }
 
-                         }
 
-                     ],
 
-                     [
 
-                         {
 
-                             label: "MB/L NO",
 
-                             text: "请输入MB/L NO",
 
-                             prop: "mblno",
 
-                             span: 18,
 
-                             disabled: false
 
-                         },
 
-                         {
 
-                             label: "", // MB/L 付款方式 PP=预付, CC=到付, FPA, Other
 
-                             text: "付款方式",
 
-                             prop: "mpaymode",
 
-                             type: "select",
 
-                             labelWidth: "30px",
 
-                             disabled: false,
 
-                             span: 6,
 
-                             dicData: [],
 
-                             forParameter: {
 
-                                 key: "dictKey",
 
-                                 label: "dictValue",
 
-                                 value: "dictKey"
 
-                             }
 
-                         }
 
-                     ],
 
-                     {
 
-                         label: "REF MBLNO", // Co-Loader 中文名称  往来单位 类别
 
-                         text: "请输入REF MBLNO",
 
-                         prop: "refno",
 
-                         disabled: false
 
-                     },
 
-                     [
 
-                         {
 
-                             label: "OP", // 操作id 用户管理下拉 模糊搜索
 
-                             text: "请选择OP",
 
-                             prop: "operatorName",
 
-                             type: "select",
 
-                             dicData: [],
 
-                             disabled: false,
 
-                             forParameter: {
 
-                                 key: "id",
 
-                                 label: "name",
 
-                                 value: "name"
 
-                             },
 
-                             rules: [
 
-                                 {
 
-                                     required: true,
 
-                                     message: " ",
 
-                                     trigger: "blur"
 
-                                 }
 
-                             ]
 
-                         },
 
-                         {
 
-                             label: "核算部门", // 核算部门Id accDept 核算部门 accDeptName 调机构管理接口
 
-                             text: "请选择核算部门",
 
-                             prop: "accDeptName",
 
-                             type: "tree",
 
-                             dicData: [],
 
-                             disabled: false,
 
-                             forParameter: {
 
-                                 label: "title",
 
-                                 children: "children"
 
-                             },
 
-                             rules: [
 
-                                 {
 
-                                     required: true,
 
-                                     message: " ",
 
-                                     trigger: "blur"
 
-                                 }
 
-                             ]
 
-                         }
 
-                     ],
 
-                     [
 
-                         {
 
-                             label: "业务编号",
 
-                             text: "业务编号",
 
-                             prop: "billNo",
 
-                             disabled: true
 
-                         },
 
-                         {
 
-                             label: "所属团队",
 
-                             text: "请选择所属团队",
 
-                             prop: "teamName",
 
-                             disabled: false,
 
-                             type: "select",
 
-                             dicData: [],
 
-                             forParameter: {
 
-                                 key: "id",
 
-                                 label: "postName",
 
-                                 value: "id"
 
-                             },
 
-                             rules: [
 
-                                 {
 
-                                     required: true,
 
-                                     message: " ",
 
-                                     trigger: "blur"
 
-                                 }
 
-                             ]
 
-                         }
 
-                     ]
 
-                 ]
 
-             },
 
-             activeName: "first",
 
-             bigtabs: "wt",
 
-             saberUserInfo: {}, // 当前登录人信息
 
-             roleName: [], // 当前的角色权限
 
-             // 需要加判断是否必填的数据
 
-             messageData: [
 
-                 {
 
-                     name: "客户",
 
-                     value: "corpCnName"
 
-                 },
 
-                 {
 
-                     name: "业务来源",
 
-                     value: "srcType"
 
-                 },
 
-                 {
 
-                     name: "MBLNO",
 
-                     value: "mblno"
 
-                 },
 
-                 {
 
-                     name: "船名(VSL)",
 
-                     value: "vesselCnName"
 
-                 },
 
-                 {
 
-                     name: "航次(VOY)",
 
-                     value: "voyageNo"
 
-                 },
 
-                 // {
 
-                 //     name: 'REF MBLNO',
 
-                 //     value: 'refno',
 
-                 // },
 
-                 {
 
-                     name: "ETA",
 
-                     value: "eta"
 
-                 },
 
-                 {
 
-                     name: "装货港",
 
-                     value: "polCnName"
 
-                 },
 
-                 {
 
-                     name: "目的港",
 
-                     value: "destinationNamePrint"
 
-                 },
 
-                 {
 
-                     name: "包装单位",
 
-                     value: "packingUnit"
 
-                 },
 
-                 {
 
-                     name: "船公司",
 
-                     value: "carrierCnName"
 
-                 },
 
-                 {
 
-                     name: "场站",
 
-                     value: "cyCnName"
 
-                 }
 
-             ]
 
-         };
 
-     },
 
-     watch: {
 
-         // 监听业务类型 如果不是分单 可以编辑分单号
 
-         "form.billType": {
 
-             // 执行方法
 
-             handler(oldValue, newValue) {
 
-                 // if (oldValue == 'MM') {
 
-                 //     this.form.hblno = ''
 
-                 // }
 
-                 // 只有分单不能编辑
 
-                 if (oldValue == "MH") {
 
-                     this.columnforfun("hblno").disabled = true;
 
-                 } else {
 
-                     this.columnforfun("hblno").disabled = false;
 
-                 }
 
-             },
 
-             deep: true, // 深度监听
 
-             immediate: true // 第一次改变就执行
 
-         },
 
-         // 监听箱信息数据 箱信息中有温度 自动切换 冻货
 
-         "form.preContainersList": {
 
-             // 执行方法
 
-             handler(oldValue, newValue) {
 
-                 // 判断是否是数组
 
-                 if (oldValue instanceof Array) {
 
-                     // 循环 有温度反 true 没有反 false
 
-                     const arr = oldValue.map(item => {
 
-                         if (Number(item.temperature)) {
 
-                             return true;
 
-                         } else {
 
-                             return false;
 
-                         }
 
-                     });
 
-                     // 判断是否有温度
 
-                     if (arr[0]) {
 
-                         // 判断之前是否是冻货
 
-                         if (this.form.cargoType == "reefer") return;
 
-                         this.$message({
 
-                             message: "箱信息里有温度已将货描切换为冻柜",
 
-                             type: "warning"
 
-                         });
 
-                         this.$set(this.form, "cargoType", "reefer");
 
-                     }
 
-                 }
 
-             },
 
-             deep: true, // 深度监听
 
-             immediate: true, // 第一次改变就执行
 
-             business: null,
 
-         }
 
-     },
 
-     created() {
 
-         this.saberUserInfo = JSON.parse(
 
-             localStorage.getItem("saber-userInfo")
 
-         ).content;
 
-         this.roleName = localStorage.getItem("roleName").split(",");
 
-         if (this.detailData.billType) {
 
-             this.form.billType = this.detailData.billType;
 
-         }
 
-         isProcurement({ "param": "business" }).then(res => {
 
-             this.business = res.data.data
 
-         })
 
-         // 判断是否员id, 有id 就不显示
 
-         if (!this.form.id) {
 
-             this.deptGetDetailPolfun(); // 目的地 卸货港 当前登录人的默认
 
-             // this.userGetListfun(undefined, true); // 获取用户管理数据
 
-         }
 
-         this.ownDeptLazyTreefun(); // 获取公司数据
 
-         this.getLazylistfun(); // 获取审核数据
 
-         this.mpaymodeWorkDictsfun(); // 获取 付款方式字典
 
-         this.srcTypeWorkDictsfun();
 
-         // 获取EDI 数据
 
-         this.editypesListfun();
 
-         // 获取所属团队数据
 
-         this.postSelectByUserfun();
 
-     },
 
-     methods: {
 
-         inLock() {
 
-             this.showLock = true;
 
-             const data = {
 
-                 moduleName: "SI",
 
-                 tableName: "SI_order",
 
-                 billId: this.form.id,
 
-                 no: localStorage.getItem("browserID"),
 
-                 billNo: this.form.mblno
 
-             };
 
-             this.inDetailsKey(this.$route.name, {
 
-                 moduleName: "SI",
 
-                 tableName: "SI_order",
 
-                 billId: this.form.id,
 
-                 billNo: this.form.mblno
 
-             });
 
-             this.checkLock(data).then(res => {
 
-                 if (res.data.code == 200) {
 
-                     this.onLock(data).then(res => {
 
-                         if (res.data.code == 200) {
 
-                             this.showLock = false;
 
-                         }
 
-                     });
 
-                 }
 
-             });
 
-         },
 
-         addEdit() {
 
-             if (this.form.billStatus >= 3) {
 
-                 this.$emit("toAddEdit");
 
-             } else {
 
-                 if (
 
-                     contrastObj(this.form, this.oldForm) ||
 
-                     contrastList(
 
-                         this.form.preContainersList,
 
-                         this.oldForm.preContainersList
 
-                     ) ||
 
-                     contrastList(
 
-                         this.form.containersList,
 
-                         this.oldForm.containersList
 
-                     ) ||
 
-                     contrastList(
 
-                         this.form.feeCenterListC,
 
-                         this.oldForm.feeCenterListC
 
-                     ) ||
 
-                     contrastList(
 
-                         this.form.feeCenterListD,
 
-                         this.oldForm.feeCenterListD
 
-                     ) ||
 
-                     contrastList(this.form.filesList, this.oldForm.filesList) ||
 
-                     contrastList(
 
-                         this.form.waitingBoxList,
 
-                         this.oldForm.waitingBoxList
 
-                     )
 
-                 ) {
 
-                     this.$confirm("是否需要保存?", "提示", {
 
-                         confirmButtonText: "确定",
 
-                         cancelButtonText: "取消",
 
-                         type: "warning"
 
-                     })
 
-                         .then(() => {
 
-                             this.editCustomer("toAddEdit");
 
-                         })
 
-                         .catch(() => {
 
-                             this.$emit("toAddEdit");
 
-                         });
 
-                 } else {
 
-                     this.$emit("toAddEdit");
 
-                 }
 
-             }
 
-         },
 
-         // 获取EDI列表数据
 
-         editypesListfun() {
 
-             editypesList(1, 30).then(res => {
 
-                 this.ediData = res.data.data.records;
 
-             });
 
-         },
 
-         // 发送edi
 
-         editypesSendingEdifun(row) {
 
-             row.billId = this.form.id;
 
-             let msgsList = [];
 
-             if (!verifyEnglish(this.form.hshipperDetails)) {
 
-                 msgsList.push("发货人");
 
-             }
 
-             if (!verifyEnglish(this.form.hconsigneeDetails)) {
 
-                 msgsList.push("收货人");
 
-             }
 
-             if (!verifyEnglish(this.form.hnotifyDetails)) {
 
-                 msgsList.push("通知人");
 
-             }
 
-             if (!verifyEnglish(this.form.marks)) {
 
-                 msgsList.push("唛头");
 
-             }
 
-             if (!verifyEnglish(this.form.commodityDescr)) {
 
-                 msgsList.push("货描");
 
-             }
 
-             if (msgsList.length > 0) {
 
-                 this.$message.error(
 
-                     `请正确输入${msgsList.join(",")}的英文和英文符号`
 
-                 );
 
-                 return;
 
-             }
 
-             this.saveLoading = true;
 
-             editypesSendingEdi(row).then(res => {
 
-                 this.saveLoading = false;
 
-                 this.$message.success("操作成功,请去文件中心查看");
 
-                 this.billsDetailfun(this.form.id); // 详情接口
 
-             });
 
-         },
 
-         // 报表弹窗
 
-         previewDialogfun() {
 
-             this.previewDialog = true;
 
-         },
 
-         //请核关闭
 
-         choceScheduleFun() {
 
-             this.checkScheduleDialog = false;
 
-         },
 
-         // 目的地 卸货港 当前登录人的默认
 
-         deptGetDetailPolfun() {
 
-             deptGetDetailPol(this.saberUserInfo.dept_pid.split(",")[0]).then(
 
-                 res => {
 
-                     // 目的地
 
-                     this.form.destinationName = res.data.data.polEnName;
 
-                     this.form.destinationId = res.data.data.polId;
 
-                     this.form.destinationCode = res.data.data.polCode;
 
-                     this.form.destinationNamePrint = res.data.data.polEnName;
 
-                     // 卸货港
 
-                     this.form.podCnName = res.data.data.polCnName;
 
-                     this.form.podEnName = res.data.data.polEnName;
 
-                     this.form.podId = res.data.data.polId;
 
-                     this.form.podCode = res.data.data.polCode;
 
-                     this.form.podNamePrint = res.data.data.polEnName;
 
-                 }
 
-             );
 
-         },
 
-         // 获取用户管理数据
 
-         userGetListfun(account = undefined, type = false) {
 
-             userGetList(
 
-                 1,
 
-                 10,
 
-                 { account },
 
-                 this.saberUserInfo.dept_pid.split(",")[0]
 
-             ).then(res => {
 
-                 this.columnforfun("operatorName").dicData =
 
-                     res.data.data.records;
 
-                 if (type) {
 
-                     // 核算部门 默认登录人的部门
 
-                     for (let item of this.columnforfun("operatorName")
 
-                         .dicData) {
 
-                         if (item.name == this.form.operatorName) {
 
-                             this.$set(this.form, "accDeptName", item.deptName);
 
-                             this.$set(this.form, "accDept", item.deptId);
 
-                         }
 
-                     }
 
-                 }
 
-             });
 
-         },
 
-         // 获取所属岗位数据
 
-         postSelectByUserfun() {
 
-             postSelectByUser(
 
-                 JSON.parse(localStorage.getItem("saber-userInfo")).content
 
-                     .user_id
 
-             ).then(res => {
 
-                 this.columnforfun("teamName").dicData = res.data.data;
 
-                 // 判断是否有值,没有的话默认第一个
 
-                 if (!this.form.teamName) {
 
-                     this.$set(this.form, "teamId", res.data.data[0].id);
 
-                     this.$set(this.form, "teamName", res.data.data[0].postName);
 
-                 }
 
-             });
 
-         },
 
-         // 获取付款方式字典数据
 
-         mpaymodeWorkDictsfun() {
 
-             getWorkDicts("payment_method_los").then(res => {
 
-                 this.columnforfun("mpaymode").dicData = res.data.data;
 
-                 this.columnforfun("hpaymode").dicData = res.data.data;
 
-             });
 
-         },
 
-         // 获取核算部分数据 // 机构管理接口
 
-         getLazylistfun() {
 
-             getDeptTree().then(res => {
 
-                 this.columnforfun("accDeptName").dicData = res.data.data;
 
-             });
 
-         },
 
-         // 获取客户名称数据 往来单位数据
 
-         getBcorpsListfun(cnName) {
 
-             getBcorpsList(1, 10, { shortName: cnName, status: 0 }).then(res => {
 
-                 this.columnforfun("corpCnName").dicData = res.data.data.records;
 
-             });
 
-         },
 
-         // 获取客户联系人 客户OP
 
-         getBcorpsattnListfun(cname) {
 
-             getBcorpsattnList(1, 10, { pid: this.form.corpId, cname }).then(
 
-                 res => {
 
-                     this.columnforfun("corpAttnName").dicData =
 
-                         res.data.data.records;
 
-                     // if (res.data.data.records.length == 0) {
 
-                     //     this.form.corpAttnName = ''
 
-                     //     this.form.corpAttnId = ''
 
-                     //     this.$set(this.form, 'corpAttnTel', '')
 
-                     //     this.$set(this.form, 'corpAttnEmail', '')
 
-                     //     return
 
-                     // }
 
-                     // this.form.corpAttnName = res.data.data.records[0].cname
 
-                     // this.form.corpAttnId = res.data.data.records[0].id
 
-                     // this.$set(this.form, 'corpAttnTel', res.data.data.records[0].tel)
 
-                     // this.$set(this.form, 'corpAttnEmail', res.data.data.records[0].email)
 
-                 }
 
-             );
 
-         },
 
-         // 获取业务来源数据
 
-         srcTypeWorkDictsfun() {
 
-             getWorkDicts("src_type_los").then(res => {
 
-                 this.columnforfun("srcType").dicData = res.data.data;
 
-             });
 
-         },
 
-         // 获取业务来源代理数据
 
-         agentBcorpsListfun(cnName) {
 
-             let corpTypeName =
 
-                 "国内直接客户,国内同行及代理,国外直接客户,国外同行及代理";
 
-             getBcorpslistByType(1, 10, {
 
-                 cnName,
 
-                 status: 0,
 
-                 corpTypeName
 
-             }).then(res => {
 
-                 this.columnforfun("srcCnName").dicData = res.data.data.records;
 
-             });
 
-         },
 
-         // 获取业务来源业务员数据
 
-         salesUserGetListfun(account) {
 
-             selectListLos("业务员", account).then(res => {
 
-                 this.columnforfun("srcCnName").dicData = res.data.data;
 
-             });
 
-         },
 
-         // 获取公司名称 用户管理左侧
 
-         ownDeptLazyTreefun() {
 
-             getDeptLazyTree(0).then(res => {
 
-                 this.columnforfun("srcCnName").dicData = res.data.data;
 
-                 // 来源 内容 默认登录人所属公司
 
-                 for (let item of this.columnforfun("srcCnName").dicData) {
 
-                     if (
 
-                         item.id ==
 
-                         JSON.parse(localStorage.getItem("saber-userInfo"))
 
-                             .content.dept_pid
 
-                     ) {
 
-                         this.$set(this.form, "srcId", item.id);
 
-                         this.$set(this.form, "srcCnName", item.title);
 
-                         this.$set(this.form, "srcEnName", item.title);
 
-                     }
 
-                 }
 
-             });
 
-         },
 
-         // 申请B/L NO
 
-         billsGetBillNofun() {
 
-             let billNoFormat = "";
 
-             if (this.form.cargoType == "dry") {
 
-                 billNoFormat = "HYJK-PH";
 
-             } else if (this.form.cargoType == "danger") {
 
-                 billNoFormat = "HYJK-WXP";
 
-             } else if (this.form.cargoType == "reefer") {
 
-                 billNoFormat = "HYJK-DG";
 
-             } else {
 
-             }
 
-             billsGetBillNo({
 
-                 businessTypeCode: "HYJK",
 
-                 billNoFormat: billNoFormat
 
-             }).then(res => {
 
-                 this.columnforfun("hpaymode").disabled = false;
 
-                 this.$set(this.form, "hblno", res.data.data);
 
-                 this.billsSubmitfun();
 
-             });
 
-         },
 
-         // 下拉多选弹窗的确认
 
-         eldialogConfirm(name) {
 
-             if (name == "bcorps") {
 
-                 if (this.$refs.bcorps[0].isShow) {
 
-                     console.log("列表确认");
 
-                     this.form.corpCnName = this.$refs.bcorps[0].selectionList[0].cnName;
 
-                     this.form.corpEnName = this.$refs.bcorps[0].selectionList[0].enName;
 
-                     this.form.corpId = this.$refs.bcorps[0].selectionList[0].id;
 
-                     this.form.corpCode = this.$refs.bcorps[0].selectionList[0].code;
 
-                     this.form.corpSource = this.$refs.bcorps[0].selectionList[0].corpSource;
 
-                     // 获取 客户op数据
 
-                     this.getBcorpsattnListfun();
 
-                     // 业务来源参数带出
 
-                     this.$set(
 
-                         this.form,
 
-                         "srcType",
 
-                         this.$refs.bcorps[0].selectionList[0].sourceType
 
-                     );
 
-                     this.$set(
 
-                         this.form,
 
-                         "srcId",
 
-                         this.$refs.bcorps[0].selectionList[0].srcId
 
-                     );
 
-                     this.$set(
 
-                         this.form,
 
-                         "srcCnName",
 
-                         this.$refs.bcorps[0].selectionList[0].srcCnName
 
-                     );
 
-                     this.$set(
 
-                         this.form,
 
-                         "srcEnName",
 
-                         this.$refs.bcorps[0].selectionList[0].srcEnName
 
-                     );
 
-                     this.columnforfun("srcType").disabled = false;
 
-                     this.columnforfun("srcCnName").disabled = false;
 
-                     // 航线带出往来单位的优势航线
 
-                     this.$set(
 
-                         this.form,
 
-                         "lineCnName",
 
-                         this.$refs.bcorps[0].selectionList[0].advantageRoute
 
-                     );
 
-                     // 带出发货人数据
 
-                     this.$set(
 
-                         this.form.detail,
 
-                         "hshipperId",
 
-                         this.$refs.bcorps[0].selectionList[0].id
 
-                     );
 
-                     this.$set(
 
-                         this.form.detail,
 
-                         "hshipperCnName",
 
-                         this.$refs.bcorps[0].selectionList[0].cnName
 
-                     );
 
-                     this.$set(
 
-                         this.form.detail,
 
-                         "hshipperEnName",
 
-                         this.$refs.bcorps[0].selectionList[0].enName
 
-                     );
 
-                     this.$set(
 
-                         this.form.detail,
 
-                         "hshipperCode",
 
-                         this.$refs.bcorps[0].selectionList[0].code
 
-                     );
 
-                     this.$set(
 
-                         this.form.detail,
 
-                         "hshipperDetails",
 
-                         this.$refs.bcorps[0].selectionList[0].details
 
-                     );
 
-                     this.$set(
 
-                         this.form.detail,
 
-                         "hshipperCntyName",
 
-                         this.$refs.bcorps[0].selectionList[0].cntyName
 
-                     );
 
-                     this.$set(
 
-                         this.form.detail,
 
-                         "hshipperCntyCode",
 
-                         this.$refs.bcorps[0].selectionList[0].cntyCode
 
-                     );
 
-                     this.columnforfun("corpAttnName").disabled = false;
 
-                     this.columnforfun("corpAttnTel").disabled = false;
 
-                     this.columnforfun("corpAttnEmail").disabled = false;
 
-                 } else {
 
-                     console.log("详情确认");
 
-                     this.$refs.bcorps[0].$refs.detail.submitForm();
 
-                 }
 
-             }
 
-             this.$refs.searchQueryRef[0].corpVisible = false;
 
-         },
 
-         // 下拉多选弹窗数据多选回调
 
-         eldialogMultipleChoice(list, name) {
 
-             if (name == "bcorps") {
 
-                 let arr = [];
 
-                 if (list.length > 1) {
 
-                     this.$refs.bcorps[0].$refs.crud.toggleSelection(); // 先清空所以选择的数据
 
-                     arr = [list[list.length - 1]]; // 获取最新点击的数组
 
-                     this.$refs.bcorps[0].$refs.crud.toggleSelection(arr, true); // 把刚点击的数组变成选择状态
 
-                 } else {
 
-                     arr = list;
 
-                 }
 
-                 this.$refs.bcorps[0].selectionList = arr;
 
-             }
 
-         },
 
-         /* 远程模糊查询操作用户 */
 
-         remoteMethod(value, name) {
 
-             if (name == "operatorName") {
 
-                 this.userGetListfun(value);
 
-             } else if (name == "accDeptName") {
 
-                 this.getLazylistfun(value);
 
-             } else if (name == "corpCnName") {
 
-                 this.getBcorpsListfun(value);
 
-             } else if (name == "corpAttnName") {
 
-                 this.getBcorpsattnListfun(value);
 
-             } else if (name == "srcType") {
 
-                 this.srcTypeWorkDictsfun();
 
-             } else if (name == "srcCnName") {
 
-                 if (this.form.srcType == "SALES") {
 
-                     // 业务员
 
-                     this.columnforfun("srcCnName").forParameter = {
 
-                         key: "id",
 
-                         label: "name",
 
-                         value: "name"
 
-                     };
 
-                     this.salesUserGetListfun(value);
 
-                 } else if (this.form.srcType == "AGENT") {
 
-                     // 代理
 
-                     this.columnforfun("srcCnName").forParameter = {
 
-                         key: "id",
 
-                         label: "cnName",
 
-                         value: "cnName"
 
-                     };
 
-                     this.agentBcorpsListfun(value);
 
-                 } else if (this.form.srcType == "OWN") {
 
-                     // 公司
 
-                     this.columnforfun("srcCnName").forParameter = {
 
-                         key: "id",
 
-                         label: "title",
 
-                         value: "title"
 
-                     };
 
-                     this.ownDeptLazyTreefun();
 
-                 } else {
 
-                 }
 
-             } else if (name == "teamName") {
 
-                 this.postSelectByUserfun();
 
-             } else {
 
-             }
 
-         },
 
-         // 下拉的监听事件
 
-         corpChange(value, name) {
 
-             if (name == "operatorName") {
 
-                 // OP 下拉赋值 用户管理列表
 
-                 for (let item of this.columnforfun("operatorName").dicData) {
 
-                     if (item.name == value) {
 
-                         this.form.operatorName = item.name;
 
-                         this.form.operatorId = item.id;
 
-                     }
 
-                 }
 
-             } else if (name == "accDeptName") {
 
-                 // OP 下拉赋值 用户管理列表
 
-                 this.form.accDept = value.id
 
-                 this.form.accDeptName = value.title
 
-             } else if (name == "corpCnName") {
 
-                 if (value) {
 
-                     // this.columnforfun('corpAttnName').disabled = false
 
-                     // this.columnforfun('corpAttnTel').disabled = false
 
-                     // this.columnforfun('corpAttnEmail').disabled = false
 
-                 } else {
 
-                     // this.columnforfun('corpAttnName').disabled = true
 
-                     // this.columnforfun('corpAttnTel').disabled = true
 
-                     // this.columnforfun('corpAttnEmail').disabled = true
 
-                     // 如果点击清空按钮把值赋值为空
 
-                     this.form.corpCnName = "";
 
-                     this.form.corpEnName = "";
 
-                     this.form.corpId = "";
 
-                     this.form.corpCode = "";
 
-                     this.form.shortName = "";
 
-                     this.form.corpSource = "";
 
-                     // 清空 客户OP
 
-                     this.form.corpAttnName = "";
 
-                     this.form.corpAttnId = "";
 
-                     this.$set(this.form, "corpAttnTel", "");
 
-                     this.$set(this.form, "corpAttnEmail", "");
 
-                     // 清空 业务来源和来源详情
 
-                     this.$set(this.form, "srcType", "");
 
-                     this.$set(this.form, "srcId", "");
 
-                     this.$set(this.form, "srcCnName", "");
 
-                     this.$set(this.form, "srcEnName", "");
 
-                 }
 
-                 // 往来单位
 
-                 for (let item of this.columnforfun("corpCnName").dicData) {
 
-                     if (item.cnName == value) {
 
-                         this.form.corpCnName = item.cnName;
 
-                         this.form.corpEnName = item.enName;
 
-                         this.form.corpId = item.id;
 
-                         this.form.corpCode = item.code;
 
-                         this.form.shortName = item.shortName;
 
-                         this.form.corpSource = item.corpSource;
 
-                         // 获取 客户op数据
 
-                         this.getBcorpsattnListfun();
 
-                         // 业务来源参数带出
 
-                         this.$set(this.form, "srcType", item.sourceType);
 
-                         this.$set(this.form, "srcId", item.srcId);
 
-                         this.$set(this.form, "srcCnName", item.srcCnName);
 
-                         this.$set(this.form, "srcEnName", item.srcEnName);
 
-                         this.columnforfun("srcType").disabled = false;
 
-                         this.columnforfun("srcCnName").disabled = false;
 
-                         // 航线带出往来单位的优势航线
 
-                         this.$set(this.form, "lineCnName", item.advantageRoute);
 
-                         // 带出发货人数据
 
-                         // this.$set(this.form,'hshipperId',item.id)
 
-                         // this.$set(this.form,'hshipperCnName',item.cnName)
 
-                         // this.$set(this.form,'hshipperEnName',item.enName)
 
-                         // this.$set(this.form,'hshipperCode',item.code)
 
-                         // this.$set(this.form,'hshipperDetails',item.details)
 
-                         // this.$set(this.form,'hshipperCntyName',item.cntyName)
 
-                         // this.$set(this.form,'hshipperCntyCode',item.cntyCode)
 
-                     }
 
-                 }
 
-             } else if (name == "corpAttnName") {
 
-                 if (this.columnforfun("corpAttnName").dicData.length) {
 
-                     for (let item of this.columnforfun("corpAttnName")
 
-                         .dicData) {
 
-                         if (item.cname == value) {
 
-                             this.form.corpAttnName = item.cname;
 
-                             this.form.corpAttnId = item.id;
 
-                             this.$set(this.form, "corpAttnTel", item.tel);
 
-                             this.$set(this.form, "corpAttnEmail", item.email);
 
-                         }
 
-                     }
 
-                 } else {
 
-                     if (value) {
 
-                         this.form.corpAttnName = value;
 
-                         this.form.corpAttnId = null;
 
-                     }
 
-                 }
 
-             } else if (name == "srcType") {
 
-                 if (!value) {
 
-                     this.$set(this.form, "srcType", "");
 
-                     // this.columnforfun('srcCnName').disabled = true
 
-                     return;
 
-                 }
 
-                 this.$set(this.form, "srcId", "");
 
-                 this.$set(this.form, "srcCnName", "");
 
-                 this.$set(this.form, "srcEnName", "");
 
-                 this.form[name] = value;
 
-                 if (value == "OWN") {
 
-                     // 公司
 
-                     this.columnforfun("srcCnName").forParameter = {
 
-                         key: "id",
 
-                         label: "title",
 
-                         value: "title"
 
-                     };
 
-                     this.ownDeptLazyTreefun();
 
-                 } else if (value == "AGENT") {
 
-                     // 代理
 
-                     this.columnforfun("srcCnName").type = "select";
 
-                     this.columnforfun("srcCnName").forParameter = {
 
-                         key: "id",
 
-                         label: "cnName",
 
-                         value: "cnName"
 
-                     };
 
-                     this.columnforfun("srcCnName").disabled = false;
 
-                     this.agentBcorpsListfun();
 
-                 } else if (value == "SALES") {
 
-                     // 业务员
 
-                     this.columnforfun("srcCnName").type = "select";
 
-                     this.columnforfun("srcCnName").forParameter = {
 
-                         key: "id",
 
-                         label: "name",
 
-                         value: "name"
 
-                     };
 
-                     this.columnforfun("srcCnName").disabled = false;
 
-                     this.salesUserGetListfun();
 
-                 } else {
 
-                 }
 
-             } else if (name == "srcCnName") {
 
-                 for (let item of this.columnforfun("srcCnName").dicData) {
 
-                     if (
 
-                         item[
 
-                         this.columnforfun("srcCnName").forParameter.value
 
-                         ] == value
 
-                     ) {
 
-                         if (this.form.srcType == "SALES") {
 
-                             // 业务员
 
-                             this.$set(this.form, "srcId", item.id);
 
-                             this.$set(this.form, "srcCnName", item.name);
 
-                             this.$set(this.form, "srcEnName", item.name);
 
-                         } else if (this.form.srcType == "AGENT") {
 
-                             // 代理
 
-                             this.$set(this.form, "srcId", item.id);
 
-                             this.$set(this.form, "srcCnName", item.cnName);
 
-                             this.$set(this.form, "srcEnName", item.enName);
 
-                         } else {
 
-                         }
 
-                     }
 
-                 }
 
-             } else if (name == "mpaymode") {
 
-                 // 主单付费方式
 
-                 this.form[name] = value;
 
-             } else if (name == "hpaymode") {
 
-                 // 分单付费方式
 
-                 this.form[name] = value;
 
-             } else if (name == "teamName") {
 
-                 if (!value) {
 
-                     this.$set(this.form, "teamId", "");
 
-                     this.$set(this.form, "teamName", "");
 
-                 }
 
-                 for (let item of this.columnforfun("teamName").dicData) {
 
-                     if (item.id == value) {
 
-                         this.$set(this.form, "teamId", item.id);
 
-                         this.$set(this.form, "teamName", item.postName);
 
-                     }
 
-                 }
 
-             } else {
 
-                 this.form[name] = value;
 
-             }
 
-         },
 
-         // 申请B/L NO
 
-         applyforfun(text) {
 
-             if (this.detailData.seeDisabled) {
 
-                 return;
 
-             }
 
-             if (!this.form.id) {
 
-                 this.$message({
 
-                     message: "请先保存数据",
 
-                     type: "warning"
 
-                 });
 
-                 return;
 
-             }
 
-             // 如果不是分单
 
-             if (this.form.billType != "MH") {
 
-                 this.$message({
 
-                     message: "只有分单需要申请",
 
-                     type: "warning"
 
-                 });
 
-                 return;
 
-             }
 
-             if (this.form.hblno) {
 
-                 this.$message({
 
-                     message: "B/L NO 只能申请一次",
 
-                     type: "warning"
 
-                 });
 
-                 return;
 
-             }
 
-             if (!this.form.businessType) {
 
-                 this.$message({
 
-                     message: "请先选择业务类型",
 
-                     type: "warning"
 
-                 });
 
-                 return;
 
-             }
 
-             if (!this.form.corpCnName) {
 
-                 this.$message({
 
-                     message: "请先选择客户名称",
 
-                     type: "warning"
 
-                 });
 
-                 return;
 
-             }
 
-             this.$confirm(`确定${text}?`, {
 
-                 confirmButtonText: "确定",
 
-                 cancelButtonText: "取消",
 
-                 type: "warning"
 
-             }).then(res => {
 
-                 this.billsGetBillNofun();
 
-             });
 
-         },
 
-         // 配置项
 
-         columnforfun(value) {
 
-             for (let item of this.basicData.column) {
 
-                 if (item instanceof Array) {
 
-                     for (let ite of item) {
 
-                         if (value == ite.prop) {
 
-                             return ite;
 
-                         }
 
-                     }
 
-                 } else {
 
-                     if (value == item.prop) {
 
-                         return item;
 
-                     }
 
-                 }
 
-             }
 
-         },
 
-         //返回列表
 
-         backToList() {
 
-             if (
 
-                 contrastObj(this.form, this.oldForm) ||
 
-                 contrastList(
 
-                     this.form.preContainersList,
 
-                     this.oldForm.preContainersList
 
-                 ) ||
 
-                 contrastList(
 
-                     this.form.containersList,
 
-                     this.oldForm.containersList
 
-                 ) ||
 
-                 contrastList(
 
-                     this.form.feeCenterListC,
 
-                     this.oldForm.feeCenterListC
 
-                 ) ||
 
-                 contrastList(
 
-                     this.form.feeCenterListD,
 
-                     this.oldForm.feeCenterListD
 
-                 ) ||
 
-                 contrastList(this.form.filesList, this.oldForm.filesList) ||
 
-                 contrastList(
 
-                     this.form.waitingBoxList,
 
-                     this.oldForm.waitingBoxList
 
-                 )
 
-             ) {
 
-                 this.$confirm("数据发生变化未有提交记录, 是否提交?", "提示", {
 
-                     confirmButtonText: "确定",
 
-                     cancelButtonText: "取消",
 
-                     type: "warning"
 
-                 })
 
-                     .then(() => {
 
-                         this.editCustomer("goBack");
 
-                     })
 
-                     .catch(() => {
 
-                         if (this.form.id) {
 
-                             this.unLock({
 
-                                 moduleName: "SI",
 
-                                 tableName: "SI_order",
 
-                                 billId: this.form.id,
 
-                                 billNo: this.form.mblno
 
-                             });
 
-                         }
 
-                         this.$emit("goBack");
 
-                     });
 
-             } else {
 
-                 if (this.form.id) {
 
-                     this.unLock({
 
-                         moduleName: "SI",
 
-                         tableName: "SI_order",
 
-                         billId: this.form.id,
 
-                         billNo: this.form.mblno
 
-                     });
 
-                 }
 
-                 this.$emit("goBack");
 
-             }
 
-         },
 
-         // 单据请核
 
-         DocumentApproval() {
 
-             if (this.form.billType == "MH") {
 
-                 this.$message.warning("分单不能提交请核");
 
-                 return;
 
-             }
 
-             if (popupReminder(this.form, this.messageData)) {
 
-                 this.$confirm(popupReminder(this.form, this.messageData), {
 
-                     confirmButtonText: "确定",
 
-                     cancelButtonText: "取消",
 
-                     type: "warning"
 
-                 });
 
-             }
 
-             if (popupReminder(this.form, this.messageData)) {
 
-                 return;
 
-             }
 
-             if (
 
-                 this.form.feeCenterListC.length == 0 &&
 
-                 this.form.feeCenterListD == 0
 
-             ) {
 
-                 return this.$message.warning("请添加费用信息");
 
-             }
 
-             this.$confirm("确定要请核数据?", {
 
-                 confirmButtonText: "确定",
 
-                 cancelButtonText: "取消",
 
-                 type: "warning"
 
-             }).then(() => {
 
-                 this.pageLoading = true;
 
-                 billsCheckBills({
 
-                     id: this.form.id,
 
-                     url:
 
-                         "/iosBasicData/OceanFreightImport/bills/approvalDetails",
 
-                     pageStatus: "this.$store.getters.approvalDetails",
 
-                     pageLabel: "审批详情(F)"
 
-                 })
 
-                     .then(res => {
 
-                         this.pageLoading = false;
 
-                         this.$message({
 
-                             type: "success",
 
-                             message: "操作成功!"
 
-                         });
 
-                         // 详情
 
-                         this.billsDetailfun(this.form.id);
 
-                     })
 
-                     .catch(() => {
 
-                         this.pageLoading = false;
 
-                     });
 
-             });
 
-         },
 
-         // 撤销单据请核
 
-         revokeDocumentApproval() {
 
-             this.$confirm("确定要撤销请核数据?", {
 
-                 confirmButtonText: "确定",
 
-                 cancelButtonText: "取消",
 
-                 type: "warning"
 
-             }).then(() => {
 
-                 this.pageLoading = true;
 
-                 billsRevokeCheckBills({
 
-                     id: this.form.id
 
-                 }).then(res => {
 
-                     this.pageLoading = false;
 
-                     this.$message({
 
-                         type: "success",
 
-                         message: "操作成功!"
 
-                     });
 
-                     // 详情
 
-                     this.billsDetailfun(this.form.id);
 
-                 });
 
-             });
 
-         },
 
-         // 编辑按钮
 
-         editHandle() {
 
-             this.detailData.seeDisabled = false;
 
-         },
 
-         getTextTirim(data) {
 
-             if (data) {
 
-                 let obj = data.split("\n");
 
-                 let res = [];
 
-                 obj.forEach(item => {
 
-                     res.push(_.trimEnd(item));
 
-                 });
 
-                 return res.join("\n");
 
-             } else {
 
-                 return null;
 
-             }
 
-         },
 
-         // 大保存按钮
 
-         editCustomer(status) {
 
-             this.$refs.form.validate(valid => {
 
-                 if (valid) {
 
-                     if (this.business == 1) {
 
-                         for (let item of this.columnforfun('accDeptName').dicData) {
 
-                             if (this.form.accDeptName == item.title) {
 
-                                 if (item.hasChildren) {
 
-                                     return this.$message.error('请选择末级部门')
 
-                                 }
 
-                             }
 
-                         }
 
-                     }
 
-                     // 判断必填项
 
-                     let msgs = [];
 
-                     if (!this.form.quantity) {
 
-                         msgs.push("件数");
 
-                     }
 
-                     if (!this.form.packingUnit) {
 
-                         msgs.push("包装");
 
-                     }
 
-                     if (!this.form.grossWeight) {
 
-                         msgs.push("毛重");
 
-                     }
 
-                     if (!this.form.measurement) {
 
-                         msgs.push("尺码");
 
-                     }
 
-                     if (!this.form.eta) {
 
-                         msgs.push("ETA");
 
-                     }
 
-                     if (!this.form.teamName) {
 
-                         msgs.push("所属团队");
 
-                     }
 
-                     for (let item of this.form.preContainersList) {
 
-                         if (!item.cntrTypeCode) {
 
-                             this.$message.warning("请选择尺码箱型");
 
-                             return;
 
-                         }
 
-                         if (!item.quantity) {
 
-                             this.$message.warning("请输入箱量");
 
-                             return;
 
-                         }
 
-                     }
 
-                     for (let item of this.form.feeCenterListD) {
 
-                         if (
 
-                             !item.corpId ||
 
-                             !item.feeId ||
 
-                             !item.elementsId ||
 
-                             !item.curCode
 
-                         ) {
 
-                             msgs.push(
 
-                                 `应收第${item.$index + 1}行${!item.corpId ? " 往来单位" : ""
 
-                                 }${!item.feeId ? " 费用简称" : ""}${!item.elementsId ? " 核算要素" : ""
 
-                                 }${!item.curCode ? " 币种" : ""}`
 
-                             );
 
-                         }
 
-                         if (Number(item.price) == 0) {
 
-                             msgs.push(`应收第${item.$index + 1}行单价不能为0`)
 
-                         }
 
-                     }
 
-                     for (let item of this.form.feeCenterListC) {
 
-                         if (
 
-                             !item.corpId ||
 
-                             !item.feeId ||
 
-                             !item.elementsId ||
 
-                             !item.curCode
 
-                         ) {
 
-                             msgs.push(
 
-                                 `应付第${item.$index + 1}行${!item.corpId ? " 往来单位" : ""
 
-                                 }${!item.feeId ? " 费用简称" : ""}${!item.elementsId ? " 核算要素" : ""
 
-                                 }${!item.curCode ? " 币种" : ""}`
 
-                             );
 
-                         }
 
-                         if (Number(item.price) == 0) {
 
-                             msgs.push(`应付第${item.$index + 1}行单价不能为0`)
 
-                         }
 
-                     }
 
-                     if (msgs.length > 0) {
 
-                         this.$confirm(`请填写下列信息:${msgs.join(" ,")}!`, {
 
-                             confirmButtonText: "确定",
 
-                             cancelButtonText: "取消",
 
-                             type: "warning"
 
-                         });
 
-                         return;
 
-                     }
 
-                     // let msgsList = []
 
-                     // if (!verifyEnglish(this.form.hshipperDetails)) {
 
-                     //     msgsList.push('发货人')
 
-                     // }
 
-                     // if (!verifyEnglish(this.form.hconsigneeDetails)) {
 
-                     //     msgsList.push('收货人')
 
-                     // }
 
-                     // if (!verifyEnglish(this.form.hnotifyDetails)) {
 
-                     //     msgsList.push('通知人')
 
-                     // }
 
-                     // if (!verifyEnglish(this.form.marks)) {
 
-                     //     msgsList.push('唛头')
 
-                     // }
 
-                     // if (!verifyEnglish(this.form.commodityDescr)) {
 
-                     //     msgsList.push('货描')
 
-                     // }
 
-                     // if (msgsList.length > 0) {
 
-                     //     this.$message.error(`请正确输入${msgsList.join(",")}的英文和英文符号`);
 
-                     //     return;
 
-                     // }
 
-                     this.form.detail.hshipperDetails = this.getTextTirim(
 
-                         this.form.detail.hshipperDetails
 
-                     );
 
-                     this.form.detail.hconsigneeDetails = this.getTextTirim(
 
-                         this.form.detail.hconsigneeDetails
 
-                     );
 
-                     this.form.detail.hnotifyDetails = this.getTextTirim(
 
-                         this.form.detail.hnotifyDetails
 
-                     );
 
-                     this.form.detail.marks = this.getTextTirim(
 
-                         this.form.detail.marks
 
-                     );
 
-                     this.form.detail.commodityDescr = this.getTextTirim(
 
-                         this.form.detail.commodityDescr
 
-                     );
 
-                     this.form.forwarding = this.getTextTirim(
 
-                         this.form.forwarding
 
-                     );
 
-                     // 赋值 ETA 日期
 
-                     this.form.billDate = this.form.eta
 
-                         ? this.form.eta.slice(0, 10) + " 00:00:00"
 
-                         : null; // 单据日期
 
-                     // 调用保存接口
 
-                     this.billsSubmitfun(status);
 
-                 }
 
-             });
 
-         },
 
-         // 主表保存接口大保存
 
-         billsSubmitfun(status) {
 
-             /*
 
-             if (this.form.cargoType == "dry") {
 
-                 // 普货
 
-                 this.form.billNoFormat = "HYJK-PH";
 
-             } else if (this.form.cargoType == "danger") {
 
-                 // 危险品
 
-                 this.form.billNoFormat = "HYJK-WXP";
 
-             } else if (this.form.cargoType == "reefer") {
 
-                 // 冻柜
 
-                 this.form.billNoFormat = "HYJK-DG";
 
-             } else {
 
-                 this.form.billNoFormat = "HYJK";
 
-             }
 
-             */
 
-             this.form.billNoFormat = "HYJK";
 
-             this.form.businessTypeCode = "HYJK";
 
-             // 把拼接的数据拆开 开始 🐒🐒🐒🐒🐒🐒🐒🐒🐒🐒🐒🐒🐒🐒
 
-             // this.searchSplit()
 
-             // 把拼接的数据拆开 结束 💩💩💩💩💩💩💩💩💩💩💩💩💩💩
 
-             // 费用 收 赋值数据
 
-             if (this.business == 1) {
 
-                 let similarDataD = similarValues(this.form.feeCenterListD, 'feeCnName', 'curCode')
 
-                 if (similarDataD) {
 
-                     return this.$message.error(`应收费用简称:${similarDataD.feeCnName}的币别不一致,请重新选择`);
 
-                 }
 
-                 let similarDataC = similarValues(this.form.feeCenterListC, 'feeCnName', 'curCode')
 
-                 if (similarDataC) {
 
-                     return this.$message.error(`应付费用简称:${similarDataC.feeCnName}的币别不一致,请重新选择`);
 
-                 }
 
-             }
 
-             this.form.feeCenterListD.map((row, index) => {
 
-                 row.dc = "D";
 
-                 row.sort = Number(index) + 1;
 
-                 row.businessType = this.form.businessType; // 业务类型
 
-                 row.billType = this.form.billType; // 单据类型
 
-                 row.billNo = this.form.billNo; // 单据编号
 
-                 row.billDate = this.form.billDate;
 
-                 row.billCorpId = this.form.corpId; // 主表客户 id
 
-                 row.billCorpCnName = this.form.corpCnName; // 主表客户中文名称
 
-                 row.billCorpEnName = this.form.corpEnName; // 主表客户英文名称
 
-                 row.lineId = this.form.lineId; // 航线 id
 
-                 row.lineCnName = this.form.lineCnName; // 航线中文名称
 
-                 row.lineEnName = this.form.lineEnName; // 航线英文名称
 
-                 row.vesselId = this.form.vesselId; // 船名 id
 
-                 row.vesselCnName = this.form.vesselCnName; // 中文船名
 
-                 row.vesselEnName = this.form.vesselEnName; // 英文船名
 
-                 row.voyageNo = this.form.voyageNo; // 航次
 
-                 row.mblno = this.form.mblno; // MB/L NO
 
-                 row.hblno = this.form.hblno; // HB/L NO
 
-                 row.etd = this.form.etd; // 开船日期
 
-                 row.eta = this.form.eta; // 到港日期
 
-                 row.polId = this.form.polId; // 装货港 id
 
-                 row.polCode = this.form.polCode; // 装货港代码
 
-                 row.polCnName = this.form.polCnName; // 装货港中文名称
 
-                 row.polEnName = this.form.polEnName; // 装货港英文名称
 
-                 row.podId = this.form.podId; // 卸货港 id
 
-                 row.podCode = this.form.podCode; // 卸货港代码
 
-                 row.podCnName = this.form.podCnName; // 卸货港中文名称
 
-                 row.podEnName = this.form.podEnName; // 卸货港英文名称
 
-                 row.corpArgreementNo = this.form.corpArgreementNo; // 客户约号
 
-                 // 数量 * 单价 = 净额
 
-                 // 总税率 = 税率 + 附件税率
 
-                 // 税额 = 净额 * 总税率
 
-                 // 含税
 
-                 if (row.curCode == 'CNY') {
 
-                     row.amount = row.rmbAmount
 
-                 } else {
 
-                     row.amount = row.usdAmount
 
-                 }
 
-                 // 净额
 
-                 if (row.curCode == 'CNY') {
 
-                     row.amountNet = row.rmbAmountNet
 
-                 } else {
 
-                     row.amountNet = row.usdAmountNet
 
-                 }
 
-             });
 
-             // 费用 付 赋值数据
 
-             this.form.feeCenterListC.map((row, index) => {
 
-                 row.dc = "C";
 
-                 row.sort = Number(index) + 1;
 
-                 row.businessType = this.form.businessType; // 业务类型
 
-                 row.billType = this.form.billType; // 单据类型
 
-                 row.billNo = this.form.billNo; // 单据编号
 
-                 row.billDate = this.form.billDate; // 单据日期
 
-                 row.billCorpId = this.form.corpId; // 主表客户 id
 
-                 row.billCorpCnName = this.form.corpCnName; // 主表客户中文名称
 
-                 row.billCorpEnName = this.form.corpEnName; // 主表客户英文名称
 
-                 row.lineId = this.form.lineId; // 航线 id
 
-                 row.lineCnName = this.form.lineCnName; // 航线中文名称
 
-                 row.lineEnName = this.form.lineEnName; // 航线英文名称
 
-                 row.vesselId = this.form.vesselId; // 船名 id
 
-                 row.vesselCnName = this.form.vesselCnName; // 中文船名
 
-                 row.vesselEnName = this.form.vesselEnName; // 英文船名
 
-                 row.voyageNo = this.form.voyageNo; // 航次
 
-                 row.mblno = this.form.mblno; // MB/L NO
 
-                 row.hblno = this.form.hblno; // HB/L NO
 
-                 row.etd = this.form.etd; // 开船日期
 
-                 row.eta = this.form.eta; // 到港日期
 
-                 row.polId = this.form.polId; // 装货港 id
 
-                 row.polCode = this.form.polCode; // 装货港代码
 
-                 row.polCnName = this.form.polCnName; // 装货港中文名称
 
-                 row.polEnName = this.form.polEnName; // 装货港英文名称
 
-                 row.podId = this.form.podId; // 卸货港 id
 
-                 row.podCode = this.form.podCode; // 卸货港代码
 
-                 row.podCnName = this.form.podCnName; // 卸货港中文名称
 
-                 row.podEnName = this.form.podEnName; // 卸货港英文名称
 
-                 row.corpArgreementNo = this.form.corpArgreementNo; // 客户约号
 
-                 // 数量 * 单价 = 净额
 
-                 // 总税率 = 税率 + 附件税率
 
-                 // 税额 = 净额 * 总税率
 
-                 // 含税
 
-                 if (row.curCode == 'CNY') {
 
-                     row.amount = row.rmbAmount
 
-                 } else {
 
-                     row.amount = row.usdAmount
 
-                 }
 
-                 // 净额
 
-                 if (row.curCode == 'CNY') {
 
-                     row.amountNet = row.rmbAmountNet
 
-                 } else {
 
-                     row.amountNet = row.usdAmountNet
 
-                 }
 
-             });
 
-             this.pageLoading = true;
 
-             billsSubmit(this.form)
 
-                 .then(res => {
 
-                     this.pageLoading = false;
 
-                     this.$message({
 
-                         type: "success",
 
-                         message: "操作成功!"
 
-                     });
 
-                     if (status == "goBack") {
 
-                         if (this.form.id) {
 
-                             this.unLock({
 
-                                 moduleName: "SI",
 
-                                 tableName: "SI_order",
 
-                                 billId: this.form.id,
 
-                                 billNo: this.form.mblno
 
-                             });
 
-                         }
 
-                         this.$emit("goBack");
 
-                     }
 
-                     // this.detailData.seeDisabled = true
 
-                     this.billsDetailfun(res.data.data.id, status);
 
-                 })
 
-                 .catch(err => {
 
-                     this.pageLoading = false;
 
-                 });
 
-         },
 
-         CopyDocumentsfun() {
 
-             if (!this.form.id) {
 
-                 return this.$message.error("请保存数据");
 
-             }
 
-             this.$DialogForm.show({
 
-                 title: "复制单据",
 
-                 width: "300px",
 
-                 menuPosition: "right",
 
-                 data: { checkbox: "复制费用,复制箱型箱量" },
 
-                 option: {
 
-                     submitText: "确认",
 
-                     emptyText: "取消",
 
-                     span: 24,
 
-                     column: [
 
-                         {
 
-                             label: "复制类型",
 
-                             prop: "checkbox",
 
-                             type: "checkbox",
 
-                             dicData: [
 
-                                 {
 
-                                     label: "复制费用",
 
-                                     value: "复制费用"
 
-                                 },
 
-                                 {
 
-                                     label: "复制箱型箱量",
 
-                                     value: "复制箱型箱量"
 
-                                 }
 
-                             ],
 
-                             dataType: "string",
 
-                             span: 24
 
-                         }
 
-                     ]
 
-                 },
 
-                 beforeClose: done => {
 
-                     done();
 
-                 },
 
-                 callback: res => {
 
-                     res.done();
 
-                     this.billsCopyBillsfun(this.form.id, res.data.checkbox);
 
-                     res.close();
 
-                 }
 
-             });
 
-         },
 
-         // 复制单据接口
 
-         billsCopyBillsfun(id, type) {
 
-             billsCopyBills({ id }).then(res => {
 
-                 if (type == "复制费用" || type == "") {
 
-                     res.data.data.preContainersList = [];
 
-                 }
 
-                 if (type == "复制箱型箱量" || type == "") {
 
-                     res.data.data.feeCenterListD = [];
 
-                     res.data.data.feeCenterListC = [];
 
-                 }
 
-                 this.form = res.data.data;
 
-                 this.pageLoading = false;
 
-                 // this.searchMontage() // 下拉 中文名称和编号拼接
 
-                 // 配箱最上面可以编辑
 
-                 for (let item of this.form.containersList) {
 
-                     item.edit = false;
 
-                 }
 
-                 // 先把状态改成可以编辑,然后判断是否可以编辑
 
-                 this.generateBillsfalse = false;
 
-                 // 应收
 
-                 for (let item of this.form.feeCenterListD) {
 
-                     // 判断是否生成了账单
 
-                     if (item.accStatus == 1) {
 
-                         this.columnforfun("corpCnName").disabled = true;
 
-                         this.columnforfun("srcType").disabled = true;
 
-                         this.columnforfun("mblno").disabled = true;
 
-                         this.columnforfun("teamName").disabled = true;
 
-                         this.columnforfun("refno").disabled = true;
 
-                         this.generateBillsfalse = true;
 
-                     }
 
-                     if (item.curCode == "CNY") {
 
-                         this.$set(item, "rmbAmount", item.amount);
 
-                         this.$set(item, "usdAmount", "");
 
-                         this.$set(item, "rmbAmountNet", item.amountNet);
 
-                         this.$set(item, "usdAmountNet", "");
 
-                     } else {
 
-                         this.$set(item, "usdAmount", item.amount);
 
-                         this.$set(item, "rmbAmount", "");
 
-                         this.$set(item, "usdAmountNet", item.amountNet);
 
-                         this.$set(item, "rmbAmountNet", "");
 
-                     }
 
-                     item.edit = false;
 
-                 }
 
-                 // 应付
 
-                 for (let item of this.form.feeCenterListC) {
 
-                     // 判断是否生成了账单
 
-                     if (item.accStatus == 1) {
 
-                         this.generateBillsfalse = true;
 
-                         this.columnforfun("corpCnName").disabled = true;
 
-                         this.columnforfun("srcType").disabled = true;
 
-                         this.columnforfun("mblno").disabled = true;
 
-                         this.columnforfun("teamName").disabled = true;
 
-                         this.columnforfun("refno").disabled = true;
 
-                     }
 
-                     if (item.curCode == "CNY") {
 
-                         this.$set(item, "rmbAmount", item.amount);
 
-                         this.$set(item, "usdAmount", "");
 
-                         this.$set(item, "rmbAmountNet", item.amountNet);
 
-                         this.$set(item, "usdAmountNet", "");
 
-                     } else {
 
-                         this.$set(item, "usdAmount", item.amount);
 
-                         this.$set(item, "rmbAmount", "");
 
-                         this.$set(item, "usdAmountNet", item.amountNet);
 
-                         this.$set(item, "rmbAmountNet", "");
 
-                     }
 
-                     item.edit = false;
 
-                 }
 
-                 // 文件中心
 
-                 for (let item of this.form.filesList) {
 
-                     this.$set(item, "edit", false);
 
-                 }
 
-             });
 
-         },
 
-         // 详情接口
 
-         async billsDetailfun(id, status) {
 
-             const res = await billsDetail(id);
 
-             this.form = res.data.data;
 
-             this.copyFormData = JSON.parse(JSON.stringify(res.data.data));
 
-             this.inLock();
 
-             // 如果已经请核就禁用按钮
 
-             if (this.form.status == 1 || this.form.status == 2 || this.form.status == 3) {
 
-                 this.detailData.seeDisabled = true
 
-             } else {
 
-                 this.detailData.seeDisabled = false
 
-             }
 
-             if (
 
-                 this.form.status == 1 ||
 
-                 this.form.status == 2 ||
 
-                 this.form.status == 3
 
-             ) {
 
-                 this.columnforfun("corpCnName").disabled = true;
 
-                 this.columnforfun("srcType").disabled = true;
 
-                 this.columnforfun("mblno").disabled = true;
 
-                 this.columnforfun("teamName").disabled = true;
 
-                 this.columnforfun("refno").disabled = true;
 
-                 this.generateBillsfalse = true;
 
-                 this.pleasereviewType = true; // 请核禁用
 
-             } else {
 
-                 // 判断是否可以编辑
 
-                 this.columnforfun("corpCnName").disabled = false;
 
-                 this.columnforfun("srcType").disabled = false;
 
-                 this.columnforfun("mblno").disabled = false;
 
-                 this.columnforfun("teamName").disabled = false;
 
-                 this.columnforfun("refno").disabled = false;
 
-                 this.generateBillsfalse = false;
 
-                 this.pleasereviewType = false;
 
-             }
 
-             this.pageLoading = false;
 
-             // this.searchMontage() // 下拉 中文名称和编号拼接
 
-             // 配箱最上面可以编辑
 
-             for (let item of this.form.containersList) {
 
-                 item.edit = false;
 
-             }
 
-             // 配箱最下面的
 
-             for (let item of this.form.waitingBoxList) {
 
-                 this.$set(item, "editQuantity", item.quantity);
 
-                 this.$set(item, "editGrossWeight", item.grossWeight);
 
-                 this.$set(item, "editMeasurement", item.measurement);
 
-                 this.$set(item, "edit", false);
 
-             }
 
-             // 应收
 
-             for (let item of this.form.feeCenterListD) {
 
-                 // 判断是否生成了账单
 
-                 if (item.accStatus == 1) {
 
-                     this.columnforfun("corpCnName").disabled = true;
 
-                     this.columnforfun("srcType").disabled = true;
 
-                     this.columnforfun("mblno").disabled = true;
 
-                     this.columnforfun("teamName").disabled = true;
 
-                     this.columnforfun("refno").disabled = true;
 
-                     this.generateBillsfalse = true;
 
-                 }
 
-                 if (item.curCode == "CNY") {
 
-                     this.$set(item, "rmbAmount", item.amount);
 
-                     this.$set(item, "usdAmount", "");
 
-                     this.$set(item, "rmbAmountNet", item.amountNet);
 
-                     this.$set(item, "usdAmountNet", "");
 
-                 } else {
 
-                     this.$set(item, "usdAmount", item.amount);
 
-                     this.$set(item, "rmbAmount", "");
 
-                     this.$set(item, "usdAmountNet", item.amountNet);
 
-                     this.$set(item, "rmbAmountNet", "");
 
-                 }
 
-                 item.edit = false;
 
-             }
 
-             // 应付
 
-             for (let item of this.form.feeCenterListC) {
 
-                 // 判断是否生成了账单
 
-                 if (item.accStatus == 1) {
 
-                     this.generateBillsfalse = true;
 
-                     this.columnforfun("corpCnName").disabled = true;
 
-                     this.columnforfun("srcType").disabled = true;
 
-                     this.columnforfun("mblno").disabled = true;
 
-                     this.columnforfun("teamName").disabled = true;
 
-                     this.columnforfun("refno").disabled = true;
 
-                 }
 
-                 if (item.curCode == "CNY") {
 
-                     this.$set(item, "rmbAmount", item.amount);
 
-                     this.$set(item, "usdAmount", "");
 
-                     this.$set(item, "rmbAmountNet", item.amountNet);
 
-                     this.$set(item, "usdAmountNet", "");
 
-                 } else {
 
-                     this.$set(item, "usdAmount", item.amount);
 
-                     this.$set(item, "rmbAmount", "");
 
-                     this.$set(item, "usdAmountNet", item.amountNet);
 
-                     this.$set(item, "rmbAmountNet", "");
 
-                 }
 
-                 item.edit = false;
 
-             }
 
-             // 文件中心
 
-             this.$refs.filescenter.getData(res.data.data);
 
-             for (let item of this.form.filesList) {
 
-                 this.$set(item, "edit", false);
 
-             }
 
-             if (status == "toAddEdit") {
 
-                 this.$emit(status);
 
-             }
 
-             this.oldForm = this.deepClone(this.form);
 
-         },
 
-         // tbas切换
 
-         handleClick(tba, event) { },
 
-         // 大tbas切换
 
-         bigHandleClick() {
 
-             if (this.bigtabs == "fd") {
 
-                 if (this.form.id) {
 
-                     this.billsListAllfun(this.form.id);
 
-                 }
 
-             }
 
-             if (this.bigtabs == "dz") {
 
-                 if (this.form.id) {
 
-                     this.$refs.documentCenter.reportslogListfun({
 
-                         currentPage: 1,
 
-                         pageSize: 10
 
-                     });
 
-                 }
 
-             }
 
-         },
 
-         // 获取不分页的分单列表
 
-         billsListAllfun(masterId) {
 
-             billsListAll({ masterId }).then(res => {
 
-                 this.billsListAllData = res.data.data;
 
-             });
 
-         }
 
-     }
 
- };
 
- </script>
 
- <style scoped lang="scss">
 
- ::v-deep .el-tabs--border-card>.el-tabs__content {
 
-     padding: 4px !important;
 
- }
 
- .scrollable-container {
 
-     height: 84vh;
 
-     /* 设置容器高度 */
 
-     overflow-y: auto;
 
-     /* 添加垂直滚动条 */
 
- }
 
- .borderless {
 
-     height: 100%;
 
-     box-sizing: border-box;
 
- }
 
- .customer-main {
 
-     margin-bottom: 15px;
 
- }
 
- .demo-ruleForm {
 
-     font-size: 14px;
 
- }
 
- .margintop {
 
-     margin-top: 0px !important;
 
- }
 
- ::v-deep.el-form-item {
 
-     margin-bottom: 0;
 
- }
 
- ::v-deep .basic-container .el-card__body {
 
-     padding: 6px 20px;
 
- }
 
- ::v-deep .el-tabs__header {
 
-     margin: 0 0 5px;
 
- }
 
- .isShow {
 
-     display: none;
 
- }
 
- </style>
 
 
  |