index.vue 108 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148
  1. <template>
  2. <div class="app-container">
  3. <el-button
  4. icon="el-icon-arrow-left"
  5. type="danger"
  6. v-if="cancelButton === true"
  7. @click="cancel"
  8. style="margin-bottom: 5px"
  9. >返回列表
  10. </el-button>
  11. <el-collapse v-model="activeNames">
  12. <el-collapse-item title="基础资料" name="1">
  13. <el-form ref="form" :model="form" label-width="130px" size="mini" class="selectForm" :rules="rules">
  14. <el-row>
  15. <el-col :span="6">
  16. <el-form-item label="订舱单位" prop="corpName">
  17. <el-input
  18. v-model="form.corpName"
  19. :disabled="modify"
  20. size="small"
  21. style="width: 100%"
  22. />
  23. </el-form-item>
  24. </el-col>
  25. <el-col :span="6">
  26. <el-form-item label="提单号" prop="fMblno">
  27. <el-input
  28. v-model="form.fMblno"
  29. :disabled="changeNum"
  30. size="small"
  31. style="width: 100%"
  32. placeholder="手工输入"
  33. />
  34. </el-form-item>
  35. </el-col>
  36. <el-col :span="6">
  37. <el-form-item label="起运港口" prop="fDestportid">
  38. <el-select
  39. v-model="form.fLoadportid"
  40. filterable
  41. remote
  42. style="width: 100%;"
  43. :disabled="modify"
  44. class="elSelect"
  45. placeholder="请输入模糊查找目的港口"
  46. >
  47. <el-scrollbar>
  48. <el-option
  49. v-for="dict in fMblnoOptions"
  50. :key="dict.fId"
  51. :label="dict.fName"
  52. :value="dict.fId"
  53. ></el-option>
  54. </el-scrollbar>
  55. </el-select>
  56. </el-form-item>
  57. </el-col>
  58. <el-col :span="6">
  59. <el-form-item label="目的港口" prop="destportid">
  60. <el-select
  61. v-model="form.fDestportid"
  62. filterable
  63. remote
  64. style="width: 100%;"
  65. :disabled="modify"
  66. class="elSelect"
  67. placeholder="请输入模糊查找目的港口"
  68. >
  69. <el-scrollbar>
  70. <el-option
  71. v-for="dict in fMblnoOptions"
  72. :key="dict.fId"
  73. :label="dict.fName"
  74. :value="dict.fId"
  75. ></el-option>
  76. </el-scrollbar>
  77. </el-select>
  78. </el-form-item>
  79. </el-col>
  80. <el-col :span="6">
  81. <el-form-item label="预计装货时间" prop="fBsdate">
  82. <el-date-picker
  83. v-model="form.fBsdate"
  84. type="date"
  85. size="small"
  86. style="width: 100%"
  87. :disabled="modify"
  88. placeholder="选择日期"
  89. format="yyyy-MM-dd"
  90. >
  91. </el-date-picker>
  92. </el-form-item>
  93. </el-col>
  94. <el-col :span="6">
  95. <el-form-item label="运输条款" prop="fServiceitems">
  96. <el-select
  97. v-model="form.fServiceitems"
  98. :disabled="modify"
  99. size="small"
  100. style="width: 100%"
  101. >
  102. <el-option
  103. v-for="dict in transport"
  104. :key="dict.dictValue"
  105. :label="dict.dictLabel"
  106. :value="dict.dictValue"
  107. ></el-option>
  108. </el-select>
  109. </el-form-item>
  110. </el-col>
  111. <el-col :span="6">
  112. <el-form-item label="付款方式" prop="fPaymode">
  113. <el-select
  114. v-model="form.fPaymode"
  115. :disabled="modify"
  116. size="small"
  117. style="width: 100%"
  118. >
  119. <el-option
  120. v-for="dict in paymentMethod"
  121. :key="dict.dictValue"
  122. :label="dict.dictLabel"
  123. :value="dict.dictValue"
  124. ></el-option>
  125. </el-select>
  126. </el-form-item>
  127. </el-col>
  128. <el-col :span="6">
  129. <el-form-item label="售票方" prop="fInvoceobj">
  130. <el-select
  131. v-model="form.fInvoceobj"
  132. :disabled="modify"
  133. size="small"
  134. style="width: 100%"
  135. >
  136. <el-option
  137. v-for="dict in drawee"
  138. :key="dict.dictValue"
  139. :label="dict.dictLabel"
  140. :value="dict.dictValue"
  141. ></el-option>
  142. </el-select>
  143. </el-form-item>
  144. </el-col>
  145. <el-col :span="6">
  146. <el-form-item label="箱内签收单" prop="fSign">
  147. <el-select
  148. v-model="form.fSign"
  149. :disabled="modify"
  150. size="small"
  151. style="width: 100%"
  152. >
  153. <el-option
  154. v-for="dict in cEsign"
  155. :key="dict.dictValue"
  156. :label="dict.dictLabel"
  157. :value="dict.dictValue"
  158. ></el-option>
  159. </el-select>
  160. </el-form-item>
  161. </el-col>
  162. <el-col :span="6">
  163. <el-form-item label="订舱人扣货" prop="fDetentioncargo">
  164. <el-select
  165. v-model="form.fDetentioncargo"
  166. :disabled="modify"
  167. style="width: 100%"
  168. size="small"
  169. >
  170. <el-option
  171. v-for="dict in etentioncargo"
  172. :key="dict.dictValue"
  173. :label="dict.dictLabel"
  174. :value="dict.dictValue"
  175. ></el-option>
  176. </el-select>
  177. </el-form-item>
  178. </el-col>
  179. <el-col :span="6">
  180. <el-form-item label="船名" prop="vslid">
  181. <el-select
  182. v-model="form.fVslid"
  183. filterable
  184. remote
  185. style="width: 100%;"
  186. :disabled="modify"
  187. class="elSelect"
  188. placeholder="请输入模糊查找目的船名"
  189. >
  190. <el-scrollbar>
  191. <el-option
  192. v-for="dict in vslidList"
  193. :key="dict.fId"
  194. :label="dict.fName"
  195. :value="dict.fId"
  196. ></el-option>
  197. </el-scrollbar>
  198. </el-select>
  199. </el-form-item>
  200. </el-col>
  201. <el-col :span="6">
  202. <el-form-item label="航次" prop="voyidName">
  203. <el-select
  204. v-model="form.fVoyid"
  205. filterable
  206. remote
  207. style="width: 100%;"
  208. :disabled="modify"
  209. class="elSelect"
  210. placeholder="请输入模糊查找目的船名"
  211. >
  212. <el-scrollbar>
  213. <el-option
  214. v-for="dict in voyidList"
  215. :key="dict.fId"
  216. :label="dict.fNo"
  217. :value="dict.fId"
  218. ></el-option>
  219. </el-scrollbar>
  220. </el-select>
  221. </el-form-item>
  222. </el-col>
  223. <el-col :span="14">
  224. <el-form-item label="备注" prop="remarks">
  225. <el-input
  226. v-model="form.remark"
  227. :disabled="modify"
  228. size="small"
  229. style="width: 75%"
  230. >
  231. </el-input>
  232. <el-button type="primary" size="small" @click="check(1)">查看</el-button>
  233. </el-form-item>
  234. </el-col>
  235. </el-row>
  236. </el-form>
  237. </el-collapse-item>
  238. <el-collapse-item title="预计时间" name="2">
  239. <el-form v-model="estimatedTime" label-width="130px" size="mini">
  240. <el-row>
  241. <el-col :span="6">
  242. <el-form-item label="起运港口" prop="portofloadidName">
  243. <el-input
  244. v-model="estimatedTime.portofloadidName"
  245. :disabled="doNot"
  246. size="small"
  247. style="width: 100%"
  248. />
  249. </el-form-item>
  250. </el-col>
  251. <el-col :span="6">
  252. <el-form-item label="中转港口" prop="portoftransshipmentName">
  253. <el-input
  254. v-model="estimatedTime.portoftransshipmentName"
  255. :disabled="doNot"
  256. size="small"
  257. style="width: 100%"
  258. />
  259. </el-form-item>
  260. </el-col>
  261. <!-- <el-col :span="6">-->
  262. <!-- <el-form-item label="预计中转抵港日期" prop="fMblno">-->
  263. <!-- <el-input-->
  264. <!-- v-model="form.fMblno"-->
  265. <!-- :disabled="modify"-->
  266. <!-- size="small"-->
  267. <!-- style="width: 100%"-->
  268. <!-- placeholder="手工输入"-->
  269. <!-- />-->
  270. <!-- </el-form-item>-->
  271. <!-- </el-col>-->
  272. <!-- <el-col :span="6">-->
  273. <!-- <el-form-item label="预计中转开航日期" prop="fMblno">-->
  274. <!-- <el-input-->
  275. <!-- v-model="form.fMblno"-->
  276. <!-- :disabled="modify"-->
  277. <!-- size="small"-->
  278. <!-- style="width: 100%"-->
  279. <!-- placeholder="手工输入"-->
  280. <!-- />-->
  281. <!-- </el-form-item>-->
  282. <!-- </el-col>-->
  283. <el-col :span="6">
  284. <el-form-item label="目的港口" prop="distinationidName">
  285. <el-input
  286. v-model="estimatedTime.distinationidName"
  287. :disabled="doNot"
  288. size="small"
  289. style="width: 100%"
  290. />
  291. </el-form-item>
  292. </el-col>
  293. <el-col :span="6">
  294. <el-form-item label="预计开航日期" prop="fEtd">
  295. <el-input
  296. v-model="estimatedTime.fEtd"
  297. :disabled="doNot"
  298. size="small"
  299. style="width: 100%"
  300. />
  301. </el-form-item>
  302. </el-col>
  303. <el-col :span="6">
  304. <el-form-item label="预计抵港日期" prop="fEta">
  305. <el-input
  306. v-model="estimatedTime.fEta"
  307. :disabled="doNot"
  308. size="small"
  309. style="width: 100%"
  310. />
  311. </el-form-item>
  312. </el-col>
  313. </el-row>
  314. </el-form>
  315. </el-collapse-item>
  316. <el-collapse-item title="收发货人信息" name="3">
  317. <el-form v-model="form" label-width="130px" size="mini">
  318. <el-row>
  319. <el-col :span="6">
  320. <el-form-item label="发货人公司全称" prop="fShippername">
  321. <el-input
  322. v-model="form.fShippername"
  323. :disabled="modify"
  324. size="small"
  325. style="width: 100%"
  326. placeholder="手工输入"
  327. />
  328. </el-form-item>
  329. </el-col>
  330. <el-col :span="6">
  331. <el-form-item label="发货人详细地址" prop="fShipperattn">
  332. <el-input
  333. v-model="form.fShipperattn"
  334. :disabled="modify"
  335. style="width: 100%"
  336. size="small"
  337. placeholder="手工输入"
  338. />
  339. </el-form-item>
  340. </el-col>
  341. <el-col :span="6">
  342. <el-form-item label="发货人姓名和电话" prop="fShippertel">
  343. <el-input
  344. v-model="form.fShippertel"
  345. :disabled="modify"
  346. size="small"
  347. style="width: 100%"
  348. placeholder="手工输入"
  349. />
  350. </el-form-item>
  351. </el-col>
  352. </el-row>
  353. <el-row>
  354. <el-col :span="6">
  355. <el-form-item label="收货人公司全称" prop="fConsigneername">
  356. <el-input
  357. v-model="form.fConsigneername"
  358. :disabled="modify"
  359. size="small"
  360. style="width: 100%"
  361. placeholder="手工输入"
  362. />
  363. </el-form-item>
  364. </el-col>
  365. <el-col :span="6">
  366. <el-form-item label="收货人详细地址" prop="fConsigneeattn">
  367. <el-input
  368. v-model="form.fConsigneeattn"
  369. :disabled="modify"
  370. style="width: 100%"
  371. size="small"
  372. placeholder="手工输入"
  373. />
  374. </el-form-item>
  375. </el-col>
  376. <el-col :span="6">
  377. <el-form-item label="收货人姓名和电话" prop="fConsigneetel">
  378. <el-input
  379. v-model="form.fConsigneetel"
  380. :disabled="modify"
  381. style="width: 100%"
  382. size="small"
  383. placeholder="手工输入"
  384. />
  385. </el-form-item>
  386. </el-col>
  387. </el-row>
  388. </el-form>
  389. </el-collapse-item>
  390. <el-collapse-item title="费用信息" name="5" class="minHeight">
  391. <el-form v-model="form" label-width="130px" size="mini">
  392. <el-row>
  393. <el-col :span="6">
  394. <el-form-item label="是否办理保险" prop="fInsurance">
  395. <el-select
  396. v-model="form.fInsurance"
  397. :disabled="modify"
  398. size="small"
  399. style="width: 100%"
  400. >
  401. <el-option
  402. v-for="dict in insurance"
  403. :key="dict.dictValue"
  404. :label="dict.dictLabel"
  405. :value="dict.dictValue"
  406. ></el-option>
  407. </el-select>
  408. </el-form-item>
  409. </el-col>
  410. <el-col :span="6">
  411. <el-form-item label="保险货值(万元)" prop="fInsuranceamt">
  412. <el-input
  413. v-model="form.fInsuranceamt"
  414. :disabled="modify"
  415. style="width: 100%"
  416. size="small"
  417. />
  418. </el-form-item>
  419. </el-col>
  420. </el-row>
  421. </el-form>
  422. </el-collapse-item>
  423. <el-collapse-item title="货物信息" name="4">
  424. <el-table :data="goodsList" style="width: 100%;" align="center">
  425. <el-table-column label="行号" type="index" min-width="100px"/>
  426. <el-table-column label="货物名称" prop="fGoodsid" min-width="100px">
  427. <template slot-scope="scope">
  428. <el-select v-model="scope.row.fGoodsid" @change="selectChange(scope)" :disabled="modify">
  429. <el-option
  430. v-for="(item,index) in goods"
  431. :key="index"
  432. :label="item.fName"
  433. :value="item.fId"
  434. />
  435. </el-select>
  436. </template>
  437. </el-table-column>
  438. <el-table-column label="货类" prop="typeidName" min-width="100px">
  439. <template slot-scope="scope">
  440. <el-input v-model="scope.row.typeidName" :disabled="modify"></el-input>
  441. </template>
  442. </el-table-column>
  443. <el-table-column label="包装类型" prop="fPackageid" min-width="100px">
  444. <template slot-scope="scope">
  445. <el-select v-model="scope.row.fPackageid" :disabled="modify">
  446. <el-option
  447. v-for="item in packgeOptions"
  448. :key="item.dictValue"
  449. :label="item.dictLabel"
  450. :value="item.dictValue"
  451. />
  452. </el-select>
  453. </template>
  454. </el-table-column>
  455. <el-table-column label="箱型" prop="fCntrid" min-width="100px">
  456. <template slot-scope="scope">
  457. <el-select v-model="scope.row.fCntrid" @change="seleEt(scope)" :disabled="modify">
  458. <el-option
  459. v-for="item in cntrOptions"
  460. :key="item.fId"
  461. :label="item.fNo"
  462. :value="item.fId"
  463. />
  464. </el-select>
  465. </template>
  466. </el-table-column>
  467. <el-table-column label="箱量" prop="fCntrcount" min-width="100px">
  468. <template slot-scope="scope">
  469. <el-input v-model="scope.row.fCntrcount" :disabled="modify" :maxlength="3" oninput='this.value=this.value.replace(/[^\d.]/g,"")'></el-input>
  470. </template>
  471. </el-table-column>
  472. <el-table-column label="单箱重量(吨)" prop="fCntrweight" min-width="120px">
  473. <template slot-scope="scope">
  474. <el-input v-model="scope.row.fCntrweight" :disabled="modify" @input="cntrWeight"></el-input>
  475. </template>
  476. </el-table-column>
  477. <el-table-column label="箱态" prop="fCntrstatus" min-width="100px">
  478. <template slot-scope="scope">
  479. <el-select v-model="scope.row.fCntrstatus" :disabled="modify">
  480. <el-option
  481. v-for="item in fStatus"
  482. :key="item.dictValue"
  483. :label="item.dictLabel"
  484. :value="item.dictValue"
  485. />
  486. </el-select>
  487. </template>
  488. </el-table-column>
  489. <el-table-column label="自备货柜" prop="fSoc" min-width="100px">
  490. <template slot-scope="scope">
  491. <el-select v-model="scope.row.fSoc" :disabled="modify">
  492. <el-option label="是" value="0"></el-option>
  493. <el-option label="否" value="1"></el-option>
  494. </el-select>
  495. </template>
  496. </el-table-column>
  497. <div v-if="whether === true">
  498. <el-table-column label="设置温度(℃)" prop="fTemperature" min-width="120px">
  499. <template slot-scope="scope">
  500. <el-input v-model="scope.row.fTemperature" :disabled="modify" @input="temperature" oninput='this.value=this.value.replace(/[^\-?\d.]/g,"")'></el-input>
  501. </template>
  502. </el-table-column>
  503. <el-table-column label="风门开度(%)" prop="fDraught" min-width="120px">
  504. <template slot-scope="scope">
  505. <el-input v-model="scope.row.fDraught" :disabled="modify" @input="throttleOpening" oninput='this.value=this.value.replace(/[^\d.]/g,"")'></el-input>
  506. </template>
  507. </el-table-column>
  508. <el-table-column label="湿度设置(%)" prop="fHumidity" min-width="120px">
  509. <template slot-scope="scope">
  510. <el-input v-model="scope.row.fHumidity" :disabled="modify" @input="throttleOpening" oninput='this.value=this.value.replace(/[^\d.]/g,"")'></el-input>
  511. </template>
  512. </el-table-column>
  513. <el-table-column label="预冷要求" prop="fPrecooling" min-width="100px">
  514. <template slot-scope="scope">
  515. <el-select v-model="scope.row.fPrecooling" :disabled="modify">
  516. <el-option label="是" value="1"></el-option>
  517. <el-option label="否" value="2"></el-option>
  518. </el-select>
  519. </template>
  520. </el-table-column>
  521. </div>
  522. <el-table-column label="是否危险品" prop="ifdangerName" min-width="100px">
  523. <template slot-scope="scope">
  524. <span>{{ scope.row.ifdangerName }}</span>
  525. <el-button type="primary" size="small" @click="check(2)" style="margin-left: 5px;">查看</el-button>
  526. </template>
  527. </el-table-column>
  528. <el-table-column label="备注" prop="remark" min-width="100px"/>
  529. </el-table>
  530. </el-collapse-item>
  531. <el-collapse-item title="箱信息" name="6" class="minHeight">
  532. <div
  533. class="dialogTableTitle flex a-center jlr"
  534. style="
  535. display: flex;
  536. justify-content: space-between;
  537. align-items: center;
  538. margin: 10px 0;
  539. font-size: 16px;
  540. font-weight: bolder;
  541. "
  542. >
  543. <div>
  544. <el-button
  545. size="small"
  546. type="primary"
  547. :disabled="modify"
  548. @click.prevent="addList()"
  549. >新行
  550. </el-button>
  551. <!-- <el-button :disabled="browseStatus" @click.prevent="deleteRow(warehouseDrList)"
  552. >删除
  553. </el-button> -->
  554. <el-button
  555. type="primary"
  556. size="small"
  557. :disabled="modify"
  558. @click="approval(1)"
  559. >保 存
  560. </el-button
  561. >
  562. <el-button
  563. type="danger"
  564. size="small"
  565. :disabled="selection.length === 0"
  566. @click="deleteAll"
  567. v-if="form.fCargoPlanning == 1"
  568. >批量删除</el-button>
  569. <el-button
  570. type="warning"
  571. size="small"
  572. @click="dialogPrint"
  573. :disabled="dataList.length === 0"
  574. >打印运单</el-button>
  575. <el-upload
  576. class="upload-demo"
  577. :action="baseURL"
  578. :headers="headers"
  579. :on-progress="uploading"
  580. :show-file-list=false
  581. :data="{
  582. fId:goodsList[0].fId
  583. }"
  584. :on-success="importTemplate"
  585. accept=".xls,.xlsx"
  586. :disabled="modify"
  587. multiple
  588. style="float: right;margin-right: 20px">
  589. <el-button size="small" style="margin-left: 5px" type="warning" :disabled="modify">导入</el-button>
  590. </el-upload>
  591. </div>
  592. </div>
  593. <el-table :data="dataList" style="width: 100%;" @selection-change="Selectinventory">
  594. <el-table-column type="selection" width="55" align="center"/>
  595. <el-table-column label="序号" type="index" width="80"/>
  596. <el-table-column label="箱号" align="center" prop="fCntrno">
  597. <template slot-scope="scope">
  598. <el-input v-model="scope.row.fCntrno" :disabled="modify"/>
  599. </template>
  600. </el-table-column>
  601. <el-table-column label="铅封号" align="center" prop="fSealno">
  602. <template slot-scope="scope">
  603. <el-input v-model="scope.row.fSealno" :disabled="modify"/>
  604. </template>
  605. </el-table-column>
  606. <el-table-column prop="fCntrweight" label="单箱重量(吨)" align="center">
  607. <template slot-scope="scope">
  608. <el-input v-model="scope.row.fCntrweight" :disabled="modify"
  609. @input="cntrWeight"
  610. />
  611. </template>
  612. </el-table-column>
  613. <el-table-column prop="fGoodsid" label="货名" align="center">
  614. <template slot-scope="scope">
  615. <el-select clearable v-model="scope.row.fGoodsid" :disabled="modify">
  616. <el-option
  617. v-for="item in goodsOptions"
  618. :key="item.fId"
  619. :label="item.fName"
  620. :value="item.fId"
  621. />
  622. </el-select>
  623. </template>
  624. </el-table-column>
  625. <el-table-column prop="fPackageid" label="包装类型" align="center">
  626. <template slot-scope="scope">
  627. <el-select clearable v-model="scope.row.fPackageid" :disabled="modify">
  628. <el-option
  629. v-for="dict in packgeOptions"
  630. :key="dict.dictValue"
  631. :label="dict.dictLabel"
  632. :value="dict.dictValue"
  633. />
  634. </el-select>
  635. </template>
  636. </el-table-column>
  637. <el-table-column prop="fCntrid" label="箱型" align="center">
  638. <template slot-scope="scope">
  639. <el-select clearable v-model="scope.row.fCntrid" :disabled="modify">
  640. <el-option
  641. v-for="item in cntrOptions"
  642. :key="item.fId"
  643. :label="item.fNo"
  644. :value="item.fId"
  645. />
  646. </el-select>
  647. </template>
  648. </el-table-column>
  649. <!-- <el-table-column prop="fManual" label="来源" align="center">-->
  650. <!-- <template slot-scope="scope">-->
  651. <!-- <el-select clearable v-model="scope.row.fManual" :disabled="modify">-->
  652. <!-- <el-option />-->
  653. <!-- </el-select>-->
  654. <!-- </template>-->
  655. <!-- </el-table-column>-->
  656. <el-table-column prop="address" label="操作" align="center">
  657. <template slot-scope="scope">
  658. <el-button size="small" :disabled="modify"
  659. @click="deleteRow(scope.$index, dataList)"
  660. >移除
  661. </el-button>
  662. </template>
  663. </el-table-column>
  664. </el-table>
  665. </el-collapse-item>
  666. <el-collapse-item name="7">
  667. <template slot="title">
  668. <i class="el-icon-circle-plus"></i>应收费用
  669. </template>
  670. <div
  671. class="dialogTableTitle flex a-center jlr"
  672. style="
  673. display: flex;
  674. justify-content: space-between;
  675. align-items: center;
  676. margin: 10px 0;">
  677. <div>
  678. <el-button
  679. size="small"
  680. type="primary"
  681. :disabled="modify"
  682. @click.prevent="addCollection()"
  683. >新行
  684. </el-button>
  685. <!-- <el-button :disabled="browseStatus" @click.prevent="deleteRow(warehouseDrList)"
  686. >删除
  687. </el-button> -->
  688. <el-button
  689. type="primary"
  690. size="small"
  691. :disabled="modify"
  692. @click="approval(1)"
  693. >保 存
  694. </el-button
  695. >
  696. <!-- <el-button @click.prevent="addAgreement()" type="warning">仓储费协议</el-button> -->
  697. <el-button
  698. size="small"
  699. @click.prevent="handleSelect(3)"
  700. :disabled="modify"
  701. type="danger"
  702. >导入协议
  703. </el-button
  704. >
  705. </div>
  706. </div>
  707. <el-table
  708. :data="warehouseDrList"
  709. ref="table"
  710. tooltip-effect="dark"
  711. border
  712. stripe
  713. show-summary
  714. :summary-method="warehouseDrSummaries"
  715. >
  716. <el-table-column type="selection" width="55" align="center"/>
  717. <el-table-column label="序号" type="index" width="80">
  718. </el-table-column>
  719. <el-table-column
  720. prop="fBusinessType"
  721. header-align="center"
  722. align="center"
  723. width="180px"
  724. label="业务类型"
  725. >
  726. <template slot-scope="scope">
  727. <el-select
  728. v-model="scope.row.fBusinessType"
  729. filterable
  730. remote
  731. :disabled="modify"
  732. placeholder="请选择业务类型"
  733. >
  734. <el-option
  735. v-for="dict in businessTypeOptions"
  736. :key="dict.dictValue"
  737. :label="dict.dictLabel"
  738. :value="dict.dictValue"
  739. ></el-option>
  740. </el-select>
  741. </template>
  742. </el-table-column>
  743. <el-table-column
  744. prop="fCorpid"
  745. header-align="center"
  746. align="center"
  747. width="180px"
  748. label="客户名称"
  749. >
  750. <template slot-scope="scope">
  751. <el-select
  752. v-model="scope.row.fCorpid"
  753. filterable
  754. remote
  755. :disabled="modify"
  756. placeholder="请选择客户名称"
  757. >
  758. <el-option
  759. v-for="item in nameOptions"
  760. :key="item.fId"
  761. :label="item.fName"
  762. :value="item.fId"
  763. ></el-option>
  764. </el-select>
  765. </template>
  766. </el-table-column>
  767. <el-table-column
  768. prop="fFeeid"
  769. header-align="center"
  770. align="center"
  771. width="180px"
  772. label="费用名称"
  773. >
  774. <template slot-scope="scope">
  775. <el-select
  776. v-model="scope.row.fFeeid"
  777. filterable
  778. remote
  779. :disabled="modify"
  780. placeholder="请选择费用名称"
  781. >
  782. <el-option
  783. v-for="(dict, index) in fDNameOptions"
  784. :key="index.fId"
  785. :label="dict.fName"
  786. :value="dict.fId"
  787. ></el-option>
  788. </el-select>
  789. </template>
  790. </el-table-column>
  791. <el-table-column
  792. prop="fFeeUnitid"
  793. header-align="center"
  794. align="center"
  795. width="180px"
  796. label="计价单位"
  797. >
  798. <template slot-scope="scope">
  799. <el-select
  800. v-model="scope.row.fFeeUnitid"
  801. placeholder="请选择计价单位"
  802. @change="changeFeeUnit(scope.row)"
  803. clearable
  804. :disabled="modify"
  805. >
  806. <el-option
  807. v-for="(dict, index) in jFeetunitOptions"
  808. :key="index.dictValue"
  809. :label="dict.dictLabel"
  810. :value="dict.dictValue"
  811. />
  812. </el-select>
  813. </template>
  814. </el-table-column>
  815. <el-table-column
  816. prop="fQty"
  817. header-align="center"
  818. align="center"
  819. width="130px"
  820. label="数量"
  821. >
  822. <template slot-scope="scope">
  823. <el-input
  824. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  825. v-model="scope.row.fQty"
  826. placeholder="数量"
  827. :disabled="modify"
  828. @change="changeContractAmt(scope.row)"
  829. show-word-limit
  830. />
  831. </template>
  832. </el-table-column>
  833. <el-table-column
  834. prop="fUnitprice"
  835. header-align="center"
  836. align="center"
  837. width="130px"
  838. label="单价"
  839. >
  840. <template slot-scope="scope">
  841. <el-input
  842. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  843. v-model="scope.row.fUnitprice"
  844. placeholder="单价"
  845. :disabled="modify"
  846. @change="changeContractAmt(scope.row)"
  847. show-word-limit
  848. />
  849. </template>
  850. </el-table-column>
  851. <el-table-column
  852. prop="fAmount"
  853. header-align="center"
  854. align="center"
  855. width="130px"
  856. label="金额"
  857. >
  858. <template slot-scope="scope">
  859. <el-input
  860. disabled
  861. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  862. v-model="scope.row.fAmount"
  863. placeholder="金额"
  864. show-word-limit
  865. />
  866. </template>
  867. </el-table-column>
  868. <el-table-column
  869. prop="fStltypeid"
  870. header-align="center"
  871. align="center"
  872. width="130px"
  873. label="结算方式"
  874. >
  875. <template slot-scope="scope">
  876. <el-select
  877. v-model="scope.row.fStltypeid"
  878. placeholder="请选择结算表票结、月结"
  879. :disabled="modify"
  880. >
  881. <el-option
  882. v-for="(dict, index) in fStltypeOptions"
  883. :key="index.dictValue"
  884. :label="dict.dictLabel"
  885. :value="parseInt(dict.dictValue)"
  886. ></el-option>
  887. </el-select>
  888. </template>
  889. </el-table-column>
  890. <el-table-column
  891. prop="fCurrency"
  892. header-align="center"
  893. align="center"
  894. width="130px"
  895. label="币别"
  896. >
  897. <template slot-scope="scope">
  898. <el-input
  899. v-model="scope.row.fCurrency"
  900. :disabled="modify"
  901. placeholder="币别"
  902. show-word-limit
  903. />
  904. </template>
  905. </el-table-column>
  906. <el-table-column
  907. prop="fExrate"
  908. header-align="center"
  909. align="center"
  910. width="130px"
  911. label="汇率"
  912. >
  913. <template slot-scope="scope">
  914. <el-input
  915. v-model="scope.row.fExrate"
  916. :disabled="modify"
  917. placeholder="汇率"
  918. show-word-limit
  919. />
  920. </template>
  921. </el-table-column>
  922. <el-table-column
  923. prop="fTaxrate"
  924. header-align="center"
  925. align="center"
  926. width="130px"
  927. label="税率"
  928. >
  929. <template slot-scope="scope">
  930. <el-input
  931. v-model="scope.row.fTaxrate"
  932. :disabled="modify"
  933. placeholder="税率"
  934. show-word-limit
  935. />
  936. </template>
  937. </el-table-column>
  938. <el-table-column
  939. prop="fSrcTypeId"
  940. header-align="center"
  941. align="center"
  942. width="130px"
  943. label="来源"
  944. >
  945. <template slot-scope="scope">
  946. <span v-if="scope.row.fSrcTypeId === 0">录入</span>
  947. <span v-if="scope.row.fSrcTypeId === 1">协议</span>
  948. <span v-if="scope.row.fSrcTypeId === 2">订舱</span>
  949. </template>
  950. </el-table-column>
  951. <el-table-column
  952. prop="remark"
  953. header-align="center"
  954. align="center"
  955. width="150px"
  956. label="备注"
  957. >
  958. <template slot-scope="scope">
  959. <el-input
  960. v-model="scope.row.remark"
  961. :disabled="modify"
  962. placeholder="备注"
  963. show-word-limit
  964. />
  965. </template>
  966. </el-table-column>
  967. <el-table-column
  968. header-align="center"
  969. align="center"
  970. label="操作"
  971. width="200px"
  972. >
  973. <template slot-scope="scope">
  974. <el-button
  975. @click.native.prevent="
  976. deleteRow(scope.$index, warehouseDrList)
  977. "
  978. size="small"
  979. :disabled="modify"
  980. >移除
  981. </el-button
  982. >
  983. </template>
  984. </el-table-column>
  985. </el-table>
  986. </el-collapse-item>
  987. <el-collapse-item name="8">
  988. <template slot="title">
  989. <i class="el-icon-remove"></i>应付费用
  990. </template>
  991. <div
  992. class="dialogTableTitle flex a-center jlr"
  993. style="
  994. display: flex;
  995. justify-content: space-between;
  996. align-items: center;
  997. margin: 10px 0;
  998. "
  999. >
  1000. <div>
  1001. <el-button
  1002. type="primary"
  1003. :disabled="modify"
  1004. @click.prevent="addpayment()"
  1005. size="small"
  1006. >新行
  1007. </el-button>
  1008. <el-button
  1009. type="primary"
  1010. size="small"
  1011. @click="approval(1)"
  1012. :disabled="modify"
  1013. >保 存
  1014. </el-button
  1015. >
  1016. <el-button
  1017. type="danger"
  1018. size="small"
  1019. @click.prevent="handleSelect(1)"
  1020. :disabled="modify"
  1021. >导入协议
  1022. </el-button
  1023. >
  1024. </div>
  1025. </div>
  1026. <el-table
  1027. :data="warehouseCrList"
  1028. ref="table"
  1029. tooltip-effect="dark"
  1030. border
  1031. stripe
  1032. show-summary
  1033. :summary-method="warehouseCrSummaries"
  1034. >
  1035. <el-table-column type="selection" width="55" align="center"/>
  1036. <el-table-column label="序号" type="index" width="80">
  1037. </el-table-column>
  1038. <el-table-column
  1039. prop="fCorpid"
  1040. header-align="center"
  1041. align="center"
  1042. width="180px"
  1043. label="业务类型"
  1044. >
  1045. <template slot-scope="scope">
  1046. <el-select
  1047. v-model="scope.row.fBusinessType"
  1048. filterable
  1049. remote
  1050. :disabled="modify || scope.row.fSrcTypeId != 0"
  1051. placeholder="请选择业务类型"
  1052. >
  1053. <el-option
  1054. v-for="dict in businessTypeOptions"
  1055. :key="dict.dictValue"
  1056. :label="dict.dictLabel"
  1057. :value="dict.dictValue"
  1058. ></el-option>
  1059. </el-select>
  1060. </template>
  1061. </el-table-column>
  1062. <el-table-column
  1063. prop="fCorpid"
  1064. header-align="center"
  1065. align="center"
  1066. width="180px"
  1067. label="客户名称"
  1068. >
  1069. <template slot-scope="scope">
  1070. <el-select
  1071. v-model="scope.row.fCorpid"
  1072. filterable
  1073. remote
  1074. :disabled="modify || scope.row.fSrcTypeId != 0"
  1075. placeholder="请选择客户名称"
  1076. >
  1077. <el-option
  1078. v-for="item in nameOptions"
  1079. :key="item.fId"
  1080. :label="item.fName"
  1081. :value="item.fId"
  1082. ></el-option>
  1083. </el-select>
  1084. </template>
  1085. </el-table-column>
  1086. <el-table-column
  1087. prop="fFeeid"
  1088. header-align="center"
  1089. align="center"
  1090. width="180px"
  1091. label="费用名称"
  1092. >
  1093. <template slot-scope="scope">
  1094. <el-select
  1095. v-model="scope.row.fFeeid"
  1096. filterable
  1097. :disabled="modify || scope.row.fSrcTypeId !== 0"
  1098. remote
  1099. placeholder="请选择费用名称"
  1100. >
  1101. <el-option
  1102. v-for="(dict, index) in fCNameOptions"
  1103. :key="index.fId"
  1104. :label="dict.fName"
  1105. :value="dict.fId"
  1106. ></el-option>
  1107. </el-select>
  1108. </template>
  1109. </el-table-column>
  1110. <el-table-column
  1111. prop="fFeeUnitid"
  1112. header-align="center"
  1113. align="center"
  1114. width="180px"
  1115. label="计价单位"
  1116. >
  1117. <template slot-scope="scope">
  1118. <el-select
  1119. v-model="scope.row.fFeeUnitid"
  1120. filterable
  1121. remote
  1122. @change="changeFeeUnit(scope.row)"
  1123. :disabled="modify || scope.row.fSrcTypeId !== 0"
  1124. placeholder="请选择计价单位"
  1125. >
  1126. <el-option
  1127. v-for="(dict, index) in jFeetunitOptions"
  1128. :key="index.dictValue"
  1129. :label="dict.dictLabel"
  1130. :value="dict.dictValue"
  1131. ></el-option>
  1132. </el-select>
  1133. </template>
  1134. </el-table-column>
  1135. <el-table-column
  1136. prop="fQty"
  1137. header-align="center"
  1138. align="center"
  1139. width="150px"
  1140. label="数量"
  1141. >
  1142. <template slot-scope="scope">
  1143. <el-input
  1144. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
  1145. v-model="scope.row.fQty"
  1146. :disabled="modify || scope.row.fSrcTypeId !== 0"
  1147. @change="changeContractAmt(scope.row)"
  1148. placeholder="数量"
  1149. show-word-limit
  1150. />
  1151. </template>
  1152. </el-table-column>
  1153. <el-table-column
  1154. prop="fUnitprice"
  1155. header-align="center"
  1156. align="center"
  1157. width="150px"
  1158. label="单价"
  1159. >
  1160. <template slot-scope="scope">
  1161. <el-input
  1162. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1163. v-model="scope.row.fUnitprice"
  1164. :disabled="modify || scope.row.fSrcTypeId !== 0"
  1165. @change="changeContractAmt(scope.row)"
  1166. placeholder="单价"
  1167. show-word-limit
  1168. />
  1169. </template>
  1170. </el-table-column>
  1171. <el-table-column
  1172. prop="fAmount"
  1173. header-align="center"
  1174. align="center"
  1175. width="150px"
  1176. label="金额"
  1177. >
  1178. <template slot-scope="scope">
  1179. <el-input
  1180. disabled
  1181. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1182. v-model="scope.row.fAmount"
  1183. placeholder="金额"
  1184. show-word-limit
  1185. />
  1186. </template>
  1187. </el-table-column>
  1188. <el-table-column
  1189. prop="fStltypeid"
  1190. header-align="center"
  1191. align="center"
  1192. width="130px"
  1193. label="结算方式"
  1194. >
  1195. <template slot-scope="scope">
  1196. <el-select
  1197. v-model="scope.row.fStltypeid"
  1198. placeholder="请选择结算表票结、月结"
  1199. :disabled="modify || scope.row.fSrcTypeId !== 0"
  1200. >
  1201. <el-option
  1202. v-for="(dict, index) in fStltypeOptions"
  1203. :key="index.dictValue"
  1204. :label="dict.dictLabel"
  1205. :value="parseInt(dict.dictValue)"
  1206. ></el-option>
  1207. </el-select>
  1208. </template>
  1209. </el-table-column>
  1210. <el-table-column
  1211. prop="fCurrency"
  1212. header-align="center"
  1213. align="center"
  1214. width="150px"
  1215. label="币别"
  1216. >
  1217. <template slot-scope="scope">
  1218. <el-input
  1219. v-model="scope.row.fCurrency"
  1220. :disabled="modify || scope.row.fSrcTypeId !== 0"
  1221. placeholder="币别"
  1222. show-word-limit
  1223. />
  1224. </template>
  1225. </el-table-column>
  1226. <el-table-column
  1227. prop="fExrate"
  1228. header-align="center"
  1229. align="center"
  1230. width="150px"
  1231. label="汇率"
  1232. >
  1233. <template slot-scope="scope">
  1234. <el-input
  1235. v-model="scope.row.fExrate"
  1236. :disabled="modify || scope.row.fSrcTypeId !== 0"
  1237. placeholder="汇率"
  1238. show-word-limit
  1239. />
  1240. </template>
  1241. </el-table-column>
  1242. <el-table-column
  1243. prop="fTaxrate"
  1244. header-align="center"
  1245. align="center"
  1246. width="150px"
  1247. label="税率"
  1248. >
  1249. <template slot-scope="scope">
  1250. <el-input
  1251. v-model="scope.row.fTaxrate"
  1252. :disabled="modify || scope.row.fSrcTypeId !== 0"
  1253. placeholder="税率"
  1254. show-word-limit
  1255. />
  1256. </template>
  1257. </el-table-column>
  1258. <el-table-column
  1259. prop="fSrcTypeId"
  1260. header-align="center"
  1261. align="center"
  1262. width="130px"
  1263. label="来源"
  1264. >
  1265. <template slot-scope="scope">
  1266. <span v-if="scope.row.fSrcTypeId === 0">录入</span>
  1267. <span v-if="scope.row.fSrcTypeId === 1">协议</span>
  1268. <span v-if="scope.row.fSrcTypeId === 2">订舱</span>
  1269. </template>
  1270. </el-table-column>
  1271. <el-table-column
  1272. prop="remark"
  1273. header-align="center"
  1274. align="center"
  1275. width="150px"
  1276. label="备注"
  1277. >
  1278. <template slot-scope="scope">
  1279. <el-input
  1280. v-model="scope.row.remark"
  1281. :disabled="modify || scope.row.fSrcTypeId !== 0"
  1282. placeholder="备注"
  1283. show-word-limit
  1284. />
  1285. </template>
  1286. </el-table-column>
  1287. <el-table-column
  1288. header-align="center"
  1289. align="center"
  1290. width="200px"
  1291. label="操作"
  1292. >
  1293. <template slot-scope="scope">
  1294. <!-- <el-button size="small">审核费用</el-button> -->
  1295. <el-button
  1296. @click.native.prevent="
  1297. deleteRow(scope.$index, warehouseCrList)
  1298. "
  1299. size="small"
  1300. :disabled="modify"
  1301. >移除
  1302. </el-button
  1303. >
  1304. </template>
  1305. </el-table-column>
  1306. </el-table>
  1307. </el-collapse-item>
  1308. <el-collapse-item name="9" class="minHeight" title="箱信息">
  1309. <template slot="title">
  1310. <i class="el-icon-circle-plus"></i>利润合计:
  1311. {{this.amountDr != null && this.amountCr != null ? this.amountDr - this.amountCr :
  1312. (!this.amountDr && this.amountCr ? 0 - this.amountCr :
  1313. (!this.amountDr && !this.amountCr ? '' : this.amountDr))}}
  1314. </template>
  1315. </el-collapse-item>
  1316. </el-collapse>
  1317. <div style="margin:60px;float: right">
  1318. <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
  1319. <approval-comments v-if="addOrUpdateVisib" ref="ApprovalComments" @refreshDataList="returnData"
  1320. ></approval-comments>
  1321. <el-button type="info" :disabled="jumpDonot" v-if="form.fBillstatus <= 11 && form.fBillstatus >= 6" @click="modify = false">修 改
  1322. </el-button>
  1323. <el-button type="success" :disabled="modify" v-if="form.fBillstatus <= 11 || form.fBillstatus >= 6" @click="approval(1)">保 存
  1324. </el-button>
  1325. <el-button type="primary" :disabled="modify" v-if="form.fBillstatus == 11 && this.form.moneyStatus < 4"
  1326. @click="feeSubmission"
  1327. >费用请核
  1328. </el-button>
  1329. <el-button type="primary" v-if="form.fBillstatus == 11 && this.form.moneyStatus >= 4" @click="revokeSubmission">
  1330. 撤销费用请核
  1331. </el-button>
  1332. <el-button type="success" v-if="approVal" @click="addOrUpdateHand(form,'f_billstatus')">审 批</el-button>
  1333. <el-button type="primary"
  1334. v-if="(form.fUpdeteStatus >= 2 && form.fUpdeteStatus <= 6) && (form.fSubmitUpdate >= 2 && form.fSubmitUpdate <= 6) && (form.fDeleteStatus >= 2 && form.fDeleteStatus <= 5) && approvalTwo"
  1335. @click="modifyApproval()"
  1336. >审批
  1337. </el-button>
  1338. <el-button v-if="!form.fMblno && form.fBillstatus < 5" type="danger" @click="rejectDeletion">
  1339. 驳回并删除
  1340. </el-button>
  1341. <el-button type="danger" :disabled="disappear" v-if="form.moneyStatus === 4 && current == before"
  1342. @click="revokeTwo('f_billstatus')"
  1343. >撤销请核
  1344. </el-button>
  1345. <el-button type="primary"
  1346. v-if="(form.fUpdeteStatus !== 4 && form.fUpdeteStatus !== 5 && form.fUpdeteStatus !== 6) && (form.fBillstatus !== 11 ||form.moneyStatus == 1 || (form.moneyStatus != null && form.moneyStatus >= 4))"
  1347. @click="addOrUpdateHandle('f_billstatus')"
  1348. >查看审批
  1349. </el-button>
  1350. <el-button type="primary"
  1351. v-if="(form.fUpdeteStatus >= 2 && form.fUpdeteStatus <= 6) && (form.fSubmitUpdate >= 2 && form.fSubmitUpdate <= 6) && (form.fDeleteStatus >= 2 && form.fDeleteStatus <= 5) && dataElist"
  1352. @click="revisionApproval()"
  1353. >查看审批
  1354. </el-button>
  1355. <el-button icon="el-icon-arrow-left" type="danger" v-if="cancelButton === true" @click="cancel">返回列表</el-button>
  1356. <el-button icon="el-icon-arrow-left" type="danger" v-if="cancelButton === false" @click="cancelTwo"
  1357. >返回首页
  1358. </el-button
  1359. >
  1360. </div>
  1361. <!-- 附件查看-->
  1362. <el-dialog
  1363. title="查看附件"
  1364. :visible.sync="dialogVisible"
  1365. width="60%"
  1366. v-dialogDrag
  1367. >
  1368. <el-table
  1369. :data="relevantAttachments"
  1370. ref="table"
  1371. tooltip-effect="dark"
  1372. border
  1373. stripe
  1374. style="width: 100%"
  1375. height="150"
  1376. >
  1377. <el-table-column label="序号" type="index" width="80">
  1378. </el-table-column>
  1379. <el-table-column
  1380. prop="fName"
  1381. header-align="center"
  1382. align="center"
  1383. width="250px"
  1384. label="附件名称"
  1385. >
  1386. <template slot-scope="scope">
  1387. <el-input
  1388. v-model="scope.row.fName"
  1389. placeholder="附件名称"
  1390. show-word-limit
  1391. />
  1392. </template>
  1393. </el-table-column>
  1394. <el-table-column
  1395. prop="createTime"
  1396. header-align="center"
  1397. align="center"
  1398. width="250px"
  1399. label="上传时间"
  1400. >
  1401. <template slot-scope="scope">
  1402. <el-input
  1403. v-model="scope.row.createTime"
  1404. disabled
  1405. placeholder="上传时间"
  1406. ></el-input>
  1407. </template>
  1408. </el-table-column>
  1409. <el-table-column
  1410. prop="createBy"
  1411. header-align="center"
  1412. align="center"
  1413. width="150px"
  1414. label="上传人"
  1415. >
  1416. <template slot-scope="scope">
  1417. <el-input
  1418. v-model="scope.row.createBy"
  1419. disabled
  1420. placeholder="上传人"
  1421. show-word-limit
  1422. />
  1423. </template>
  1424. </el-table-column>
  1425. <el-table-column
  1426. prop="fUrl"
  1427. header-align="center"
  1428. align="center"
  1429. width="150px"
  1430. label="操作"
  1431. >
  1432. <template slot-scope="scope">
  1433. <!-- <el-upload-->
  1434. <!-- class="upload-demo"-->
  1435. <!-- :action="uploadImgUrl"-->
  1436. <!-- :on-success="(res,file)=>{handleSucces(scope,res,file)}"-->
  1437. <!-- :headers="headers"-->
  1438. <!-- style="width:25%;float: left"-->
  1439. <!-- :show-file-list="false"-->
  1440. <!-- :limit="1"-->
  1441. <!-- >-->
  1442. <!-- <el-button size="small" type="primary" style="margin-left:20px">点击上传</el-button>-->
  1443. <!-- </el-upload>-->
  1444. <el-button size="small" type="primary" @click="checkFile(scope)">查看</el-button>
  1445. <!-- <el-button size="small" type="primary" @click="deleteFile(scope)">删除</el-button>-->
  1446. </template>
  1447. </el-table-column>
  1448. </el-table>
  1449. <span slot="footer" class="dialog-footer">
  1450. <el-button @click="dialogVisible = false">取 消</el-button>
  1451. <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
  1452. </span>
  1453. </el-dialog>
  1454. <!-- 打印运单-->
  1455. <el-dialog
  1456. :visible.sync="dialogPrinting"
  1457. width="30%"
  1458. append-to-body
  1459. fullscreen
  1460. :show-close="false"
  1461. :close-on-press-escape="false"
  1462. :before-close="dialogVisible = false"
  1463. >
  1464. <div ref="print" style="width: 99%;margin:1px auto auto;">
  1465. <div style="width: 100%;">
  1466. <div
  1467. style="width: 50%;height: 160px;float: left;justify-content:center;align-items:center;display:-webkit-flex">
  1468. <div>
  1469. <h1>青岛凯和志诚物流有限公司</h1>
  1470. <h3 style="text-align: center">水路集装箱货物运单</h3>
  1471. </div>
  1472. </div>
  1473. <div
  1474. style="width: 50%;height: 160px;float: left;justify-content:center;align-items:center;display:-webkit-flex">
  1475. <div style="width: 500px;border: 1px solid #cccccc;padding: 10px">
  1476. <h4 style="margin: 0">1、本运单一式四联,第一联退回发货人或托运人,做为目的港收货人提货凭证。</h4>
  1477. <h4 style="margin: 0">2、运单一经提取货物后即失去提货效力。</h4>
  1478. <h4 style="margin: 0">3、运单非有价证券,不得流通或转让给非本运单指定的第三方。</h4>
  1479. <h4 style="margin: 0">4、托运人必须投保货物运输综合险,否则由此产生的损失由托运人自负。</h4>
  1480. <h4 style="margin: 0">5、船东过失承运人不承担责任,由过失方承担。</h4>
  1481. </div>
  1482. </div>
  1483. </div>
  1484. <div style="display:flex;justify-content: space-between;width: 61.3%;margin-left: 10px">
  1485. <p>离港日:{{ estimatedTime.fEtd }}</p>
  1486. <p>运单号:{{ form.fMblno }}</p>
  1487. <p>运输条款:{{ form.fServiceitems | fServiceitemsNameFormat(transport) }}</p>
  1488. <p>箱型箱量:{{goodsList&&goodsList.length>0?goodsList[0].cntrName+"*"+goodsList[0].fCntrcount:'—'}}</p>
  1489. <p>业务号:{{ form.fBillno }}</p>
  1490. </div>
  1491. <table border="1" style="border-collapse: collapse;width: 100%;text-align: center">
  1492. <tr class="listTd">
  1493. <td style="width: 9%;">船名</td>
  1494. <td style="width: 9%;">{{ form.fVslid | fVslidFormat(vslidList) }}</td>
  1495. <td style="width: 9%;">航次</td>
  1496. <td style="width: 11%;" colspan="2">{{ form.fVoyid | voyidNameFormat(voyidList) }}</td>
  1497. <td style="width: 9%;">装货港</td>
  1498. <td style="width: 9%;">{{ form.fLoadportid | portFormat(fMblnoOptions) }}</td>
  1499. <td style="width: 9%;">卸货港</td>
  1500. <td style="width: 11%;" colspan="2">{{ form.fDestportid | portFormat(fMblnoOptions) }}</td>
  1501. <td style="width: 12%;" rowspan="4" colspan="2">卸货人日期(章)</td>
  1502. <td style="width: 12%;" rowspan="4" colspan="2">收货人(章)</td>
  1503. </tr>
  1504. <tr class="listTd">
  1505. <td>第一接驳船</td>
  1506. <td></td>
  1507. <td>航次</td>
  1508. <td colspan="2"></td>
  1509. <td>第一换装港</td>
  1510. <td colspan="4"></td>
  1511. </tr>
  1512. <tr class="listTd">
  1513. <td>第二接驳船</td>
  1514. <td></td>
  1515. <td>航次</td>
  1516. <td colspan="2"></td>
  1517. <td>第二换装港</td>
  1518. <td colspan="4"></td>
  1519. </tr>
  1520. <tr class="listTd">
  1521. <td rowspan="3">托运人</td>
  1522. <td>全称</td>
  1523. <td rowspan="3" colspan="2">
  1524. {{ form.fShippername }}{{
  1525. form.fShipperattn ? ',' + form.fShipperattn : ''
  1526. }}{{ form.fShippertel ? ',' + form.fShippertel : '' }}
  1527. </td>
  1528. <td rowspan="3">收货人</td>
  1529. <td>全称</td>
  1530. <td colspan="4" rowspan="3">
  1531. {{ form.fConsigneername }}{{
  1532. form.fConsigneeattn ? ',' + form.fConsigneeattn : ''
  1533. }}{{ form.fConsigneetel ? ',' + form.fConsigneetel : '' }}
  1534. </td>
  1535. </tr>
  1536. <tr class="listTd">
  1537. <td>地址:电话</td>
  1538. <td>地址:电话</td>
  1539. <td rowspan="3" colspan="2">托运人(签盖)</td>
  1540. <td rowspan="3" colspan="2">承运人(签盖)</td>
  1541. </tr>
  1542. <tr class="listTd">
  1543. <td>银行:帐号</td>
  1544. <td>银行:帐号</td>
  1545. </tr>
  1546. <tr class="listTd">
  1547. <td rowspan="2" colspan="2">箱号</td>
  1548. <td rowspan="2" colspan="2">铅封号</td>
  1549. <td rowspan="2">批号</td>
  1550. <td rowspan="2">货名</td>
  1551. <td rowspan="2">箱型</td>
  1552. <td rowspan="2">价值</td>
  1553. <td rowspan="2">托运人确定重量(吨)</td>
  1554. <td rowspan="2">计算重量(吨)</td>
  1555. </tr>
  1556. <tr>
  1557. <td :rowspan="dataList.length+2" align="center" colspan="4">
  1558. <img src="../../../../assets/images/chapter.png" alt="无图片" style="width: 50%;">
  1559. </td>
  1560. </tr>
  1561. <!-- 此处为遍历列表-->
  1562. <tr class="listTd" v-for="(item,index) in dataList" :key="index">
  1563. <td colspan="2">{{ item.fCntrno }}</td>
  1564. <td colspan="2">{{ item.fSealno }}</td>
  1565. <td></td>
  1566. <td>{{ item.fGoodsid | goodsFormat(goodsOptions) }}</td>
  1567. <td>{{ item.fCntrid | cntrFormat(cntrOptions) }}</td>
  1568. <td></td>
  1569. <td></td>
  1570. <td>{{ item.fCntrweight }}</td>
  1571. </tr>
  1572. <tr class="listTd">
  1573. <td rowspan="5">托运人/发货人须知</td>
  1574. <td colspan="4" rowspan="5" style="text-align: left;padding: 10px;">
  1575. 1、粗线内各栏由发货人填写,如有更改时,须在更改处盖章;订舱委托书下条款及运单均为本运输合同组成部分,发货人已充分阅读并同意该部分条款。<br>2、按规定正确、清楚填写;并逐张盖上账号、公章,货名、件数、重量不得省略。由于申报不实给承运人、港口经营人造成损失的,托运人应当负赔偿责任;<br>3、托运人负责封箱,承运人对上述箱内货物的描述不知。<br>4、如超载引起事故,由装箱人负责;<br>5、为确保货物安全,货物装箱前请先验箱,无异议视为集装箱箱况完好;<br>6、严禁将危险货物、腐蚀箱体的货物及国家禁运货物装入箱内。<br>7、与本运单有关的任何争议,各方当事人一致同意选择由青岛海事法院管辖
  1576. </td>
  1577. <td rowspan="4">箱量合计:</td>
  1578. <td rowspan="4"></td>
  1579. <td rowspan="4">备注:</td>
  1580. <td rowspan="4" colspan="2"></td>
  1581. </tr>
  1582. <tr></tr>
  1583. <tr></tr>
  1584. <tr></tr>
  1585. <tr class="listTd">
  1586. <td style="height: 40px;">收费项目</td>
  1587. <td>收费明细</td>
  1588. <td></td>
  1589. <td>收费金额</td>
  1590. <td colspan="2"></td>
  1591. <td colspan="2">预付/到付</td>
  1592. </tr>
  1593. </table>
  1594. </div>
  1595. <span slot="footer" class="dialog-footer">
  1596. <el-button @click="dialogPrinting = false">取 消</el-button>
  1597. <el-button type="primary" @click="Printing">打 印</el-button>
  1598. </span>
  1599. </el-dialog>
  1600. </div>
  1601. </template>
  1602. <script>
  1603. import {
  1604. listCorps,
  1605. addmodify,
  1606. getCntr,
  1607. postApproval,
  1608. listFees,
  1609. getGoodName,
  1610. getFName,
  1611. getfee,
  1612. getName,
  1613. portInquiry,
  1614. nameOfVessel,
  1615. voyageNumber,
  1616. reject,
  1617. deleteAll,
  1618. shippingList,
  1619. cancellationFees
  1620. } from '@/api/kaihe/domesticTrade/orderInformation'
  1621. import Global from '@/layout/components/global'
  1622. import { getToken } from '@/utils/auth'
  1623. import Cookies from 'js-cookie'
  1624. import draggable from 'vuedraggable'
  1625. import Vue from 'vue'
  1626. import AddOrUpdate from '@/views/viewApproval'
  1627. import ApprovalComments from '@/views/startApproval'
  1628. import { revoke, revokeTwo } from '@/api/warehouseBusiness/warehouseInStock'
  1629. import { queryUserVal } from '@/api/system/user'
  1630. import request from '@/utils/request'
  1631. Vue.directive('dialogDrag', {
  1632. bind(el, binding, vnode, oldVnode) {
  1633. const dialogHeaderEl = el.querySelector('.el-dialog__header')
  1634. const dragDom = el.querySelector('.el-dialog')
  1635. const enlarge = el.querySelector('.enlarge')
  1636. dialogHeaderEl.style.cursor = 'move'
  1637. // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
  1638. const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null)
  1639. if (enlarge) {
  1640. enlarge.onclick = (e) => {
  1641. dragDom.style.top = '0px'
  1642. dragDom.style.left = '0px'
  1643. }
  1644. }
  1645. dialogHeaderEl.onmousedown = (e) => {
  1646. // 鼠标按下,计算当前元素距离可视区的距离
  1647. const disX = e.clientX - dialogHeaderEl.offsetLeft
  1648. const disY = e.clientY - dialogHeaderEl.offsetTop
  1649. // 获取到的值带px 正则匹配替换
  1650. let styL, styT
  1651. // 注意在ie中 第一次获取到的值为组件自带50% 移动之后赋值为px
  1652. if (sty.left.includes('%')) {
  1653. styL = +document.body.clientWidth * (+sty.left.replace(/\%/g, '') / 100)
  1654. styT = +document.body.clientHeight * (+sty.top.replace(/\%/g, '') / 100)
  1655. } else {
  1656. styL = +sty.left.replace(/\px/g, '')
  1657. styT = +sty.top.replace(/\px/g, '')
  1658. }
  1659. document.onmousemove = function(e) {
  1660. // 通过事件委托,计算移动的距离
  1661. const l = e.clientX - disX
  1662. const t = e.clientY - disY
  1663. // 移动当前元素
  1664. if ((t + styT) >= 0) {
  1665. dragDom.style.top = `${t + styT}px`
  1666. }
  1667. dragDom.style.left = `${l + styL}px`
  1668. // 将此时的位置传出去
  1669. // binding.value({x:e.pageX,y:e.pageY})
  1670. }
  1671. document.onmouseup = function(e) {
  1672. document.onmousemove = null
  1673. document.onmouseup = null
  1674. }
  1675. }
  1676. }
  1677. })
  1678. export default {
  1679. name: 'orderInformation',
  1680. components: {
  1681. AddOrUpdate,
  1682. ApprovalComments
  1683. },
  1684. data() {
  1685. return {
  1686. selection: [],
  1687. insurance:[],
  1688. etentioncargo:[],
  1689. vslidList:[],
  1690. voyidList:[],
  1691. cEsign:[],
  1692. transport:[],
  1693. paymentMethod:[],
  1694. drawee:[],
  1695. whether:false,
  1696. fStatus:[],
  1697. goods:[],
  1698. rules: {
  1699. fMblno: [{ required: true, message: ' ', trigger: 'blur' }]
  1700. },
  1701. changeNum: true,
  1702. cancelButton: true,
  1703. jumpDonot: false,
  1704. disappear: false,
  1705. businessTypeOptions: [],
  1706. id: null,
  1707. current: '',
  1708. before: '',
  1709. approVal: false,
  1710. //客户名称下拉模糊
  1711. nameOptions: [],
  1712. //字典表包装类型
  1713. packgeOptions: [],
  1714. //货名下拉
  1715. goodsOptions: [],
  1716. //箱型下拉
  1717. cntrOptions: [],
  1718. fTaxrate: '',
  1719. //结算方式
  1720. fStltypeOptions: [],
  1721. //计价单位
  1722. jFeetunitOptions: [],
  1723. //收付款费用名称字典表
  1724. fDNameOptions: [],
  1725. fCNameOptions: [],
  1726. warehouseCrList: [],
  1727. estimatedTime: {},
  1728. addOrUpdateVisible: false,
  1729. dataElist:false,
  1730. addOrUpdateVisib: false,
  1731. warehouseDrList: [],
  1732. goodsList: [],
  1733. dataList: [],
  1734. visible: false,
  1735. dataForm: {},
  1736. modify: true,
  1737. doNot: true,
  1738. activeNames: ['1', '2', '3', '4', '5', '6'],
  1739. form: {},
  1740. fMblnoOptions:[],
  1741. uploadImgUrl: process.env.VUE_APP_BASE_API + '/common/upload', // 上传的图片服务器地址
  1742. relevantAttachments: [],
  1743. headers: { Authorization: 'Bearer ' + getToken() },
  1744. baseURL: process.env.VUE_APP_BASE_API + '/khwarehouse/warehousebills/importCreate',
  1745. //集装箱尺码字典表
  1746. CntrsizeOptions: [],
  1747. //模糊查询箱类型
  1748. typeOptions: [],
  1749. //附件上传弹窗
  1750. dialogVisible: false,
  1751. //调箱动作字典表
  1752. boxActionOptions: [],
  1753. //集装箱主字典表
  1754. ownerOptions: [],
  1755. //模糊下拉查询地点
  1756. addressOptions: [],
  1757. //空重字典表
  1758. updateEFOptions: [],
  1759. //状态字典表
  1760. cntrstatusOptions: [],
  1761. // 遮罩层
  1762. loading: true,
  1763. // 选中数组
  1764. ids: [],
  1765. // 显示搜索条件
  1766. showSearch: true,
  1767. // 总条数
  1768. total: 0,
  1769. // 客户详情表格数据
  1770. corpsList: [],
  1771. // 查询参数
  1772. select: '',
  1773. querDate: [],
  1774. file: [],
  1775. row: [],
  1776. res: [],
  1777. formList:{},
  1778. approvalTwo:false,
  1779. amountDr:null,
  1780. amountCr:null,
  1781. actId: null,
  1782. // 打印弹窗
  1783. dialogPrinting: false,
  1784. boxSorting: {
  1785. pageNum: 1,
  1786. pageSize: 30,
  1787. total: null,
  1788. },
  1789. // 上传loading
  1790. uploadLoading: false,
  1791. }
  1792. },
  1793. //页面跳转后传递参数
  1794. activated() {
  1795. this.jumpDonot=false;
  1796. if (this.$route.query.testing)this.dataElist = true
  1797. this.modify = true
  1798. let formDate
  1799. if (this.$route.query.list) {
  1800. formDate = {
  1801. fId: JSON.parse(this.$route.query.list).billId
  1802. }
  1803. this.actId = JSON.parse(this.$route.query.list).actId
  1804. this.formList = formDate
  1805. this.approVal = true
  1806. this.cancelButton = false
  1807. } else if (this.$route.query.data) {
  1808. console.log(this.$route.query.data.fMblno)
  1809. formDate = {
  1810. fId: JSON.parse(this.$route.query.data).fId,
  1811. num: JSON.parse(this.$route.query.data).num
  1812. }
  1813. if(this.$route.query.data.fMblno){
  1814. formDate = {
  1815. fMblno: JSON.parse(this.$route.query.data).fMblno,
  1816. num: JSON.parse(this.$route.query.data).num
  1817. }
  1818. }
  1819. this.id = formDate.fId
  1820. this.formList = {
  1821. fId: formDate.fId
  1822. }
  1823. this.approVal = false
  1824. }else if (this.$route.query.testing){
  1825. console.log(this.$route.query.testing)
  1826. formDate = {
  1827. fId:JSON.parse(this.$route.query.testing).billId
  1828. }
  1829. this.formList = formDate
  1830. this.approvalTwo = true
  1831. this.approVal = false
  1832. this.cancelButton = false
  1833. }else if(this.$route.query.DC){
  1834. formDate = {
  1835. fMblno: JSON.parse(this.$route.query.DC).fMblno,
  1836. num: JSON.parse(this.$route.query.DC).num
  1837. }
  1838. }
  1839. if (formDate) {
  1840. addmodify(formDate).then(response => {
  1841. console.log(response)
  1842. if(response.code == 200){
  1843. this.form = response.rows[0]
  1844. console.log(this.form)
  1845. if (this.form.fMblno == null) {
  1846. this.changeNum = false
  1847. } else {
  1848. this.changeNum = true
  1849. }
  1850. let data = {
  1851. actId: 460,
  1852. id: this.form.fId
  1853. }
  1854. getName(data).then(response => {
  1855. if (response.data.length != 0) {
  1856. this.before = response.data[0].userName
  1857. }
  1858. })
  1859. queryUserVal().then((response) => {
  1860. this.current = response.user.userName
  1861. if (formDate.num) {
  1862. if (this.form.moneyStatus >= 4) {
  1863. this.jumpDonot = true
  1864. }
  1865. if (this.current == this.before) {
  1866. this.disappear = false
  1867. }
  1868. } else {
  1869. this.jumpDonot = true
  1870. this.disappear = true
  1871. }
  1872. })
  1873. this.$set(this.form,'fPaymode',JSON.stringify(this.form.fPaymode))
  1874. this.$set(this.form,'fSign',JSON.stringify(this.form.fSign))
  1875. this.$set(this.form,'fDetentioncargo',JSON.stringify(this.form.fDetentioncargo))
  1876. this.goodsList = response.rows[0].tWarehousebillsCntrList
  1877. this.estimatedTime = response.rows[0].tVoyageL
  1878. if (response.rows[0].tWarehousebillsCntritemsList !== null) {
  1879. this.dataList = response.rows[0].tWarehousebillsCntritemsList
  1880. }else this.dataList = []
  1881. this.loading = false
  1882. if (response.rows[0].tWarehousebillsfeesDr) {
  1883. this.warehouseDrList = response.rows[0].tWarehousebillsfeesDr
  1884. for (let item in this.warehouseDrList) {
  1885. this.$set(this.warehouseDrList[item], 'fFeeUnitid', JSON.stringify(this.warehouseDrList[item].fFeeunitid))
  1886. // this.$set(this.warehouseDrList[item], 'fCorpid', JSON.stringify(this.warehouseDrList[item].fCorpid))
  1887. }
  1888. }
  1889. if (response.rows[0].warehousebillsfeesCr) {
  1890. this.warehouseCrList = response.rows[0].warehousebillsfeesCr
  1891. for (let item in this.warehouseCrList) {
  1892. this.$set(this.warehouseCrList[item], 'fFeeUnitid', JSON.stringify(this.warehouseCrList[item].fFeeunitid))
  1893. }
  1894. }
  1895. }
  1896. })
  1897. }
  1898. },
  1899. created() {
  1900. nameOfVessel().then(res =>{
  1901. this.vslidList = res.rows
  1902. })
  1903. voyageNumber().then(res =>{
  1904. this.voyidList = res.rows
  1905. })
  1906. portInquiry().then(res =>{
  1907. this.fMblnoOptions = res.rows;
  1908. })
  1909. this.getDicts('data_unitfees').then((response) => {
  1910. if (response.data) {
  1911. this.jFeetunitOptions = response.data
  1912. }
  1913. })
  1914. this.getDicts('data_stltype_type').then((response) => {
  1915. if (response.data) {
  1916. this.fStltypeOptions = response.data
  1917. }
  1918. })
  1919. this.getDicts('tax_rate').then((response) => {
  1920. if (response.data) {
  1921. this.fTaxrate = response.data[0].dictValue
  1922. }
  1923. })
  1924. this.getDicts('f_packageid').then((response) => {
  1925. if (response.data) {
  1926. this.packgeOptions = response.data
  1927. }
  1928. })
  1929. this.getDicts('data_billType').then((response) => {
  1930. if (response.data) {
  1931. this.businessTypeOptions = response.data
  1932. }
  1933. })
  1934. this.getDicts('f_updateEF').then((response) => {
  1935. if (response.data) {
  1936. this.fStatus = response.data
  1937. }
  1938. })
  1939. this.getDicts('f_serviceitems').then((response) => {
  1940. if (response.data) {
  1941. this.transport = response.data
  1942. }
  1943. })
  1944. this.getDicts('f_paymode').then((response) => {
  1945. if (response.data) {
  1946. this.paymentMethod = response.data
  1947. }
  1948. })
  1949. this.getDicts('f_invoceobj').then((response) => {
  1950. if (response.data) {
  1951. this.drawee = response.data
  1952. }
  1953. })
  1954. this.getDicts('f_sign').then((response) => {
  1955. if (response.data) {
  1956. this.cEsign = response.data
  1957. }
  1958. })
  1959. this.getDicts('f_detentioncargo').then((response) => {
  1960. if (response.data) {
  1961. this.etentioncargo = response.data
  1962. }
  1963. })
  1964. this.getDicts('f_insurance').then((response) => {
  1965. if (response.data) {
  1966. this.insurance = response.data
  1967. }
  1968. })
  1969. this.cntrtypeRemoteMethod()
  1970. this.goodRemoteMethod()
  1971. this.nameRemoteMethod()
  1972. this.fWRemoteMethod()
  1973. this.queryGoods()
  1974. let queryParams = { pageNum: 1, fDc: 'C' }
  1975. listFees(queryParams).then((response) => {
  1976. this.fCNameOptions = response.rows
  1977. })
  1978. let query = { pageNum: 1, fDc: 'D' }
  1979. listFees(query).then((response) => {
  1980. this.fDNameOptions = response.rows
  1981. })
  1982. },
  1983. filters: {
  1984. fServiceitemsNameFormat(row, transport) {
  1985. let name;
  1986. transport.map(e => {
  1987. if (row == e.dictValue) {
  1988. name = e.dictLabel;
  1989. }
  1990. })
  1991. return name;
  1992. },
  1993. fVslidFormat(row, vslidList) {
  1994. let name;
  1995. vslidList.map(e => {
  1996. if (row == e.fId) {
  1997. name = e.fName;
  1998. }
  1999. })
  2000. return name;
  2001. },
  2002. voyidNameFormat(row, voyidList) {
  2003. let name;
  2004. voyidList.map(e => {
  2005. if (row == e.fId) {
  2006. name = e.fNo;
  2007. }
  2008. })
  2009. return name;
  2010. },
  2011. portFormat(row, fMblnoOptions) {
  2012. let name;
  2013. fMblnoOptions.map(e => {
  2014. if (row == e.fId) {
  2015. name = e.fName;
  2016. }
  2017. })
  2018. return name;
  2019. },
  2020. goodsFormat(row, goodsOptions) {
  2021. let name;
  2022. goodsOptions.map(e => {
  2023. if (row == e.fId) {
  2024. name = e.fName;
  2025. }
  2026. })
  2027. return name;
  2028. },
  2029. cntrFormat(row, cntrOptions) {
  2030. let name;
  2031. cntrOptions.map(e => {
  2032. if (row == e.fId) {
  2033. name = e.fNo;
  2034. }
  2035. })
  2036. return name;
  2037. },
  2038. },
  2039. methods: {
  2040. rejectDeletion(){
  2041. this.$confirm('驳回并删除, 是否继续?', '提示', {
  2042. confirmButtonText: '确定',
  2043. cancelButtonText: '取消',
  2044. type: 'warning'
  2045. }).then(() => {
  2046. reject(this.form.fId).then(res =>{
  2047. if (res.code === 200) {
  2048. this.$message({
  2049. type: 'success',
  2050. message: '删除成功!'
  2051. });
  2052. this.cancelTwo()
  2053. }
  2054. })
  2055. }).catch(() => {
  2056. this.$message({
  2057. type: 'info',
  2058. message: '已取消'
  2059. });
  2060. });
  2061. },
  2062. seleEt(scope) {
  2063. console.log(scope)
  2064. for (let item in this.cntrOptions) {
  2065. if (this.cntrOptions[item].fId === scope.row.fCntrid) {
  2066. if (this.cntrOptions[item].fType === 2) {
  2067. this.whether = true;
  2068. return;
  2069. } else {
  2070. this.whether = false;
  2071. return;
  2072. }
  2073. }
  2074. }
  2075. },
  2076. throttleOpening(res) {
  2077. if (res <= 100) {
  2078. } else {
  2079. this.list.fDraught = '';
  2080. this.$message({
  2081. showClose: true,
  2082. message: '不能大于100%或小于0%',
  2083. type: 'error',
  2084. offset: 90
  2085. });
  2086. }
  2087. },
  2088. temperature(res) {
  2089. if (res < 20 && res > -30) {
  2090. } else if (res == '-') {
  2091. } else {
  2092. this.list.fTemperature = '';
  2093. this.$message({
  2094. showClose: true,
  2095. message: '冷藏箱温度为-30℃至20℃之间的整数',
  2096. type: 'error',
  2097. offset: 90
  2098. });
  2099. }
  2100. },
  2101. selectChange(scope) {
  2102. for (let item in this.goods) {
  2103. if (this.goods[item].fId === scope.row.fGoodsid) {
  2104. scope.row.typeidName = this.goods[item].typeName;
  2105. }
  2106. }
  2107. },
  2108. queryGoods() {
  2109. getGoodName().then(res=>{
  2110. if(res.code == 200){
  2111. this.goods = res.data
  2112. }
  2113. })
  2114. },
  2115. homePage() {
  2116. this.open = false
  2117. let view = {
  2118. fullPath: '/finance/contrast',
  2119. hash: '',
  2120. matched: Array(2),
  2121. meta: Object,
  2122. name: 'Contrast',
  2123. params: Object,
  2124. path: '/finance/contrast',
  2125. query: Object,
  2126. title: '对账'
  2127. }
  2128. this.$router.push({ path: '/index' })
  2129. this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => {
  2130. if (this.isActive(view)) {
  2131. this.toLastView(visitedViews, view)
  2132. }
  2133. })
  2134. Global.$emit('removeCache', 'closeSelectedTag', view)
  2135. },
  2136. cancel() {
  2137. if (this.form.moneyStatus === 4 ||
  2138. this.form.fBillstatus === 4 ||
  2139. this.form.fBillstatus === 9 ||
  2140. this.modify == true) {
  2141. if(this.$route.query.DC){
  2142. if(JSON.parse(this.$route.query.DC).type=='D'){
  2143. this.$router.push({ path: '/analysis/generalLedgerDr' })
  2144. }else{
  2145. this.$router.push({ path: '/analysis/generalLedgerCr' })
  2146. }
  2147. }else{
  2148. this.$router.push({ path: '/domesticTrade/myOrder' })
  2149. }
  2150. } else {
  2151. this.$confirm('返回列表,是否保存?', '提示', {
  2152. confirmButtonText: '保存',
  2153. cancelButtonText: '取消',
  2154. type: 'warning'
  2155. })
  2156. .then(() => {
  2157. this.approval()
  2158. })
  2159. .catch(() => {
  2160. if(this.$route.query.DC){
  2161. if(JSON.parse(this.$route.query.DC).type=='D'){
  2162. this.$router.push({ path: '/analysis/generalLedgerDr' })
  2163. }else{
  2164. this.$router.push({ path: '/analysis/generalLedgerCr' })
  2165. }
  2166. }else{
  2167. this.$router.push({ path: '/domesticTrade/myOrder' })
  2168. }
  2169. this.modify = true
  2170. })
  2171. }
  2172. },
  2173. //撤销审批
  2174. revokeTwo(status) {
  2175. let data = {
  2176. actId: 460,
  2177. billId: this.form.fId,
  2178. id: this.form.fId,
  2179. fidStatus: status,
  2180. }
  2181. revokeTwo(data).then((data) => {
  2182. if (data.code === 200) {
  2183. this.msgSuccess('撤销成功')
  2184. this.jumpDonot = false
  2185. if (this.formList) {
  2186. addmodify(this.formList).then(response => {
  2187. this.form = response.rows[0]
  2188. let data = {
  2189. actId: 460,
  2190. id: this.form.fId
  2191. }
  2192. getName(data).then(response => {
  2193. if (response.data.length != 0) {
  2194. this.before = response.data[0].userName
  2195. }
  2196. })
  2197. queryUserVal().then((response) => {
  2198. this.current = response.user.userName
  2199. })
  2200. this.goodsList = response.rows[0].tWarehousebillsCntrList
  2201. this.estimatedTime = response.rows[0].tVoyageL
  2202. if (response.rows[0].tWarehousebillsCntritemsList !== null) {
  2203. this.dataList = response.rows[0].tWarehousebillsCntritemsList
  2204. }else this.dataList = []
  2205. this.loading = false
  2206. if (response.rows[0].tWarehousebillsfeesDr) {
  2207. this.warehouseDrList = response.rows[0].tWarehousebillsfeesDr
  2208. for (let item in this.warehouseDrList) {
  2209. this.$set(this.warehouseDrList[item], 'fFeeUnitid', JSON.stringify(this.warehouseDrList[item].fFeeunitid))
  2210. }
  2211. }
  2212. if (response.rows[0].warehousebillsfeesCr) {
  2213. this.warehouseCrList = response.rows[0].warehousebillsfeesCr
  2214. for (let item in this.warehouseCrList) {
  2215. this.$set(this.warehouseCrList[item], 'fFeeUnitid', JSON.stringify(this.warehouseCrList[item].fFeeunitid))
  2216. }
  2217. }
  2218. // if(this.current == this.before)
  2219. // this.disappear = false;
  2220. })
  2221. }
  2222. this.reset()
  2223. }
  2224. })
  2225. },
  2226. //费用提交审核
  2227. feeSubmission() {
  2228. if (!this.warehouseDrList && !this.warehouseCrList) {
  2229. this.$message.error('请维护费用')
  2230. return false
  2231. }
  2232. if (this.warehouseDrList) {
  2233. for (let li in this.warehouseDrList) {
  2234. if (!this.warehouseDrList[li].fBusinessType) {
  2235. this.$message.error('应收费用第' + (Number(li) + 1) + '行业务类型为空,请维护业务类型')
  2236. return false
  2237. } else if (!this.warehouseDrList[li].fCorpid) {
  2238. this.$message.error('应收费用第' + (Number(li) + 1) + '行客户名称为空,请维护客户名称')
  2239. return false
  2240. } else if (!this.warehouseDrList[li].fFeeid) {
  2241. this.$message.error('应收费用第' + (Number(li) + 1) + '行费用名称为空,请维护费用名称')
  2242. return false
  2243. } else if (!this.warehouseDrList[li].fQty) {
  2244. this.$message.error('应收费用第' + (Number(li) + 1) + '行数量为空,请维护数量')
  2245. return false
  2246. } else if (!this.warehouseDrList[li].fUnitprice) {
  2247. this.$message.error('应收费用第' + (Number(li) + 1) + '行单价为空,请维护单价')
  2248. return false
  2249. }
  2250. }
  2251. }
  2252. if (this.warehouseCrList) {
  2253. // console.log(this.warehouseCrList[1].fCorpid);
  2254. for (let li in this.warehouseCrList) {
  2255. if (!this.warehouseCrList[li].fBusinessType) {
  2256. this.$message.error('应付费用第' + (Number(li) + 1) + '行业务类型为空,请维护业务类型')
  2257. return false
  2258. } else if (!this.warehouseCrList[li].fCorpid) {
  2259. this.$message.error('应付费用第' + (Number(li) + 1) + '行客户名称为空,请维护客户名称')
  2260. return false
  2261. } else if (!this.warehouseCrList[li].fFeeid) {
  2262. this.$message.error('应付费用第' + (Number(li) + 1) + '行费用名称为空,请维护费用名称')
  2263. return false
  2264. } else if (!this.warehouseCrList[li].fQty) {
  2265. this.$message.error('应付费用第' + (Number(li) + 1) + '行数量为空,请维护数量')
  2266. return false
  2267. } else if (!this.warehouseCrList[li].fUnitprice) {
  2268. this.$message.error('应付费用第' + (Number(li) + 1) + '行单价为空,请维护单价')
  2269. return false
  2270. }
  2271. }
  2272. }
  2273. let form = {
  2274. fId: this.form.fId,
  2275. fMblno: this.form.fMblno
  2276. }
  2277. let formData = new window.FormData()
  2278. for (let li in this.warehouseDrList) {
  2279. this.warehouseDrList[li].fMblno = this.form.fMblno
  2280. for (let item in this.nameOptions) {
  2281. if (this.warehouseDrList[li].fCorpid == this.nameOptions[item].fName) {
  2282. this.warehouseDrList[li].fCorpid = this.nameOptions[item].fId
  2283. }
  2284. }
  2285. }
  2286. for (let li in this.warehouseCrList) {
  2287. this.warehouseCrList[li].fMblno = this.form.fMblno
  2288. }
  2289. formData.append('tWarehousebills', JSON.stringify(form))
  2290. formData.append('tWarehousebillsCntritems', JSON.stringify(this.dataList))
  2291. formData.append('tWarehousebillsfeesDr', JSON.stringify(this.warehouseDrList))
  2292. formData.append('tWarehousebillsfeesCr', JSON.stringify(this.warehouseCrList))
  2293. getfee(formData).then(response => {
  2294. this.$message.success('操作成功')
  2295. this.form.moneyStatus = 4
  2296. this.jumpDonot = true
  2297. this.modify = true
  2298. let data = {
  2299. actId: 460,
  2300. id: this.form.fId
  2301. }
  2302. getName(data).then(response => {
  2303. if (response.data.length != 0) {
  2304. this.before = response.data[0].userName
  2305. if (this.current == this.before) {
  2306. this.disappear = false
  2307. }
  2308. }
  2309. })
  2310. })
  2311. },
  2312. //箱信息操作限制
  2313. cntrWeight(res) {
  2314. if (res < 40 && res > 0) {
  2315. return
  2316. } else if (res == '' || res == null) {
  2317. } else {
  2318. this.$message({
  2319. showClose: true,
  2320. message: '单箱重量应在0-40吨之间',
  2321. type: 'error',
  2322. offset: 90
  2323. })
  2324. }
  2325. },
  2326. //获取客户名称下拉
  2327. nameRemoteMethod() {
  2328. let queryParams = { pageNum: 1 }
  2329. getFName(queryParams).then(response => {
  2330. this.nameOptions = response.data
  2331. })
  2332. },
  2333. //货名下拉
  2334. goodRemoteMethod() {
  2335. let queryParams = { pageNum: 1 }
  2336. getGoodName(queryParams).then(response => {
  2337. this.goodsOptions = response.data
  2338. })
  2339. },
  2340. //箱型下拉获取
  2341. cntrtypeRemoteMethod() {
  2342. let queryParams = { pageNum: 1 }
  2343. getCntr(queryParams).then(response => {
  2344. this.cntrOptions = response.rows
  2345. })
  2346. },
  2347. //计价单位
  2348. // corpsRemoteMethod(name) {
  2349. // if (name == null || name === "") {
  2350. // return false;
  2351. // }
  2352. // let queryParams = { pageNum: 1, fName: name, type: 1 };
  2353. // listCorps(queryParams).then((response) => {
  2354. // this.fMblnoOptions = response.rows;
  2355. // this.KHblnoOptions = response.rows;
  2356. // });
  2357. // },
  2358. //应付信息新行
  2359. addpayment() {
  2360. this.warehouseCrList.push({
  2361. fBusinessType: null,
  2362. fCorpid: null,
  2363. fFeeid: null,
  2364. fFeeUnitid: '7',
  2365. fQty: null,
  2366. fUnitprice: null,
  2367. fAmount: null,
  2368. fStltypeid: null,
  2369. fCurrency: 'RMB',
  2370. fExrate: '1',
  2371. fTaxrate: this.fTaxrate,
  2372. fSrcTypeId: 0,
  2373. remark: null
  2374. })
  2375. },
  2376. // 数量计算
  2377. changeContractAmt(row) {
  2378. let fQty = 0
  2379. let fUnitprice = 0
  2380. if (row.fUnitprice) {
  2381. fUnitprice = row.fUnitprice
  2382. }
  2383. if (row.fQty) {
  2384. fQty = row.fQty
  2385. }
  2386. this.$set(row, 'fAmount', parseFloat(Number(fUnitprice) * Number(fQty)).toFixed(2))
  2387. },
  2388. // 变更计价单位
  2389. changeFeeUnit(row) {
  2390. if (!row.fFeeUnitid) {
  2391. return false
  2392. }
  2393. // if (row.fFeeUnitid === "2") {
  2394. // this.$set(row, "fQty", (this.fGrossweight / 1000).toFixed(2));
  2395. // } else if (row.fFeeUnitid === "1") {
  2396. // this.$set(row, "fQty", this.fQty);
  2397. // } else if (row.fFeeUnitid === "3") {
  2398. // this.$set(row, "fQty", (this.fNetweight / 1000).toFixed(2));
  2399. // } else if (row.fFeeUnitid === "7") {
  2400. // this.$set(row, "fQty", this.fCntqty);
  2401. // } else {
  2402. // this.$set(row, "fQty", 0);
  2403. // }
  2404. if (row.fUnitprice) {
  2405. this.$set(
  2406. row,
  2407. 'fAmount',
  2408. parseFloat(Number(row.fUnitprice) * Number(row.fQty)).toFixed(2)
  2409. )
  2410. }
  2411. },
  2412. // 选择费用信息时获取计价单位
  2413. // changeFeeId(row) {
  2414. // for (let li in this.fWbuOptions) {
  2415. // if (row.fFeeid === this.fWbuOptions[li].fId) {
  2416. // this.$set(row, "fFeeUnitid", this.fWbuOptions[li].fFeeunitid + "");
  2417. // this.changeFeeUnit(row);
  2418. // break;
  2419. // }
  2420. // }
  2421. // },
  2422. // 远程模糊查询费用名称
  2423. fWRemoteMethod(name) {
  2424. if (name == null || name === '') {
  2425. return false
  2426. }
  2427. let queryParams = { pageNum: 1, fDc: 'C', fName: name }
  2428. listFees(queryParams).then((response) => {
  2429. this.fCNameOptions = response.rows
  2430. })
  2431. let query = { pageNum: 1, fDc: 'D', fName: name }
  2432. listFees(query).then((response) => {
  2433. this.fDNameOptions = response.rows
  2434. })
  2435. },
  2436. // 收款合计
  2437. warehouseDrSummaries(param) {
  2438. const { columns, data } = param
  2439. const sums = []
  2440. columns.forEach((column, index) => {
  2441. if (index === 0) {
  2442. sums[index] = '合计'
  2443. return
  2444. } else if (column.label == '单价' || column.label == '数量' || column.label == '金额') {
  2445. const values = data.map((item) => Number(item[column.property]));
  2446. if (!values.every((value) => isNaN(value))) {
  2447. sums[index] = values.reduce((prev, curr) => {
  2448. const value = Number(curr);
  2449. if (!isNaN(value)) {
  2450. return prev + curr;
  2451. } else {
  2452. return prev;
  2453. }
  2454. }, 0);
  2455. }
  2456. }
  2457. });
  2458. this.amountDr = sums[8]
  2459. return sums
  2460. },
  2461. //付款合计
  2462. warehouseCrSummaries(param) {
  2463. const { columns, data } = param
  2464. const sums = []
  2465. columns.forEach((column, index) => {
  2466. if (index === 0) {
  2467. sums[index] = '合计'
  2468. return
  2469. } else if (column.label == '单价' || column.label == '数量' || column.label == '金额') {
  2470. const values = data.map((item) => Number(item[column.property]));
  2471. if (!values.every((value) => isNaN(value))) {
  2472. sums[index] = values.reduce((prev, curr) => {
  2473. const value = Number(curr);
  2474. if (!isNaN(value)) {
  2475. return prev + curr;
  2476. } else {
  2477. return prev;
  2478. }
  2479. }, 0);
  2480. }
  2481. }
  2482. });
  2483. this.amountCr = sums[8]
  2484. return sums
  2485. },
  2486. addOrUpdateHand(form,status) {
  2487. // if(form.fMblno == null){
  2488. // this.addOrUpdateVisib = false;
  2489. // this.$message.error("提单号为空,请维护提单号")
  2490. // return false
  2491. // }else{
  2492. // this.addOrUpdateVisib = true;
  2493. // }
  2494. this.$refs['form'].validate((valid) => {
  2495. if (valid) {
  2496. this.addOrUpdateVisib = true
  2497. this.$nextTick(() => {
  2498. // let actId = ''
  2499. // if (this.form.fBillstatus < 6) {
  2500. // actId = '410'
  2501. // this.$refs.ApprovalComments.init(form.fId,status,actId,this.form.fMblno)
  2502. // } else if(this.form.fBillstatus > 6 && this.form.fBillstatus <= 11 && this.form.moneyStatus < 4){
  2503. // actId = '420'
  2504. // this.$refs.ApprovalComments.init(form.fId, status,actId)
  2505. // }else if (this.form.fBillstatus == 11 && this.form.moneyStatus >= 4 && this.form.moneyStatus < 6) {
  2506. // actId = '460'
  2507. // this.$refs.ApprovalComments.init(form.fId,status,actId)
  2508. // }
  2509. if (this.actId == '410') {
  2510. this.$refs.ApprovalComments.init(form.fId,status,this.actId,this.form.fMblno)
  2511. } else if (this.actId == '474') {
  2512. this.$refs.ApprovalComments.init(form.fId,'f_dismount_status',this.actId)
  2513. } else {
  2514. this.$refs.ApprovalComments.init(form.fId,status,this.actId)
  2515. }
  2516. })
  2517. } else {
  2518. this.$message.error('提单号为空,请维护提单号')
  2519. }
  2520. })
  2521. },
  2522. modifyApproval(){
  2523. this.addOrUpdateVisib = true
  2524. let list = JSON.parse(this.$route.query.testing)
  2525. this.$nextTick(() => {
  2526. let actId = ''
  2527. console.log(list)
  2528. this.addOrUpdateVisible = true
  2529. if(list.refno4 == 'XGDD'){
  2530. actId = 471
  2531. }else if (list.refno4 == 'XGTJ'){
  2532. actId = 472
  2533. }else if(list.refno4 == 'DDSC'){
  2534. actId = 473
  2535. }
  2536. this.$refs.ApprovalComments.init(this.form.fId,status,actId,this.form.fMblno)
  2537. })
  2538. },
  2539. //首页审批跳转关闭返回首页
  2540. cancelTwo() {
  2541. this.open = false
  2542. let view = {
  2543. fullPath: '/domesticTrade/orderInformation?data=%7B%22fId%22%3A687%7D',
  2544. hash: '',
  2545. matched: Array(2),
  2546. meta: Object,
  2547. name: 'OrderInformation',
  2548. params: Object,
  2549. path: '/domesticTrade/orderInformation',
  2550. query: Object,
  2551. title: '订单信息'
  2552. }
  2553. this.$router.push({ path: '/index' })
  2554. this.$store
  2555. .dispatch('tagsView/delView', view)
  2556. .then(({ visitedViews }) => {
  2557. if (this.isActive(view)) {
  2558. this.toLastView(visitedViews, view)
  2559. }
  2560. })
  2561. Global.$emit('removeCache', 'closeSelectedTag', view)
  2562. },
  2563. // 查看审批流
  2564. getDataList() {
  2565. this.addOrUpdateVisible = false
  2566. },
  2567. returnData() {
  2568. this.addOrUpdateVisib = false
  2569. this.open = false
  2570. this.cancelTwo()
  2571. },
  2572. revisionApproval(){
  2573. let list = JSON.parse(this.$route.query.testing)
  2574. let actId = ''
  2575. this.addOrUpdateVisible = true
  2576. if(list.refno4 == 'XGDD'){
  2577. actId = 471
  2578. }else if (list.refno4 == 'XGTJ'){
  2579. actId = 472
  2580. }else if(list.refno4 == 'DDSC'){
  2581. actId = 473
  2582. }
  2583. this.$nextTick(() => {
  2584. this.$refs.addOrUpdate.init(this.form.fId,actId,list.fidStatus)
  2585. })
  2586. },
  2587. addOrUpdateHandle(status) {
  2588. this.addOrUpdateVisible = true
  2589. let id = '448'
  2590. let actId = ''
  2591. if (!this.actId){
  2592. if (this.form.fBillstatus < 6) {
  2593. actId = '410'
  2594. } else if (this.form.moneyStatus != null && this.form.moneyStatus < 6) {
  2595. actId = '460'
  2596. } else {
  2597. actId = '420'
  2598. }
  2599. }else {
  2600. actId = this.actId
  2601. }
  2602. if (this.actId == '474') status = 'f_dismount_status'
  2603. this.$nextTick(() => {
  2604. this.$refs.addOrUpdate.init(this.form.fId, actId ,status)
  2605. })
  2606. },
  2607. handleSelect() {
  2608. },
  2609. //应收新行
  2610. addCollection() {
  2611. this.warehouseDrList.push({
  2612. fBusinessType: null,
  2613. fCorpid: this.form.corpName,
  2614. fFeeid: null,
  2615. fFeeUnitid: '7',
  2616. fQty: null,
  2617. fUnitprice: null,
  2618. fAmount: null,
  2619. fStltypeid: null,
  2620. fCurrency: 'RMB',
  2621. fExrate: '1',
  2622. fTaxrate: this.fTaxrate,
  2623. fSrcTypeId: 0,
  2624. remark: null
  2625. })
  2626. },
  2627. //撤销审核
  2628. revokeSubmission(){
  2629. if (!this.warehouseDrList && !this.warehouseCrList) {
  2630. this.$message.error('请维护费用')
  2631. return false
  2632. }
  2633. if (this.warehouseDrList) {
  2634. for (let li in this.warehouseDrList) {
  2635. if (!this.warehouseDrList[li].fBusinessType) {
  2636. this.$message.error('应收费用第' + (Number(li) + 1) + '行业务类型为空,请维护业务类型')
  2637. return false
  2638. } else if (!this.warehouseDrList[li].fCorpid) {
  2639. this.$message.error('应收费用第' + (Number(li) + 1) + '行客户名称为空,请维护客户名称')
  2640. return false
  2641. } else if (!this.warehouseDrList[li].fFeeid) {
  2642. this.$message.error('应收费用第' + (Number(li) + 1) + '行费用名称为空,请维护费用名称')
  2643. return false
  2644. } else if (!this.warehouseDrList[li].fQty) {
  2645. this.$message.error('应收费用第' + (Number(li) + 1) + '行数量为空,请维护数量')
  2646. return false
  2647. } else if (!this.warehouseDrList[li].fUnitprice) {
  2648. this.$message.error('应收费用第' + (Number(li) + 1) + '行单价为空,请维护单价')
  2649. return false
  2650. }
  2651. }
  2652. }
  2653. if (this.warehouseCrList) {
  2654. // console.log(this.warehouseCrList[1].fCorpid);
  2655. for (let li in this.warehouseCrList) {
  2656. if (!this.warehouseCrList[li].fBusinessType) {
  2657. this.$message.error('应付费用第' + (Number(li) + 1) + '行业务类型为空,请维护业务类型')
  2658. return false
  2659. } else if (!this.warehouseCrList[li].fCorpid) {
  2660. this.$message.error('应付费用第' + (Number(li) + 1) + '行客户名称为空,请维护客户名称')
  2661. return false
  2662. } else if (!this.warehouseCrList[li].fFeeid) {
  2663. this.$message.error('应付费用第' + (Number(li) + 1) + '行费用名称为空,请维护费用名称')
  2664. return false
  2665. } else if (!this.warehouseCrList[li].fQty) {
  2666. this.$message.error('应付费用第' + (Number(li) + 1) + '行数量为空,请维护数量')
  2667. return false
  2668. } else if (!this.warehouseCrList[li].fUnitprice) {
  2669. this.$message.error('应付费用第' + (Number(li) + 1) + '行单价为空,请维护单价')
  2670. return false
  2671. }
  2672. }
  2673. }
  2674. let form = {
  2675. fId: this.form.fId,
  2676. fMblno: this.form.fMblno
  2677. }
  2678. let formData = new window.FormData()
  2679. for (let li in this.warehouseDrList) {
  2680. this.warehouseDrList[li].fMblno = this.form.fMblno
  2681. for (let item in this.nameOptions) {
  2682. if (this.warehouseDrList[li].fCorpid == this.nameOptions[item].fName) {
  2683. this.warehouseDrList[li].fCorpid = this.nameOptions[item].fId
  2684. }
  2685. }
  2686. }
  2687. for (let li in this.warehouseCrList) {
  2688. this.warehouseCrList[li].fMblno = this.form.fMblno
  2689. }
  2690. formData.append('tWarehousebills', JSON.stringify(form))
  2691. formData.append('tWarehousebillsCntritems', JSON.stringify(this.dataList))
  2692. formData.append('tWarehousebillsfeesDr', JSON.stringify(this.warehouseDrList))
  2693. formData.append('tWarehousebillsfeesCr', JSON.stringify(this.warehouseCrList))
  2694. cancellationFees(formData).then(response => {
  2695. this.$message.success('操作成功')
  2696. this.form.moneyStatus = 4
  2697. this.jumpDonot = false
  2698. this.modify = true
  2699. let data = {
  2700. actId: 460,
  2701. id: this.form.fId
  2702. }
  2703. getName(data).then(response => {
  2704. if (response.data.length != 0) {
  2705. this.before = response.data[0].userName
  2706. if (this.current == this.before) {
  2707. this.disappear = false
  2708. }
  2709. }
  2710. })
  2711. if (response.data.tWarehouseBills) {
  2712. this.form = response.data.tWarehouseBills
  2713. this.$set(this.form,'fPaymode',JSON.stringify(this.form.fPaymode))
  2714. this.$set(this.form,'fSign',JSON.stringify(this.form.fSign))
  2715. this.$set(this.form,'fDetentioncargo',JSON.stringify(this.form.fDetentioncargo))
  2716. }
  2717. if(response.data.tWarehousebillsCntrList){
  2718. this.goodsList = response.data.tWarehousebillsCntrList
  2719. }
  2720. if (response.data.tWarehousebillsCntritemsList !== null) {
  2721. this.dataList = response.data.tWarehousebillsCntritemsList
  2722. }else this.dataList = []
  2723. if (response.data.warehousebillsfeesCrList) {
  2724. this.warehouseCrList = response.data.warehousebillsfeesCrList
  2725. for (let item in this.warehouseCrList) {
  2726. this.$set(this.warehouseCrList[item], 'fFeeUnitid', JSON.stringify(this.warehouseCrList[item].fFeeunitid))
  2727. }
  2728. }
  2729. if (response.data.warehousebillsfeesDrList) {
  2730. this.warehouseDrList = response.data.warehousebillsfeesDrList
  2731. for (let item in this.warehouseDrList) {
  2732. this.$set(this.warehouseDrList[item], 'fFeeUnitid', JSON.stringify(this.warehouseDrList[item].fFeeunitid))
  2733. }
  2734. }
  2735. })
  2736. },
  2737. //提交审批
  2738. approval(res) {
  2739. if (!this.form.fMblno) {
  2740. this.$message.error('请维护提单号')
  2741. return false
  2742. }
  2743. // if (this.dataList.length === 0) {
  2744. // this.$message.error('请维护箱信息')
  2745. // return false
  2746. // }
  2747. if (res != 1 && this.form.fMblno || res != 1 && this.dataList.length != 0) {
  2748. this.$router.push({ path: '/domesticTrade/myOrder' })
  2749. this.modify = true
  2750. }
  2751. let form = {
  2752. fId: this.form.fId,
  2753. fMblno: this.form.fMblno
  2754. }
  2755. let formData = new window.FormData()
  2756. for (let li in this.warehouseDrList) {
  2757. this.warehouseDrList[li].fMblno = this.form.fMblno
  2758. for (let item in this.nameOptions) {
  2759. if (this.warehouseDrList[li].fCorpid == this.nameOptions[item].fName) {
  2760. this.warehouseDrList[li].fCorpid = this.nameOptions[item].fId
  2761. }
  2762. }
  2763. }
  2764. for (let item in this.warehouseCrList) {
  2765. this.warehouseCrList[item].fMblno = this.form.fMblno
  2766. }
  2767. formData.append('tWarehousebills', JSON.stringify(this.form))
  2768. formData.append("tWarehousebillsCntr",JSON.stringify(this.goodsList))
  2769. formData.append('tWarehousebillsCntritems', JSON.stringify(this.dataList))
  2770. formData.append('tWarehousebillsfeesDr', JSON.stringify(this.warehouseDrList))
  2771. formData.append('tWarehousebillsfeesCr', JSON.stringify(this.warehouseCrList))
  2772. postApproval(formData).then(response => {
  2773. this.msgSuccess('操作成功')
  2774. if (response.data.tWarehouseBills) {
  2775. this.form = response.data.tWarehouseBills
  2776. this.$set(this.form,'fPaymode',JSON.stringify(this.form.fPaymode))
  2777. this.$set(this.form,'fSign',JSON.stringify(this.form.fSign))
  2778. this.$set(this.form,'fDetentioncargo',JSON.stringify(this.form.fDetentioncargo))
  2779. }
  2780. if(response.data.tWarehousebillsCntrList){
  2781. this.goodsList = response.data.tWarehousebillsCntrList
  2782. }
  2783. if (response.data.tWarehousebillsCntritemsList !== null) {
  2784. this.dataList = response.data.tWarehousebillsCntritemsList
  2785. }else this.dataList = []
  2786. if (response.data.warehousebillsfeesCrList) {
  2787. this.warehouseCrList = response.data.warehousebillsfeesCrList
  2788. for (let item in this.warehouseCrList) {
  2789. this.$set(this.warehouseCrList[item], 'fFeeUnitid', JSON.stringify(this.warehouseCrList[item].fFeeunitid))
  2790. }
  2791. }
  2792. if (response.data.warehousebillsfeesDrList) {
  2793. this.warehouseDrList = response.data.warehousebillsfeesDrList
  2794. for (let item in this.warehouseDrList) {
  2795. this.$set(this.warehouseDrList[item], 'fFeeUnitid', JSON.stringify(this.warehouseDrList[item].fFeeunitid))
  2796. }
  2797. }
  2798. })
  2799. },
  2800. //新行
  2801. addList() {
  2802. this.dataList.push({
  2803. fManual: '1',
  2804. fCntrno: null,
  2805. fSealno: null,
  2806. fCntrweight: null,
  2807. fGoodsid: null,
  2808. fPackageid: null,
  2809. fCntrid: null
  2810. })
  2811. },
  2812. //查看附件
  2813. check(status) {
  2814. this.dialogVisible = true
  2815. if (status === 1) {
  2816. } else {
  2817. }
  2818. },
  2819. saveFile() {
  2820. this.row.accessoryList = this.file
  2821. this.dialogVisible = false
  2822. this.relevantAttachments = []
  2823. },
  2824. deleteRow(index, rows) {
  2825. rows.splice(index, 1)
  2826. },
  2827. //多选框选中
  2828. handleSelectionChange(selection) {
  2829. this.ids = selection.map(item => item.fId)
  2830. this.select = selection
  2831. },
  2832. dialogPrint() {
  2833. // for (let item in this.transport) {
  2834. // if (this.transport[item].dictValue == this.form.fServiceitems) {
  2835. // this.$set(this.form, 'fServiceitemsName', this.transport[item].dictLabel);
  2836. // }
  2837. // }
  2838. // this.fMblnoOptions.forEach(item => {
  2839. // if (item.fId == this.form.fLoadportid) {
  2840. // this.$set(this.form, 'fLoadportidName', item.fName);
  2841. // }
  2842. // if (item.fId == this.form.fDestportid) {
  2843. // this.$set(this.form, 'fDestportidName', item.fName);
  2844. // }
  2845. // });
  2846. // this.tableData.forEach(term => {
  2847. // this.goods.forEach(item => {
  2848. // if (item.fId == term.fGoodsid) {
  2849. // term.fGoodsid = item.fName;
  2850. // }
  2851. // });
  2852. // this.container.forEach(item => {
  2853. // if (item.fId == term.fCntrid) {
  2854. // term.fCntrid = item.fNo;
  2855. // }
  2856. // });
  2857. // });
  2858. this.dialogPrinting = true;
  2859. },
  2860. //确认打印
  2861. Printing() {
  2862. this.$printE(this.$refs.print);
  2863. },
  2864. Selectinventory(selection) {
  2865. this.selection = selection;
  2866. },
  2867. deleteAll() {
  2868. for (let item in this.selection) {
  2869. if (!this.selection[item].fId) return this.$message.error('存在未保存的数据,请先保存再批量删除!');
  2870. }
  2871. let list = [];
  2872. this.selection.forEach(item => list.push(item.fId));
  2873. list = JSON.stringify(list)
  2874. .replace(/\[|]/g, '');
  2875. this.$confirm('此操作将永久删除已选' + this.selection.length + '条箱信息, 是否继续?', '提示', {
  2876. confirmButtonText: '确定',
  2877. cancelButtonText: '取消',
  2878. type: 'warning'
  2879. })
  2880. .then(() => {
  2881. deleteAll(list).then(res => {
  2882. shippingList({fPid: this.form.fId}).then(res => {
  2883. this.dataList = res.rows;
  2884. })
  2885. })
  2886. this.$message({
  2887. type: 'success',
  2888. message: '删除成功!'
  2889. });
  2890. })
  2891. .catch(() => {
  2892. this.$message({
  2893. type: 'info',
  2894. message: '已取消删除'
  2895. });
  2896. });
  2897. },
  2898. //文件上传时
  2899. uploading(event, file, fileList) {
  2900. this.uploadLoading = true;
  2901. this.openFullScreen(false, '文件正在解析中');
  2902. },
  2903. //遮罩层
  2904. openFullScreen(res, text) {
  2905. const loading = this.$loading({
  2906. lock: true,
  2907. text: text,
  2908. spinner: 'el-icon-loading',
  2909. background: 'rgba(0, 0, 0, 0.7)'
  2910. });
  2911. if (res === true) loading.close();
  2912. // setTimeout(() => {
  2913. // loading.close();
  2914. // }, 1000);
  2915. },
  2916. //导入模板
  2917. importTemplate(res, file) {
  2918. console.log(res.data)
  2919. if (res.data == 500) {
  2920. this.$message.error(res.msg);
  2921. return this.loading = false;
  2922. } else if (res.code == 200) {
  2923. if (res.msg === 'error') {
  2924. console.log(res.data.List);
  2925. if (res.data.tCnTrNoList && res.data.List){
  2926. this.$message({
  2927. showClose: true,
  2928. dangerouslyUseHTMLString: true,
  2929. type: 'error',
  2930. duration: 10000,
  2931. message: '<h3>导入数据有误</h3><h4 style="width: 80%;">' +res.data.tCnTrNoList+ '</h4><h4 style="width: 80%;">' + res.data.List + '</h4>'
  2932. });
  2933. }else if (res.data.tCnTrNoList && !res.data.List){
  2934. this.$message({
  2935. showClose: true,
  2936. dangerouslyUseHTMLString: true,
  2937. type: 'error',
  2938. duration: 10000,
  2939. message: '<h3>导入数据有误</h3><h4 style="width: 80%;">' +res.data.tCnTrNoList+ '</h4>'
  2940. });
  2941. }else {
  2942. this.$message({
  2943. showClose: true,
  2944. dangerouslyUseHTMLString: true,
  2945. type: 'error',
  2946. duration: 10000,
  2947. message: '<h3>导入数据有误</h3><h4 style="width: 80%;">' +res.data.List+ '</h4>'
  2948. });
  2949. }
  2950. this.uploadLoading = false;
  2951. return this.openFullScreen(true);
  2952. }
  2953. this.boxSorting = {
  2954. pageNum: 1,
  2955. total: null,
  2956. };
  2957. request({
  2958. url: '/system/config/configKey/data_excel_pagenum',
  2959. method: 'get',
  2960. })
  2961. .then(resErr => {
  2962. console.log(resErr)
  2963. if (resErr.msg) {
  2964. this.boxSorting.pageSize = resErr.msg;
  2965. } else {
  2966. this.boxSorting.pageSize = 10;
  2967. }
  2968. request({
  2969. url: '/warehouse/file/list',
  2970. method: 'get',
  2971. params: {
  2972. fileName: res.data.fileName,
  2973. pageNum: this.boxSorting.pageNum,
  2974. pageSize: this.boxSorting.pageSize
  2975. }
  2976. })
  2977. .then(response => {
  2978. console.log(response);
  2979. let i = this.dataList.length;
  2980. this.boxSorting.total = response.total;
  2981. let data = response.rows;
  2982. data.forEach(item => {
  2983. item.fCntrid = this.goodsList[0].fCntrid
  2984. item.fGoodsid = this.goodsList[0].fGoodsid
  2985. item.fPackageid = this.goodsList[0].fPackageid
  2986. })
  2987. this.dataList = this.dataList.concat(data);
  2988. if (this.boxSorting.total > 1) {
  2989. this.boxSorting.pageNum++;
  2990. this.boxInformatiNO(res, i);
  2991. } else {
  2992. console.log(res)
  2993. request({
  2994. url: '/warehouse/file/delete/' + res.data.fileName,
  2995. method: 'delete',
  2996. });
  2997. this.loading = false;
  2998. this.openFullScreen(true);
  2999. }
  3000. });
  3001. });
  3002. } else {
  3003. this.$message.error(res.msg);
  3004. }
  3005. },
  3006. storageBox(res, i) {
  3007. this.boxInformatiNO(res, i);
  3008. },
  3009. boxInformatiNO(res, i) {
  3010. if ((Number(this.dataList.length) - i) < this.boxSorting.total) {
  3011. request({
  3012. url: '/warehouse/file/list',
  3013. method: 'get',
  3014. params: {
  3015. fileName: res.data.fileName,
  3016. pageNum: this.boxSorting.pageNum,
  3017. pageSize: this.boxSorting.pageSize
  3018. }
  3019. })
  3020. .then(response => {
  3021. // this.tableData = this.tableData.concat(response.data.rows);
  3022. // console.log(this.tableData);
  3023. this.boxSorting.pageNum++;
  3024. let data = response.rows;
  3025. data.forEach(item => {
  3026. item.fCntrid = this.goodsList[0].fCntrid
  3027. item.fGoodsid = this.goodsList[0].fGoodsid
  3028. item.fPackageid = this.goodsList[0].fPackageid
  3029. })
  3030. this.dataList = this.dataList.concat(data);
  3031. // console.log(this.tableData.length+1,i);
  3032. // if (Number(Number(this.tableData.length+1)-i) === this.boxSorting.total){
  3033. // this.loading = false
  3034. // this.openFullScreen(true)
  3035. // request({
  3036. // url: '/warehouse/file/delete/'+res.fileName,
  3037. // method: 'delete',
  3038. // })
  3039. // }
  3040. // console.log(this.boxSorting.total);
  3041. this.storageBox(res, i);
  3042. // this.tableData = this.tableData.concat(response.data.data);
  3043. // let obj = {};
  3044. // this.tableData = this.tableData.reduce((current, next) => {
  3045. // obj[next.fCntrno] ? '' : obj[next.fCntrno] = true && current.push(next);
  3046. // return current;
  3047. // }, []);
  3048. });
  3049. } else {
  3050. let obj = {};
  3051. this.dataList = this.dataList.reduce((current, next) => {
  3052. obj[next.fCntrno] ? '' : obj[next.fCntrno] = true && current.push(next);
  3053. return current;
  3054. }, []);
  3055. request({
  3056. url: '/warehouse/file/delete/' + res.data.fileName,
  3057. method: 'delete',
  3058. });
  3059. this.uploading = false;
  3060. this.openFullScreen(true);
  3061. }
  3062. },
  3063. }
  3064. }
  3065. </script>
  3066. <style lang="scss" scoped>
  3067. .tabSetting {
  3068. display: flex;
  3069. justify-content: flex-end;
  3070. }
  3071. .listStyle {
  3072. display: flex;
  3073. border-top: 1px solid #dcdfe6;
  3074. border-left: 1px solid #dcdfe6;
  3075. border-right: 1px solid #dcdfe6;
  3076. }
  3077. .listStyle:last-child {
  3078. border-bottom: 1px solid #dcdfe6;
  3079. }
  3080. .progress {
  3081. display: flex;
  3082. align-items: center;
  3083. padding: 2px;
  3084. background-color: rgba(0, 0, 0, 0.05);
  3085. height: 100%;
  3086. }
  3087. .el-form {
  3088. padding-top: 20px;
  3089. //border-top:1px dashed #ccc;
  3090. }
  3091. .selectForm >>> .el-form-item__label {
  3092. font-size: 12px !important;
  3093. }
  3094. .app-container /deep/ .el-collapse-item__content{
  3095. padding-bottom:0
  3096. }
  3097. </style>
  3098. <style lang="scss">
  3099. .el-collapse-item__header {
  3100. font-size: 16px;
  3101. font-weight: bolder;
  3102. padding-left: 5px;
  3103. background-color: #f8f8f9;
  3104. }
  3105. .el-form-item__label {
  3106. font-size: 12px;
  3107. }
  3108. </style>