EntrustmentLnformation.vue 148 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590
  1. <template>
  2. <div>
  3. <el-form :model="assemblyForm" ref="form" label-width="90px" class="demo-ruleForm" :disabled="disabled">
  4. <el-row :gutter="20">
  5. <el-col span="8">
  6. <el-row>
  7. <el-form-item label="发货人" prop="hshipperCnName">
  8. <span slot="label">
  9. <span style="color: #1e9fff">{{ $t("sea118n.shipper") }}</span>
  10. </span>
  11. <div>
  12. <el-col :span="16">
  13. <search-query :datalist="hshipperData"
  14. :selectValue="assemblyForm.detail.hshipperCnName" :filterable="true"
  15. :clearable="true" :remote="true" :addIf="true" :tableIf="false"
  16. :disabled="detailData.seeDisabled" :joinData="true"
  17. :forParameter="{ key: 'id', short: 'code', label: 'cnName', value: 'cnName' }"
  18. placeholder="请选择发货人" @addJump="addJump('hshipper')"
  19. @remoteMethod="remoteMethod($event, 'hshipper')"
  20. @corpChange="corpChange($event, 'hshipper')"
  21. @corpFocus="remoteMethod($event, 'hshipper')">
  22. </search-query>
  23. </el-col>
  24. <el-col :span="8">
  25. <el-input type="age" style="width: 100%;"
  26. v-model="assemblyForm.detail.hshipperCntyName" size="small" autocomplete="off"
  27. :disabled="detailData.seeDisabled" clearable placeholder="发货人国家代码"></el-input>
  28. </el-col>
  29. </div>
  30. </el-form-item>
  31. <div style="margin-top: 4px">
  32. <el-form-item label="" prop="hshipperDetails">
  33. <el-input type="textarea" style="width: 100%;"
  34. v-model="assemblyForm.detail.hshipperDetails" size="small" autocomplete="off"
  35. :disabled="detailData.seeDisabled" :rows="textareaNumber" clearable
  36. placeholder="请输入发货人提单描述" @change="textareaBlur('hshipperDetails')"></el-input>
  37. </el-form-item>
  38. </div>
  39. <el-form-item label="收货人" prop="hconsigneeCnName">
  40. <span slot="label">
  41. <span style="color: #1e9fff">{{ $t("sea118n.cnee") }}</span>
  42. </span>
  43. <div>
  44. <el-col :span="16">
  45. <search-query :datalist="hconsigneeData"
  46. :selectValue="assemblyForm.detail.hconsigneeCnName" :filterable="true"
  47. :clearable="true" :remote="true" :joinData="true"
  48. :disabled="detailData.seeDisabled" :addIf="true" :tableIf="false"
  49. placeholder="请选择收货人"
  50. :forParameter="{ key: 'id', short: 'code', label: 'cnName', value: 'cnName' }"
  51. @addJump="addJump('hconsignee')"
  52. @remoteMethod="remoteMethod($event, 'hconsignee')"
  53. @corpChange="corpChange($event, 'hconsignee')"
  54. @corpFocus="remoteMethod($event, 'hconsignee')">
  55. </search-query>
  56. </el-col>
  57. <el-col :span="8">
  58. <!-- <span style="padding-left: 10px"></span>-->
  59. <el-input type="age" style="width: 100%;"
  60. v-model="assemblyForm.detail.hconsigneeCntyName" size="small" autocomplete="off"
  61. :disabled="detailData.seeDisabled" clearable placeholder="收货人国家代码"></el-input>
  62. </el-col>
  63. <!-- <el-col :span="4">-->
  64. <!-- <span style="margin-left: 20px"></span>-->
  65. <!-- <span style="font-size: 12px;color: #1e9fff;cursor: pointer;"-->
  66. <!-- @click="notifybyfun">同通</span>-->
  67. <!-- </el-col>-->
  68. </div>
  69. </el-form-item>
  70. <div>
  71. <el-form-item label="同通" prop="hconsigneeDetails">
  72. <span slot="label">
  73. <span style="font-size: 12px;color: #1e9fff;cursor: pointer;"
  74. @click="notifybyfun">同通</span>
  75. </span>
  76. <el-input type="textarea" style="width: 100%;"
  77. v-model="assemblyForm.detail.hconsigneeDetails" size="small" autocomplete="off"
  78. :disabled="detailData.seeDisabled" :rows="textareaNumber" clearable
  79. placeholder="请输入收货人提单描述" @change="textareaBlur('hconsigneeDetails')"></el-input>
  80. </el-form-item>
  81. </div>
  82. <el-form-item label="通知人" prop="hnotifyCnName">
  83. <span slot="label">
  84. <span style="color: #1e9fff">{{ $t("sea118n.notify") }}</span>
  85. </span>
  86. <div>
  87. <el-col :span="16">
  88. <search-query :datalist="hnotifyData"
  89. :selectValue="assemblyForm.detail.hnotifyCnName" :filterable="true"
  90. :clearable="true" :remote="true" :joinData="true"
  91. :disabled="detailData.seeDisabled" :addIf="true" :tableIf="false"
  92. placeholder="请选择通知人"
  93. :forParameter="{ key: 'id', short: 'code', label: 'cnName', value: 'cnName' }"
  94. @addJump="addJump('hconsignee')" @remoteMethod="remoteMethod($event, 'hnotify')"
  95. @corpChange="corpChange($event, 'hnotify')"
  96. @corpFocus="remoteMethod($event, 'hnotify')">
  97. </search-query>
  98. </el-col>
  99. <el-col :span="8">
  100. <!-- padding-left: 10px -->
  101. <div style="display: flex;align-items: center;justify-content: space-between;">
  102. <div style="flex: 4">
  103. <el-input type="age" style="width: 100%;"
  104. v-model="assemblyForm.detail.hnotifyCntyName" size="small"
  105. autocomplete="off" :disabled="detailData.seeDisabled" clearable
  106. placeholder="通知人国家代码"></el-input>
  107. </div>
  108. <!-- <div style="flex: 1;margin-left: 10px">-->
  109. <!-- <el-button type="primary" icon="el-icon-plus" size="mini"-->
  110. <!-- @click="hnotifyClick"></el-button>-->
  111. <!-- <div class="addbuttonClass" @click="hnotifyClick">+</div> -->
  112. <!-- </div>-->
  113. </div>
  114. </el-col>
  115. </div>
  116. </el-form-item>
  117. <div>
  118. <el-form-item label="" prop="hnotifyDetails">
  119. <span slot="label">
  120. <el-button type="primary" icon="el-icon-plus" size="mini"
  121. @click="hnotifyClick"></el-button>
  122. </span>
  123. <el-input type="textarea" style="width: 100%;"
  124. v-model="assemblyForm.detail.hnotifyDetails" size="small" autocomplete="off"
  125. :disabled="detailData.seeDisabled" :rows="textareaNumber" clearable
  126. placeholder="请输入通知人提单描述" @change="textareaBlur('hnotifyDetails')"></el-input>
  127. </el-form-item>
  128. </div>
  129. </el-row>
  130. <el-row>
  131. <div>
  132. <el-form-item label="国外代理" prop="foreignAgencyCnName">
  133. <span slot="label">
  134. <span style="color: #1e9fff">{{ $t("sea118n.agent") }}</span>
  135. </span>
  136. <div>
  137. <el-col :span="16">
  138. <search-query :datalist="foreignAgencyData"
  139. :selectValue="assemblyForm.foreignAgencyCnName" :filterable="true"
  140. :clearable="true" :remote="true" :addIf="true" :tableIf="false"
  141. :disabled="detailData.seeDisabled" :joinData="true"
  142. :forParameter="{ key: 'id', short: 'code', label: 'cnName', value: 'cnName' }"
  143. placeholder="请选择国外代理" @addJump="addJump('foreignAgency')"
  144. @remoteMethod="remoteMethod($event, 'foreignAgency')"
  145. @corpChange="corpChange($event, 'foreignAgency')"
  146. @corpFocus="remoteMethod($event, 'foreignAgency')">
  147. </search-query>
  148. </el-col>
  149. <el-col :span="8">
  150. <el-input type="age" style="width: 100%;" v-model="assemblyForm.foreignCntyName"
  151. size="small" autocomplete="off" :disabled="detailData.seeDisabled" clearable
  152. placeholder="国外代理国家代码"></el-input>
  153. </el-col>
  154. </div>
  155. </el-form-item>
  156. <el-form-item prop="foreignAgencyDetails">
  157. <div style="margin-top: 4px">
  158. <el-input type="textarea" style="width: 100%;"
  159. v-model="assemblyForm.foreignAgencyDetails" size="small" autocomplete="off"
  160. :disabled="detailData.seeDisabled" :rows="textareaNumber" clearable
  161. placeholder="请输入国外代理提单描述"
  162. @change="textareaBlur('foreignAgencyDetails')"></el-input>
  163. </div>
  164. </el-form-item>
  165. </div>
  166. <!-- <el-form-item label="收货地" prop="placeReceiptName">
  167. <span slot="label">
  168. <el-popover placement="right" width="400" trigger="hover"
  169. @show="delShow(assemblyForm.placeReceiptId, 1)">
  170. <avue-crud :data="delData" :option="delOption" :table-loading="loading"></avue-crud>
  171. <span style="color:rgb(76, 158, 68);text-decoration: underline;"
  172. slot="reference">收货地</span>
  173. </el-popover>
  174. </span>
  175. <el-row>
  176. <el-col :span="10">
  177. <search-query :datalist="placeReceiptData"
  178. :selectValue="assemblyForm.placeReceiptName" :filterable="true"
  179. :clearable="true" :remote="true" :joinData="true"
  180. :disabled="detailData.seeDisabled" :buttonIf="false" placeholder="请选择收货地"
  181. :forParameter="{ key: 'id', short: 'enName', label: 'code', value: 'enName' }"
  182. @remoteMethod="remoteMethod($event, 'placeReceipt')"
  183. @corpChange="corpChange($event, 'placeReceipt')"
  184. @corpFocus="remoteMethod($event, 'placeReceipt')">
  185. </search-query>
  186. </el-col>
  187. <el-col :span="13">
  188. <span style="padding-left: 20px"></span>
  189. <el-input type="age" style="width: 100%;"
  190. v-model="assemblyForm.placeReceiptNamePrint" size="small" autocomplete="off"
  191. :disabled="detailData.seeDisabled" clearable placeholder="收货地"
  192. @change="textareaBlur('placeReceiptNamePrint')"
  193. ></el-input>
  194. </el-col>
  195. </el-row>
  196. </el-form-item> -->
  197. <!-- <el-form-item label="中转港" prop="potEnName">
  198. <span slot="label">
  199. <el-popover placement="right" width="400" trigger="hover"
  200. @show="delShow(assemblyForm.potId, 1)">
  201. <avue-crud :data="delData" :option="delOption" :table-loading="loading"></avue-crud>
  202. <span style="color:rgb(76, 158, 68);text-decoration: underline;"
  203. slot="reference">中转港</span>
  204. </el-popover>
  205. </span>
  206. <el-row>
  207. <el-col :span="10">
  208. <search-query :datalist="potData" :selectValue="assemblyForm.potEnName"
  209. :filterable="true" :clearable="true" :remote="true" :joinData="true"
  210. :disabled="detailData.seeDisabled" :buttonIf="false" placeholder="请选择中转港"
  211. :forParameter="{ key: 'id', short: 'enName', label: 'code', value: 'enName' }"
  212. @remoteMethod="remoteMethod($event, 'pot')"
  213. @corpChange="corpChange($event, 'pot')"
  214. @corpFocus="remoteMethod($event, 'pot')">
  215. </search-query>
  216. </el-col>
  217. <el-col :span="13">
  218. <span style="padding-left: 20px"></span>
  219. <el-input type="age" style="width: 100%;" v-model="assemblyForm.potNamePrint"
  220. size="small" autocomplete="off" :disabled="detailData.seeDisabled" clearable
  221. placeholder="中转港" @change="textareaBlur('potNamePrint')"></el-input>
  222. </el-col>
  223. </el-row>
  224. </el-form-item> -->
  225. </el-row>
  226. </el-col>
  227. <el-col :span="16">
  228. <el-col :span="12">
  229. <el-row>
  230. <div>
  231. <span style="font-size: 14px;color: #1e9fff">{{ $t("sea118n.marks") }}</span>
  232. </div>
  233. <div style="margin-top: 4px">
  234. <el-input type="textarea" style="width: 100%;" v-model="assemblyForm.marks" size="small"
  235. autocomplete="off" :disabled="detailData.seeDisabled" rows="5" clearable
  236. placeholder="请输入唛头" @input="handleInput($event, 'marks')"
  237. @change="textareaBlur('marks')"></el-input>
  238. </div>
  239. <div style="margin-top: 4px">
  240. <el-form-item label="HS CODE" prop="commodityCnName">
  241. <span slot="label">
  242. <span style="color: #1e9fff">HS CODE</span>
  243. </span>
  244. <el-col :span="12">
  245. <el-input type="age" style="width: 100%;" v-model="assemblyForm.hscode"
  246. size="small" autocomplete="off" :disabled="detailData.seeDisabled" clearable
  247. placeholder="HS CODE"></el-input>
  248. </el-col>
  249. <el-col :span="11">
  250. <span style="padding-left: 20px"></span>
  251. <el-input type="age" style="width: 100%;" v-model="assemblyForm.commodityCnName"
  252. size="small" autocomplete="off" :disabled="detailData.seeDisabled" clearable
  253. placeholder="英文名称"></el-input>
  254. </el-col>
  255. </el-form-item>
  256. </div>
  257. <!-- <div>
  258. <el-input type="age" style="width: 100%;" v-model="assemblyForm.commodityEnName"
  259. size="small" autocomplete="off" :disabled="detailData.seeDisabled" clearable
  260. placeholder="商品名称"></el-input>
  261. </div>-->
  262. <div style="margin-top: 4px">
  263. <el-form-item label="货描" prop="cargoType" label-width="50px"
  264. :rules="[{ required: true, message: ' ', trigger: 'blur' }]">
  265. <span slot="label">
  266. <span style="color: #1e9fff">{{ $t("sea118n.descOfGoods") }}</span>
  267. </span>
  268. <!--<el-col :span="5">-->
  269. <!-- <el-checkbox size="medium" :true-label="1" :false-label="0" v-model="assemblyForm.isLargeCargo">大件货</el-checkbox>-->
  270. <!--</el-col>-->
  271. <el-col :span="18">
  272. <search-query :datalist="cargoTypeData" :selectValue="assemblyForm.cargoType"
  273. :filterable="true" :clearable="false" :remote="true"
  274. :disabled="detailData.seeDisabled" :buttonIf="false" placeholder="请选择货描"
  275. @remoteMethod="remoteMethod($event, 'cargoType')"
  276. @corpChange="corpChange($event, 'cargoType')"
  277. @corpFocus="remoteMethod($event, 'cargoType')">
  278. </search-query>
  279. </el-col>
  280. <el-col :span="5">
  281. <span style="margin-left: 10px"></span>
  282. <el-button size="small" @click="DangerousGoodsAdd">danger</el-button>
  283. </el-col>
  284. </el-form-item>
  285. </div>
  286. <div>
  287. <el-input type="textarea" style="width: 100%;" v-model="assemblyForm.commodityDescr"
  288. size="small" autocomplete="off" :disabled="detailData.seeDisabled" rows="5"
  289. clearable placeholder="请输入提单上货物描述"
  290. @change="textareaBlur('commodityDescr')"></el-input>
  291. </div>
  292. <el-form-item label="装货港" prop="polCnName" label-width="60px">
  293. <span slot="label">
  294. <el-popover placement="right" width="400" trigger="hover"
  295. @show="delShow(assemblyForm.polId, 1)">
  296. <avue-crud :data="delData" :option="delOption"
  297. :table-loading="loading"></avue-crud>
  298. <span style="color:rgb(76, 158, 68);text-decoration: underline;"
  299. slot="reference">{{ $t("sea118n.pol") }}</span>
  300. </el-popover>
  301. </span>
  302. <el-row>
  303. <el-col :span="24">
  304. <search-query :datalist="polData" :selectValue="assemblyForm.polEnName"
  305. :filterable="true" :clearable="true" :remote="true" :joinData="true"
  306. :disabled="detailData.seeDisabled || generateBillsfalse || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0) || assemblyForm.preContainersList.filter(item => item.containerNumberStatus == '已选择').length > 0"
  307. :buttonIf="false" placeholder="请选择装货港"
  308. :forParameter="{ key: 'id', short: 'enName', label: 'code', value: 'enName' }"
  309. @remoteMethod="remoteMethod($event, 'pol')"
  310. @corpChange="corpChange($event, 'pol')"
  311. @corpFocus="remoteMethod($event, 'pol')">
  312. </search-query>
  313. </el-col>
  314. <el-col :span="24">
  315. <span style="padding-left: 0px"></span>
  316. <el-input type="age" style="width: 100%;" v-model="assemblyForm.polNamePrint"
  317. size="small" autocomplete="off"
  318. :disabled="detailData.seeDisabled || generateBillsfalse || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0) || assemblyForm.preContainersList.filter(item => item.containerNumberStatus == '已选择').length > 0"
  319. clearable placeholder="装货港"
  320. @change="textareaBlur('polNamePrint')"></el-input>
  321. </el-col>
  322. </el-row>
  323. </el-form-item>
  324. <el-form-item label="卸货港" prop="podCnName" label-width="60px">
  325. <span slot="label">
  326. <el-popover placement="right" width="400" trigger="hover"
  327. @show="delShow(assemblyForm.podId, 1)">
  328. <avue-crud :data="delData" :option="delOption"
  329. :table-loading="loading"></avue-crud>
  330. <!-- <el-button slot="reference">click 激活</el-button> -->
  331. <span style="color:rgb(76, 158, 68);text-decoration: underline;"
  332. slot="reference">{{ $t("sea118n.pod") }}</span>
  333. </el-popover>
  334. <!-- <span style="color: #1e9fff">卸货港</span> -->
  335. </span>
  336. <el-row>
  337. <el-col :span="24">
  338. <search-query :datalist="podData" :selectValue="assemblyForm.podEnName"
  339. :filterable="true" :clearable="true" :remote="true" :joinData="true"
  340. :disabled="detailData.seeDisabled || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0) || assemblyForm.preContainersList.filter(item => item.containerNumberStatus == '已选择').length > 0"
  341. :buttonIf="false" placeholder="请选择卸货港"
  342. :forParameter="{ key: 'id', short: 'enName', label: 'code', value: 'enName' }"
  343. @remoteMethod="remoteMethod($event, 'pod')"
  344. @corpChange="corpChange($event, 'pod')"
  345. @corpFocus="remoteMethod($event, 'pod')">
  346. </search-query>
  347. </el-col>
  348. <el-col :span="24">
  349. <span style="padding-left: 0px"></span>
  350. <el-input type="age" style="width: 100%;" v-model="assemblyForm.podNamePrint"
  351. size="small" autocomplete="off"
  352. :disabled="detailData.seeDisabled || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0) || assemblyForm.preContainersList.filter(item => item.containerNumberStatus == '已选择').length > 0"
  353. clearable placeholder="卸货港"
  354. @change="textareaBlur('podNamePrint')"></el-input>
  355. </el-col>
  356. </el-row>
  357. </el-form-item>
  358. <el-form-item label="交货地" prop="placeDeliveryName" label-width="60px">
  359. <span slot="label">
  360. <el-popover placement="right" width="400" trigger="hover"
  361. @show="delShow(assemblyForm.placeDeliveryId, 1)">
  362. <avue-crud :data="delData" :option="delOption"
  363. :table-loading="loading"></avue-crud>
  364. <!-- <el-button slot="reference">click 激活</el-button> -->
  365. <span style="color:rgb(76, 158, 68);text-decoration: underline;"
  366. slot="reference">{{ $t("sea118n.placeDelivery") }}</span>
  367. </el-popover>
  368. <!-- <span style="color: #1e9fff">交货地</span> -->
  369. </span>
  370. <el-row>
  371. <el-col :span="24">
  372. <search-query :datalist="placeDeliveryData" :joinData="true"
  373. :selectValue="assemblyForm.placeDeliveryName" :filterable="true"
  374. :clearable="true" :remote="true" :disabled="detailData.seeDisabled"
  375. :buttonIf="false" placeholder="请选择交货地"
  376. :forParameter="{ key: 'id', short: 'enName', label: 'code', value: 'enName' }"
  377. @remoteMethod="remoteMethod($event, 'placeDelivery')"
  378. @corpChange="corpChange($event, 'placeDelivery')"
  379. @corpFocus="remoteMethod($event, 'placeDelivery')">
  380. </search-query>
  381. </el-col>
  382. <el-col :span="24">
  383. <span style="padding-left: 0px"></span>
  384. <el-input type="age" style="width: 100%;"
  385. v-model="assemblyForm.placeDeliveryNamePrint" size="small"
  386. autocomplete="off" :disabled="detailData.seeDisabled" clearable
  387. placeholder="交货地"
  388. @change="textareaBlur('placeDeliveryNamePrint')"></el-input>
  389. </el-col>
  390. </el-row>
  391. </el-form-item>
  392. <el-form-item label="业务来源" prop="srcType"
  393. :rules="[{ required: true, message: '', trigger: 'blur' }]">
  394. <el-row :gutter="10">
  395. <el-col :span="10">
  396. <search-query :datalist="sourceTypeData" :selectValue="assemblyForm.srcType"
  397. :disabled="detailData.seeDisabled || assemblyForm.feeCenterListD.filter(item => item.auditStatus > 0).length || assemblyForm.feeCenterListC.filter(item => item.auditStatus > 0).length"
  398. :filterable="true" :clearable="true" :remote="true" :buttonIf="false"
  399. placeholder="请选择业务来源" @corpChange="sourceCorp($event, 'srcType')">
  400. </search-query>
  401. </el-col>
  402. <el-col :span="13">
  403. <search-query :datalist="srcData" :selectValue="assemblyForm.srcCnName"
  404. :filterable="true" :clearable="true" :remote="true"
  405. :disabled="!assemblyForm.srcType || detailData.seeDisabled || assemblyForm.feeCenterListD.filter(item => item.auditStatus > 0).length || assemblyForm.feeCenterListC.filter(item => item.auditStatus > 0).length"
  406. :buttonIf="false" :forParameter="sourceforParameter" placeholder="请选择来源明细"
  407. @remoteMethod="sourceRemote($event, 'srcCnName')"
  408. @corpChange="sourceCorp($event, 'srcCnName')"
  409. @corpFocus="sourceRemote($event, 'srcCnName')">
  410. </search-query>
  411. </el-col>
  412. </el-row>
  413. </el-form-item>
  414. </el-row>
  415. </el-col>
  416. <el-col :span="12">
  417. <el-form-item label="ETD" prop="etd" label-width="80px"
  418. :rules="[{ required: true, message: '', trigger: 'blur' }]">
  419. <span slot="label">
  420. <span style="color: #1e9fff">ETD</span>
  421. </span>
  422. <el-date-picker v-model="assemblyForm.etd" clearable style="width: 100%" type="date"
  423. size="small"
  424. :disabled="detailData.seeDisabled || generateBillsfalse || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0) || assemblyForm.feeCenterListD.filter(item => item.auditStatus > 0).length || assemblyForm.feeCenterListC.filter(item => item.auditStatus > 0).length"
  425. value-format="yyyy-MM-dd" :picker-options="etdPickerOptions" placeholder="请选择ETD日期"
  426. @change="handlePick">
  427. </el-date-picker>
  428. </el-form-item>
  429. <div>
  430. <el-form-item label="船名" prop="vesselCnName" label-width="80px">
  431. <span slot="label">
  432. <el-popover placement="right" width="400" trigger="hover"
  433. @show="delShow(assemblyForm.vesselId, 3)">
  434. <avue-crud :data="delData" :option="delOption"
  435. :table-loading="loading"></avue-crud>
  436. <!-- <el-button slot="reference">click 激活</el-button> -->
  437. <span style="color:rgb(76, 158, 68);text-decoration: underline;"
  438. slot="reference">{{ $t("sea118n.vessel") }}</span>
  439. </el-popover>
  440. <!-- <span style="color: #1e9fff">船名</span> -->
  441. </span>
  442. <search-query :datalist="vesselData" :selectValue="assemblyForm.vesselEnName"
  443. :filterable="true" :clearable="true" :remote="true" :allowCreate="true"
  444. :disabled="detailData.seeDisabled || generateBillsfalse || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0) || assemblyForm.feeCenterListD.filter(item => item.auditStatus > 0).length || assemblyForm.feeCenterListC.filter(item => item.auditStatus > 0).length"
  445. :buttonIf="false" placeholder="请选择船名"
  446. :forParameter="{ key: 'id', label: 'enName', value: 'enName' }"
  447. @remoteMethod="remoteMethod($event, 'vessel')"
  448. @corpChange="corpChange($event, 'vessel')"
  449. @corpFocus="remoteMethod($event, 'vessel')">
  450. </search-query>
  451. </el-form-item>
  452. <el-form-item label="航次" prop="voyageNo" label-width="80px">
  453. <span slot="label">
  454. <span style="color: #1e9fff">{{ $t("sea118n.voy") }}</span>
  455. </span>
  456. <el-input type="age" style="width: 100%;" v-model="assemblyForm.voyageNo" size="small"
  457. autocomplete="off"
  458. :disabled="detailData.seeDisabled || generateBillsfalse || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0) || assemblyForm.feeCenterListD.filter(item => item.auditStatus > 0).length || assemblyForm.feeCenterListC.filter(item => item.auditStatus > 0).length"
  459. clearable placeholder="请输入航次"></el-input>
  460. </el-form-item>
  461. </div>
  462. <!-- <el-form-item label="ETA" prop="eta" label-width="90px">
  463. <span slot="label">
  464. <span style="color: #1e9fff">ETA</span>
  465. </span>
  466. <el-date-picker style="width: 100%;" v-model="assemblyForm.eta" clearable type="date"
  467. size="small" :disabled="detailData.seeDisabled" value-format="yyyy-MM-dd"
  468. placeholder="选择日期">
  469. </el-date-picker>
  470. </el-form-item> -->
  471. <el-form-item label="承运人" prop="carrierCnName" label-width="80px">
  472. <span slot="label">
  473. <span style="color: #4c9e44;cursor: pointer;text-decoration: underline"
  474. @click="emailJump('carrier')">{{ $t("sea118n.carrier") }}</span>
  475. </span>
  476. <search-query :datalist="carrierData" :selectValue="assemblyForm.carrierCnName"
  477. :filterable="true" :clearable="true" :remote="true" :joinData="true"
  478. :disabled="detailData.seeDisabled || generateBillsfalse || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0) || assemblyForm.feeCenterListD.filter(item => item.auditStatus > 0).length || assemblyForm.feeCenterListC.filter(item => item.auditStatus > 0).length"
  479. :buttonIf="false" placeholder="请选择承运人"
  480. :forParameter="{ key: 'id', short: 'shortName', label: 'cnName', value: 'cnName' }"
  481. @remoteMethod="remoteMethod($event, 'carrier')"
  482. @corpChange="corpChange($event, 'carrier')"
  483. @corpFocus="remoteMethod($event, 'carrier')">
  484. </search-query>
  485. </el-form-item>
  486. <!-- <div style="display: flex;">
  487. <el-form-item label="船司约号" prop="carrierArgreementNo">
  488. <span slot="label">
  489. <span style="color: #1e9fff">船司约号</span>
  490. </span>
  491. <el-input type="age" style="width: 100%;" v-model="assemblyForm.carrierArgreementNo"
  492. size="small" autocomplete="off" :disabled="detailData.seeDisabled" clearable
  493. placeholder="请输入船司约号"></el-input>
  494. </el-form-item>
  495. <el-form-item label="客户约号" prop="corpArgreementNo" label-width="60px">
  496. <span slot="label">
  497. <span style="color: #1e9fff">客户约号</span>
  498. </span>
  499. <el-input type="age" style="width: 100%;" v-model="assemblyForm.corpArgreementNo"
  500. size="small" autocomplete="off" :disabled="detailData.seeDisabled" clearable
  501. placeholder="请输入客户约号"></el-input>
  502. </el-form-item>
  503. </div> -->
  504. <!-- <el-form-item label="订舱代理" prop="bookingAgentCnName">
  505. <span slot="label">
  506. <span style="color: #1e9fff">订舱代理</span>
  507. </span>
  508. <el-col :span="9" style="margin-left: -10px">
  509. <search-query :datalist="bookingAgentData"
  510. :selectValue="assemblyForm.bookingAgentCnName" :filterable="true" :clearable="true"
  511. :remote="true" :disabled="detailData.seeDisabled" :buttonIf="false"
  512. placeholder="请选择订舱代理"
  513. :forParameter="{ key: 'id', label: 'cnName', value: 'cnName' }"
  514. @remoteMethod="remoteMethod($event, 'bookingAgent')"
  515. @corpChange="corpChange($event, 'bookingAgent')"
  516. @corpFocus="remoteMethod($event, 'bookingAgent')">
  517. </search-query>
  518. </el-col>
  519. <el-col :span="15">
  520. <el-input type="age" style="width: 100%;margin-left: 20px;"
  521. v-model="assemblyForm.bookingAgentEnName" size="small" autocomplete="off"
  522. :disabled="detailData.seeDisabled || !assemblyForm.bookingAgentCnName" clearable
  523. placeholder="订舱代理"></el-input>
  524. </el-col>
  525. </el-form-item> -->
  526. <el-row>
  527. <el-col :span="12">
  528. <el-form-item label="件数" prop="quantity" label-width="80px"
  529. :rules="[{ required: true, message: ' ', trigger: 'blur' }]">
  530. <span slot="label">
  531. <span style="color: #1e9fff">{{ $t("sea118n.QTY") }}</span>
  532. </span>
  533. <el-input ref="quantityRef" style="width: 100%;" v-model="assemblyForm.quantity"
  534. size="small" autocomplete="off" min="1" :disabled="detailData.seeDisabled"
  535. @input="quantityInput" @focus="quantityFocus" clearable
  536. placeholder="请输入件数"></el-input>
  537. </el-form-item>
  538. </el-col>
  539. <el-col :span="12">
  540. <el-form-item label="包装" prop="packingUnit" label-width="50px"
  541. :rules="[{ required: true, message: ' ', trigger: 'blur' }]">
  542. <span slot="label">
  543. <el-popover placement="right" width="400" trigger="hover"
  544. @show="delShow(assemblyForm.packingUnitId, 2)">
  545. <avue-crud :data="delData" :option="delOption"
  546. :table-loading="loading"></avue-crud>
  547. <!-- <el-button slot="reference">click 激活</el-button> -->
  548. <span style="color:rgb(76, 158, 68);text-decoration: underline;"
  549. slot="reference">{{ $t("sea118n.package") }}</span>
  550. </el-popover>
  551. <!-- <span style="color: #1e9fff">包装</span> -->
  552. </span>
  553. <search-query ref="packingUnit" :datalist="packingUnitData"
  554. style="margin-right: -10px;" :selectValue="assemblyForm.packingUnit"
  555. :filterable="true" :clearable="true" :remote="true"
  556. :disabled="detailData.seeDisabled" :buttonIf="false" placeholder="请选择包装"
  557. :forParameter="{ key: 'id', label: 'cnName', value: 'cnName' }"
  558. @remoteMethod="remoteMethod($event, 'packingUnit')"
  559. @corpChange="corpChange($event, 'packingUnit')"
  560. @corpFocus="remoteMethod($event, 'packingUnit')">
  561. </search-query>
  562. </el-form-item>
  563. </el-col>
  564. </el-row>
  565. <el-row>
  566. <el-col :span="12">
  567. <el-form-item label="毛重(KGS)" prop="grossWeight" label-width="80px"
  568. :rules="[{ required: true, message: ' ', trigger: 'blur' }]">
  569. <span slot="label">
  570. <span style="color: #1e9fff">{{ $t("sea118n.GW") }}</span>
  571. </span>
  572. <el-input ref="grossWeightRef" step="0.001" style="width: 100%;"
  573. v-model="assemblyForm.grossWeight" size="small" autocomplete="off"
  574. :disabled="detailData.seeDisabled" @input="floatingInput($event, 'grossWeight')"
  575. @focus="quantityFocus" clearable placeholder="请输入毛重"
  576. @change="grossWeightChange"></el-input>
  577. </el-form-item>
  578. </el-col>
  579. <el-col :span="12">
  580. <el-form-item label="尺码(CBM)" prop="measurement" label-width="90px"
  581. :rules="[{ required: true, message: ' ', trigger: 'blur' }]">
  582. <span slot="label">
  583. <span style="color: #1e9fff">{{ $t("sea118n.CBM") }}</span>
  584. </span>
  585. <el-input ref="measurementRef" step="0.01" style="width: 106%;"
  586. v-model="assemblyForm.measurement" size="small" autocomplete="off"
  587. :disabled="detailData.seeDisabled" @input="floatingInput($event, 'measurement')"
  588. @focus="quantityFocus" clearable placeholder="请输入尺码/体积"></el-input>
  589. </el-form-item>
  590. </el-col>
  591. </el-row>
  592. <el-row>
  593. <el-col :span="12">
  594. <el-form-item label="签单方式" prop="issueType" label-width="80px">
  595. <span slot="label">
  596. <span style="color: #1e9fff">{{ $t("sea118n.issueType") }}</span>
  597. </span>
  598. <dic-select v-model="assemblyForm.issueType" placeholder="签单方式" key="dictKey"
  599. label="dictValue" keyValue="dictKey"
  600. url="/blade-system/dict-biz/dictionary?code=issue_type_F" :filterable="true"
  601. :disabled="detailData.seeDisabled" :initData="true"></dic-select>
  602. </el-form-item>
  603. </el-col>
  604. <el-col :span="12">
  605. <el-form-item label="签单日期" prop="issueDate" label-width="60px">
  606. <span slot="label">
  607. <span style="color: #1e9fff">{{ $t("sea118n.issueDate") }}</span>
  608. </span>
  609. <el-date-picker style="width: 100%;" v-model="assemblyForm.issueDate" clearable
  610. type="date" size="small" :disabled="detailData.seeDisabled"
  611. value-format="yyyy-MM-dd" placeholder="选择日期">
  612. </el-date-picker>
  613. </el-form-item>
  614. </el-col>
  615. </el-row>
  616. <el-row>
  617. <el-col>
  618. <el-form-item label="ETA" prop="eta" label-width="80px">
  619. <span slot="label">
  620. <span style="color: #1e9fff">ETA</span>
  621. </span>
  622. <el-date-picker v-model="assemblyForm.eta" type="date" style="width: 100%;"
  623. value-format="yyyy-MM-dd" size="small"
  624. :disabled="detailData.seeDisabled || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
  625. placeholder="请选择时间">
  626. </el-date-picker>
  627. </el-form-item>
  628. </el-col>
  629. </el-row>
  630. <el-row>
  631. <el-col :span="13">
  632. <el-form-item label="ATD" prop="actualEtd" label-width="80px">
  633. <span slot="label">
  634. <span style="color: #1e9fff">ATD</span>
  635. </span>
  636. <el-date-picker style="width: 100%;" v-model="assemblyForm.actualEtd" clearable
  637. type="date" size="small"
  638. :disabled="detailData.seeDisabled || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
  639. value-format="yyyy-MM-dd" placeholder="选择日期">
  640. </el-date-picker>
  641. </el-form-item>
  642. </el-col>
  643. <el-col :span="11">
  644. <el-form-item label="ATA" prop="actualEta" label-width="40px">
  645. <span slot="label">
  646. <span style="color: #1e9fff">ATA</span>
  647. </span>
  648. <el-date-picker v-model="assemblyForm.actualEta" type="date" style="width: 100%;"
  649. value-format="yyyy-MM-dd" size="small" :disabled="detailData.seeDisabled"
  650. placeholder="请选择时间">
  651. </el-date-picker>
  652. </el-form-item>
  653. </el-col>
  654. </el-row>
  655. <el-row>
  656. <el-col :span="12">
  657. <el-form-item label="所属公司" prop="branchName" label-width="80px">
  658. <span slot="label">
  659. <span style="color: #1e9fff">{{ $t("sea118n.branchName") }}</span>
  660. </span>
  661. <dic-select v-model="assemblyForm.branchName" placeholder="所属公司" key="id"
  662. label="deptName" url="/blade-system/dept/top-list" :filterable="true"
  663. :remote="true" dataName="deptName"
  664. @selectChange="dicChange('branchName', $event)"
  665. :disabled="detailData.seeDisabled || !(roleName.includes('admin') || roleName.includes('总部')) || assemblyForm.feeCenterListD.filter(item => item.auditStatus > 0).length || assemblyForm.feeCenterListC.filter(item => item.auditStatus > 0).length"></dic-select>
  666. </el-form-item>
  667. </el-col>
  668. <el-col :span="12">
  669. <el-form-item label="付款方式" prop="hpaymode" label-width="80px">
  670. <span slot="label">
  671. <span style="color: #1e9fff">{{ $t("sea118n.payment") }}</span>
  672. </span>
  673. <dic-select v-model="assemblyForm.hpaymode" placeholder="付款方式" key="dictKey"
  674. label="dictValue" keyValue="dictKey"
  675. url="/blade-system/dict-biz/dictionary?code=payment_method_los"
  676. :filterable="true" :disabled="detailData.seeDisabled"></dic-select>
  677. </el-form-item>
  678. </el-col>
  679. </el-row>
  680. <el-row>
  681. <el-col :span="12">
  682. <el-form-item label="OP" prop="operatorName" label-width="80px"
  683. :rules="[{ required: true, message: ' ', trigger: 'blur' }]">
  684. <span slot="label">
  685. <span style="color: #1e9fff">OP</span>
  686. </span>
  687. <dic-select v-model="assemblyForm.operatorName" placeholder="OP"
  688. :key="assemblyForm.branchId" label="realName"
  689. :url="'/blade-user/userListAll?roleAlias=操作员&deptId=' + assemblyForm.branchId"
  690. :filterable="true" dataName="realName"
  691. @selectChange="dicChange('operatorName', $event)"
  692. :disabled="detailData.seeDisabled || assemblyForm.feeCenterListD.filter(item => item.auditStatus > 0).length || assemblyForm.feeCenterListC.filter(item => item.auditStatus > 0).length"></dic-select>
  693. </el-form-item>
  694. </el-col>
  695. <el-col :span="12">
  696. <el-form-item label="客服" prop="customerServiceName" label-width="50px"
  697. :rules="[{ required: true, message: ' ', trigger: 'blur' }]">
  698. <span slot="label">
  699. <span style="color: #1e9fff">{{ $t("sea118n.customerService") }}</span>
  700. </span>
  701. <dic-select v-model="assemblyForm.customerServiceName" placeholder="客服"
  702. :key="assemblyForm.branchId" label="realName"
  703. :url="'/blade-user/userListAll?roleAlias=客服&deptId=' + assemblyForm.branchId"
  704. :filterable="true" dataName="realName"
  705. @selectChange="dicChange('customerServiceName', $event)"
  706. :disabled="detailData.seeDisabled || assemblyForm.feeCenterListD.filter(item => item.auditStatus > 0).length || assemblyForm.feeCenterListC.filter(item => item.auditStatus > 0).length"></dic-select>
  707. </el-form-item>
  708. </el-col>
  709. </el-row>
  710. <el-row>
  711. <el-col>
  712. <el-form-item label="签单地点" prop="issueAt" label-width="80px">
  713. <span slot="label">
  714. <span style="color: #1e9fff">{{ $t("sea118n.issuePlace") }}</span>
  715. </span>
  716. <search-query :datalist="issueAtData" :selectValue="assemblyForm.issueAt"
  717. :filterable="true" :clearable="true" :remote="true"
  718. :disabled="detailData.seeDisabled" :buttonIf="false"
  719. :forParameter="{ key: 'id', label: 'enName', value: 'enName' }"
  720. placeholder="请选择签单地点" @remoteMethod="remoteMethod($event, 'issueAt')"
  721. @corpChange="corpChange($event, 'issueAt')"
  722. @corpFocus="remoteMethod($event, 'issueAt')">
  723. </search-query>
  724. </el-form-item>
  725. </el-col>
  726. </el-row>
  727. <el-row>
  728. <el-form-item label="订舱备注" prop="cyRemarks" label-width="80px">
  729. <span slot="label">
  730. <span style="color: #1e9fff">{{ $t("sea118n.bookRemarks") }}</span>
  731. </span>
  732. <el-input type="textarea" style="width: 100%;" v-model="assemblyForm.cyRemarks"
  733. size="small" autocomplete="off"
  734. :disabled="detailData.seeDisabled || generateBillsfalse" rows="2" clearable
  735. placeholder="请输入场站备注" @change="textareaBlur('cyRemarks')"></el-input>
  736. </el-form-item>
  737. </el-row>
  738. <el-row>
  739. <el-form-item label="SI备注" prop="siRemarks" label-width="80px">
  740. <span slot="label">
  741. <span style="color: #1e9fff">{{ $t("sea118n.siRemarks") }}</span>
  742. </span>
  743. <el-input type="textarea" style="width: 100%;" v-model="assemblyForm.siRemarks"
  744. size="small" autocomplete="off" :disabled="detailData.seeDisabled" rows="3"
  745. clearable placeholder="请输入SI备注" @change="textareaBlur('siRemarks')"></el-input>
  746. </el-form-item>
  747. </el-row>
  748. </el-col>
  749. </el-col>
  750. </el-row>
  751. <el-row>
  752. <el-col :span="6">
  753. <el-form-item label="POL场站" prop="cyCnName">
  754. <span slot="label">
  755. <span style="color: #4c9e44;cursor: pointer;text-decoration: underline"
  756. @click="emailJump('cy')">POLCY</span>
  757. </span>
  758. <!-- :disabled="detailData.seeDisabled || generateBillsfalse" :buttonIf="false"-->
  759. <search-query :datalist="cyData" :selectValue="assemblyForm.cyCnName" :filterable="true"
  760. :clearable="true" :remote="true" :disabled="detailData.seeDisabled"
  761. :forParameter="{ key: 'id', label: 'cnName', value: 'cnName' }" placeholder="请选择场站"
  762. @remoteMethod="remoteMethod($event, 'cy')" @corpChange="corpChange($event, 'cy')"
  763. @corpFocus="remoteMethod($event, 'cy')">
  764. </search-query>
  765. </el-form-item>
  766. </el-col>
  767. <el-col :span="6">
  768. <el-form-item label="联系人" prop="cyContacts">
  769. <span slot="label">
  770. <span style="color: #1e9fff">联系人</span>
  771. </span>
  772. <!--<el-input type="age" style="width: 100%;" v-model="assemblyForm.cyContacts"-->
  773. <!-- size="small" autocomplete="off"-->
  774. <!-- :disabled="detailData.seeDisabled || generateBillsfalse"-->
  775. <!-- clearable placeholder="请输入联系人" ></el-input>-->
  776. <search-query :datalist="cyContactsData" :selectValue="assemblyForm.cyContacts"
  777. :filterable="true" :clearable="true"
  778. :disabled="detailData.seeDisabled || generateBillsfalse || !assemblyForm.cyCnName"
  779. :buttonIf="false" :forParameter="{ key: 'id', label: 'cname', value: 'cname' }"
  780. placeholder="联系人" @corpChange="corpChange($event, 'cyContacts')"
  781. @corpFocus="remoteMethod($event, 'cyContacts')">
  782. </search-query>
  783. </el-form-item>
  784. </el-col>
  785. <el-col :span="6">
  786. <el-form-item label="电话" prop="cyTel">
  787. <span slot="label">
  788. <span style="color: #1e9fff">电话</span>
  789. </span>
  790. <el-input type="age" style="width: 100%;" v-model="assemblyForm.cyTel" size="small"
  791. autocomplete="off"
  792. :disabled="detailData.seeDisabled || generateBillsfalse || !assemblyForm.cyCnName" clearable
  793. placeholder="电话"></el-input>
  794. </el-form-item>
  795. </el-col>
  796. <el-col :span="6">
  797. <el-form-item label="地址" prop="cyAddress">
  798. <span slot="label">
  799. <span style="color: #1e9fff">地址</span>
  800. </span>
  801. <el-input type="age" style="width: 100%;" v-model="assemblyForm.cyAddress" size="small"
  802. autocomplete="off"
  803. :disabled="detailData.seeDisabled || generateBillsfalse || !assemblyForm.cyCnName" clearable
  804. placeholder="地址"></el-input>
  805. </el-form-item>
  806. </el-col>
  807. </el-row>
  808. <!-- <el-row>
  809. <el-col :span="6">
  810. <el-form-item label="POD场站" prop="podCyCnName">
  811. <span slot="label">
  812. <span style="color: #4c9e44;cursor: pointer;text-decoration: underline"
  813. @click="emailJump('cy')">POD场站</span>
  814. </span>
  815. <search-query :datalist="podCyData" :selectValue="assemblyForm.podCyCnName" :filterable="true"
  816. :clearable="true" :remote="true" :disabled="detailData.seeDisabled"
  817. :forParameter="{ key: 'id', label: 'cnName', value: 'cnName' }" placeholder="请选择场站"
  818. @remoteMethod="remoteMethod($event, 'podCyCnName')"
  819. @corpChange="corpChange($event, 'podCyCnName')"
  820. @corpFocus="remoteMethod($event, 'podCyCnName')">
  821. </search-query>
  822. </el-form-item>
  823. </el-col>
  824. <el-col :span="6">
  825. <el-form-item label="联系人" prop="podCyCnNameData">
  826. <span slot="label">
  827. <span style="color: #1e9fff">联系人</span>
  828. </span>
  829. <search-query :datalist="podCyCnNameData" :selectValue="assemblyForm.podCyContacts"
  830. :filterable="true" :clearable="true"
  831. :disabled="detailData.seeDisabled || generateBillsfalse || !assemblyForm.podCyCnName"
  832. :buttonIf="false" :forParameter="{ key: 'id', label: 'cname', value: 'cname' }"
  833. placeholder="联系人" @corpChange="corpChange($event, 'podCyContacts')"
  834. @corpFocus="remoteMethod($event, 'podCyContacts')">
  835. </search-query>
  836. </el-form-item>
  837. </el-col>
  838. <el-col :span="6">
  839. <el-form-item label="电话" prop="podCyTel">
  840. <span slot="label">
  841. <span style="color: #1e9fff">电话</span>
  842. </span>
  843. <el-input type="age" style="width: 100%;" v-model="assemblyForm.podCyTel" size="small"
  844. autocomplete="off"
  845. :disabled="detailData.seeDisabled || generateBillsfalse || !assemblyForm.podCyCnName"
  846. clearable placeholder="电话"></el-input>
  847. </el-form-item>
  848. </el-col>
  849. <el-col :span="6">
  850. <el-form-item label="地址" prop="podCyAddress">
  851. <span slot="label">
  852. <span style="color: #1e9fff">地址</span>
  853. </span>
  854. <el-input type="age" style="width: 100%;" v-model="assemblyForm.podCyAddress" size="small"
  855. autocomplete="off"
  856. :disabled="detailData.seeDisabled || generateBillsfalse || !assemblyForm.podCyCnName"
  857. clearable placeholder="地址"></el-input>
  858. </el-form-item>
  859. </el-col>
  860. </el-row>-->
  861. <el-row>
  862. <el-col :span="6">
  863. <el-form-item label="集港码头" prop="portTerminalCyCnName">
  864. <span slot="label">
  865. <span style="color: #1e9fff">集港码头</span>
  866. </span>
  867. <search-query :datalist="portTerminalData" :selectValue="assemblyForm.portTerminalCyCnName"
  868. :filterable="true" :clearable="true" :remote="true" :disabled="detailData.seeDisabled"
  869. :forParameter="{ key: 'id', label: 'cnName', value: 'cnName' }" placeholder="请选择集港码头"
  870. @remoteMethod="remoteMethod($event, 'portTerminalCyCnName')"
  871. @corpChange="corpChange($event, 'portTerminalCyCnName')"
  872. @corpFocus="remoteMethod($event, 'portTerminalCyCnName')">
  873. </search-query>
  874. </el-form-item>
  875. </el-col>
  876. <el-col :span="6">
  877. <el-form-item label="联系人" prop="portTerminalCyContacts">
  878. <span slot="label">
  879. <span style="color: #1e9fff">联系人</span>
  880. </span>
  881. <search-query :datalist="portTerminalCyContactsData"
  882. :selectValue="assemblyForm.portTerminalCyContacts" :filterable="true" :clearable="true"
  883. :disabled="detailData.seeDisabled || generateBillsfalse || !assemblyForm.portTerminalCyCnName"
  884. :buttonIf="false" :forParameter="{ key: 'id', label: 'cname', value: 'cname' }"
  885. placeholder="联系人" @corpChange="corpChange($event, 'portTerminalCyContacts')"
  886. @corpFocus="remoteMethod($event, 'portTerminalCyContacts')">
  887. </search-query>
  888. </el-form-item>
  889. </el-col>
  890. <el-col :span="6">
  891. <el-form-item label="电话" prop="portTerminalCyTel">
  892. <span slot="label">
  893. <span style="color: #1e9fff">电话</span>
  894. </span>
  895. <el-input type="age" style="width: 100%;" v-model="assemblyForm.portTerminalCyTel" size="small"
  896. autocomplete="off"
  897. :disabled="detailData.seeDisabled || generateBillsfalse || !assemblyForm.portTerminalCyCnName"
  898. clearable placeholder="电话"></el-input>
  899. </el-form-item>
  900. </el-col>
  901. <el-col :span="6">
  902. <el-form-item label="地址" prop="portTerminalCyAddress">
  903. <span slot="label">
  904. <span style="color: #1e9fff">地址</span>
  905. </span>
  906. <el-input type="age" style="width: 100%;" v-model="assemblyForm.portTerminalCyAddress"
  907. size="small" autocomplete="off"
  908. :disabled="detailData.seeDisabled || generateBillsfalse || !assemblyForm.portTerminalCyCnName"
  909. clearable placeholder="地址"></el-input>
  910. </el-form-item>
  911. </el-col>
  912. </el-row>
  913. <el-row>
  914. <el-col :span="12">
  915. <precontainers :assemblyForm="assemblyForm" :seeDisabled="detailData.seeDisabled"
  916. :pid="assemblyForm.id" @billsDetailfun="billsDetailfun">
  917. </precontainers>
  918. </el-col>
  919. <el-col :span="12">
  920. <el-row>
  921. <el-col :span="12">
  922. <el-form-item label="箱属" prop="boxBelongsTo">
  923. <span slot="label">
  924. <span style="color: #1e9fff">箱属</span>
  925. </span>
  926. <div>
  927. <dic-select v-model="assemblyForm.boxBelongsTo" placeholder="箱属" key="dictKey"
  928. label="dictValue" url="/blade-system/dict-biz/dictionary?code=boxBelongsTo"
  929. :filterable="true" :disabled="detailData.seeDisabled"></dic-select>
  930. </div>
  931. </el-form-item>
  932. </el-col>
  933. <el-col :span="12">
  934. <el-form-item label="服务方式" prop="serviceTerms">
  935. <span slot="label">
  936. <span style="color: #1e9fff">服务方式</span>
  937. </span>
  938. <search-query :datalist="serviceTermsData" :selectValue="assemblyForm.serviceTerms"
  939. :clearable="true" :disabled="detailData.seeDisabled" :buttonIf="false"
  940. :forParameter="{ key: 'id', label: 'code', value: 'code' }" placeholder="请选择服务方式"
  941. @remoteMethod="remoteMethod($event, 'serviceTerms')"
  942. @corpChange="corpChange($event, 'serviceTerms')"
  943. @corpFocus="remoteMethod($event, 'serviceTerms')">
  944. </search-query>
  945. </el-form-item>
  946. </el-col>
  947. </el-row>
  948. <el-row>
  949. <el-col :span="12">
  950. <el-form-item label="截单时间" prop="cyTrailerTime">
  951. <span slot="label">
  952. <span style="color: #1e9fff">截单时间</span>
  953. </span>
  954. <el-date-picker v-model="assemblyForm.cyTrailerTime" type="datetime"
  955. style="width: 100%;" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
  956. size="small"
  957. :disabled="detailData.seeDisabled || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
  958. placeholder="请选择截单时间">
  959. </el-date-picker>
  960. </el-form-item>
  961. </el-col>
  962. <el-col :span="12">
  963. <el-form-item label="截港时间" prop="cyReturnTime">
  964. <span slot="label">
  965. <span style="color: #1e9fff">截港时间</span>
  966. </span>
  967. <el-date-picker v-model="assemblyForm.cyReturnTime" type="datetime" style="width: 100%;"
  968. format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss" size="small"
  969. :disabled="detailData.seeDisabled || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
  970. placeholder="请选择截港时间">
  971. </el-date-picker>
  972. </el-form-item>
  973. </el-col>
  974. </el-row>
  975. <el-row>
  976. <el-col :span="12">
  977. <el-form-item label="船代" prop="shippingAgencyCname">
  978. <span slot="label">
  979. <span style="color: #1e9fff">船代</span>
  980. </span>
  981. <div>
  982. <dic-select v-model="assemblyForm.shippingAgencyCname" placeholder="船代" key="id"
  983. label="shortName" res="records"
  984. url="/blade-los/bcorps/selectList?current=1&size=5&corpTypeName=船代"
  985. :filterable="true" :remote="true" dataName="shortName"
  986. @selectChange="dicChange('shippingAgencyCname', $event)" :slotRight="true"
  987. rightLabel="code"
  988. :disabled="detailData.seeDisabled || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"></dic-select>
  989. </div>
  990. </el-form-item>
  991. </el-col>
  992. <el-col :span="12">
  993. <el-form-item label="订舱代理" prop="bookingAgentCnName">
  994. <span slot="label">
  995. <span style="color: #1e9fff">订舱代理</span>
  996. </span>
  997. <search-query :datalist="bookingAgentData"
  998. :selectValue="assemblyForm.bookingAgentCnName" :filterable="true" :clearable="true"
  999. :remote="true"
  1000. :disabled="detailData.seeDisabled || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
  1001. :buttonIf="false" placeholder="请选择订舱代理"
  1002. :forParameter="{ key: 'id', label: 'cnName', value: 'cnName' }"
  1003. @remoteMethod="remoteMethod($event, 'bookingAgent')"
  1004. @corpChange="corpChange($event, 'bookingAgent')"
  1005. @corpFocus="remoteMethod($event, 'bookingAgent')">
  1006. </search-query>
  1007. </el-form-item>
  1008. </el-col>
  1009. </el-row>
  1010. <el-row>
  1011. <el-col :span="12">
  1012. <el-form-item label="舱位类型" prop="cabinType">
  1013. <span slot="label">
  1014. <span style="color: #1e9fff">舱位类型</span>
  1015. </span>
  1016. <el-row>
  1017. <el-col :span="12">
  1018. <dic-select v-model="assemblyForm.cabinType" placeholder="舱位类型" key="id"
  1019. label="dictValue" url="/blade-system/dict-biz/dictionary?code=cabinType"
  1020. :disabled="detailData.seeDisabled"
  1021. @selectChange="dicChange('cabinType', $event)"></dic-select>
  1022. </el-col>
  1023. <el-col :span="11" :offset="1">
  1024. <div>
  1025. <dic-select
  1026. v-show="assemblyForm.cabinType == '固定' || !assemblyForm.cabinType"
  1027. v-model="assemblyForm.cabinTypeData" key="id" label="dictValue"
  1028. placeholder="数据"
  1029. url="/blade-system/dict-biz/dictionary?code=cabinTypeData_1"
  1030. :disabled="detailData.seeDisabled || !assemblyForm.cabinType"></dic-select>
  1031. <dic-select v-show="assemblyForm.cabinType == '非固定'"
  1032. v-model="assemblyForm.cabinTypeData" key="id" label="dictValue"
  1033. placeholder="数据"
  1034. url="/blade-system/dict-biz/dictionary?code=cabinTypeData_2"
  1035. :disabled="detailData.seeDisabled"></dic-select>
  1036. </div>
  1037. </el-col>
  1038. </el-row>
  1039. </el-form-item>
  1040. </el-col>
  1041. <el-col :span="12">
  1042. <el-form-item label="舱位数" prop="shippingSpaceNumber">
  1043. <span slot="label">
  1044. <span style="color: #1e9fff">舱位数</span>
  1045. </span>
  1046. <el-input v-model="assemblyForm.shippingSpaceNumber" size="small" :controls="false"
  1047. style="width: 100%;" placeholder="请输入舱位数"
  1048. :disabled="detailData.seeDisabled"></el-input>
  1049. </el-form-item>
  1050. </el-col>
  1051. </el-row>
  1052. <el-row>
  1053. <el-col :span="12">
  1054. <el-form-item label="接单状态" prop="billOfLadingStatus">
  1055. <span slot="label">
  1056. <span style="color: #1e9fff">接单状态</span>
  1057. </span>
  1058. <dic-select v-model="assemblyForm.billOfLadingStatus" placeholder="接单状态" key="id"
  1059. label="dictValue" url="/blade-system/dict-biz/dictionary?code=billOfLadingStatus"
  1060. :disabled="detailData.seeDisabled"></dic-select>
  1061. </el-form-item>
  1062. </el-col>
  1063. <el-col :span="12">
  1064. <el-form-item label="邮箱" prop="fileEmail">
  1065. <span slot="label">
  1066. <span style="color: #1e9fff">邮箱</span>
  1067. </span>
  1068. <el-input style="width: 100%;" size="small" v-model="assemblyForm.fileEmail"
  1069. :disabled="detailData.seeDisabled" placeholder="文件联络人邮箱"></el-input>
  1070. </el-form-item>
  1071. </el-col>
  1072. </el-row>
  1073. </el-col>
  1074. </el-row>
  1075. </el-form>
  1076. <el-dialog title="第二通知人" :visible.sync="hnotify2Visible" width="50%" append-to-body
  1077. :before-close="hnotify2HandleClose">
  1078. <div>
  1079. <el-form :model="assemblyForm" ref="form" label-width="60px">
  1080. <el-row :gutter="20">
  1081. <el-col :span="12">
  1082. <el-form-item label="通知人" prop="hnotify2CnName">
  1083. <search-query :datalist="hnotify2Data" :selectValue="assemblyForm.detail.hnotify2CnName"
  1084. :joinData="true" :filterable="true" :clearable="true" :remote="true"
  1085. :disabled="detailData.seeDisabled" :buttonIf="false"
  1086. :forParameter="{ key: 'id', short: 'code', label: 'cnName', value: 'cnName' }"
  1087. placeholder="请选择通知人" @remoteMethod="remoteMethod($event, 'hnotify2')"
  1088. @corpChange="corpChange($event, 'hnotify2')"
  1089. @corpFocus="remoteMethod($event, 'hnotify2')">
  1090. </search-query>
  1091. </el-form-item>
  1092. </el-col>
  1093. <el-col :span="12">
  1094. <el-form-item label="国家" prop="hnotify2CntyName">
  1095. <el-input type="age" style="width: 100%;" v-model="assemblyForm.detail.hnotify2CntyName"
  1096. size="small" autocomplete="off" :disabled="detailData.seeDisabled" clearable
  1097. placeholder="国家"></el-input>
  1098. </el-form-item>
  1099. </el-col>
  1100. <el-col :span="24">
  1101. <el-form-item label="提单描述" prop="hnotify2Details">
  1102. <el-input type="textarea" style="width: 100%;"
  1103. v-model="assemblyForm.detail.hnotify2Details" size="small" autocomplete="off"
  1104. :disabled="detailData.seeDisabled" rows="4" clearable placeholder="请输入通知人提单描述"
  1105. @change="textareaBlur('hnotify2Details')"></el-input>
  1106. </el-form-item>
  1107. </el-col>
  1108. </el-row>
  1109. </el-form>
  1110. </div>
  1111. <span slot="footer" class="dialog-footer">
  1112. <el-button type="danger" @click="hnotify2Cancellation('清除')">清 除</el-button>
  1113. <el-button type="primary" @click="hnotify2Visible = false">确 定</el-button>
  1114. </span>
  1115. </el-dialog>
  1116. <el-dialog title="危险品" :visible.sync="dgVisible" width="50%" append-to-body :before-close="hnotify2HandleClose">
  1117. <div>
  1118. <el-form :model="assemblyForm" ref="form" label-width="120px">
  1119. <el-row :gutter="20">
  1120. <el-col :span="12">
  1121. <el-form-item label="危险品类别" prop="dgImdgCode">
  1122. <!-- <el-input type="age" style="width: 100%;" v-model="assemblyForm.dgImdgCode" size="small"
  1123. autocomplete="off" :disabled="detailData.seeDisabled" clearable
  1124. placeholder="请输入危险品类别"></el-input> -->
  1125. <!-- -->
  1126. <dic-select v-model="assemblyForm.dgImdgCode" placeholder="危险品类别" key="dictKey"
  1127. label="dictKey" keyValue="dictKey"
  1128. url="/blade-system/dict-biz/dictionary?code=dg_imdg_code" :filterable="true"
  1129. :disabled="detailData.seeDisabled" :diySlot="true"></dic-select>
  1130. </el-form-item>
  1131. </el-col>
  1132. <el-col :span="12">
  1133. <el-form-item label="危险代码(IMO)" prop="dgUnCode">
  1134. <el-input type="age" style="width: 100%;" v-model="assemblyForm.dgUnCode" size="small"
  1135. autocomplete="off" :disabled="detailData.seeDisabled" clearable
  1136. placeholder="请输入危险代码(IMO)"></el-input>
  1137. </el-form-item>
  1138. </el-col>
  1139. <el-col :span="12">
  1140. <el-form-item label="危险品包装等级" prop="dgPackingLevel">
  1141. <search-query :datalist="dgPackingLevelData" :selectValue="assemblyForm.dgPackingLevel"
  1142. :disabled="detailData.seeDisabled" :buttonIf="false"
  1143. :forParameter="{ key: 'dictKey', label: 'dictValue', value: 'dictKey' }"
  1144. placeholder="请输入危险品包装等级" @corpChange="corpChange($event, 'dgPackingLevel')"
  1145. @corpFocus="dgPackingLevelWorkDicts">
  1146. </search-query>
  1147. </el-form-item>
  1148. </el-col>
  1149. <el-col :span="12">
  1150. <el-form-item label="" prop="dgFlashPoint">
  1151. </el-form-item>
  1152. </el-col>
  1153. <el-col :span="12">
  1154. <el-form-item label="易燃易爆品闪点" prop="dgFlashPoint">
  1155. <el-input type="age" style="width: 100%;" v-model="assemblyForm.dgFlashPoint"
  1156. size="small" autocomplete="off" :disabled="detailData.seeDisabled"
  1157. @input="dgFlashPointInput" clearable placeholder="请输入易燃易爆品闪点"></el-input>
  1158. </el-form-item>
  1159. </el-col>
  1160. <el-col :span="12">
  1161. <el-form-item label="易燃易爆品闪点单位" prop="dgFlashPointUnit">
  1162. <el-input type="age" style="width: 100%;" v-model="assemblyForm.dgFlashPointUnit"
  1163. size="small" autocomplete="off" :disabled="detailData.seeDisabled" clearable
  1164. placeholder="请输入易燃易爆品闪点单位"></el-input>
  1165. </el-form-item>
  1166. </el-col>
  1167. <el-col :span="12">
  1168. <el-form-item label="危险品联系人" prop="dgContacts">
  1169. <el-input type="age" style="width: 100%;" v-model="assemblyForm.dgContacts" size="small"
  1170. autocomplete="off" :disabled="detailData.seeDisabled" clearable
  1171. placeholder="请输入危险品联系人"></el-input>
  1172. </el-form-item>
  1173. </el-col>
  1174. <el-col :span="12">
  1175. <el-form-item label="危险品联系人电话" prop="dgTel">
  1176. <el-input type="age" style="width: 100%;" v-model="assemblyForm.dgTel" size="small"
  1177. autocomplete="off" :disabled="detailData.seeDisabled" clearable
  1178. placeholder="请输入危险品联系人电话"></el-input>
  1179. </el-form-item>
  1180. </el-col>
  1181. <el-col :span="12">
  1182. <el-form-item label="危险品净重" prop="dgTel">
  1183. <el-input type="age" style="width: 100%;" v-model="assemblyForm.dgNetWeight"
  1184. size="small" autocomplete="off" :disabled="detailData.seeDisabled" clearable
  1185. placeholder="请输入危险品净重"></el-input>
  1186. </el-form-item>
  1187. </el-col>
  1188. <el-col :span="12">
  1189. <el-form-item label="危险品外包装" prop="dgTel">
  1190. <el-input type="age" style="width: 100%;" v-model="assemblyForm.dgPackage" size="small"
  1191. autocomplete="off" :disabled="detailData.seeDisabled" clearable
  1192. placeholder="请输入危险品外包装"></el-input>
  1193. </el-form-item>
  1194. </el-col>
  1195. <el-col :span="12">
  1196. <el-form-item label="危险品邮箱" prop="dgTel">
  1197. <el-input type="age" style="width: 100%;" v-model="assemblyForm.dgMailbox" size="small"
  1198. autocomplete="off" :disabled="detailData.seeDisabled" clearable
  1199. placeholder="请输入危险品邮箱"></el-input>
  1200. </el-form-item>
  1201. </el-col>
  1202. <el-col :span="12">
  1203. <el-form-item label="危险品备注" prop="dgTel">
  1204. <el-input type="age" style="width: 100%;" v-model="assemblyForm.dgRemarks" size="small"
  1205. autocomplete="off" :disabled="detailData.seeDisabled" clearable
  1206. placeholder="请输入危险品备注"></el-input>
  1207. </el-form-item>
  1208. </el-col>
  1209. <el-col :span="12">
  1210. <el-form-item label="是否海洋污染物" prop="dgIsMarinePollutant">
  1211. <el-checkbox size="medium" :true-label="1" :false-label="0"
  1212. v-model="assemblyForm.dgIsMarinePollutant"></el-checkbox>
  1213. </el-form-item>
  1214. </el-col>
  1215. </el-row>
  1216. </el-form>
  1217. </div>
  1218. <span slot="footer" class="dialog-footer">
  1219. <el-button type="danger" @click="dgCancellation('清除')">清 除</el-button>
  1220. <el-button type="primary" @click="dgVisible = false">确 定</el-button>
  1221. </span>
  1222. </el-dialog>
  1223. </div>
  1224. </template>
  1225. <script>
  1226. import precontainers
  1227. from "@/views/iosBasicData/SeafreightExportF/bills/assembly/EntrustmentLnformation/precontainers.vue";
  1228. import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
  1229. import { getBcorpslistByType, getBcorpsDetail } from "@/api/iosBasicData/bcorps";
  1230. import { bportsList } from "@/api/iosBasicData/bports";
  1231. import { bpackagesList } from "@/api/iosBasicData/bpackages";
  1232. import { bcommodityList } from "@/api/iosBasicData/bcommodity";
  1233. import { getBvesselsList } from "@/api/iosBasicData/bvessels";
  1234. import { blinesList } from "@/api/iosBasicData/blines";
  1235. import { bcorpstypedefineList } from "@/api/iosBasicData/bcorpstypedefine";
  1236. import bcorpstypedefine from "@/views/iosBasicData/bcorps/bcorpstypedefine.vue";
  1237. import { textareaWrap } from "@/util/messageReminder";
  1238. import emailhash from '@/views/iosBasicData/SeafreightExportF/bills/assembly/Jsonfile/emailhash.json'
  1239. import bcorps from "@/views/iosBasicData/bcorps/index.vue";
  1240. import { NdayDate } from "@/util/date";
  1241. import { regularFloating, regularInteger } from "@/util/regularJudgment";
  1242. import { getBcorpsattnList } from "@/api/iosBasicData/bcorpsattn";
  1243. import { getWorkDicts } from "@/api/system/dictbiz";
  1244. import { bportsDetail } from "@/api/iosBasicData/bports";
  1245. import { bpackagesDetail } from "@/api/iosBasicData/bpackages";
  1246. import { getBvesselsDetail } from "@/api/iosBasicData/bvessels";
  1247. import { blinesDetail } from "@/api/iosBasicData/blines";
  1248. import { synchronizationExchangeRate } from "@/api/iosBasicData/rateManagement";
  1249. import { isProcurement } from "@/api/basicData/configuration";
  1250. import { getDeptLazyTree, getDeptTree, getLazyList } from "@/api/system/dept";
  1251. import { getBservicetermsList } from "@/api/iosBasicData/bserviceterms";
  1252. import { selectListLos } from "@/api/approval/processConfig";
  1253. import _ from "lodash";
  1254. import dicSelect from "@/components/dicSelect/main";
  1255. import TreeSelect from "@/components/iosbasic-data/TreeSelect.vue";
  1256. export default {
  1257. props: {
  1258. detailData: {
  1259. type: Object
  1260. },
  1261. assemblyForm: {
  1262. type: Object,
  1263. default: {}
  1264. },
  1265. saberUserInfo: {
  1266. type: Object,
  1267. default: {}
  1268. },
  1269. // 是否生成账单
  1270. generateBillsfalse: {
  1271. type: Boolean,
  1272. default: false
  1273. },
  1274. disabled: {
  1275. type: Boolean,
  1276. default: false
  1277. }
  1278. },
  1279. components: { TreeSelect, bcorps, SearchQuery, precontainers, bcorpstypedefine, dicSelect },
  1280. data() {
  1281. return {
  1282. issueAtData: [],
  1283. sourceTypeData: [
  1284. {
  1285. label: '公司',
  1286. value: 'OWN'
  1287. },
  1288. {
  1289. label: '代理',
  1290. value: 'AGENT'
  1291. },
  1292. {
  1293. label: '业务员',
  1294. value: 'SALES'
  1295. }
  1296. ],
  1297. srcData: [],
  1298. roleName: localStorage.getItem("roleName"),
  1299. dicTree: [],
  1300. textareaNumber: 5,
  1301. loading: false,
  1302. delData: [],
  1303. delOption: {
  1304. border: true,
  1305. align: 'center',
  1306. menu: false,
  1307. header: false,
  1308. column: [
  1309. {
  1310. label: '名称',
  1311. prop: 'name'
  1312. }, {
  1313. label: '键值',
  1314. prop: 'value'
  1315. }
  1316. ]
  1317. },
  1318. hsLoading: false,
  1319. // 设置当前时间选择的范围
  1320. etdPickerOptions: {
  1321. disabledDate(time) {
  1322. // 获取当前日期后的90天
  1323. // return time.getTime() < Date.now() || time.getTime() > Date.parse(NdayDate(90))
  1324. // 获取前后的45天 Date.parse(NdayDate(45))
  1325. let timeDay = localStorage.getItem("timeFrame") ? localStorage.getItem("timeFrame") : 45
  1326. return time.getTime() < Date.parse(NdayDate(-(timeDay))) || time.getTime() > Date.parse(NdayDate(timeDay - 1))
  1327. }
  1328. },
  1329. emailhash: emailhash, // 邮箱跳转地址
  1330. foreignAgencyData: [],
  1331. // 场站
  1332. cyData: [],
  1333. podCyData: [],
  1334. portTerminalData: [],
  1335. cyContactsData: [], // 场站联系人
  1336. podCyCnNameData: [],
  1337. portTerminalCyContactsData: [],
  1338. // 多选的数据
  1339. tabsMultipleChoice: [],
  1340. // 发货人数据
  1341. hshipperData: [],
  1342. // 收货人数据
  1343. hconsigneeData: [],
  1344. // 通知人
  1345. hnotifyData: [],
  1346. // 第二通知人
  1347. hnotify2Data: [],
  1348. // 通知人弹窗开启关闭
  1349. hnotify2Visible: false,
  1350. // 收货地
  1351. placeReceiptData: [],
  1352. // 装货港
  1353. polData: [],
  1354. // 卸货港
  1355. podData: [],
  1356. // 目的地
  1357. destinationData: [],
  1358. // 交货地
  1359. placeDeliveryData: [],
  1360. // 中转港
  1361. potData: [],
  1362. // 商品 HS-CODE
  1363. commodityData: [],
  1364. // 货物类别
  1365. cargoTypeData: [
  1366. {
  1367. label: '普货',
  1368. value: 'dry',
  1369. },
  1370. {
  1371. label: '危险品',
  1372. value: 'danger',
  1373. },
  1374. {
  1375. label: '冻柜',
  1376. value: 'reefer',
  1377. }
  1378. ],
  1379. // 危险品弹窗
  1380. dgVisible: false,
  1381. // 船公司数据
  1382. carrierData: [],
  1383. // 船名
  1384. vesselData: [],
  1385. // 包装
  1386. packingUnitData: [],
  1387. // 订舱代理数据
  1388. bookingAgentData: [],
  1389. // 航线
  1390. lineData: [],
  1391. // COLOADER
  1392. coloaderCnNameData: [],
  1393. // 危险品包装等级
  1394. dgPackingLevelData: [],
  1395. // 服务方式
  1396. serviceTermsData: [],
  1397. marksIndex: 1
  1398. }
  1399. },
  1400. created() {
  1401. isProcurement({ "param": "textarea.number" }).then(res => {
  1402. if (res.data.data) {
  1403. this.textareaNumber = res.data.data
  1404. }
  1405. })
  1406. // // 往来单位
  1407. // this.hshipperBcorpsListfun()
  1408. // this.hconsigneeBcorpsListfun()
  1409. // this.hnotifyBcorpsListfun()
  1410. // this.hnotify2BcorpsListfun()
  1411. // this.bookingAgentBcorpsListfun()
  1412. // // 港口接口
  1413. // this.placeReceiptBportsListfun()
  1414. // this.polBportsListfun()
  1415. // this.podBportsListfun()
  1416. // this.destinationBportsListfun()
  1417. // this.placeDeliveryBportsListfun()
  1418. // // 货物
  1419. // this.commodityBcommodityListfun()
  1420. // // 包装
  1421. // this.packingUnitBpackagesListfun()
  1422. // // 船公司
  1423. this.carrierBcorpslistByTypefun()
  1424. // // 船名
  1425. // this.vesselBvesselsListfun()
  1426. // // 航线
  1427. // this.lineBlinesListfun()
  1428. // 危险品包装等级
  1429. this.dgPackingLevelWorkDicts()
  1430. this.getHsCode()
  1431. // this.getDicTree()
  1432. },
  1433. methods: {
  1434. // 业务来源下拉
  1435. sourceCorp(value, name) {
  1436. if (name == 'srcCnName') {
  1437. if (!value) {
  1438. this.$set(this.assemblyForm, 'srcId', '')
  1439. this.$set(this.assemblyForm, 'srcCnName', '')
  1440. this.$set(this.assemblyForm, 'srcEnName', '')
  1441. }
  1442. for (let item of this.srcData) {
  1443. if (item[this.sourceforParameter.value] == value) {
  1444. if (this.assemblyForm.srcType == 'OWN') {
  1445. // 国家
  1446. this.$set(this.assemblyForm, 'srcId', item.id)
  1447. this.$set(this.assemblyForm, 'srcCnName', item.title)
  1448. this.$set(this.assemblyForm, 'srcEnName', item.title)
  1449. } else if (this.assemblyForm.srcType == 'AGENT') {
  1450. // 代理
  1451. this.$set(this.assemblyForm, 'srcId', item.id)
  1452. this.$set(this.assemblyForm, 'srcCnName', item.cnName)
  1453. this.$set(this.assemblyForm, 'srcEnName', item.cnName)
  1454. } else if (this.assemblyForm.srcType == 'SALES') {
  1455. // 业务员
  1456. this.$set(this.assemblyForm, 'srcId', item.id)
  1457. this.$set(this.assemblyForm, 'srcCnName', item.name)
  1458. this.$set(this.assemblyForm, 'srcEnName', item.name)
  1459. }
  1460. }
  1461. }
  1462. } else if (name == 'srcType') {
  1463. this.$set(this.assemblyForm, 'srcType', value)
  1464. this.$set(this.assemblyForm, 'srcId', '')
  1465. this.$set(this.assemblyForm, 'srcCnName', '')
  1466. this.$set(this.assemblyForm, 'srcEnName', '')
  1467. if (this.assemblyForm.srcType == 'OWN') {
  1468. this.sourceforParameter = { key: 'id', label: 'title', value: 'title' }
  1469. this.ownDeptLazyTreefun()
  1470. } else if (this.assemblyForm.srcType == 'AGENT') {
  1471. this.sourceforParameter = { key: 'id', label: 'cnName', value: 'cnName' }
  1472. this.agentBcorpsListfun()
  1473. } else if (this.assemblyForm.srcType == 'SALES') {
  1474. this.sourceforParameter = { key: 'id', label: 'name', value: 'name' }
  1475. this.salesUserGetListfun()
  1476. }
  1477. }
  1478. },
  1479. // 业务来源接口
  1480. sourceRemote(value, name) {
  1481. if (name == 'srcCnName') {
  1482. if (this.assemblyForm.srcType == 'OWN') {
  1483. this.sourceforParameter = { key: 'id', label: 'title', value: 'title' }
  1484. this.ownDeptLazyTreefun()
  1485. } else if (this.assemblyForm.srcType == 'AGENT') {
  1486. this.sourceforParameter = { key: 'id', label: 'cnName', value: 'cnName' }
  1487. this.agentBcorpsListfun(value)
  1488. } else if (this.assemblyForm.srcType == 'SALES') {
  1489. this.sourceforParameter = { key: 'id', label: 'name', value: 'name' }
  1490. this.salesUserGetListfun(value)
  1491. }
  1492. }
  1493. },
  1494. // 获取业务来源代理数据
  1495. agentBcorpsListfun(cnName) {
  1496. let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理,代理客户'
  1497. getBcorpslistByType(1, 10, { cnName, corpTypeName }).then(res => {
  1498. this.srcData = res.data.data.records
  1499. })
  1500. },
  1501. // 获取业务来源业务员数据
  1502. salesUserGetListfun(account) {
  1503. selectListLos('业务员').then(res => {
  1504. this.srcData = res.data.data
  1505. })
  1506. },
  1507. // 获取公司名称 用户管理左侧
  1508. ownDeptLazyTreefun() {
  1509. getDeptLazyTree(0).then(res => {
  1510. this.srcData = res.data.data
  1511. // 来源 内容 默认登录人所属公司
  1512. for (let item of this.srcData) {
  1513. if (item.id == JSON.parse(localStorage.getItem('saber-userInfo')).content.dept_id) {
  1514. this.$set(this.assemblyForm, 'srcId', item.id)
  1515. this.$set(this.assemblyForm, 'srcCnName', item.title)
  1516. this.$set(this.assemblyForm, 'srcEnName', item.title)
  1517. }
  1518. }
  1519. })
  1520. },
  1521. // 获取服务方式数据
  1522. serviceTermsWorkDicts() {
  1523. // getWorkDicts('service_terms').then(res=>{
  1524. // this.serviceTermsData = res.data.data
  1525. // })
  1526. getBservicetermsList(1, 20, { status: 0 }).then(res => {
  1527. this.serviceTermsData = res.data.data.records
  1528. })
  1529. },
  1530. getDicTree() {
  1531. let obj = {
  1532. eptId: this.saberUserInfo.dept_pid.split(',')[0]
  1533. }
  1534. getDeptTree(obj).then(res => {
  1535. res.data.data.forEach(item => {
  1536. item.label = item.title
  1537. })
  1538. this.dicTree = res.data.data
  1539. })
  1540. },
  1541. treeChange(val) {
  1542. for (let item of this.dicTree) {
  1543. if (item.title == val) {
  1544. this.assemblyForm.customerServiceName = item.title
  1545. this.assemblyForm.customerServiceId = item.id
  1546. }
  1547. }
  1548. },
  1549. //DEL监听
  1550. delShow(val, type) {
  1551. if (val) {
  1552. this.loading = true
  1553. this.delData = []
  1554. if (type == 1) {
  1555. bportsDetail(val).then(res => {
  1556. this.delData = res.data.data.extendedDataArr
  1557. }).finally(() => {
  1558. this.loading = false;
  1559. });
  1560. }
  1561. if (type == 2) {
  1562. bpackagesDetail(val).then(res => {
  1563. this.delData = res.data.data.extendedDataArr
  1564. }).finally(() => {
  1565. this.loading = false;
  1566. });
  1567. }
  1568. if (type == 3) {
  1569. getBvesselsDetail(val).then(res => {
  1570. this.delData = res.data.data.extendedDataArr
  1571. }).finally(() => {
  1572. this.loading = false;
  1573. });
  1574. }
  1575. if (type == 4) {
  1576. blinesDetail(val).then(res => {
  1577. this.delData = res.data.data.extendedDataArr
  1578. }).finally(() => {
  1579. this.loading = false;
  1580. });
  1581. }
  1582. } else {
  1583. this.delData = []
  1584. }
  1585. },
  1586. //ETD监听
  1587. handlePick(val) {
  1588. if (this.assemblyForm.id) {
  1589. this.$confirm('是否同步汇率, 是否继续?', '提示', {
  1590. confirmButtonText: '是',
  1591. cancelButtonText: '否',
  1592. type: 'warning'
  1593. }).then(() => {
  1594. let obj = {}
  1595. obj = {
  1596. date: this.assemblyForm.etd,
  1597. type: 1,
  1598. billId: this.assemblyForm.id
  1599. }
  1600. console.log(obj)
  1601. synchronizationExchangeRate(obj).then(res => {
  1602. this.billsDetailfun()
  1603. })
  1604. }).catch(() => {
  1605. let obj = {}
  1606. obj = {
  1607. date: this.assemblyForm.etd,
  1608. type: 0,
  1609. billId: this.assemblyForm.id
  1610. }
  1611. synchronizationExchangeRate(obj).then(res => {
  1612. this.billsDetailfun()
  1613. })
  1614. });
  1615. }
  1616. },
  1617. // 易燃易爆品闪点类型为数字
  1618. dgFlashPointInput(val) {
  1619. this.$set(this.assemblyForm, 'dgFlashPoint', regularInteger(val))
  1620. },
  1621. // 件数聚焦
  1622. quantityFocus() {
  1623. if (this.assemblyForm.containersList && this.assemblyForm.containersList.length) {
  1624. this.$alert('当前数据已经均分箱量,请撤销之后再修改', '提示', {
  1625. confirmButtonText: '确定',
  1626. });
  1627. this.$nextTick(() => {
  1628. this.$refs.quantityRef.blur()
  1629. this.$refs.grossWeightRef.blur()
  1630. this.$refs.measurementRef.blur()
  1631. })
  1632. return
  1633. // let num=0
  1634. // for(let item of this.assemblyForm.containersList){
  1635. // num+=Number(item.quantity)
  1636. // }
  1637. // if (Number(num) == 0) {
  1638. // this.$alert('当前数据已经均分箱量,请撤销之后再修改', '提示', {
  1639. // confirmButtonText: '确定',
  1640. // });
  1641. // this.$nextTick(() => {
  1642. // this.$refs.quantityRef.blur()
  1643. // this.$refs.grossWeightRef.blur()
  1644. // this.$refs.measurementRef.blur()
  1645. // })
  1646. // return
  1647. // }
  1648. }
  1649. },
  1650. // 件数监听
  1651. quantityInput(value) {
  1652. this.$set(this.assemblyForm, 'quantity', regularInteger(value))
  1653. },
  1654. // 正浮点数正则监听
  1655. floatingInput(value, name) {
  1656. this.$set(this.assemblyForm, name, regularFloating(value))
  1657. },
  1658. grossWeightChange(value) {
  1659. if (isNaN(Number(value))) {
  1660. this.$set(this.assemblyForm, 'grossWeight', 0)
  1661. } else {
  1662. this.$set(this.assemblyForm, 'grossWeight', Number(value).toFixed(3))
  1663. }
  1664. },
  1665. // 详情接口
  1666. billsDetailfun() {
  1667. this.$emit('billsDetailfun')
  1668. },
  1669. dicChange(name, row) {
  1670. if (name == 'cabinType') {
  1671. this.assemblyForm.cabinTypeData = null
  1672. }
  1673. if (name == 'shippingAgencyCname') {
  1674. if (row) {
  1675. this.assemblyForm.shippingAgencyId = row.id
  1676. this.assemblyForm.shippingAgencyEname = row.enName
  1677. } else {
  1678. this.assemblyForm.shippingAgencyId = null
  1679. this.assemblyForm.shippingAgencyEname = null
  1680. this.assemblyForm.shippingAgencyCname = null
  1681. }
  1682. }
  1683. if (name == 'operatorName') {
  1684. if (row) {
  1685. this.assemblyForm.operatorName = row.realName
  1686. this.assemblyForm.operatorId = row.id
  1687. } else {
  1688. this.assemblyForm.operatorName = null
  1689. this.assemblyForm.operatorId = null
  1690. }
  1691. }
  1692. if (name == 'customerServiceName') {
  1693. if (row) {
  1694. this.assemblyForm.customerServiceName = row.realName
  1695. this.assemblyForm.customerServiceId = row.id
  1696. } else {
  1697. this.assemblyForm.customerServiceName = null
  1698. this.assemblyForm.customerServiceId = null
  1699. }
  1700. }
  1701. if (name == 'branchName') {
  1702. if (row) {
  1703. this.assemblyForm.branchId = row.id
  1704. this.saveLocalCurrency(row.id)
  1705. } else {
  1706. this.assemblyForm.branchId = null
  1707. this.assemblyForm.branchName = null
  1708. }
  1709. }
  1710. },
  1711. // 远程搜索
  1712. remoteMethod(value, name) {
  1713. let arr = ['hshipper', 'hconsignee', 'hnotify', 'hnotify2', 'bookingAgent', 'foreignAgency']
  1714. let portArr = ['placeReceipt', 'pol', 'pod', 'destination', 'placeDelivery', 'pot']
  1715. let payplaceArr = ['issueAt']
  1716. if (arr.indexOf(name) != -1) {
  1717. this[name + 'BcorpsListfun'](value)
  1718. }
  1719. // 港口
  1720. else if (portArr.indexOf(name) != -1) {
  1721. this[name + 'BportsListfun'](value)
  1722. }
  1723. // 场站
  1724. else if (name == 'cy') {
  1725. this.cyBcorpslistByType(value)
  1726. }
  1727. // 场站联系人
  1728. else if (name == 'cyContacts') {
  1729. this.cyBcorpsattnListfun()
  1730. }
  1731. else if (name == 'podCyCnName') {
  1732. this.cyBcorpslistByType2(value)
  1733. }
  1734. // 场站联系人
  1735. else if (name == 'podCyContacts') {
  1736. this.cyBcorpsattnListfun2()
  1737. }
  1738. // 码头
  1739. else if (name == 'portTerminalCyCnName') {
  1740. this.cyBcorpslistByType3()
  1741. }
  1742. //联系人
  1743. else if (name == 'portTerminalCyContacts') {
  1744. this.cyBcorpsattnListfun3()
  1745. }
  1746. // 货物
  1747. // else if (name == 'commodity') {
  1748. // this.commodityBcommodityListfun(value)
  1749. // }
  1750. // 包装
  1751. else if (name == 'packingUnit') {
  1752. // if (this.assemblyForm.containersList && this.assemblyForm.containersList.length) {
  1753. // this.$alert('当前数据已经均分箱量,请撤销之后再修改', '提示', {
  1754. // confirmButtonText: '确定',
  1755. // });
  1756. // this.$nextTick(() => {
  1757. // this.$refs.packingUnit.blur()
  1758. // this.$refs.quantityRef.blur()
  1759. // this.$refs.grossWeightRef.blur()
  1760. // this.$refs.measurementRef.blur()
  1761. // })
  1762. // return
  1763. // }
  1764. this.packingUnitBpackagesListfun(value)
  1765. }
  1766. // 船名
  1767. else if (name == 'vessel') {
  1768. this.vesselBvesselsListfun(value)
  1769. }
  1770. // 船公司
  1771. else if (name == 'carrier') {
  1772. this.carrierBcorpslistByTypefun(value)
  1773. }
  1774. // 航线
  1775. else if (name == 'line') {
  1776. this.lineBlinesListfun(value)
  1777. }
  1778. // COLOADER
  1779. else if (name == 'coloaderCnName') {
  1780. this.bcorpstypedefineListfun(value)
  1781. }
  1782. else if (name == 'serviceTerms') {
  1783. this.serviceTermsWorkDicts()
  1784. }
  1785. else if (name == 'bookingAgent') {
  1786. this.bookingAgentBcorpsListfun(value)
  1787. }
  1788. else if (payplaceArr.indexOf(name) != -1) {
  1789. this[name + 'BportsListfun'](value)
  1790. }
  1791. },
  1792. // 选择框的回调
  1793. corpChange(value, name) {
  1794. console.log('corpChange', value, name)
  1795. let arr = ['hshipper', 'hconsignee', 'hnotify', 'hnotify2']
  1796. let portArr = ['placeReceipt', 'destination', 'placeDelivery']
  1797. let cnPorArr = ['pol', 'pod', 'pot']
  1798. if (arr.indexOf(name) != -1) {
  1799. if (!value) {
  1800. // this.$set(this.assemblyForm.detail, name + 'Id', '')
  1801. this.$set(this.assemblyForm.detail, name + 'Id', '')
  1802. this.$set(this.assemblyForm.detail, name + 'CnName', '')
  1803. this.$set(this.assemblyForm.detail, name + 'EnName', '')
  1804. this.$set(this.assemblyForm.detail, name + 'Code', '')
  1805. this.$set(this.assemblyForm.detail, name + 'Details', '')
  1806. this.$set(this.assemblyForm.detail, name + 'CntyName', '')
  1807. this.$set(this.assemblyForm.detail, name + 'CntyCode', '')
  1808. }
  1809. for (let item of this[name + 'Data']) {
  1810. if (item.cnName == value) {
  1811. console.log(item.cntyCode, 1231231)
  1812. this.$set(this.assemblyForm.detail, name + 'Id', item.id)
  1813. this.$set(this.assemblyForm.detail, name + 'CnName', item.cnName)
  1814. this.$set(this.assemblyForm.detail, name + 'EnName', item.enName)
  1815. this.$set(this.assemblyForm.detail, name + 'Code', item.code)
  1816. // this.$set(this.assemblyForm,name + 'Details',item.details)
  1817. if (!this.assemblyForm[name + 'Details']) {
  1818. this.$set(this.assemblyForm.detail, name + 'Details', item.details)
  1819. }
  1820. // 国家名称
  1821. this.$set(this.assemblyForm.detail, name + 'CntyName', item.cntyName)
  1822. // 国家代码
  1823. this.$set(this.assemblyForm.detail, name + 'CntyCode', item.cntyCode)
  1824. }
  1825. }
  1826. }
  1827. // 有中文名称的港口
  1828. else if (cnPorArr.indexOf(name) != -1) {
  1829. if (!value) {
  1830. this.$set(this.assemblyForm, name + 'Id', '')
  1831. this.$set(this.assemblyForm, name + 'CnName', '')
  1832. this.$set(this.assemblyForm, name + 'EnName', '')
  1833. this.$set(this.assemblyForm, name + 'Code', '')
  1834. this.$set(this.assemblyForm, name + 'NamePrint', '')
  1835. }
  1836. for (let item of this[name + 'Data']) {
  1837. if (item.enName == value) {
  1838. this.$set(this.assemblyForm, name + 'Id', item.id)
  1839. this.$set(this.assemblyForm, name + 'CnName', item.cnName)
  1840. this.$set(this.assemblyForm, name + 'EnName', item.enName)
  1841. this.$set(this.assemblyForm, name + 'Code', item.code)
  1842. this.$set(this.assemblyForm, name + 'NamePrint', item.enName)
  1843. // 签单地点 默认 装货港
  1844. if (name == 'pol') {
  1845. this.$set(this.assemblyForm, 'issueAt', this.assemblyForm.polEnName)
  1846. this.$set(this.assemblyForm, 'issueAtId', this.assemblyForm.polId)
  1847. }
  1848. // // 选择卸货港带出目的地
  1849. // if(name == 'pod') {
  1850. // this.$set(this.assemblyForm,'destinationId',item.id)
  1851. // this.$set(this.assemblyForm,'destinationName',item.enName)
  1852. // this.$set(this.assemblyForm,'destinationCode',item.code)
  1853. // this.$set(this.assemblyForm,'destinationNamePrint',item.enName)
  1854. // }
  1855. }
  1856. }
  1857. }
  1858. else if (name == 'foreignAgency') {
  1859. if (!value) {
  1860. // this.$set(this.assemblyForm.detail, name + 'Id', '')
  1861. this.$set(this.assemblyForm, name + 'Id', '')
  1862. this.$set(this.assemblyForm, name + 'CnName', '')
  1863. this.$set(this.assemblyForm, name + 'EnName', '')
  1864. this.$set(this.assemblyForm, name + 'Code', '')
  1865. this.$set(this.assemblyForm, name + 'Details', '')
  1866. this.$set(this.assemblyForm, name + 'CntyName', '')
  1867. this.$set(this.assemblyForm, name + 'CntyCode', '')
  1868. }
  1869. for (let item of this[name + 'Data']) {
  1870. if (item.cnName == value) {
  1871. console.log(item.cntyCode, 1231231)
  1872. this.$set(this.assemblyForm, name + 'Id', item.id)
  1873. this.$set(this.assemblyForm, name + 'CnName', item.cnName)
  1874. this.$set(this.assemblyForm, name + 'EnName', item.enName)
  1875. this.$set(this.assemblyForm, name + 'Code', item.code)
  1876. // this.$set(this.assemblyForm,name + 'Details',item.details)
  1877. this.$set(this.assemblyForm, name + 'Details', item.details)
  1878. // 国家名称
  1879. this.$set(this.assemblyForm, name + 'CntyName', item.cntyName)
  1880. // 国家代码
  1881. this.$set(this.assemblyForm, name + 'CntyCode', item.cntyCode)
  1882. }
  1883. }
  1884. }
  1885. // 没有中文名的港口
  1886. else if (portArr.indexOf(name) != -1) {
  1887. console.log(name)
  1888. if (!value) {
  1889. this.$set(this.assemblyForm, name + 'Id', '')
  1890. this.$set(this.assemblyForm, name + 'Name', '')
  1891. this.$set(this.assemblyForm, name + 'Code', '')
  1892. this.$set(this.assemblyForm, name + 'NamePrint', '')
  1893. }
  1894. for (let item of this[name + 'Data']) {
  1895. if (item.enName == value) {
  1896. this.$set(this.assemblyForm, name + 'Id', item.id)
  1897. this.$set(this.assemblyForm, name + 'Name', item.enName)
  1898. this.$set(this.assemblyForm, name + 'Code', item.code)
  1899. this.$set(this.assemblyForm, name + 'NamePrint', item.enName)
  1900. }
  1901. }
  1902. }
  1903. // else if (name == 'commodity') {
  1904. // if (!value) {
  1905. // this.$set(this.assemblyForm,'hscode','')
  1906. // this.$set(this.assemblyForm,'commodityShName','')
  1907. // this.$set(this.assemblyForm,'commodityCnName','')
  1908. // this.$set(this.assemblyForm,'commodityEnName','')
  1909. // }
  1910. // for(let item of this[name + 'Data']) {
  1911. // if (item.hsCode == value) {
  1912. // this.$set(this.assemblyForm,'hscode',item.hsCode)
  1913. // this.$set(this.assemblyForm,'commodityShName',item.cnName)
  1914. // this.$set(this.assemblyForm,'commodityCnName',item.cnName)
  1915. // this.$set(this.assemblyForm,'commodityEnName',item.enName)
  1916. // }
  1917. // }
  1918. // }
  1919. // 船名
  1920. else if (name == 'vessel') {
  1921. if (!value) {
  1922. this.$set(this.assemblyForm, 'vesselId', '')
  1923. this.$set(this.assemblyForm, 'vesselCnName', '')
  1924. this.$set(this.assemblyForm, 'vesselEnName', '')
  1925. }
  1926. if (this[name + 'Data'].length == 0) {
  1927. this.$set(this.assemblyForm, 'vesselId', null)
  1928. this.$set(this.assemblyForm, 'vesselCnName', value)
  1929. this.$set(this.assemblyForm, 'vesselEnName', value)
  1930. }
  1931. for (let item of this[name + 'Data']) {
  1932. if (item.enName == value) {
  1933. this.$set(this.assemblyForm, 'vesselId', item.id)
  1934. this.$set(this.assemblyForm, 'vesselCnName', item.cnName)
  1935. this.$set(this.assemblyForm, 'vesselEnName', item.enName)
  1936. }
  1937. }
  1938. }
  1939. // 船公司
  1940. else if (name == 'carrier') {
  1941. if (!value) {
  1942. this.$set(this.assemblyForm, 'carrierId', '')
  1943. this.$set(this.assemblyForm, 'carrierShortName', '')
  1944. this.$set(this.assemblyForm, 'carrierCnName', '')
  1945. this.$set(this.assemblyForm, 'carrierEnName', '')
  1946. this.$set(this.assemblyForm, 'carrierCode', '')
  1947. this.$set(this.assemblyForm, 'carrierArgreementNo', '')
  1948. this.$set(this.assemblyForm, 'bookingAgentId', '')
  1949. this.$set(this.assemblyForm, 'bookingAgentEnName', '')
  1950. this.$set(this.assemblyForm, 'bookingAgentCnName', '')
  1951. this.$set(this.assemblyForm, 'bookingRemarks', '')
  1952. }
  1953. for (let item of this[name + 'Data']) {
  1954. if (item.cnName == value) {
  1955. console.log(item)
  1956. this.$set(this.assemblyForm, 'carrierId', item.id)
  1957. this.$set(this.assemblyForm, 'carrierShortName', item.shortName ? item.shortName : item.cnName)
  1958. this.$set(this.assemblyForm, 'carrierCnName', item.cnName)
  1959. this.$set(this.assemblyForm, 'carrierEnName', item.enName)
  1960. this.$set(this.assemblyForm, 'carrierCode', item.code)
  1961. this.$set(this.assemblyForm, 'carrierArgreementNo', item.carrierArgreementNo)
  1962. this.$set(this.assemblyForm, 'bookingAgentId', item.bookingAgentId)
  1963. this.$set(this.assemblyForm, 'bookingAgentEnName', item.bookingAgentEnName)
  1964. this.$set(this.assemblyForm, 'bookingAgentCnName', item.bookingAgentCnName)
  1965. this.$set(this.assemblyForm, 'bookingRemarks', item.bookingRemarks)
  1966. }
  1967. }
  1968. }
  1969. // 包装
  1970. else if (name == 'packingUnit') {
  1971. if (!value) {
  1972. this.$set(this.assemblyForm, 'packingUnitId', '')
  1973. this.$set(this.assemblyForm, 'packingUnit', '')
  1974. }
  1975. for (let item of this[name + 'Data']) {
  1976. if (item.cnName == value) {
  1977. this.$set(this.assemblyForm, 'packingUnitId', item.id)
  1978. this.$set(this.assemblyForm, 'packingUnit', item.cnName)
  1979. }
  1980. }
  1981. }
  1982. // 订舱代理
  1983. else if (name == 'bookingAgent') {
  1984. if (!value) {
  1985. this.$set(this.assemblyForm, 'bookingAgentId', '')
  1986. this.$set(this.assemblyForm, 'bookingAgentCnName', '')
  1987. this.$set(this.assemblyForm, 'bookingAgentEnName', '')
  1988. this.$set(this.assemblyForm, 'bookingRemarks', '')
  1989. }
  1990. for (let item of this[name + 'Data']) {
  1991. if (item.cnName == value) {
  1992. this.$set(this.assemblyForm, 'bookingAgentId', item.id)
  1993. this.$set(this.assemblyForm, 'bookingAgentCnName', item.cnName)
  1994. this.$set(this.assemblyForm, 'bookingAgentEnName', item.enName)
  1995. this.$set(this.assemblyForm, 'bookingRemarks', item.remarks)
  1996. }
  1997. }
  1998. }
  1999. // 航线
  2000. else if (name == 'line') {
  2001. if (!value) {
  2002. this.$set(this.assemblyForm, 'lineId', '')
  2003. this.$set(this.assemblyForm, 'lineCnName', '')
  2004. this.$set(this.assemblyForm, 'lineEnName', '')
  2005. }
  2006. for (let item of this[name + 'Data']) {
  2007. if (item.cnName == value) {
  2008. this.$set(this.assemblyForm, 'lineId', item.id)
  2009. this.$set(this.assemblyForm, 'lineCnName', item.cnName)
  2010. this.$set(this.assemblyForm, 'lineEnName', item.enName)
  2011. }
  2012. }
  2013. }
  2014. // COLOADER
  2015. else if (name == 'coloaderCnName') {
  2016. if (!value) {
  2017. this.$set(this.assemblyForm, 'coloaderId', '')
  2018. this.$set(this.assemblyForm, 'coloaderCnName', '')
  2019. this.$set(this.assemblyForm, 'coloaderEnName', '')
  2020. }
  2021. for (let item of this.coloaderCnNameData) {
  2022. if (item.cnName == value) {
  2023. this.$set(this.assemblyForm, 'coloaderId', item.id)
  2024. this.$set(this.assemblyForm, 'coloaderCnName', item.cnName)
  2025. this.$set(this.assemblyForm, 'coloaderEnName', item.enName)
  2026. }
  2027. }
  2028. }
  2029. else if (name == 'cargoType') {
  2030. this.$set(this.assemblyForm, 'cargoType', value ? value : '')
  2031. if (value == 'danger') {
  2032. // 危险品
  2033. this.DangerousGoodsAdd()
  2034. }
  2035. }
  2036. else if (name == 'cy') {
  2037. if (!value) {
  2038. this.$set(this.assemblyForm, 'cyId', '')
  2039. this.$set(this.assemblyForm, 'cyCode', '')
  2040. this.$set(this.assemblyForm, 'cyShortName', '')
  2041. this.$set(this.assemblyForm, 'cyCnName', '')
  2042. this.$set(this.assemblyForm, 'cyEnName', '')
  2043. this.$set(this.assemblyForm, 'cyRemarks', '')
  2044. // 联系人
  2045. this.$set(this.assemblyForm, 'cyTel', '')
  2046. this.$set(this.assemblyForm, 'cyAddress', '')
  2047. this.$set(this.assemblyForm, 'cyContacts', '')
  2048. }
  2049. for (let item of this.cyData) {
  2050. if (item.cnName == value) {
  2051. console.log(item)
  2052. this.$set(this.assemblyForm, 'cyId', item.id)
  2053. this.$set(this.assemblyForm, 'cyCode', item.code)
  2054. this.$set(this.assemblyForm, 'cyShortName', item.shortName ? item.shortName : item.cnName)
  2055. this.$set(this.assemblyForm, 'cyCnName', item.cnName)
  2056. this.$set(this.assemblyForm, 'cyEnName', item.enName)
  2057. this.$set(this.assemblyForm, 'cyRemarks', item.details) // 客户里的详情信息
  2058. // 查询场站联系人
  2059. getBcorpsattnList(1, 20, { pid: this.assemblyForm.cyId }).then(res => {
  2060. if (res.data.data.records.length > 0) {
  2061. this.$set(this.assemblyForm, 'cyTel', res.data.data.records[0].tel)
  2062. this.$set(this.assemblyForm, 'cyAddress', res.data.data.records[0].addr)
  2063. this.$set(this.assemblyForm, 'cyContacts', res.data.data.records[0].cname)
  2064. }
  2065. })
  2066. }
  2067. }
  2068. }
  2069. else if (name == 'podCyCnName') {
  2070. if (!value) {
  2071. this.$set(this.assemblyForm, 'podCyId', '')
  2072. this.$set(this.assemblyForm, 'podCyCode', '')
  2073. this.$set(this.assemblyForm, 'podCyCnName', '')
  2074. this.$set(this.assemblyForm, 'podCyEnName', '')
  2075. // 联系人
  2076. this.$set(this.assemblyForm, 'podCyTel', '')
  2077. this.$set(this.assemblyForm, 'podCyAddress', '')
  2078. this.$set(this.assemblyForm, 'podCyContacts', '')
  2079. }
  2080. for (let item of this.podCyData) {
  2081. if (item.cnName == value) {
  2082. console.log(item)
  2083. this.$set(this.assemblyForm, 'podCyId', item.id)
  2084. this.$set(this.assemblyForm, 'podCyCode', item.code)
  2085. // this.$set(this.assemblyForm, 'cyShortName', item.shortName ? item.shortName : item.cnName)
  2086. this.$set(this.assemblyForm, 'podCyCnName', item.cnName)
  2087. this.$set(this.assemblyForm, 'podCyEnName', item.enName)
  2088. // this.$set(this.assemblyForm, 'cyRemarks', item.details) // 客户里的详情信息
  2089. // 查询场站联系人
  2090. getBcorpsattnList(1, 20, { pid: this.assemblyForm.podCyId }).then(res => {
  2091. if (res.data.data.records.length > 0) {
  2092. this.$set(this.assemblyForm, 'podCyTel', res.data.data.records[0].tel)
  2093. this.$set(this.assemblyForm, 'podCyAddress', res.data.data.records[0].addr)
  2094. this.$set(this.assemblyForm, 'podCyContacts', res.data.data.records[0].cname)
  2095. }
  2096. })
  2097. }
  2098. }
  2099. }
  2100. else if (name == 'portTerminalCyCnName') {
  2101. if (!value) {
  2102. this.$set(this.assemblyForm, 'portTerminalCyId', '')
  2103. this.$set(this.assemblyForm, 'portTerminalCyCode', '')
  2104. this.$set(this.assemblyForm, 'portTerminalCyCnName', '')
  2105. this.$set(this.assemblyForm, 'portTerminalCyEnName', '')
  2106. // 联系人
  2107. this.$set(this.assemblyForm, 'portTerminalCyTel', '')
  2108. this.$set(this.assemblyForm, 'portTerminalCyAddress', '')
  2109. this.$set(this.assemblyForm, 'portTerminalCyContacts', '')
  2110. }
  2111. for (let item of this.portTerminalData) {
  2112. if (item.cnName == value) {
  2113. this.$set(this.assemblyForm, 'portTerminalCyId', item.id)
  2114. this.$set(this.assemblyForm, 'portTerminalCyCode', item.code)
  2115. this.$set(this.assemblyForm, 'portTerminalCyCnName', item.cnName)
  2116. this.$set(this.assemblyForm, 'portTerminalCyEnName', item.enName)
  2117. // 查询场站联系人
  2118. getBcorpsattnList(1, 20, { pid: this.assemblyForm.portTerminalCyId }).then(res => {
  2119. if (res.data.data.records.length > 0) {
  2120. this.$set(this.assemblyForm, 'portTerminalCyTel', res.data.data.records[0].tel)
  2121. this.$set(this.assemblyForm, 'portTerminalCyAddress', res.data.data.records[0].addr)
  2122. this.$set(this.assemblyForm, 'portTerminalCyContacts', res.data.data.records[0].cname)
  2123. }
  2124. })
  2125. }
  2126. }
  2127. }
  2128. // 场站联系人
  2129. else if (name == 'cyContacts') {
  2130. if (!value) {
  2131. this.$set(this.assemblyForm, 'cyTel', '')
  2132. this.$set(this.assemblyForm, 'cyAddress', '')
  2133. this.$set(this.assemblyForm, 'cyContacts', '')
  2134. }
  2135. for (let item of this.cyContactsData) {
  2136. if (item.cname == value) {
  2137. this.$set(this.assemblyForm, 'cyTel', item.tel)
  2138. this.$set(this.assemblyForm, 'cyAddress', item.addr)
  2139. this.$set(this.assemblyForm, 'cyContacts', item.cname)
  2140. }
  2141. }
  2142. }
  2143. else if (name == 'podCyContacts') {
  2144. if (!value) {
  2145. this.$set(this.assemblyForm, 'podCyTel', '')
  2146. this.$set(this.assemblyForm, 'podCyAddress', '')
  2147. this.$set(this.assemblyForm, 'podCyContacts', '')
  2148. }
  2149. for (let item of this.podCyCnNameData) {
  2150. if (item.cname == value) {
  2151. this.$set(this.assemblyForm, 'podCyTel', item.tel)
  2152. this.$set(this.assemblyForm, 'podCyAddress', item.addr)
  2153. this.$set(this.assemblyForm, 'podCyContacts', item.cname)
  2154. }
  2155. }
  2156. }
  2157. else if (name == 'portTerminalCyContacts') {
  2158. if (!value) {
  2159. this.$set(this.assemblyForm, 'portTerminalCyTel', '')
  2160. this.$set(this.assemblyForm, 'portTerminalCyAddress', '')
  2161. this.$set(this.assemblyForm, 'portTerminalCyContacts', '')
  2162. }
  2163. for (let item of this.portTerminalCyContactsData) {
  2164. if (item.cname == value) {
  2165. this.$set(this.assemblyForm, 'portTerminalCyTel', item.tel)
  2166. this.$set(this.assemblyForm, 'portTerminalCyAddress', item.addr)
  2167. this.$set(this.assemblyForm, 'portTerminalCyContacts', item.cname)
  2168. }
  2169. }
  2170. }
  2171. else if (name == 'issueAt') {
  2172. for (let item of this.issueAtData) {
  2173. if (item.enName == value) {
  2174. this.$set(this.assemblyForm, 'issueAt', item.enName)
  2175. this.$set(this.assemblyForm, 'issueAtId', item.id)
  2176. }
  2177. }
  2178. }
  2179. else {
  2180. this.$set(this.assemblyForm, name, value ? value : '')
  2181. }
  2182. },
  2183. // 签单地点
  2184. issueAtBportsListfun(enName) {
  2185. bportsList(1, 10, { enName, status: 0 }).then(res => {
  2186. this.issueAtData = res.data.data.records
  2187. })
  2188. },
  2189. // 通知人添加第二个通知人弹窗
  2190. hnotifyClick() {
  2191. if (this.detailData.seeDisabled) {
  2192. return;
  2193. }
  2194. this.hnotify2Visible = true
  2195. },
  2196. // 第二通知人弹窗的清除
  2197. hnotify2Cancellation(name) {
  2198. let title = ''
  2199. if (name == '清除') {
  2200. title = '确认清除吗?'
  2201. }
  2202. this.$confirm(title)
  2203. .then(_ => {
  2204. this.$set(this.assemblyForm, 'hnotify2Id', '')
  2205. this.$set(this.assemblyForm, 'hnotify2CnName', '')
  2206. this.$set(this.assemblyForm, 'hnotify2EnName', '')
  2207. this.$set(this.assemblyForm, 'hnotify2Code', '')
  2208. this.$set(this.assemblyForm, 'hnotify2Details', '')
  2209. this.$set(this.assemblyForm, 'hnotify2CntyName', '')
  2210. this.$set(this.assemblyForm, 'hnotify2CntyCode', '')
  2211. this.hnotify2Visible = false
  2212. })
  2213. .catch(_ => { });
  2214. },
  2215. // 通知人
  2216. hnotify2HandleClose(done) {
  2217. done();
  2218. },
  2219. // 危险品弹窗开启
  2220. DangerousGoodsAdd() {
  2221. if (this.assemblyForm.cargoType == 'danger') {
  2222. this.dgVisible = true
  2223. } else {
  2224. this.$message({
  2225. message: '请选择货物为危险品',
  2226. type: 'warning'
  2227. });
  2228. }
  2229. },
  2230. // 危险品弹窗的清除
  2231. dgCancellation(name) {
  2232. let title = ''
  2233. if (name == '清除') {
  2234. title = '确认清除吗?'
  2235. }
  2236. this.$confirm(title)
  2237. .then(_ => {
  2238. this.$set(this.assemblyForm, 'dgImdgCode', '')
  2239. this.$set(this.assemblyForm, 'dgUnCode', '')
  2240. this.$set(this.assemblyForm, 'dgPackingLevel', '0')
  2241. this.$set(this.assemblyForm, 'dgFlashPoint', '')
  2242. this.$set(this.assemblyForm, 'dgFlashPointUnit', '')
  2243. this.$set(this.assemblyForm, 'dgContacts', '')
  2244. this.$set(this.assemblyForm, 'dgTel', '')
  2245. this.$set(this.assemblyForm, 'dgIsMarinePollutant', '')
  2246. this.dgVisible = false
  2247. })
  2248. .catch(_ => { });
  2249. },
  2250. handleInput(event, name) {
  2251. console.log(event, 1231)
  2252. // 2E80-2EFF CJK 部首补充 2F00-2FDF 康熙字典部首
  2253. // 3000-303F CJK 符号和标点 31C0-31EF CJK 笔画
  2254. // 3200-32FF 封闭式 CJK 文字和月份 3300-33FF CJK 兼容
  2255. // 3400-4DBF CJK 统一表意符号扩展 A 4DC0-4DFF 易经六十四卦符号
  2256. // 4E00-9FBF CJK 统一表意符号 F900-FAFF CJK 兼容象形文字
  2257. // FE30-FE4F CJK 兼容形式 FF00-FFEF 全角ASCII、全角标点
  2258. // 匹配中文字符
  2259. // let a = event.replace(/[\u2E80-\u2EFF\u2F00-\u2FDF\u3000-\u303F\u31C0-\u31EF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FBF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF]+/g, '')
  2260. // this.assemblyForm[name] = a
  2261. },
  2262. // text文本框input
  2263. textareaBlur(name) {
  2264. console.log(name, 1160)
  2265. // if (this.assemblyForm[name].length > (35 * 5)) {
  2266. // this.$message({
  2267. // message: '输入的字体已经超出五行',
  2268. // type: 'warning'
  2269. // });
  2270. // }
  2271. let arr = ['hshipperDetails', 'hconsigneeDetails', 'hnotifyDetails', 'hnotify2Details', 'foreignAgencyDetails']
  2272. if (arr.indexOf(name) != -1) {
  2273. this.assemblyForm.detail[name] = _.toUpper(this.assemblyForm.detail[name])
  2274. }
  2275. let arr2 = ['marks', 'commodityDescr', 'bookingRemarks', 'siRemarks', 'forwarding', 'remarks', 'cyRemarks']
  2276. if (arr2.indexOf(name) != -1) {
  2277. this.assemblyForm[name] = _.toUpper(this.assemblyForm[name])
  2278. }
  2279. let arr3 = 'placeReceiptNamePrint,polNamePrint,podNamePrint,destinationNamePrint,placeDeliveryNamePrint,potNamePrint'.split(',')
  2280. if (arr3.indexOf(name) != -1) {
  2281. this.assemblyForm[name] = _.toUpper(this.assemblyForm[name])
  2282. }
  2283. // this.assemblyForm[name] = textareaWrap(this.assemblyForm[name])
  2284. },
  2285. // 同通知人
  2286. notifybyfun() {
  2287. if (this.detailData.seeDisabled) {
  2288. return;
  2289. }
  2290. this.$set(this.assemblyForm.detail, 'hnotifyId', this.assemblyForm.detail.hconsigneeId)
  2291. this.$set(this.assemblyForm.detail, 'hnotifyCnName', this.assemblyForm.detail.hconsigneeCnName)
  2292. this.$set(this.assemblyForm.detail, 'hnotifyEnName', this.assemblyForm.detail.hconsigneeEnName)
  2293. this.$set(this.assemblyForm.detail, 'hnotifyCode', this.assemblyForm.detail.hconsigneeCode)
  2294. this.$set(this.assemblyForm.detail, 'hnotifyDetails', this.assemblyForm.detail.hconsigneeDetails)
  2295. this.$set(this.assemblyForm.detail, 'hnotifyCntyName', this.assemblyForm.detail.hconsigneeCntyName)
  2296. this.$set(this.assemblyForm.detail, 'hnotifyCntyCode', this.assemblyForm.detail.hconsigneeCntyCode)
  2297. },
  2298. // 邮箱跳转
  2299. emailJump(name) {
  2300. let value = null
  2301. if (this.detailData.seeDisabled) {
  2302. return;
  2303. }
  2304. if (name == 'cy') {
  2305. if (!this.assemblyForm.cyId) {
  2306. this.$message({
  2307. message: '请先选择场站',
  2308. type: 'warning'
  2309. });
  2310. return
  2311. }
  2312. value = this.assemblyForm.cyId
  2313. }
  2314. if (name == 'carrier') {
  2315. if (!this.assemblyForm.carrierId) {
  2316. this.$message({
  2317. message: '请先选择船公司',
  2318. type: 'warning'
  2319. });
  2320. return
  2321. }
  2322. value = this.assemblyForm.carrierId
  2323. }
  2324. // 调详情获取邮箱
  2325. getBcorpsDetail(value).then(res => {
  2326. let email = res.data.data.email.split('@')[1] // 取@符号后面的数据
  2327. for (let i in this.emailhash) {
  2328. if (email == i) {
  2329. // 跳转打开一个新的页面
  2330. window.open(this.emailhash[i], "_blank")
  2331. }
  2332. }
  2333. })
  2334. },
  2335. // 添加跳转
  2336. addJump(name) {
  2337. let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
  2338. if (this.$store.getters.CorrespondenceUnitslos) {
  2339. this.$alert("往来单位已存在,请保存关闭再进行操作", "温馨提示", {
  2340. confirmButtonText: "确定",
  2341. type: "warning",
  2342. callback: action => {
  2343. console.log(action);
  2344. }
  2345. });
  2346. return
  2347. }
  2348. this.$router.$avueRouter.closeTag("/iosBasicData/bcorps/index");
  2349. this.$router.push({
  2350. path: "/iosBasicData/bcorps/index",
  2351. query: {
  2352. corpType: corpTypeName
  2353. },
  2354. })
  2355. },
  2356. // 接口数据请求🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
  2357. // 获取场站数据
  2358. cyBcorpslistByType(cnName) {
  2359. let corpTypeName = '场站'
  2360. getBcorpslistByType(1, 10, { cnName, status: 0, corpTypeName }).then(res => {
  2361. this.cyData = res.data.data.records
  2362. })
  2363. },
  2364. cyBcorpslistByType2(cnName) {
  2365. let corpTypeName = '场站'
  2366. getBcorpslistByType(1, 10, { cnName, status: 0, corpTypeName }).then(res => {
  2367. this.podCyData = res.data.data.records
  2368. })
  2369. },
  2370. cyBcorpslistByType3(cnName) {
  2371. let corpTypeName = '码头'
  2372. getBcorpslistByType(1, 10, { cnName, status: 0, corpTypeName }).then(res => {
  2373. this.portTerminalData = res.data.data.records
  2374. })
  2375. },
  2376. // 获取场站下的联系人数据
  2377. cyBcorpsattnListfun() {
  2378. getBcorpsattnList(1, 20, { pid: this.assemblyForm.cyId }).then(res => {
  2379. this.cyContactsData = res.data.data.records
  2380. })
  2381. },
  2382. cyBcorpsattnListfun2() {
  2383. getBcorpsattnList(1, 20, { pid: this.assemblyForm.podCyId }).then(res => {
  2384. this.podCyCnNameData = res.data.data.records
  2385. })
  2386. },
  2387. cyBcorpsattnListfun3() {
  2388. getBcorpsattnList(1, 20, { pid: this.assemblyForm.portTerminalCyId }).then(res => {
  2389. this.portTerminalCyContactsData = res.data.data.records
  2390. })
  2391. },
  2392. foreignAgencyBcorpsListfun(cnName) {
  2393. let corpTypeName = '国外同行及代理'
  2394. getBcorpslistByType(1, 10, { cnName, status: 0, corpTypeName }).then(res => {
  2395. this.foreignAgencyData = res.data.data.records
  2396. })
  2397. },
  2398. // 获取发货人数据 (往来单位 前四个代理)
  2399. hshipperBcorpsListfun(cnName) {
  2400. let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
  2401. getBcorpslistByType(1, 10, { cnName, status: 0, corpTypeName }).then(res => {
  2402. this.hshipperData = res.data.data.records
  2403. })
  2404. },
  2405. // 获取收货人数据 (往来单位 前四个代理)
  2406. hconsigneeBcorpsListfun(cnName) {
  2407. let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
  2408. getBcorpslistByType(1, 10, { cnName, status: 0, corpTypeName }).then(res => {
  2409. this.hconsigneeData = res.data.data.records
  2410. })
  2411. },
  2412. // 获取通知人数据 (往来单位 前四个代理)
  2413. hnotifyBcorpsListfun(cnName) {
  2414. let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
  2415. getBcorpslistByType(1, 10, { cnName, status: 0, corpTypeName }).then(res => {
  2416. this.hnotifyData = res.data.data.records
  2417. })
  2418. },
  2419. // 获取第二通知人数据 (往来单位 前四个代理)
  2420. hnotify2BcorpsListfun(cnName) {
  2421. let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
  2422. getBcorpslistByType(1, 10, { cnName, status: 0, corpTypeName }).then(res => {
  2423. this.hnotify2Data = res.data.data.records
  2424. })
  2425. },
  2426. // 收货地数据 (港口表)
  2427. placeReceiptBportsListfun(enName) {
  2428. bportsList(1, 10, { enName, status: 0 }).then(res => {
  2429. this.placeReceiptData = res.data.data.records
  2430. })
  2431. },
  2432. // 装货港数据
  2433. polBportsListfun(enName) {
  2434. bportsList(1, 10, { enName, status: 0 }).then(res => {
  2435. this.polData = res.data.data.records
  2436. })
  2437. },
  2438. // 卸货港数据
  2439. podBportsListfun(enName) {
  2440. bportsList(1, 10, { enName, status: 0 }).then(res => {
  2441. this.podData = res.data.data.records
  2442. })
  2443. },
  2444. // 目的地
  2445. destinationBportsListfun(enName) {
  2446. bportsList(1, 10, { enName, status: 0 }).then(res => {
  2447. this.destinationData = res.data.data.records
  2448. })
  2449. },
  2450. // 交货地
  2451. placeDeliveryBportsListfun(enName) {
  2452. bportsList(1, 10, { enName, status: 0 }).then(res => {
  2453. this.placeDeliveryData = res.data.data.records
  2454. })
  2455. },
  2456. // 中转港
  2457. potBportsListfun(enName) {
  2458. bportsList(1, 10, { enName, status: 0 }).then(res => {
  2459. this.potData = res.data.data.records
  2460. })
  2461. },
  2462. // 获取类别 COLOADER 数据
  2463. bcorpstypedefineListfun(cnName) {
  2464. let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
  2465. getBcorpslistByType(1, 10, { cnName, status: 0, corpTypeName }).then(res => {
  2466. this.coloaderCnNameData = res.data.data.records
  2467. })
  2468. },
  2469. // 包装数据
  2470. packingUnitBpackagesListfun(cnName) {
  2471. console.log(cnName)
  2472. bpackagesList(1, 10, { cnName, status: 0, whetherDg: 0 }).then(res => {
  2473. this.packingUnitData = res.data.data.records
  2474. })
  2475. },
  2476. // 商品 HS-CODE (货物列表)
  2477. commodityBcommodityListfun(cnName) {
  2478. bcommodityList(1, 10, { cnName, status: 0 }).then(res => {
  2479. this.commodityData = res.data.data.records
  2480. })
  2481. },
  2482. getHsCode() {
  2483. bcommodityList(1, 10, { status: 0 }).then(res => {
  2484. this.commodityData = res.data.data.records
  2485. })
  2486. },
  2487. searchHsQuery(query) {
  2488. this.hsLoading = true;
  2489. setTimeout(() => {
  2490. bcommodityList(1, 10, { hsCode: query, status: 0 }).then(res => {
  2491. console.log('模糊查询')
  2492. this.commodityData = res.data.data.records
  2493. })
  2494. this.hsLoading = false;
  2495. }, 200)
  2496. },
  2497. hsCodeChang(query) {
  2498. let obj = this.commodityData.find(e => e.hsCode == query)
  2499. if (obj) {
  2500. console.log(11111)
  2501. if (obj.hsCode == query) {
  2502. this.$set(this.assemblyForm, 'commodityCnName', obj.enName)
  2503. this.$set(this.assemblyForm, 'commodityEnName', obj.cnName)
  2504. }
  2505. } else {
  2506. console.log(2222)
  2507. this.$set(this.assemblyForm, 'commodityCnName', '')
  2508. this.$set(this.assemblyForm, 'commodityEnName', '')
  2509. }
  2510. },
  2511. // 获取船公司数据
  2512. carrierBcorpslistByTypefun(cnName) {
  2513. let corpTypeName = '船公司'
  2514. getBcorpslistByType(1, 10, { cnName, status: 0, corpTypeName }).then(res => {
  2515. this.carrierData = res.data.data.records
  2516. })
  2517. },
  2518. // 船名
  2519. vesselBvesselsListfun(cnName) {
  2520. getBvesselsList(1, 10, { cnName, status: 0 }).then(res => {
  2521. this.vesselData = res.data.data.records
  2522. })
  2523. },
  2524. // 订舱代理
  2525. bookingAgentBcorpsListfun(cnName) {
  2526. let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
  2527. getBcorpslistByType(1, 10, { cnName, status: 0, corpTypeName }).then(res => {
  2528. this.bookingAgentData = res.data.data.records
  2529. })
  2530. },
  2531. // 航线数据
  2532. lineBlinesListfun(cnName) {
  2533. blinesList(1, 10, { cnName, status: 0 }).then(res => {
  2534. this.lineData = res.data.data.records
  2535. })
  2536. },
  2537. // 危险品包装等级
  2538. dgPackingLevelWorkDicts() {
  2539. getWorkDicts('dangerous_goods_grade').then(res => {
  2540. this.dgPackingLevelData = res.data.data
  2541. })
  2542. },
  2543. }
  2544. }
  2545. </script>
  2546. <style scoped>
  2547. ::v-deep.el-form-item {
  2548. margin-bottom: 2px;
  2549. }
  2550. .addbuttonClass {
  2551. width: 30px;
  2552. height: 30px;
  2553. line-height: 27px;
  2554. color: #fff;
  2555. font-weight: 500;
  2556. font-size: 26px;
  2557. box-sizing: border-box;
  2558. border-radius: 4px;
  2559. background-color: #5995fc;
  2560. text-align: center;
  2561. }
  2562. </style>