index.vue 121 KB

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