index.vue 169 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012
  1. <template>
  2. <div class="app-container">
  3. <el-form
  4. :model="queryParams"
  5. ref="queryForm"
  6. :inline="true"
  7. v-show="showSearch"
  8. label-width="88px"
  9. >
  10. <el-form-item label="业务编号" prop="fBillno">
  11. <el-input
  12. v-model="queryParams.fBillno"
  13. placeholder="请输入业务编号"
  14. style="width: 80%"
  15. clearable
  16. size="small"
  17. @keyup.enter.native="handleQuery"
  18. />
  19. </el-form-item>
  20. <el-form-item label="制单人" prop="createBy">
  21. <el-select
  22. v-model="queryParams.createBy"
  23. filterable
  24. remote
  25. clearable
  26. style="width: 80%"
  27. :remote-method="userRemoteMethod"
  28. placeholder="请选择制单人"
  29. >
  30. <el-option
  31. v-for="(dict, index) in userOptions"
  32. :key="index.userName"
  33. :label="dict.nickName"
  34. :value="dict.userName"
  35. ></el-option>
  36. </el-select>
  37. </el-form-item>
  38. <el-form-item label="入库日期" prop="timeInterval">
  39. <el-date-picker
  40. v-model="queryParams.timeInterval"
  41. type="daterange"
  42. value-format="yyyy-MM-dd"
  43. clearable
  44. style="width: 60%"
  45. range-separator="至"
  46. start-placeholder="开始日期"
  47. end-placeholder="结束日期"
  48. @keyup.enter.native="handleQuery"
  49. >
  50. </el-date-picker>
  51. </el-form-item>
  52. <el-form-item label="贸易方式" prop="fTrademodeid">
  53. <el-select
  54. v-model="queryParams.fTrademodeid"
  55. placeholder="请选择贸易方式"
  56. clearable
  57. style="width: 80%"
  58. @keyup.enter.native="handleQuery"
  59. >
  60. <el-option
  61. v-for="(dict, index) in fTrademodeidOptions"
  62. :key="index.dictValue"
  63. :label="dict.dictLabel"
  64. :value="dict.dictValue"
  65. />
  66. </el-select>
  67. </el-form-item>
  68. <el-form-item label="货权方" prop="fCorpid">
  69. <el-select
  70. v-model="queryParams.fCorpid"
  71. filterable
  72. remote
  73. clearable
  74. style="width: 80%"
  75. @keyup.enter.native="handleQuery"
  76. :remote-method="corpsRemoteMethod"
  77. placeholder="请输入模糊查找"
  78. >
  79. <el-option
  80. v-for="(dict, index) in fMblnoOptions"
  81. :key="index.fId"
  82. :label="dict.fName"
  83. :value="dict.fId"
  84. ></el-option>
  85. </el-select>
  86. </el-form-item>
  87. <el-form-item label="提单号" prop="fMblno">
  88. <el-input
  89. v-model="queryParams.fMblno"
  90. placeholder="请输入提单号"
  91. clearable
  92. style="width: 80%"
  93. size="small"
  94. @keyup.enter.native="handleQuery"
  95. />
  96. </el-form-item>
  97. <el-form-item label="经营单位" prop="fSbu">
  98. <el-select
  99. v-model="queryParams.fSbu"
  100. filterable
  101. remote
  102. clearable
  103. :remote-method="fSbuRemoteMethod"
  104. @keyup.enter.native="handleQuery"
  105. style="width: 80%"
  106. placeholder="请选择经营单位"
  107. >
  108. <el-option
  109. v-for="(dict, index) in fMblnoOptions"
  110. :key="index.fId"
  111. :label="dict.fName"
  112. :value="dict.fId"
  113. ></el-option>
  114. </el-select>
  115. </el-form-item>
  116. <el-form-item label="货物名称" prop="fGoodsid">
  117. <el-select
  118. v-model="queryParams.fGoodsid"
  119. filterable
  120. remote
  121. clearable
  122. style="width: 80%"
  123. :remote-method="goodsRemoteMethod"
  124. @keyup.enter.native="handleQuery"
  125. placeholder="请选择货物名称"
  126. >
  127. <el-option
  128. v-for="(dict, index) in goodsOptions"
  129. :key="index.fId"
  130. :label="dict.fName"
  131. :value="dict.fId"
  132. ></el-option>
  133. </el-select>
  134. </el-form-item>
  135. <el-form-item label="仓库" prop="fWarehouseid">
  136. <el-select
  137. v-model="queryParams.fWarehouseid"
  138. filterable
  139. remote
  140. clearable
  141. style="width: 80%"
  142. :remote-method="warehouseRemoteMethod"
  143. @keyup.enter.native="handleQuery"
  144. placeholder="请输入"
  145. >
  146. <el-option
  147. v-for="(dict, index) in warehouseOptions"
  148. :key="index.fId"
  149. :label="dict.fName"
  150. :value="dict.fId"
  151. ></el-option>
  152. </el-select>
  153. </el-form-item>
  154. <el-form-item label="品牌" prop="fMarks">
  155. <el-input
  156. v-model="queryParams.fMarks"
  157. placeholder="请输入品牌"
  158. clearable
  159. style="width: 80%"
  160. size="small"
  161. @keyup.enter.native="handleQuery"
  162. />
  163. </el-form-item>
  164. <el-form-item>
  165. <el-button
  166. type="cyan"
  167. icon="el-icon-search"
  168. size="mini"
  169. @click="handleQuery"
  170. >搜索
  171. </el-button>
  172. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  173. >重置
  174. </el-button>
  175. </el-form-item>
  176. </el-form>
  177. <el-row :gutter="10" class="mb8">
  178. <el-col :span="1.5">
  179. <el-button
  180. type="primary"
  181. icon="el-icon-plus"
  182. size="mini"
  183. @click="handleAdd(false)"
  184. v-hasPermi="['warehouseBusiness:inStock:add']"
  185. >新增
  186. </el-button>
  187. </el-col>
  188. <el-col :span="1.5">
  189. <el-button
  190. type="success"
  191. icon="el-icon-edit"
  192. size="mini"
  193. :disabled="single"
  194. @click="handleUpdate"
  195. v-hasPermi="['warehouseBusiness:inStock:edit']"
  196. >修改
  197. </el-button>
  198. </el-col>
  199. <!-- <el-col :span="1.5">
  200. <el-button
  201. type="danger"
  202. icon="el-icon-delete"
  203. size="mini"
  204. :disabled="multiple"
  205. @click="handleDelete"
  206. v-hasPermi="['warehouseBusiness:inStock:remove']"
  207. >删除
  208. </el-button>
  209. </el-col> -->
  210. <el-col :span="1.5">
  211. <el-button
  212. type="warning"
  213. icon="el-icon-download"
  214. size="mini"
  215. @click="handleExport"
  216. v-hasPermi="['warehouseBusiness:inStock:export']"
  217. >导出
  218. </el-button>
  219. </el-col>
  220. <el-col :span="1.5">
  221. <el-button
  222. type="warning"
  223. icon="el-icon-download"
  224. size="mini"
  225. @click="handleExport"
  226. :disabled="multiple"
  227. v-hasPermi="['warehouseBusiness:inStock:export']"
  228. >导入
  229. </el-button>
  230. </el-col>
  231. <right-toolbar
  232. :showSearch.sync="showSearch"
  233. @queryTable="getList"
  234. ></right-toolbar>
  235. </el-row>
  236. <el-table
  237. v-loading="loading"
  238. :data="warehousebillsList"
  239. @selection-change="handleSelectionChange"
  240. >
  241. <el-table-column type="selection" width="55" align="center" />
  242. <el-table-column type="index" label="行号" align="center" />
  243. <el-table-column
  244. :show-overflow-tooltip="true"
  245. label="货权方"
  246. align="center"
  247. prop="fCorpid"
  248. />
  249. <el-table-column label="提单号" align="center" prop="fMblno" show-overflow-tooltip/>
  250. <el-table-column label="品名" :show-overflow-tooltip="true" align="center" prop="fProductName" />
  251. <el-table-column label="品牌" align="center" prop="fMarks" />
  252. <el-table-column
  253. label="入库日期"
  254. align="center"
  255. prop="fBsdate"
  256. width="100"
  257. ><template slot-scope="scope">
  258. <span>{{ parseTime(scope.row.fBsdate, "{y}-{m}-{d}") }}</span>
  259. </template>
  260. </el-table-column>
  261. <!-- <el-table-column
  262. label="贸易方式"
  263. align="center"
  264. prop="fTrademodeid"
  265. :formatter="fTrademodeidFormat"
  266. /> -->
  267. <el-table-column label="仓库" align="center" prop="fWarehouseid" />
  268. <el-table-column label="计划件数" align="center" prop="fPlanqty" />
  269. <el-table-column label="入库件数" align="center" prop="fQty" />
  270. <!-- <el-table-column label="入库毛重" align="center" prop="fGrossweight"/>-->
  271. <!-- <el-table-column label="货转客户名称" align="center" prop="fTocorpid" /> -->
  272. <el-table-column label="入库毛重" align="center" prop="fGrossweight" />
  273. <el-table-column label="入库净重" align="center" prop="fNetweight" />
  274. <el-table-column label="车号" align="center" prop="fTruckno" width="100"/>
  275. <el-table-column label="司机名称" align="center" prop="fDriverName" />
  276. <el-table-column label="司机电话" align="center" prop="fDriverTel" width="120"/>
  277. <el-table-column label="司机身份证" align="center" prop="fDriverIdCar" width="180"/>
  278. <el-table-column label="业务类别" align="center" prop="fBusinessType" :formatter="fBusinessTypeFormat"/>
  279. <el-table-column
  280. width="100"
  281. label="入库状态"
  282. align="center"
  283. prop="fItemsStatus"
  284. >
  285. <template slot-scope="scope">
  286. <span v-if="scope.row.fItemsStatus === 1">计划</span>
  287. <span v-if="scope.row.fItemsStatus === 2">待入库</span>
  288. <span v-if="scope.row.fItemsStatus === 3">入库中</span>
  289. <span v-if="scope.row.fItemsStatus === 4">已入库</span>
  290. </template>
  291. </el-table-column>
  292. <el-table-column
  293. width="100"
  294. label="费用状态"
  295. align="center"
  296. prop="fBillstatus"
  297. >
  298. <template slot-scope="scope">
  299. <span v-if="scope.row.fBillstatus === 1">录入</span>
  300. <span v-if="scope.row.fBillstatus === 2">暂存</span>
  301. <span v-if="scope.row.fBillstatus === 3">驳回</span>
  302. <span v-if="scope.row.fBillstatus === 4">请核</span>
  303. <span v-if="scope.row.fBillstatus === 5">审核中</span>
  304. <span v-if="scope.row.fBillstatus === 6">全部入账</span>
  305. </template>
  306. </el-table-column>
  307. <el-table-column
  308. label="操作"
  309. align="center"
  310. class-name="small-padding fixed-width"
  311. width="180"
  312. >
  313. <template slot-scope="scope">
  314. <el-button
  315. size="mini"
  316. type="text"
  317. icon="el-icon-edit"
  318. @click="handleUpdate(scope.row, true)"
  319. v-hasPermi="['warehouseBusiness:inStock:edit']"
  320. >查看
  321. </el-button>
  322. <el-button
  323. size="mini"
  324. type="text"
  325. icon="el-icon-edit"
  326. v-if="
  327. scope.row.fBillstatus === 1 ||
  328. scope.row.fBillstatus === 2 ||
  329. scope.row.fBillstatus === 3
  330. "
  331. @click="handleUpdate(scope.row, false)"
  332. v-hasPermi="['warehouseBusiness:inStock:edit']"
  333. >修改
  334. </el-button>
  335. <el-button
  336. size="mini"
  337. type="text"
  338. icon="el-icon-delete"
  339. v-if="scope.row.fItemsStatus === 1"
  340. @click="handleDelete(scope.row)"
  341. v-hasPermi="['warehouseBusiness:inStock:remove']"
  342. >删除
  343. </el-button>
  344. <el-button
  345. size="mini"
  346. type="text"
  347. icon="el-icon-delete"
  348. v-if="scope.row.fBillstatus === 4 || scope.row.fBillstatus === 5"
  349. @click="handleUpdate(scope.row, true)"
  350. >审核进度
  351. </el-button>
  352. </template>
  353. </el-table-column>
  354. </el-table>
  355. <pagination
  356. v-show="total > 0"
  357. :total="total"
  358. :page.sync="queryParams.pageNum"
  359. :limit.sync="queryParams.pageSize"
  360. @pagination="getList"
  361. />
  362. <!-- 新增或修改仓库主(出入库)对话框 -->
  363. <el-dialog
  364. :visible.sync="open"
  365. :close-on-click-modal="false"
  366. @close='addCloseDialog'
  367. :show-close="closeButton"
  368. width="80%"
  369. append-to-body
  370. >
  371. <el-form ref="form" :model="form" :rules="rules" label-width="120px">
  372. <el-row>
  373. <el-col :span="8">
  374. <el-form-item label="货1权方" prop="fCorpid">
  375. <el-select
  376. v-model="form.fCorpid"
  377. filterable
  378. remote
  379. @change="changefCorpid(form)"
  380. :disabled="browseStatus || formBrowseStatus"
  381. style="width: 80%"
  382. :remote-method="corpsRemoteMethod"
  383. placeholder="请输入模糊查找"
  384. >
  385. <el-option
  386. v-for="(dict, index) in fMblnoOptions"
  387. :key="index.fId"
  388. :label="dict.fName"
  389. :value="dict.fId"
  390. ></el-option>
  391. </el-select>
  392. </el-form-item>
  393. </el-col>
  394. <el-col :span="8">
  395. <el-form-item label="结算方式" prop="fStltypeid">
  396. <el-select
  397. v-model="form.fStltypeid"
  398. placeholder="请选择结算方式"
  399. clearable
  400. :disabled="browseStatus || formBrowseStatus"
  401. style="width: 80%"
  402. >
  403. <el-option
  404. v-for="(dict, index) in fStltypeOptions"
  405. :key="index.dictValue"
  406. :label="dict.dictLabel"
  407. :value="dict.dictValue"
  408. />
  409. </el-select>
  410. </el-form-item>
  411. </el-col>
  412. <el-col :span="8">
  413. <el-form-item label="提单号" prop="fMblno">
  414. <el-input
  415. v-model="form.fMblno"
  416. :disabled="browseStatus || formBrowseStatus"
  417. style="width: 80%"
  418. placeholder="手工输入"
  419. />
  420. </el-form-item>
  421. </el-col>
  422. </el-row>
  423. <el-row>
  424. <el-col :span="8">
  425. <el-form-item label="业务日期" prop="fBsdate">
  426. <el-date-picker
  427. v-model="form.fBsdate"
  428. style="width: 80%"
  429. type="date"
  430. :disabled="browseStatus || formBrowseStatus"
  431. @change="changefBsdate"
  432. value-format="timestamp"
  433. placeholder="业务日期"
  434. >
  435. </el-date-picker>
  436. </el-form-item>
  437. </el-col>
  438. <el-col :span="8">
  439. <el-form-item label="仓管员" prop="fStorekeeper">
  440. <el-select
  441. v-model="form.fStorekeeper"
  442. filterable
  443. remote
  444. :disabled="browseStatus || formBrowseStatus"
  445. style="width: 80%"
  446. :remote-method="userRemoteMethod"
  447. placeholder="请输入模糊查找"
  448. >
  449. <el-option
  450. v-for="(dict, index) in userOptions"
  451. :key="index.userName"
  452. :label="dict.nickName"
  453. :value="dict.userName"
  454. ></el-option>
  455. </el-select>
  456. </el-form-item>
  457. </el-col>
  458. <el-col :span="8">
  459. <el-form-item label="仓1库" prop="fWarehouseid">
  460. <el-select
  461. v-model="form.fWarehouseid"
  462. filterable
  463. remote
  464. clearable
  465. style="width: 80%"
  466. @keyup.enter.native="handleQuery"
  467. placeholder="请输入"
  468. >
  469. <el-option
  470. v-for="(dict, index) in warehouseOptions"
  471. :key="index.fId"
  472. :label="dict.fName"
  473. :value="dict.fId"
  474. ></el-option>
  475. </el-select>
  476. </el-form-item>
  477. </el-col>
  478. </el-row>
  479. <el-row>
  480. <el-col :span="8">
  481. <el-form-item label="计划件数" prop="fPlanqty">
  482. <el-input
  483. v-model="form.fPlanqty"
  484. style="width: 80%"
  485. maxlength="9"
  486. laceholder="计划件数"
  487. oninput='this.value=this.value.replace(/[^\-?\d]/g,"")'
  488. :disabled="browseStatus"
  489. />
  490. </el-form-item>
  491. </el-col>
  492. <el-col :span="8">
  493. <el-form-item label="计划净重" prop="fPlannetweight">
  494. <el-input
  495. v-model="form.fPlannetweight"
  496. style="width: 80%"
  497. maxlength="9"
  498. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  499. laceholder="计划净重"
  500. :disabled="browseStatus"
  501. />
  502. </el-form-item>
  503. </el-col>
  504. <el-col :span="8">
  505. <el-form-item label="计划毛重" prop="fPlangrossweight">
  506. <el-input
  507. v-model="form.fPlangrossweight"
  508. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  509. style="width: 80%"
  510. laceholder="计划毛重"
  511. maxlength="9"
  512. :disabled="browseStatus"
  513. />
  514. </el-form-item>
  515. </el-col>
  516. </el-row>
  517. <el-row>
  518. <el-col :span="8">
  519. <el-form-item label="存货编号" prop="fBscorpno">
  520. <el-input
  521. disabled
  522. v-model="form.fBscorpno"
  523. style="width: 80%"
  524. laceholder="存货编号"
  525. />
  526. </el-form-item>
  527. </el-col>
  528. <el-col :span="8">
  529. <el-form-item label="计费单位" prop="fFeetunit">
  530. <el-select
  531. v-model="form.fFeetunit"
  532. placeholder="请选择计费单位"
  533. clearable
  534. :disabled="browseStatus || formBrowseStatus"
  535. style="width: 80%"
  536. >
  537. <el-option
  538. v-for="(dict, index) in fFeetunitOptions"
  539. :key="index.dictValue"
  540. :label="dict.dictLabel"
  541. :value="dict.dictValue"
  542. />
  543. </el-select>
  544. </el-form-item>
  545. </el-col>
  546. <el-col :span="8">
  547. <el-form-item
  548. label="车号" prop="fTruckno"
  549. :rules="{
  550. required: isrequired_s=== 1 ? true : false,
  551. message: '请选择',
  552. trigger: ['blur', 'change']
  553. }">
  554. <el-input
  555. v-model="form.fTruckno"
  556. style="width: 80%"
  557. :disabled="browseStatus || formBrowseStatus"
  558. placeholder="车号"
  559. />
  560. </el-form-item>
  561. </el-col>
  562. </el-row>
  563. <el-row>
  564. <el-col :span="8">
  565. <el-form-item
  566. label="司机姓名" prop="fDriverName"
  567. :rules="{
  568. required: isrequired_s === 1 ? true : false,
  569. message: '请选择',
  570. trigger: ['blur', 'change']
  571. }">
  572. <el-input
  573. v-model="form.fDriverName"
  574. style="width: 80%"
  575. :disabled="browseStatus || formBrowseStatus"
  576. placeholder="司机姓名"
  577. />
  578. </el-form-item>
  579. </el-col>
  580. <el-col :span="8">
  581. <el-form-item label="司机身份证" prop="fDriverIdCar"
  582. :rules="{
  583. required: isrequired_s === 1 ? true : false,
  584. message: '请选择',
  585. trigger: ['blur', 'change']
  586. }">
  587. <el-input
  588. v-model="form.fDriverIdCar"
  589. style="width: 80%"
  590. :disabled="browseStatus || formBrowseStatus"
  591. placeholder="司机身份证"
  592. />
  593. </el-form-item>
  594. </el-col>
  595. <el-col :span="8">
  596. <el-form-item
  597. label="司机电话"
  598. prop="fDriverTel"
  599. :rules="{
  600. required: isrequired_s === 1 ? true : false,
  601. message: '请选择',
  602. trigger: ['blur', 'change']
  603. }">
  604. <el-input
  605. v-model="form.fDriverTel"
  606. style="width: 80%"
  607. :disabled="browseStatus || formBrowseStatus"
  608. placeholder="司机电话"
  609. />
  610. </el-form-item>
  611. </el-col>
  612. </el-row>
  613. <el-row>
  614. <el-col :span="8">
  615. <el-form-item label="作业类型" prop="fBusinessType">
  616. <el-select
  617. style="width: 80%"
  618. v-model="form.fBusinessType"
  619. filterable
  620. @change="educationChange"
  621. :disabled="contrOl"
  622. >
  623. <el-option
  624. v-for="(dict,index) in businessTypeOption"
  625. :key="dict.dictValue"
  626. :label="dict.dictLabel"
  627. :value="dict.dictValue"
  628. ></el-option>
  629. </el-select>
  630. </el-form-item>
  631. </el-col>
  632. <el-col :span="8">
  633. <el-form-item label="劳务公司" prop="fLabour">
  634. <el-select
  635. style="width: 80%"
  636. v-model="form.fLabour"
  637. @keyup.enter.native="handleQuery"
  638. :remote-method="flabourRemoteMethod"
  639. filterable
  640. :disabled="browseStatus"
  641. placeholder="请输入劳务公司">
  642. <el-option
  643. v-for="(dict, index) in fMblnoOptions"
  644. :key="index.fId"
  645. :label="dict.fName"
  646. :value="dict.fId"
  647. ></el-option>
  648. </el-select>
  649. </el-form-item>
  650. </el-col>
  651. <el-col :span="8">
  652. <el-form-item label="车队" prop="fFleet"
  653. :rules="{
  654. required: isrequired === 1 ? true : false,
  655. message: '请选择',
  656. trigger: ['blur', 'change']
  657. }"
  658. >
  659. <el-select
  660. style="width: 80%"
  661. v-model="form.fFleet"
  662. filterable
  663. @keyup.enter.native="handleQuery"
  664. :remote-method="fleetRemoteMethod"
  665. :disabled="browseStatus"
  666. placeholder="请输入车队">
  667. <el-option
  668. v-for="(dict, index) in fMblnoOptions"
  669. :key="index.fId"
  670. :label="dict.fName"
  671. :value="dict.fId"
  672. ></el-option>
  673. </el-select>
  674. </el-form-item>
  675. </el-col>
  676. </el-row>
  677. <el-row>
  678. <el-col :span="15">
  679. <el-form-item label="备注" prop="remark">
  680. <el-input
  681. style="width: 100%"
  682. v-model="form.remark"
  683. type="textarea"
  684. :disabled="browseStatus"
  685. placeholder="请输入内容"
  686. />
  687. </el-form-item>
  688. </el-col>
  689. <el-col :span="8">
  690. <el-form-item>
  691. <el-button @click="detailsHidden ? (detailsHidden = false) : (detailsHidden = true)">{{ detailsHidden ? '隐藏' : '展开' }}
  692. </el-button>
  693. </el-form-item>
  694. </el-col>
  695. </el-row>
  696. <div v-if="detailsHidden">
  697. <el-row style="margin-top: 30px">
  698. <el-col :span="8">
  699. <el-form-item label="仓库联系人" prop="fContacts">
  700. <el-input
  701. v-model="form.fContacts"
  702. style="width: 80%"
  703. :disabled="browseStatus || formBrowseStatus"
  704. placeholder="仓库联系人"
  705. />
  706. </el-form-item>
  707. </el-col>
  708. <el-col :span="8">
  709. <el-form-item label="仓库电话" prop="fTel">
  710. <el-input
  711. v-model="form.fTel"
  712. :disabled="browseStatus || formBrowseStatus"
  713. style="width: 80%"
  714. placeholder="请输仓库入电话"
  715. />
  716. </el-form-item>
  717. </el-col>
  718. <el-col :span="8">
  719. <el-form-item label="船名航次" prop="fVslvoy">
  720. <el-input
  721. v-model="form.fVslvoy"
  722. style="width: 80%"
  723. :disabled="browseStatus || formBrowseStatus"
  724. placeholder="船名航次"
  725. />
  726. </el-form-item>
  727. </el-col>
  728. </el-row>
  729. <el-row>
  730. <el-col :span="8">
  731. <el-form-item label="到港日期" prop="fEta">
  732. <el-date-picker
  733. v-model="form.fEta"
  734. style="width: 80%"
  735. type="date"
  736. :disabled="browseStatus || formBrowseStatus"
  737. value-format="timestamp"
  738. placeholder="到港日期"
  739. >
  740. </el-date-picker>
  741. </el-form-item>
  742. </el-col>
  743. <el-col :span="8">
  744. <el-form-item label="报关单号" prop="fCustomno">
  745. <el-input
  746. v-model="form.fCustomno"
  747. style="width: 80%"
  748. :disabled="browseStatus || formBrowseStatus"
  749. laceholder="报关单号"
  750. />
  751. </el-form-item>
  752. </el-col>
  753. <el-col :span="8">
  754. <el-form-item label="经营单位" prop="fSbu">
  755. <el-select
  756. v-model="form.fSbu"
  757. filterable
  758. remote
  759. :disabled="browseStatus || formBrowseStatus"
  760. :remote-method="fSbuRemoteMethod"
  761. style="width: 80%"
  762. placeholder="请选择经营单位"
  763. >
  764. <el-option
  765. v-for="(dict, index) in fMblnoOptions"
  766. :key="index.fId"
  767. :label="dict.fName"
  768. :value="dict.fId"
  769. ></el-option>
  770. </el-select>
  771. </el-form-item>
  772. </el-col>
  773. </el-row>
  774. <el-row>
  775. <el-col :span="8">
  776. <el-form-item label="单据编号" prop="fBillno">
  777. <el-input
  778. v-model="form.fBillno"
  779. disabled
  780. style="width: 80%"
  781. placeholder="单据编号"
  782. />
  783. </el-form-item>
  784. </el-col>
  785. <el-col :span="8">
  786. <el-form-item label="贸易方式" prop="fTrademodeid">
  787. <el-select
  788. v-model="form.fTrademodeid"
  789. placeholder="请选择贸易方式"
  790. :disabled="browseStatus || formBrowseStatus"
  791. clearable
  792. style="width: 80%"
  793. >
  794. <el-option
  795. v-for="(dict, index) in fTrademodeidOptions"
  796. :key="index.dictValue"
  797. :label="dict.dictLabel"
  798. :value="dict.dictValue"
  799. />
  800. </el-select>
  801. </el-form-item>
  802. </el-col>
  803. <el-col :span="8">
  804. <el-form-item label="制单人" prop="createBy">
  805. <el-input
  806. disabled
  807. v-model="form.createBy"
  808. style="width: 80%"
  809. placeholder="制单人"
  810. />
  811. </el-form-item>
  812. </el-col>
  813. </el-row>
  814. <el-row>
  815. <el-col :span="8">
  816. <el-form-item label="制单部门" prop="fDeptid">
  817. <el-select
  818. v-model="form.fDeptid"
  819. filterable
  820. disabled
  821. style="width: 80%"
  822. remote
  823. >
  824. <el-option
  825. v-for="(dict, index) in deptOptions"
  826. :key="index.deptId"
  827. :label="dict.deptName"
  828. :value="dict.deptId"
  829. ></el-option>
  830. </el-select>
  831. </el-form-item>
  832. </el-col>
  833. <el-col :span="8">
  834. <el-form-item disabled label="制单日期" prop="fbilldate">
  835. <el-date-picker
  836. v-model="form.createTime"
  837. size="large"
  838. type="date"
  839. disabled
  840. style="width: 80%"
  841. value-format="timestamp"
  842. placeholder="制单日期"
  843. >
  844. </el-date-picker>
  845. </el-form-item>
  846. </el-col>
  847. <el-col :span="8">
  848. <el-form-item label="过磅" prop="fIfweigh">
  849. <el-select
  850. v-model="form.fIfweigh"
  851. placeholder="请选择是否过磅"
  852. clearable
  853. :disabled="browseStatus || formBrowseStatus"
  854. style="width: 80%"
  855. >
  856. <el-option
  857. v-for="(dict, index) in fIfweighOptions"
  858. :key="index.dictValue"
  859. :label="dict.dictLabel"
  860. :value="dict.dictValue"
  861. />
  862. </el-select>
  863. </el-form-item>
  864. </el-col>
  865. </el-row>
  866. <el-row>
  867. <el-col :span="8">
  868. <el-form-item label="品名" prop="fProductName">
  869. <el-input
  870. v-model="form.fProductName"
  871. style="width: 80%"
  872. disabled
  873. placeholder="品名"
  874. />
  875. </el-form-item>
  876. </el-col>
  877. <el-col :span="8">
  878. <el-form-item label="品牌">
  879. <el-input
  880. v-model="form.fMarks"
  881. style="width: 80%"
  882. disabled
  883. placeholder="品牌"
  884. />
  885. </el-form-item>
  886. </el-col>
  887. </el-row>
  888. <el-row>
  889. <el-col :span="8">
  890. <el-form-item label="质押" prop="fIfpledge">
  891. <el-select
  892. v-model="form.fIfpledge"
  893. placeholder="请选择是否质押"
  894. clearable
  895. :disabled="browseStatus || formBrowseStatus"
  896. style="width: 80%"
  897. >
  898. <el-option
  899. v-for="(dict, index) in fIfpledgeOptions"
  900. :key="index.dictValue"
  901. :label="dict.dictLabel"
  902. :value="dict.dictValue"
  903. />
  904. </el-select>
  905. </el-form-item>
  906. </el-col>
  907. <el-col :span="8">
  908. <el-form-item label="质押银行" prop="fBankcorpid">
  909. <el-select
  910. v-model="queryParams.fBankcorpid"
  911. filterable
  912. remote
  913. clearable
  914. style="width: 80%"
  915. :disabled="browseStatus || formBrowseStatus"
  916. @keyup.enter.native="handleQuery"
  917. :remote-method="corpsRemoteMethodd"
  918. placeholder="请输入模糊查找"
  919. >
  920. <el-option
  921. v-for="(dict, index) in Pledgebank"
  922. :key="index.fId"
  923. :label="dict.fName"
  924. :value="dict.fId"
  925. ></el-option>
  926. </el-select>
  927. </el-form-item>
  928. </el-col>
  929. </el-row>
  930. </div>
  931. </el-form>
  932. <el-collapse v-model="activeNames">
  933. <el-collapse-item name="1">
  934. <template slot="title">
  935. <i class="el-icon-s-home"></i>入库明细
  936. </template>
  937. <div
  938. class="dialogTableTitle flex a-center jlr"
  939. style="
  940. display: flex;
  941. justify-content: space-between;
  942. align-items: center;
  943. margin: 10px 0;
  944. "
  945. >
  946. <div>
  947. <el-button
  948. type="primary"
  949. :disabled="browseStatus"
  950. @click.prevent="addRelevant(10)"
  951. size="small"
  952. >新行
  953. </el-button>
  954. <el-button
  955. :disabled="browseStatus"
  956. type="primary"
  957. @click="submitForm(2)"
  958. size="small"
  959. >保 存</el-button
  960. >
  961. </div>
  962. <div>
  963. <el-button size="small" type="info" :disabled="browseStatus" prop="打印" @click="showEditDialog_sss"
  964. >作业单
  965. </el-button>
  966. <el-button size="small" @click="discharge" :disabled="browseStatus">卸货完成</el-button>
  967. <el-button
  968. size="small"
  969. :disabled="dataListSelection.length <= 0 || browseStatus"
  970. @click.prevent="creditClick"
  971. >入库确认
  972. </el-button>
  973. <el-button
  974. size="small"
  975. :disabled="dataWithdrawList.length <= 0 || browseStatus"
  976. @click.prevent="withdrawClick"
  977. >撤回入库
  978. </el-button
  979. >
  980. <el-button size="small" type="success" :disabled="browseStatus" prop="打印"
  981. >打印吊牌
  982. </el-button>
  983. <el-button size="small" type="success" :disabled="browseStatus" prop="打印" @click="showEditDialog_ss"
  984. >收货单
  985. </el-button>
  986. <el-button size="small" type="warning" :disabled="browseStatus" prop="打印" @click="showEditDialog_s"
  987. >入库单
  988. </el-button>
  989. <el-button
  990. size="small"
  991. :disabled="browseStatus"
  992. style="background-color: #008000; color: #fff"
  993. @click="submitForm(6)"
  994. >请核
  995. </el-button>
  996. </div>
  997. </div>
  998. <el-table
  999. :data="dataList"
  1000. tooltip-effect="dark"
  1001. :rules="checkout"
  1002. ref="checkout"
  1003. border
  1004. stripe
  1005. :summary-method="getSummaries"
  1006. @selection-change="Selectinventory"
  1007. show-summary
  1008. >
  1009. <el-table-column type="selection" width="55" align="center" />
  1010. <el-table-column label="序号" type="index" width="80">
  1011. </el-table-column>
  1012. <el-table-column
  1013. prop="fBsdate"
  1014. header-align="center"
  1015. align="center"
  1016. width="150px"
  1017. label="入库日期"
  1018. >
  1019. <template slot-scope="scope">
  1020. <el-date-picker
  1021. v-model="scope.row.fBsdate"
  1022. style="width: 138px"
  1023. :disabled="
  1024. browseStatus ||
  1025. scope.row.fBillstatus === 20 ||
  1026. scope.row.fBillstatus === 30 ||
  1027. scope.row.fBillstatus === 40
  1028. "
  1029. type="date"
  1030. value-format="timestamp"
  1031. placeholder="入库日期"
  1032. >
  1033. </el-date-picker>
  1034. </template>
  1035. </el-table-column>
  1036. <el-table-column
  1037. prop="fMblno"
  1038. header-align="center"
  1039. align="center"
  1040. width="140px"
  1041. label="提单号"
  1042. >
  1043. </el-table-column>
  1044. <el-table-column
  1045. prop="fGoodsid"
  1046. header-align="center"
  1047. align="center"
  1048. width="140px"
  1049. label="品名"
  1050. >
  1051. <template slot-scope="scope">
  1052. <el-select
  1053. v-model="scope.row.fGoodsid"
  1054. filterable
  1055. :disabled="
  1056. browseStatus ||
  1057. scope.row.fBillstatus === 20 ||
  1058. scope.row.fBillstatus === 30 ||
  1059. scope.row.fBillstatus === 40
  1060. "
  1061. remote
  1062. @change="changefGoodsid(scope.row)"
  1063. placeholder="请选择品名"
  1064. >
  1065. <el-option
  1066. v-for="(dict, index) in goodsOptions"
  1067. :key="index.fId"
  1068. :label="dict.fName"
  1069. :value="dict.fId"
  1070. ></el-option>
  1071. </el-select>
  1072. </template>
  1073. </el-table-column>
  1074. <el-table-column
  1075. prop="fBusinessType"
  1076. header-align="center"
  1077. width="140px"
  1078. align="center"
  1079. label="*货物属性"
  1080. >
  1081. <template slot-scope="scope">
  1082. <el-select v-model="scope.row.fBusinessType"
  1083. filterable
  1084. size="small"
  1085. :disabled="browseStatus || scope.row.fBillstatus === 20 || scope.row.fBillstatus === 30 || scope.row.fBillstatus === 40"
  1086. :remote-method="kqhouseRemoteMethod"
  1087. placeholder="请选择商品属性"
  1088. >
  1089. <el-option
  1090. v-for="(dict, index) in fStorageTypeOptions"
  1091. :key="index.dictValue"
  1092. :label="dict.dictLabel"
  1093. :value="dict.dictValue"
  1094. />
  1095. </el-select>
  1096. </template>
  1097. </el-table-column>
  1098. <el-table-column
  1099. prop="fMarks"
  1100. header-align="center"
  1101. align="center"
  1102. width="140px"
  1103. label="*属性详情"
  1104. >
  1105. <template slot-scope="scope">
  1106. <el-input
  1107. v-model="scope.row.fMarks"
  1108. placeholder="请填写属性描述"
  1109. :disabled="
  1110. browseStatus ||
  1111. scope.row.fBillstatus === 20 ||
  1112. scope.row.fBillstatus === 30 ||
  1113. scope.row.fBillstatus === 40
  1114. "
  1115. show-word-limit
  1116. />
  1117. </template>
  1118. </el-table-column>
  1119. <el-table-column
  1120. prop="fWarehouseid"
  1121. header-align="center"
  1122. width="140px"
  1123. align="center"
  1124. label="*库区"
  1125. >
  1126. <template slot-scope="scope">
  1127. <el-input
  1128. placeholder="请选择"
  1129. v-model="scope.row.fWarehouselocid"
  1130. clearable
  1131. @focus="choiceWarehouse = true"
  1132. >
  1133. </el-input>
  1134. </template>
  1135. </el-table-column>
  1136. <!-- <treeselect v-model="fWarehouselocid" :options="warehousesOptions" :show-count="true" placeholder="请选择归属库区" />-->
  1137. <!-- <el-select-->
  1138. <!-- v-model="scope.row.fWarehouselocid"-->
  1139. <!-- filterable-->
  1140. <!-- remote-->
  1141. <!-- :disabled="-->
  1142. <!-- browseStatus ||-->
  1143. <!-- scope.row.fBillstatus === 20 ||-->
  1144. <!-- scope.row.fBillstatus === 30 ||-->
  1145. <!-- scope.row.fBillstatus === 40-->
  1146. <!-- "-->
  1147. <!-- placeholder="请选择库位"-->
  1148. <!-- >-->
  1149. <!-- <el-option-->
  1150. <!-- v-for="(dict, index) in kqhouseOptions"-->
  1151. <!-- :key="index.fId"-->
  1152. <!-- :label="dict.fName"-->
  1153. <!-- :value="dict.fId"-->
  1154. <!-- ></el-option>-->
  1155. <!-- </el-select>-->
  1156. <!-- </template>-->
  1157. <!-- </el-table-column>-->
  1158. <el-table-column
  1159. prop="fcntrtype"
  1160. header-align="center"
  1161. align="center"
  1162. width="140px"
  1163. label="箱型"
  1164. >
  1165. <template slot-scope="scope">
  1166. <el-input
  1167. v-model="scope.row.fCntrtype"
  1168. maxlength="4"
  1169. placeholder="箱型"
  1170. :disabled="
  1171. browseStatus ||
  1172. scope.row.fBillstatus === 20 ||
  1173. scope.row.fBillstatus === 30 ||
  1174. scope.row.fBillstatus === 40
  1175. "
  1176. show-word-limit
  1177. />
  1178. </template>
  1179. </el-table-column>
  1180. <el-table-column
  1181. prop="fCntqty"
  1182. header-align="center"
  1183. align="center"
  1184. width="140px"
  1185. label="箱量"
  1186. >
  1187. <template slot-scope="scope">
  1188. <el-input
  1189. v-model="scope.row.fCntqty"
  1190. placeholder="箱量"
  1191. :disabled="
  1192. browseStatus ||
  1193. scope.row.fBillstatus === 20 ||
  1194. scope.row.fBillstatus === 30 ||
  1195. scope.row.fBillstatus === 40
  1196. "
  1197. show-word-limit
  1198. />
  1199. </template>
  1200. </el-table-column>
  1201. <el-table-column
  1202. prop="fQty"
  1203. header-align="center"
  1204. width="150px"
  1205. align="center"
  1206. label="*入库件数"
  1207. >
  1208. <template slot-scope="scope">
  1209. <el-input
  1210. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1211. v-model="scope.row.fQty"
  1212. @change="qtyChange(scope.row)"
  1213. placeholder="入库件数"
  1214. :disabled="browseStatus || scope.row.fBillstatus === 40"
  1215. show-word-limit
  1216. />
  1217. </template>
  1218. </el-table-column>
  1219. <el-table-column
  1220. prop="fGrossweight"
  1221. header-align="center"
  1222. width="150px"
  1223. align="center"
  1224. label="*入库毛重"
  1225. >
  1226. <template slot-scope="scope">
  1227. <el-input
  1228. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1229. v-model="scope.row.fGrossweight"
  1230. placeholder="入库毛重"
  1231. :disabled="browseStatus || scope.row.fBillstatus === 40"
  1232. show-word-limit
  1233. />
  1234. </template>
  1235. </el-table-column>
  1236. <el-table-column
  1237. prop="fNetweight"
  1238. header-align="center"
  1239. width="150px"
  1240. align="center"
  1241. label="*入库净重"
  1242. >
  1243. <template slot-scope="scope">
  1244. <el-input
  1245. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1246. v-model="scope.row.fNetweight"
  1247. placeholder="入库净重"
  1248. :disabled="browseStatus || scope.row.fBillstatus === 40"
  1249. show-word-limit
  1250. />
  1251. </template>
  1252. </el-table-column>
  1253. <el-table-column
  1254. prop="fPackagespecs"
  1255. header-align="center"
  1256. width="150px"
  1257. align="center"
  1258. label="*包装规格"
  1259. >
  1260. <template slot-scope="scope">
  1261. <el-input
  1262. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1263. v-model="scope.row.fPackagespecs"
  1264. placeholder="包装规格"
  1265. :disabled="
  1266. browseStatus ||
  1267. scope.row.fBillstatus === 20 ||
  1268. scope.row.fBillstatus === 30 ||
  1269. scope.row.fBillstatus === 40
  1270. "
  1271. show-word-limit
  1272. />
  1273. </template>
  1274. </el-table-column>
  1275. <el-table-column
  1276. prop="fTruckno"
  1277. header-align="center"
  1278. width="130px"
  1279. align="center"
  1280. label="*车号"
  1281. >
  1282. <template slot-scope="scope">
  1283. <el-input
  1284. v-model="scope.row.fTruckno"
  1285. placeholder="*车号"
  1286. :disabled="
  1287. browseStatus ||
  1288. scope.row.fBillstatus === 20 ||
  1289. scope.row.fBillstatus === 30 ||
  1290. scope.row.fBillstatus === 40
  1291. "
  1292. show-word-limit
  1293. />
  1294. </template>
  1295. </el-table-column>
  1296. <el-table-column
  1297. prop="fDriverName"
  1298. header-align="center"
  1299. width="130px"
  1300. align="center"
  1301. label="*司机名"
  1302. >
  1303. <template slot-scope="scope">
  1304. <el-input
  1305. v-model="scope.row.fDriverName"
  1306. placeholder="司机名"
  1307. :disabled="
  1308. browseStatus ||
  1309. scope.row.fBillstatus === 20 ||
  1310. scope.row.fBillstatus === 30 ||
  1311. scope.row.fBillstatus === 40
  1312. "
  1313. show-word-limit
  1314. />
  1315. </template>
  1316. </el-table-column>
  1317. <el-table-column
  1318. prop="fDriverTel"
  1319. header-align="center"
  1320. width="200px"
  1321. align="center"
  1322. label="*司机电话"
  1323. >
  1324. <template slot-scope="scope">
  1325. <el-input
  1326. v-model="scope.row.fDriverTel"
  1327. placeholder="司机电话"
  1328. :disabled="
  1329. browseStatus ||
  1330. scope.row.fBillstatus === 20 ||
  1331. scope.row.fBillstatus === 30 ||
  1332. scope.row.fBillstatus === 40
  1333. "
  1334. show-word-limit
  1335. />
  1336. </template>
  1337. </el-table-column>
  1338. <el-table-column
  1339. prop="fDriverIdCar"
  1340. header-align="center"
  1341. width="200px"
  1342. align="center"
  1343. label="*司机身份证"
  1344. >
  1345. <template slot-scope="scope">
  1346. <el-input
  1347. v-model="scope.row.fDriverIdCar"
  1348. placeholder="司机身份证"
  1349. :disabled="
  1350. browseStatus ||
  1351. scope.row.fBillstatus === 20 ||
  1352. scope.row.fBillstatus === 30 ||
  1353. scope.row.fBillstatus === 40
  1354. "
  1355. show-word-limit
  1356. />
  1357. </template>
  1358. </el-table-column>
  1359. <el-table-column
  1360. prop="fSerialNumber"
  1361. header-align="center"
  1362. width="160px"
  1363. align="center"
  1364. label="流水号"
  1365. >
  1366. <template slot-scope="scope">
  1367. <el-input
  1368. v-model="scope.row.fSerialNumber"
  1369. placeholder="流水号"
  1370. disabled
  1371. show-word-limit
  1372. />
  1373. </template>
  1374. </el-table-column>
  1375. <el-table-column
  1376. prop="fCntrno"
  1377. header-align="center"
  1378. width="130px"
  1379. align="center"
  1380. label="箱号"
  1381. >
  1382. <template slot-scope="scope">
  1383. <el-input
  1384. v-model="scope.row.fCntrno"
  1385. placeholder="箱号"
  1386. :disabled="
  1387. browseStatus ||
  1388. scope.row.fBillstatus === 20 ||
  1389. scope.row.fBillstatus === 30 ||
  1390. scope.row.fBillstatus === 40
  1391. "
  1392. show-word-limit
  1393. />
  1394. </template>
  1395. </el-table-column>
  1396. <el-table-column
  1397. prop="fGoodsval"
  1398. header-align="center"
  1399. width="130px"
  1400. align="center"
  1401. label="货值"
  1402. >
  1403. <template slot-scope="scope">
  1404. <el-input
  1405. oninput="value=value.replace(/[^\d.]/g,'')"
  1406. v-model="scope.row.fGoodsval"
  1407. placeholder="货值"
  1408. :disabled="
  1409. browseStatus ||
  1410. scope.row.fBillstatus === 20 ||
  1411. scope.row.fBillstatus === 30 ||
  1412. scope.row.fBillstatus === 40
  1413. "
  1414. show-word-limit
  1415. />
  1416. </template>
  1417. </el-table-column>
  1418. <el-table-column
  1419. prop="remark"
  1420. header-align="center"
  1421. width="130px"
  1422. align="center"
  1423. label="备注"
  1424. >
  1425. <template slot-scope="scope">
  1426. <el-input
  1427. v-model="scope.row.remark"
  1428. placeholder="备注"
  1429. :disabled="
  1430. browseStatus
  1431. "
  1432. show-word-limit
  1433. />
  1434. </template>
  1435. </el-table-column>
  1436. <el-table-column
  1437. prop="fBillstatus"
  1438. header-align="center"
  1439. width="150px"
  1440. align="center"
  1441. label="状态"
  1442. >
  1443. <template slot-scope="scope">
  1444. <span v-if="scope.row.fBillstatus === 10">计划</span>
  1445. <span v-if="scope.row.fBillstatus === 20">待入库</span>
  1446. <span v-if="scope.row.fBillstatus === 30">入库中</span>
  1447. <span v-if="scope.row.fBillstatus === 40">已入库</span>
  1448. </template>
  1449. </el-table-column>
  1450. <el-table-column
  1451. header-align="center"
  1452. align="center"
  1453. label="操作"
  1454. width="130PX"
  1455. >
  1456. <template slot-scope="scope">
  1457. <el-button
  1458. :disabled="
  1459. browseStatus ||
  1460. scope.row.fBillstatus === 20 ||
  1461. scope.row.fBillstatus === 30 ||
  1462. scope.row.fBillstatus === 40
  1463. "
  1464. @click.native.prevent="wDeleteRow(scope.$index, dataList)"
  1465. size="small"
  1466. >移除</el-button
  1467. >
  1468. </template>
  1469. </el-table-column>
  1470. </el-table>
  1471. </el-collapse-item>
  1472. <el-collapse-item>
  1473. <template slot="title">
  1474. <i class="el-icon-s-order"></i>附件明细
  1475. </template>
  1476. <div
  1477. class="dialogTableTitle flex a-center jlr"
  1478. style="
  1479. display: flex;
  1480. justify-content: space-between;
  1481. align-items: center;
  1482. margin: 10px 0;
  1483. "
  1484. >
  1485. <div>
  1486. <el-button
  1487. size="small"
  1488. type="primary"
  1489. :disabled="browseStatus"
  1490. @click.prevent="addRelevt()"
  1491. >新行
  1492. </el-button>
  1493. </div>
  1494. </div>
  1495. <el-table
  1496. :data="relevantAttachments"
  1497. ref="table"
  1498. tooltip-effect="dark"
  1499. border
  1500. stripe
  1501. style="width: 100%"
  1502. height="150"
  1503. >
  1504. <el-table-column label="序号" type="index" width="80">
  1505. </el-table-column>
  1506. <el-table-column
  1507. prop="fName"
  1508. header-align="center"
  1509. align="center"
  1510. width="250px"
  1511. label="附件名称"
  1512. >
  1513. <template slot-scope="scope">
  1514. <el-input
  1515. v-model="scope.row.fName"
  1516. :disabled="browseStatus"
  1517. placeholder="附件名称"
  1518. show-word-limit
  1519. />
  1520. </template>
  1521. </el-table-column>
  1522. <el-table-column
  1523. prop="createBy"
  1524. header-align="center"
  1525. align="center"
  1526. width="250px"
  1527. label="上传人"
  1528. >
  1529. <template slot-scope="scope">
  1530. <el-input
  1531. v-model="scope.row.createBy"
  1532. disabled
  1533. placeholder="上传人"
  1534. show-word-limit
  1535. />
  1536. </template>
  1537. </el-table-column>
  1538. <el-table-column
  1539. prop="createTime"
  1540. header-align="center"
  1541. align="center"
  1542. label="上传时间"
  1543. >
  1544. <template slot-scope="scope">
  1545. <el-date-picker
  1546. v-model="scope.row.createTime"
  1547. type="date"
  1548. disabled
  1549. placeholder="上传时间"
  1550. format="yyyy-MM-dd HH:mm"
  1551. value-format="timestamp"
  1552. ></el-date-picker>
  1553. </template>
  1554. </el-table-column>
  1555. <el-table-column
  1556. prop="fUrl"
  1557. header-align="center"
  1558. align="center"
  1559. width="300px"
  1560. label="上传附件"
  1561. >
  1562. <template slot-scope="scope">
  1563. <uploadFile
  1564. :disabled="browseStatus"
  1565. @input="showFile"
  1566. v-model="scope.row.fUrl"
  1567. />
  1568. </template>
  1569. </el-table-column>
  1570. <el-table-column
  1571. header-align="center"
  1572. align="center"
  1573. label="操作"
  1574. width="130PX"
  1575. >
  1576. <template slot-scope="scope">
  1577. <el-button
  1578. @click.native.prevent="
  1579. deleteRow(scope.$index, relevantAttachments)
  1580. "
  1581. :disabled="browseStatus"
  1582. size="small"
  1583. >移除
  1584. </el-button>
  1585. </template>
  1586. </el-table-column>
  1587. </el-table>
  1588. </el-collapse-item>
  1589. <el-collapse-item>
  1590. <template slot="title">
  1591. <i class="el-icon-circle-plus"></i>收款信息
  1592. </template>
  1593. <div
  1594. class="dialogTableTitle flex a-center jlr"
  1595. style="
  1596. display: flex;
  1597. justify-content: space-between;
  1598. align-items: center;
  1599. margin: 10px 0;
  1600. "
  1601. >
  1602. <div>
  1603. <el-button
  1604. size="small"
  1605. type="primary"
  1606. :disabled="browseStatus"
  1607. @click.prevent="addCollection()"
  1608. >新行
  1609. </el-button>
  1610. <!-- <el-button :disabled="browseStatus" @click.prevent="deleteRow(warehouseDrList)"
  1611. >删除
  1612. </el-button> -->
  1613. <el-button type="primary" size="small" :disabled="browseStatus" @click="submitForm(2)">保 存</el-button>
  1614. <!-- <el-button @click.prevent="addAgreement()" type="warning">仓储费协议</el-button> -->
  1615. <el-button size="small" @click.prevent="addAgreement()" :disabled="browseStatus" type="danger"
  1616. >作业费协议</el-button
  1617. >
  1618. </div>
  1619. </div>
  1620. <el-table
  1621. :data="warehouseDrList"
  1622. ref="table"
  1623. tooltip-effect="dark"
  1624. border
  1625. stripe
  1626. show-summary
  1627. @selection-change="Collectionoptions"
  1628. :summary-method="warehouseDrSummaries"
  1629. >
  1630. <el-table-column type="selection" width="55" align="center" />
  1631. <el-table-column label="序号" type="index" width="80">
  1632. </el-table-column>
  1633. <el-table-column
  1634. prop="fCorpid"
  1635. header-align="center"
  1636. align="center"
  1637. width="180px"
  1638. label="客户名称"
  1639. >
  1640. <template slot-scope="scope">
  1641. <el-select
  1642. v-model="scope.row.fCorpid"
  1643. filterable
  1644. remote
  1645. :disabled="browseStatus"
  1646. :remote-method="corpsRemoteMethod"
  1647. placeholder="客户名称"
  1648. >
  1649. <el-option
  1650. v-for="(dict, index) in KHblnoOptions"
  1651. :key="index.fId"
  1652. :label="dict.fName"
  1653. :value="dict.fId"
  1654. ></el-option>
  1655. </el-select>
  1656. </template>
  1657. </el-table-column>
  1658. <el-table-column
  1659. prop="fFeeid"
  1660. header-align="center"
  1661. align="center"
  1662. width="180px"
  1663. label="费用名称"
  1664. >
  1665. <template slot-scope="scope">
  1666. <el-select
  1667. v-model="scope.row.fFeeid"
  1668. filterable
  1669. remote
  1670. :disabled="browseStatus"
  1671. :remote-method="fWRemoteMethod"
  1672. @change="changeFeeId(scope.row)"
  1673. placeholder="费用名称"
  1674. >
  1675. <el-option
  1676. v-for="(dict, index) in fWbuOptions"
  1677. :key="index.fId"
  1678. :label="dict.fName"
  1679. :value="dict.fId"
  1680. ></el-option>
  1681. </el-select>
  1682. </template>
  1683. </el-table-column>
  1684. <el-table-column
  1685. prop="fFeeUnitid"
  1686. header-align="center"
  1687. align="center"
  1688. width="180px"
  1689. label="计价单位"
  1690. >
  1691. <template slot-scope="scope">
  1692. <el-select
  1693. v-model="scope.row.fFeeUnitid"
  1694. placeholder="请选择计价单位"
  1695. @change="changeFeeUnit(scope.row)"
  1696. clearable
  1697. :disabled="browseStatus"
  1698. >
  1699. <el-option
  1700. v-for="(dict, index) in jFeetunitOptions"
  1701. :key="index.dictValue"
  1702. :label="dict.dictLabel"
  1703. :value="dict.dictValue"
  1704. />
  1705. </el-select>
  1706. </template>
  1707. </el-table-column>
  1708. <el-table-column
  1709. prop="fQty"
  1710. header-align="center"
  1711. align="center"
  1712. width="130px"
  1713. label="数量"
  1714. >
  1715. <template slot-scope="scope">
  1716. <el-input
  1717. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1718. v-model="scope.row.fQty"
  1719. placeholder="数量"
  1720. :disabled="browseStatus"
  1721. @change="changeContractAmt(scope.row)"
  1722. show-word-limit
  1723. />
  1724. </template>
  1725. </el-table-column>
  1726. <el-table-column
  1727. prop="fUnitprice"
  1728. header-align="center"
  1729. align="center"
  1730. width="130px"
  1731. label="单价"
  1732. >
  1733. <template slot-scope="scope">
  1734. <el-input
  1735. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1736. v-model="scope.row.fUnitprice"
  1737. placeholder="单价"
  1738. :disabled="browseStatus"
  1739. @change="changeContractAmt(scope.row)"
  1740. show-word-limit
  1741. />
  1742. </template>
  1743. </el-table-column>
  1744. <el-table-column
  1745. prop="fAmount"
  1746. header-align="center"
  1747. align="center"
  1748. width="130px"
  1749. label="金额"
  1750. >
  1751. <template slot-scope="scope">
  1752. <el-input
  1753. disabled
  1754. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1755. v-model="scope.row.fAmount"
  1756. placeholder="金额"
  1757. show-word-limit
  1758. />
  1759. </template>
  1760. </el-table-column>
  1761. <el-table-column
  1762. prop="fStltypeid"
  1763. header-align="center"
  1764. align="center"
  1765. width="130px"
  1766. label="结算方式"
  1767. >
  1768. <template slot-scope="scope">
  1769. <el-select v-model="scope.row.fStltypeid" style="width: 250px" placeholder="请选择结算表票结、月结">
  1770. <el-option
  1771. v-for="dict in fStltypeidOptions"
  1772. :key="dict.dictValue"
  1773. :label="dict.dictLabel"
  1774. :value="parseInt(dict.dictValue)"
  1775. ></el-option>
  1776. </el-select>
  1777. </template>
  1778. </el-table-column>
  1779. <el-table-column
  1780. prop="fCurrency"
  1781. header-align="center"
  1782. align="center"
  1783. width="130px"
  1784. label="币别"
  1785. >
  1786. <template slot-scope="scope">
  1787. <el-input
  1788. v-model="scope.row.fCurrency"
  1789. :disabled="browseStatus"
  1790. placeholder="币别"
  1791. show-word-limit
  1792. />
  1793. </template>
  1794. </el-table-column>
  1795. <el-table-column
  1796. prop="fExrate"
  1797. header-align="center"
  1798. align="center"
  1799. width="130px"
  1800. label="汇率"
  1801. >
  1802. <template slot-scope="scope">
  1803. <el-input
  1804. v-model="scope.row.fExrate"
  1805. :disabled="browseStatus"
  1806. placeholder="汇率"
  1807. show-word-limit
  1808. />
  1809. </template>
  1810. </el-table-column>
  1811. <el-table-column
  1812. prop="fTaxrate"
  1813. header-align="center"
  1814. align="center"
  1815. width="130px"
  1816. label="税率"
  1817. >
  1818. <template slot-scope="scope">
  1819. <el-input
  1820. v-model="scope.row.fTaxrate"
  1821. :disabled="browseStatus"
  1822. placeholder="税率"
  1823. show-word-limit
  1824. />
  1825. </template>
  1826. </el-table-column>
  1827. <el-table-column
  1828. prop="fMblno"
  1829. header-align="center"
  1830. align="center"
  1831. width="130px"
  1832. label="提单号"
  1833. >
  1834. <template slot-scope="scope">
  1835. <el-input
  1836. v-model="scope.row.fMblno"
  1837. :disabled="browseStatus"
  1838. placeholder="提单号"
  1839. show-word-limit
  1840. />
  1841. </template>
  1842. </el-table-column>
  1843. <el-table-column
  1844. prop="fProductName"
  1845. header-align="center"
  1846. align="center"
  1847. width="140px"
  1848. label="品名"
  1849. >
  1850. <template slot-scope="scope">
  1851. <el-input
  1852. v-model="scope.row.fProductName"
  1853. :disabled="browseStatus"
  1854. placeholder="品名"
  1855. show-word-limit
  1856. />
  1857. </template>
  1858. </el-table-column>
  1859. <el-table-column
  1860. prop="fMarks"
  1861. header-align="center"
  1862. align="center"
  1863. width="130px"
  1864. label="品牌"
  1865. >
  1866. <template slot-scope="scope">
  1867. <el-input
  1868. v-model="scope.row.fMarks"
  1869. :disabled="browseStatus"
  1870. placeholder="品牌"
  1871. show-word-limit
  1872. />
  1873. </template>
  1874. </el-table-column>
  1875. <el-table-column
  1876. prop="remarks"
  1877. header-align="center"
  1878. align="center"
  1879. width="150px"
  1880. label="备注"
  1881. >
  1882. <template slot-scope="scope">
  1883. <el-input
  1884. v-model="scope.row.Remarks"
  1885. :disabled="browseStatus"
  1886. placeholder="备注"
  1887. show-word-limit
  1888. />
  1889. </template>
  1890. </el-table-column>
  1891. <el-table-column
  1892. header-align="center"
  1893. align="center"
  1894. label="操作"
  1895. width="200px"
  1896. >
  1897. <template slot-scope="scope">
  1898. <el-button
  1899. @click.native.prevent="deleteRow(scope.$index, warehouseDrList)"
  1900. size="small"
  1901. :disabled="browseStatus"
  1902. >移除</el-button
  1903. >
  1904. </template>
  1905. </el-table-column>
  1906. </el-table>
  1907. </el-collapse-item>
  1908. <el-collapse-item>
  1909. <template slot="title">
  1910. <i class="el-icon-remove"></i>付款信息
  1911. </template>
  1912. <div
  1913. class="dialogTableTitle flex a-center jlr"
  1914. style="
  1915. display: flex;
  1916. justify-content: space-between;
  1917. align-items: center;
  1918. margin: 10px 0;
  1919. "
  1920. >
  1921. <div>
  1922. <el-button
  1923. type="primary"
  1924. :disabled="browseStatus"
  1925. @click.prevent="addpayment()"
  1926. size="small"
  1927. >新行
  1928. </el-button>
  1929. <el-button type="primary" size="small" @click="submitForm(2)" :disabled="browseStatus">保 存</el-button>
  1930. <el-button type="danger" size="small" @click.prevent="addAgreements()" :disabled="browseStatus"
  1931. >作业费协议</el-button>
  1932. </div>
  1933. </div>
  1934. <el-table
  1935. :data="warehouseCrList"
  1936. ref="table"
  1937. tooltip-effect="dark"
  1938. border
  1939. stripe
  1940. show-summary
  1941. @selection-change="Paymentoptions"
  1942. :summary-method="warehouseDrSummaries"
  1943. >
  1944. <el-table-column type="selection" width="55" align="center" />
  1945. <el-table-column label="序号" type="index" width="80">
  1946. </el-table-column>
  1947. <el-table-column
  1948. prop="fCorpid"
  1949. header-align="center"
  1950. align="center"
  1951. width="180px"
  1952. label="客户名称"
  1953. >
  1954. <template slot-scope="scope">
  1955. <el-select
  1956. v-model="scope.row.fCorpid"
  1957. filterable
  1958. remote
  1959. :disabled="browseStatus"
  1960. :remote-method="corpsRemoteMethod"
  1961. placeholder="客户名称"
  1962. >
  1963. <el-option
  1964. v-for="(dict, index) in KHblnoOptions"
  1965. :key="index.fId"
  1966. :label="dict.fName"
  1967. :value="dict.fId"
  1968. ></el-option>
  1969. </el-select>
  1970. </template>
  1971. </el-table-column>
  1972. <el-table-column
  1973. prop="fFeeid"
  1974. header-align="center"
  1975. align="center"
  1976. width="180px"
  1977. label="费用名称"
  1978. >
  1979. <template slot-scope="scope">
  1980. <el-select
  1981. v-model="scope.row.fFeeid"
  1982. filterable
  1983. :disabled="browseStatus"
  1984. remote
  1985. :remote-method="fWRemoteMethod"
  1986. @change="changeFeeId(scope.row)"
  1987. placeholder="费用名称"
  1988. >
  1989. <el-option
  1990. v-for="(dict, index) in fWbuOptions"
  1991. :key="index.fId"
  1992. :label="dict.fName"
  1993. :value="dict.fId"
  1994. ></el-option>
  1995. </el-select>
  1996. </template>
  1997. </el-table-column>
  1998. <el-table-column
  1999. prop="fFeeUnitid"
  2000. header-align="center"
  2001. align="center"
  2002. width="180px"
  2003. label="计价单位"
  2004. >
  2005. <template slot-scope="scope">
  2006. <el-select
  2007. v-model="scope.row.fFeeUnitid"
  2008. filterable
  2009. remote
  2010. @change="changeFeeUnit(scope.row)"
  2011. :disabled="browseStatus"
  2012. :remote-method="corpsRemoteMethod"
  2013. placeholder="计价单位"
  2014. >
  2015. <el-option
  2016. v-for="(dict, index) in jFeetunitOptions"
  2017. :key="index.dictValue"
  2018. :label="dict.dictLabel"
  2019. :value="dict.dictValue"
  2020. ></el-option>
  2021. </el-select>
  2022. </template>
  2023. </el-table-column>
  2024. <el-table-column
  2025. prop="fQty"
  2026. header-align="center"
  2027. align="center"
  2028. width="150px"
  2029. label="数量"
  2030. >
  2031. <template slot-scope="scope">
  2032. <el-input
  2033. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
  2034. v-model="scope.row.fQty"
  2035. :disabled="browseStatus"
  2036. @change="changeContractAmt(scope.row)"
  2037. placeholder="数量"
  2038. show-word-limit
  2039. />
  2040. </template>
  2041. </el-table-column>
  2042. <el-table-column
  2043. prop="fUnitprice"
  2044. header-align="center"
  2045. align="center"
  2046. width="150px"
  2047. label="单价"
  2048. >
  2049. <template slot-scope="scope">
  2050. <el-input
  2051. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  2052. v-model="scope.row.fUnitprice"
  2053. :disabled="browseStatus"
  2054. @change="changeContractAmt(scope.row)"
  2055. placeholder="单价"
  2056. show-word-limit
  2057. />
  2058. </template>
  2059. </el-table-column>
  2060. <el-table-column
  2061. prop="fAmount"
  2062. header-align="center"
  2063. align="center"
  2064. width="150px"
  2065. label="金额"
  2066. >
  2067. <template slot-scope="scope">
  2068. <el-input
  2069. disabled
  2070. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  2071. v-model="scope.row.fAmount"
  2072. placeholder="金额"
  2073. show-word-limit
  2074. />
  2075. </template>
  2076. </el-table-column>
  2077. <el-table-column
  2078. prop="fStltypeid"
  2079. header-align="center"
  2080. align="center"
  2081. width="130px"
  2082. label="结算方式"
  2083. >
  2084. <template slot-scope="scope">
  2085. <el-select v-model="scope.row.fStltypeid" style="width: 250px" placeholder="请选择结算表票结、月结">
  2086. <el-option
  2087. v-for="dict in fStltypeidOptions"
  2088. :key="dict.dictValue"
  2089. :label="dict.dictLabel"
  2090. :value="parseInt(dict.dictValue)"
  2091. ></el-option>
  2092. </el-select>
  2093. </template>
  2094. </el-table-column>
  2095. <el-table-column
  2096. prop="fCurrency"
  2097. header-align="center"
  2098. align="center"
  2099. width="150px"
  2100. label="币别"
  2101. >
  2102. <template slot-scope="scope">
  2103. <el-input
  2104. v-model="scope.row.fCurrency"
  2105. :disabled="browseStatus"
  2106. placeholder="币别"
  2107. show-word-limit
  2108. />
  2109. </template>
  2110. </el-table-column>
  2111. <el-table-column
  2112. prop="fExrate"
  2113. header-align="center"
  2114. align="center"
  2115. width="150px"
  2116. label="汇率"
  2117. >
  2118. <template slot-scope="scope">
  2119. <el-input
  2120. v-model="scope.row.fExrate"
  2121. :disabled="browseStatus"
  2122. placeholder="汇率"
  2123. show-word-limit
  2124. />
  2125. </template>
  2126. </el-table-column>
  2127. <el-table-column
  2128. prop="fTaxrate"
  2129. header-align="center"
  2130. align="center"
  2131. width="150px"
  2132. label="税率"
  2133. >
  2134. <template slot-scope="scope">
  2135. <el-input
  2136. v-model="scope.row.fTaxrate"
  2137. :disabled="browseStatus"
  2138. placeholder="税率"
  2139. show-word-limit
  2140. />
  2141. </template>
  2142. </el-table-column>
  2143. <el-table-column
  2144. prop="fMblno"
  2145. header-align="center"
  2146. align="center"
  2147. width="130px"
  2148. label="提单号"
  2149. >
  2150. <template slot-scope="scope">
  2151. <el-input
  2152. v-model="scope.row.fMblno"
  2153. :disabled="browseStatus"
  2154. placeholder="提单号"
  2155. show-word-limit
  2156. />
  2157. </template>
  2158. </el-table-column>
  2159. d
  2160. <el-table-column
  2161. prop="fProductName"
  2162. header-align="center"
  2163. align="center"
  2164. width="140px"
  2165. label="品名"
  2166. >
  2167. <template slot-scope="scope">
  2168. <el-input
  2169. v-model="scope.row.fProductName"
  2170. :disabled="browseStatus"
  2171. placeholder="品名"
  2172. show-word-limit
  2173. />
  2174. </template>
  2175. </el-table-column>
  2176. <el-table-column
  2177. prop="fMarks"
  2178. header-align="center"
  2179. align="center"
  2180. width="130px"
  2181. label="品牌"
  2182. >
  2183. <template slot-scope="scope">
  2184. <el-input
  2185. v-model="scope.row.fMarks"
  2186. :disabled="browseStatus"
  2187. placeholder="品牌"
  2188. show-word-limit
  2189. />
  2190. </template>
  2191. </el-table-column>
  2192. <el-table-column
  2193. prop="remarks"
  2194. header-align="center"
  2195. align="center"
  2196. width="150px"
  2197. label="备注"
  2198. >
  2199. <template slot-scope="scope">
  2200. <el-input
  2201. v-model="scope.row.remarks"
  2202. :disabled="browseStatus"
  2203. placeholder="备注"
  2204. show-word-limit
  2205. />
  2206. </template>
  2207. </el-table-column>
  2208. <el-table-column
  2209. header-align="center"
  2210. align="center"
  2211. width="200px"
  2212. label="操作"
  2213. >
  2214. <template slot-scope="scope">
  2215. <!-- <el-button size="small">审核费用</el-button> -->
  2216. <el-button
  2217. @click.native.prevent="deleteRoww(scope.$index, warehouseCrList)"
  2218. size="small"
  2219. :disabled="browseStatus"
  2220. >移除</el-button
  2221. >
  2222. </template>
  2223. </el-table-column>
  2224. </el-table>
  2225. </el-collapse-item>
  2226. </el-collapse>
  2227. <div slot="footer" class="dialog-footer">
  2228. <!-- 弹窗, 新增 / 修改 -->
  2229. <add-or-update
  2230. v-if="addOrUpdateVisible"
  2231. ref="addOrUpdate"
  2232. @refreshDataList="getDataList"
  2233. ></add-or-update>
  2234. <approval-comments
  2235. v-if="addOrUpdateVisib"
  2236. ref="ApprovalComments"
  2237. @refreshDataList="returnData"
  2238. ></approval-comments>
  2239. <el-button
  2240. type="primary"
  2241. :disabled="approvalStatus"
  2242. v-if="form.fBillstatus > 3"
  2243. @click="addOrUpdateHandle(form)"
  2244. >查看审批</el-button>
  2245. <el-button
  2246. type="primary"
  2247. v-if="approVal === true"
  2248. @click="addOrUpdateHand(form)"
  2249. >审批</el-button>
  2250. <el-button :disabled="browseStatus" type="success" prop="打印" @click="showEditDialog_ss"
  2251. >收货单
  2252. </el-button>
  2253. <el-button :disabled="browseStatus" type="warning" prop="打印" @click="showEditDialog_s"
  2254. >入库单
  2255. </el-button>
  2256. <el-button @click="discharge" :disabled="browseStatus">卸货</el-button>
  2257. <el-button type="info" :disabled="browseStatus" prop="打印" @click="showEditDialog_sss"
  2258. >作业单
  2259. </el-button>
  2260. <el-button
  2261. :disabled="browseStatus"
  2262. type="primary"
  2263. @click="submitForm(2)"
  2264. >保 存</el-button
  2265. >
  2266. <el-button
  2267. :disabled="browseStatus"
  2268. style="background-color: #008000; color: #fff"
  2269. @click="submitForm(6)"
  2270. >请核</el-button>
  2271. <el-button type="danger" v-if="form.fBillstatus === 6" @click="revoke">撤销请核</el-button>
  2272. <el-button type="danger" v-if="form.fBillstatus === 4 && current == before" :disabled="doNot" @click="revokeTwo">撤销请核</el-button>
  2273. <el-button @click="cancelTwo" v-if="approVal === true">取 消</el-button>
  2274. <el-button @click="cancel" v-else>取 消</el-button>
  2275. </div>
  2276. <!-- 入库新行计划重量导入 -->
  2277. <el-dialog
  2278. title="入库明细"
  2279. :modal="false"
  2280. style="height: 500px"
  2281. height="50%"
  2282. :close-on-click-modal="false"
  2283. :visible.sync="weightList"
  2284. @close="closeDialog"
  2285. width="70%"
  2286. >
  2287. <el-form
  2288. ref="planningList"
  2289. :model="form"
  2290. :rules="rules"
  2291. label-width="120px"
  2292. >
  2293. <el-row>
  2294. <el-col :span="8">
  2295. <el-form-item label="计划件数" prop="fPlanqty">
  2296. <el-input
  2297. oninput='this.value=this.value.replace(/[^\-?\d]/g,"")'
  2298. v-model="planningList.fPlanqty"
  2299. style="width: 80%"
  2300. laceholder="计划件数"
  2301. @input="changeList(form)"
  2302. />
  2303. </el-form-item>
  2304. </el-col>
  2305. <el-col :span="8">
  2306. <el-form-item label="计划净重" prop="fPlannetweight">
  2307. <el-input
  2308. v-model="planningList.fPlannetweight"
  2309. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  2310. style="width: 80%"
  2311. disabled
  2312. laceholder="计划毛重"
  2313. />
  2314. </el-form-item>
  2315. </el-col>
  2316. <el-col :span="8">
  2317. <el-form-item label="计划毛重" prop="fPlangrossweight">
  2318. <el-input
  2319. v-model="planningList.fPlangrossweight"
  2320. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  2321. style="width: 80%"
  2322. disabled
  2323. laceholder="计划毛重"
  2324. />
  2325. </el-form-item>
  2326. </el-col>
  2327. </el-row>
  2328. </el-form>
  2329. <div slot="footer" class="dialog-footer">
  2330. <el-button type="primary" @click="costList">导入库存明细</el-button>
  2331. <el-button @click="weightList = false">取 消</el-button>
  2332. </div>
  2333. </el-dialog>
  2334. <!-- 选择作业费协议数据 -->
  2335. <el-dialog
  2336. title="作业费协议"
  2337. :close-on-click-modal="false"
  2338. :modal="false"
  2339. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  2340. :visible.sync="warehousingagreement"
  2341. width="70%"
  2342. >
  2343. <el-table
  2344. :data="tasklegList"
  2345. ref="table"
  2346. tooltip-effect="dark"
  2347. width="100%"
  2348. border
  2349. stripe
  2350. @selection-change="whgenlegSelectionChange"
  2351. >
  2352. <el-table-column type="selection" width="55"> </el-table-column>
  2353. <el-table-column label="行号" type="index" width="80">
  2354. </el-table-column>
  2355. <el-table-column
  2356. prop="fCorpname"
  2357. header-align="center"
  2358. align="center"
  2359. label="客户名称"
  2360. >
  2361. </el-table-column>
  2362. <el-table-column
  2363. prop="fName"
  2364. header-align="center"
  2365. align="center"
  2366. label="费用名称"
  2367. >
  2368. </el-table-column>
  2369. <el-table-column
  2370. prop="fFeeUnitid"
  2371. header-align="center"
  2372. align="center"
  2373. width="180px"
  2374. label="计价单位"
  2375. >
  2376. <template slot-scope="scope">
  2377. <el-select
  2378. v-model="scope.row.fFeeUnitid"
  2379. placeholder="请选择计费单位"
  2380. @change="changeFeeUnit(scope.row)"
  2381. disabled
  2382. clearable
  2383. >
  2384. <el-option
  2385. v-for="dict in jFeetunitOptions"
  2386. :key="dict.dictValue"
  2387. :label="dict.dictLabel"
  2388. :value="dict.dictValue"
  2389. />
  2390. </el-select>
  2391. </template>
  2392. </el-table-column>
  2393. <el-table-column
  2394. prop="fPrice"
  2395. header-align="center"
  2396. align="center"
  2397. label="单价"
  2398. >
  2399. </el-table-column>
  2400. <!-- <el-table-column
  2401. prop="fMarks"
  2402. header-align="center"
  2403. align="center"
  2404. label="唛头"
  2405. >
  2406. </el-table-column> -->
  2407. </el-table>
  2408. <pagination
  2409. v-show="whgenlegTotal > 0"
  2410. :total="whgenlegTotal"
  2411. :page.sync="queryParams.pageNum"
  2412. :limit.sync="queryParams.pageSize"
  2413. @pagination="getWhgenlegList"
  2414. />
  2415. <div slot="footer" class="dialog-footer">
  2416. <el-button type="primary" @click="whgenlegData"
  2417. >导入作业费协议</el-button
  2418. >
  2419. <el-button @click="warehousingagreement = false">取 消</el-button>
  2420. </div>
  2421. </el-dialog>
  2422. <!-- 选择作业费协议数据 -->
  2423. <el-dialog
  2424. title="作业费协1议"
  2425. :close-on-click-modal="false"
  2426. :modal="false"
  2427. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  2428. :visible.sync="warehousingagreements"
  2429. width="70%"
  2430. >
  2431. <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
  2432. <el-menu-item index="1">作业费</el-menu-item>
  2433. <el-menu-item index="2">劳务费</el-menu-item>
  2434. </el-menu>
  2435. <el-table
  2436. :data="tasklegList"
  2437. ref="table"
  2438. tooltip-effect="dark"
  2439. width="100%"
  2440. border
  2441. stripe
  2442. @selection-change="whgenlegSelectionChange"
  2443. >
  2444. <el-table-column type="selection" width="55"> </el-table-column>
  2445. <el-table-column label="行号" type="index" width="80">
  2446. </el-table-column>
  2447. <el-table-column
  2448. prop="fCorpname"
  2449. header-align="center"
  2450. align="center"
  2451. label="客户名称"
  2452. >
  2453. </el-table-column>
  2454. <el-table-column
  2455. prop="fName"
  2456. header-align="center"
  2457. align="center"
  2458. label="费用名称"
  2459. >
  2460. </el-table-column>
  2461. <el-table-column
  2462. prop="fFeeUnitid"
  2463. header-align="center"
  2464. align="center"
  2465. width="180px"
  2466. label="计价单位"
  2467. >
  2468. <template slot-scope="scope">
  2469. <el-select
  2470. v-model="scope.row.fFeeUnitid"
  2471. placeholder="请选择计费单位"
  2472. @change="changeFeeUnit(scope.row)"
  2473. disabled
  2474. clearable
  2475. >
  2476. <el-option
  2477. v-for="dict in jFeetunitOptions"
  2478. :key="dict.dictValue"
  2479. :label="dict.dictLabel"
  2480. :value="dict.dictValue"
  2481. />
  2482. </el-select>
  2483. </template>
  2484. </el-table-column>
  2485. <el-table-column
  2486. prop="fPrice"
  2487. header-align="center"
  2488. align="center"
  2489. label="单价"
  2490. >
  2491. </el-table-column>
  2492. </el-table>
  2493. <pagination
  2494. v-show="whgenlegTotal > 0"
  2495. :total="whgenlegTotal"
  2496. :page.sync="queryParams.pageNum"
  2497. :limit.sync="queryParams.pageSize"
  2498. @pagination="getWhgenlegList"
  2499. />
  2500. <div slot="footer" class="dialog-footer">
  2501. <el-button type="primary" @click="zhgenlegData">导入</el-button>
  2502. <el-button @click="warehousingagreements = false">取 消</el-button>
  2503. </div>
  2504. </el-dialog>
  2505. <el-dialog
  2506. title=""
  2507. :modal="false"
  2508. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  2509. :visible.sync="editDialogVisible_s"
  2510. :close-on-click-modal="false"
  2511. @close="closeDialog"
  2512. width="70%"
  2513. >
  2514. <table
  2515. id="print_area2"
  2516. class="biaoge zzss"
  2517. border="1"
  2518. style="border-collapse: collapse; border: none"
  2519. >
  2520. <tr>
  2521. <td
  2522. width="100"
  2523. colspan="7"
  2524. class="zzss"
  2525. style="font-size: 28px; font-weight: bold; border: none"
  2526. >
  2527. 青岛大木进仓单
  2528. </td>
  2529. </tr>
  2530. <tr>
  2531. <td
  2532. width="100"
  2533. colspan="7"
  2534. class="zzss"
  2535. style="font-size: 28px; font-weight: bold; border: none"
  2536. >
  2537. &nbsp;
  2538. </td>
  2539. </tr>
  2540. <tr>
  2541. <td width="450" colspan="2" class="zzss">
  2542. 货权方:{{ form.fCorpidName }}
  2543. </td>
  2544. <td width="450" colspan="2" class="zzss">
  2545. 仓库:{{ form.fWarehouseid }}
  2546. </td>
  2547. <td width="450" colspan="3" class="zzss">地址:{{ fAddr }}</td>
  2548. </tr>
  2549. <tr>
  2550. <td width="200" colspan="2" class="zzss">保管方:大木有限公司</td>
  2551. <td width="200" colspan="2" class="zzss">
  2552. 联系人:{{ form.fContacts }}
  2553. </td>
  2554. <td width="200" colspan="3" class="zzss">电话:{{ form.fTel }}</td>
  2555. </tr>
  2556. <tr>
  2557. <td width="100" border="1">提单号</td>
  2558. <td width="100">品名</td>
  2559. <td width="100">箱型</td>
  2560. <td width="100">品牌</td>
  2561. <td width="100">件数</td>
  2562. <td width="100">重量</td>
  2563. <td width="100">包装规格</td>
  2564. </tr>
  2565. <tr>
  2566. <td width="100">{{ form.fMblno }}</td>
  2567. <td width="100">{{ form.fProductName }}</td>
  2568. <td width="100">{{ dataList.fCntrtype }}</td>
  2569. <td width="100">{{ form.fMarks }}</td>
  2570. <td width="100">包</td>
  2571. <td width="100">吨</td>
  2572. <td width="100">{{ fPackagespecs }}</td>
  2573. </tr>
  2574. <tr>
  2575. <td width="100">序号</td>
  2576. <td width="100">入货日期</td>
  2577. <td width="100">箱量(20GP)</td>
  2578. <td width="100">重量</td>
  2579. <td width="100">件数</td>
  2580. <td width="100">入库重量</td>
  2581. <td width="100">入库件数</td>
  2582. </tr>
  2583. <tr v-for="(item, indexx) in Printinglist" :key="indexx">
  2584. <td width="100">{{ indexx + 1 }}</td>
  2585. <td width="100">{{ item.fBsdate }}</td>
  2586. <td width="100">{{ item.fCntqty }}</td>
  2587. <td width="100">{{ (item.fGrossweight / 1000).toFixed(2) }}</td>
  2588. <td width="100">{{ item.fPlanqty }}</td>
  2589. <td width="100">{{ (item.fNetweight / 1000).toFixed(2) }}</td>
  2590. <td width="100">{{ item.fQty }}</td>
  2591. </tr>
  2592. <tr>
  2593. <td width="100" colspan="2">合计:</td>
  2594. <td width="100">{{ fCntqty }}</td>
  2595. <td width="100">{{ form.sumFGrossweight }}</td>
  2596. <td width="100">{{ fPlanqty }}</td>
  2597. <td width="100">{{ form.sumFNetweight}}</td>
  2598. <td width="100">{{ fQty }}</td>
  2599. </tr>
  2600. <tr>
  2601. <td width="100">备注:</td>
  2602. <td width="100" colspan="6"></td>
  2603. </tr>
  2604. <tr>
  2605. <td width="100" colspan="7" class="zzss">
  2606. 本进仓单经仓管员签字并经保管方盖章后即专项作为货物所有人的货权证明,本单据不得转让。
  2607. </td>
  2608. </tr>
  2609. <tr style="border: none">
  2610. <td width="100" colspan="2" class="zzss" style="border: none">
  2611. 开单员:
  2612. </td>
  2613. <td width="100" colspan="3" class="zzss" style="border: none"></td>
  2614. <td width="100" colspan="2" class="zzss" style="border: none">
  2615. 仓管员:
  2616. </td>
  2617. </tr>
  2618. <tr style="border: none">
  2619. <td width="100" colspan="2" class="zzss" style="border: none">
  2620. 开单时间:
  2621. </td>
  2622. <td width="100" colspan="3" class="zzss" style="border: none"></td>
  2623. <td width="100" colspan="2" class="zzss" style="border: none">
  2624. (盖章)
  2625. </td>
  2626. </tr>
  2627. </table>
  2628. <el-button @click="printSomething1">打印</el-button>
  2629. <el-button @click="editDialogVisible_s = false">取消 </el-button>
  2630. </el-dialog>
  2631. <el-dialog
  2632. title=""
  2633. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  2634. :visible.sync="editDialogVisible_ss"
  2635. :close-on-click-modal="false"
  2636. width="70%"
  2637. :modal="false"
  2638. >
  2639. <table
  2640. id="print_area3"
  2641. class="biaoge zzss"
  2642. border="1"
  2643. style="border-collapse: collapse; border: none;margin-top:100px;"
  2644. >
  2645. <tr>
  2646. <td
  2647. width="1400"
  2648. colspan="6"
  2649. class="zzss"
  2650. style="font-size: 26px; font-weight: bold; border: none"
  2651. >
  2652. 大木国际物流(青岛)有限公司收货单
  2653. </td>
  2654. </tr>
  2655. <!-- <div v-for="{{}}" :key="index"> -->
  2656. <tr>
  2657. <td width="400">车号:</td>
  2658. <td width="400" v-if="Printinglist.length === 0"></td>
  2659. <td width="400" v-else>{{ Printinglist[0].fTruckno }}</td>
  2660. <td
  2661. width="500"
  2662. colspan="4"
  2663. style="padding-bottom: 0px; font-weight: bold; border: none"
  2664. class="zzss"
  2665. v-if="Printinglist.length === 0"
  2666. >
  2667. 日期:
  2668. </td>
  2669. <td
  2670. width="500"
  2671. colspan="4"
  2672. style="padding-bottom: 0px; font-weight: bold; border: none"
  2673. class="zzss"
  2674. v-else
  2675. >
  2676. 日期:{{ Printinglist[0].fOriginalbilldate }}
  2677. </td>
  2678. <!-- <td
  2679. width="500"
  2680. colspan="2"
  2681. style="padding-bottom: 0px; font-weight: bold; border: none"
  2682. class="zzss"
  2683. >
  2684. </td> -->
  2685. </tr>
  2686. <tr v-for="(item, index) in Printinglist" :key="index">
  2687. <td width="250">货物品名:</td>
  2688. <td width="200" colspan="">{{ item.fGoodsids }}</td>
  2689. <!-- <td width="200" colspan="2">件数: 161件</td> -->
  2690. <!-- <td width="200"></td> -->
  2691. <td width="200" colspan="4" class="zzss">
  2692. 件数: {{ item.fQty }}件
  2693. </td>
  2694. </tr>
  2695. <!-- <tr>
  2696. <td width="1400" colspan="6">&nbsp;</td>
  2697. </tr> -->
  2698. <tr>
  2699. <td>备注:</td>
  2700. <td colspan="5">{{ form.remark }}</td>
  2701. </tr>
  2702. <tr>
  2703. <td>司机签字:</td>
  2704. <td></td>
  2705. <td colspan="2">司机电话:</td>
  2706. <td colspan="2" v-if="dataList.length !== 0">{{ dataList[0].fDriverTel }}</td>
  2707. <td colspan="2" v-else>1</td>
  2708. </tr>
  2709. <tr>
  2710. <td>制单人:</td>
  2711. <td>{{ form.createBy }}</td>
  2712. <td colspan="2">收货人:</td>
  2713. <td colspan="2">{{ form.fContacts }}</td>
  2714. </tr>
  2715. <!-- <tr>
  2716. <td colspan="6" class="zzss">&nbsp;</td>
  2717. </tr> -->
  2718. <tr>
  2719. <td width="280" class="zzss"></td>
  2720. <td width="280" class="zzss"></td>
  2721. <td width="280" class="zzss"></td>
  2722. <td width="280" class="zzss"></td>
  2723. <td width="290" class="zzss">地址:{{ fAddr }}</td>
  2724. <td width="290" class="zzss">电话:{{ form.fTel }}</td>
  2725. </tr>
  2726. <!-- </div> -->
  2727. </table>
  2728. <el-button @click="printSomething">打印</el-button>
  2729. <el-button @click="editDialogVisible_ss = false">取消 </el-button>
  2730. </el-dialog>
  2731. <el-dialog
  2732. title=""
  2733. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  2734. :visible.sync="editDialogVisible_sss"
  2735. :close-on-click-modal="false"
  2736. width="70%"
  2737. :modal="false"
  2738. >
  2739. <table
  2740. id="print_area1"
  2741. class="biaoge zzss"
  2742. border="1"
  2743. style="border-collapse: collapse; border: none"
  2744. >
  2745. <tr>
  2746. <td
  2747. width="1400"
  2748. colspan="6"
  2749. class="zzss"
  2750. style="font-size: 28px; font-weight: bold; border: none"
  2751. >
  2752. 大木国际物流(青岛)有限公司作业单
  2753. </td>
  2754. </tr>
  2755. <tr>
  2756. <td
  2757. width="900"
  2758. colspan="4"
  2759. class="zzss"
  2760. style="font-size: 28px; font-weight: bold"
  2761. >
  2762. </td>
  2763. <td
  2764. width="500"
  2765. colspan="2"
  2766. style="padding-bottom: 0px; font-weight: bold; border: none"
  2767. class="zzss"
  2768. >
  2769. 入库日期:{{ fBsdates }}
  2770. </td>
  2771. </tr>
  2772. <tr v-for="(item, index) in Printinglist" :key="index">
  2773. <td width="200">车号</td>
  2774. <td width="200">{{ item.fTruckno }}</td>
  2775. <td width="200">货物品名</td>
  2776. <td width="200" class="zzss">
  2777. {{ item.fGoodsids }}
  2778. </td>
  2779. <td width="200">{{item.fBusinessTypes}}</td>
  2780. <td width="200">{{item.fMarks}}</td>
  2781. </tr>
  2782. <tr>
  2783. <td width="1400" colspan="6">&nbsp;</td>
  2784. </tr>
  2785. <tr>
  2786. <td>备注:</td>
  2787. <td colspan="5">{{ form.remark }}</td>
  2788. </tr>
  2789. <tr
  2790. v-for="(item, indexe) in Collectionoptionss"
  2791. :key="indexe + 'index'"
  2792. >
  2793. <td>收费</td>
  2794. <td>{{ item.fFeeids }}</td>
  2795. <td>{{ item.fAmount }} 元</td>
  2796. <!-- <td colspan="4">办单费:5元,过磅费自理</td> -->
  2797. </tr>
  2798. <tr>
  2799. <td>司机签字:</td>
  2800. <td></td>
  2801. <td>电话</td>
  2802. <td>{{ fDriverTel }}</td>
  2803. <td colspan="2" rowspan="2">
  2804. 确认货物数量无误,包装于货物完好!<br />出库盖好篷布,如有违背责任自负<br />装卸工是否收小费
  2805. </td>
  2806. </tr>
  2807. <tr>
  2808. <td>制表:</td>
  2809. <td>{{ form.createBy }}</td>
  2810. <td>机械/人工:</td>
  2811. <td></td>
  2812. </tr>
  2813. <tr>
  2814. <td colspan="6" class="zzss">&nbsp;</td>
  2815. </tr>
  2816. <tr>
  2817. <td width="280" class="zzss"></td>
  2818. <td width="280" class="zzss"></td>
  2819. <td width="280" class="zzss"></td>
  2820. <td width="280" class="zzss"></td>
  2821. <td width="290" class="zzss">地址:{{ fAddr }}</td>
  2822. <td width="290" class="zzss">电话:{{ form.fTel }}</td>
  2823. </tr>
  2824. </table>
  2825. <div>
  2826. <el-button
  2827. type="primary"
  2828. :disabled="browseStatus"
  2829. @click="printSomething2"
  2830. >打印
  2831. </el-button>
  2832. <el-button @click="editDialogVisible_sss = false">取消 </el-button>
  2833. </div>
  2834. </el-dialog>
  2835. </el-dialog>
  2836. <el-dialog
  2837. title="选择库位"
  2838. :visible.sync="choiceWarehouse"
  2839. width="30%"
  2840. :before-close="hanDleclose">
  2841. <treeselect v-model="fWarehouselocid" :options="warehousesOptions" :show-count="true" placeholder="请选择归属库区" />
  2842. <span slot="footer" class="dialog-footer">
  2843. <el-button @click="choiceWarehouse = false">取 消</el-button>
  2844. <el-button type="primary" @click="choiceWarehouse = false">确 定</el-button>
  2845. </span>
  2846. </el-dialog>
  2847. </div>
  2848. </template>
  2849. <script>
  2850. import print from "print-js";
  2851. import {
  2852. addWhgenleg,
  2853. addJoblist,
  2854. disChargelist,
  2855. updateCredit,
  2856. listWarehousebills,
  2857. getWarehousebills,
  2858. delWarehousebills,
  2859. addWarehousebills,
  2860. addWarehouse,
  2861. updateWarehousebills,
  2862. exportWarehousebills,
  2863. revoke,
  2864. revokeTwo
  2865. } from "@/api/warehouseBusiness/warehouseInStock";
  2866. import { listAgreement, operationAgreement } from "@/api/agreement/agreement";
  2867. import { listCorps } from "@/api/basicdata/corps";
  2868. import { listFees, getFees } from "@/api/basicdata/fees";
  2869. import {listWarehouse, treeselect , listWarehousesss } from "@/api/basicdata/warehouse";
  2870. import { listArea } from "@/api/basicdata/area";
  2871. import { listGoods } from "@/api/basicdata/goods";
  2872. import { listUser, queryUserVal } from "@/api/system/user";
  2873. import UploadFile from "@/components/Uploadfile";
  2874. import AddOrUpdate from "@/views/viewApproval";
  2875. import ApprovalComments from "@/views/startApproval";
  2876. import { getCharge } from '@/api/finance/charge'
  2877. import Global from '@/layout/components/global';
  2878. import Treeselect from "@riophae/vue-treeselect";
  2879. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  2880. export default {
  2881. name: "Warehousebills",
  2882. components: {
  2883. UploadFile,
  2884. AddOrUpdate,
  2885. ApprovalComments,
  2886. Treeselect
  2887. },
  2888. data() {
  2889. return {
  2890. fWarehouseidOptions:[],
  2891. // 部门树选项
  2892. warehousesOptions:[],
  2893. activeNames:['1'],
  2894. isrequired:2,
  2895. isrequired_s:2,
  2896. approval:[],
  2897. doNot:false,
  2898. // 修改查看状态
  2899. browseStatus: false,
  2900. contrOl:false,
  2901. // 审批状态控制
  2902. approvalStatus: false,
  2903. detailsHidden: false,
  2904. warehousingagreement: false,
  2905. warehousingagreements: false,
  2906. formBrowseStatus: false,
  2907. fTruckno: "",
  2908. fBsdates: "",
  2909. fCntrtype: "",
  2910. fGoodsids: "",
  2911. fPlaNnumber: "",
  2912. fPlangNumber: "",
  2913. // fPlannetweight: "",
  2914. fPlanvolumn: "",
  2915. // 司机电话
  2916. fDriverTel: "",
  2917. fPlanqty: "",
  2918. fPlangrossweight: "",
  2919. fPlannetweight: "",
  2920. fFeeUnitid: "",
  2921. fFeeUnitids: "",
  2922. fGrossweight: 0,
  2923. fid: "",
  2924. fCntqty: "",
  2925. fPackagespecs: "",
  2926. fNetweight: 0,
  2927. fQty: 0,
  2928. mum: 0,
  2929. // 遮罩层
  2930. loading: true,
  2931. // 选中数组
  2932. ids: [],
  2933. Collectionoptionss: [],
  2934. userVal: {
  2935. userName: null,
  2936. nickName: null,
  2937. deptId: null,
  2938. },
  2939. closeButton:true,
  2940. //表单校验
  2941. checkout: {
  2942. fGoodsid:[
  2943. { required: true, message: ' ', trigger: 'blur' }
  2944. ],
  2945. fMarks: [
  2946. { required: true, message: ' ', trigger: 'blur' }
  2947. ],
  2948. fWarehouselocid:[
  2949. { required: true, message: ' ', trigger: 'blur'}
  2950. ],
  2951. fGrossweight:[
  2952. { required: true, message: ' ', trigger: 'blur'}
  2953. ],
  2954. fNetweight:[
  2955. { required: true, message: ' ', trigger: 'blur'}
  2956. ],
  2957. fQty:[
  2958. { required: true, message: ' ', trigger: 'blur'}
  2959. ],
  2960. fPackagespecs:[
  2961. { required: true, message: ' ', trigger: 'blur'}
  2962. ],
  2963. fTruckno:[
  2964. { required: true, message: ' ', trigger: 'blur'}
  2965. ],
  2966. fDriverName:[
  2967. { required: true, message: ' ', trigger: 'blur'}
  2968. ],
  2969. fDriverTel:[
  2970. { required: true, message: ' ', trigger: 'blur'}
  2971. ],
  2972. fDriverIdCar:[
  2973. { required: true, message: ' ', trigger: 'blur'}
  2974. ]
  2975. },
  2976. queryForm: {},
  2977. // 新增用户对话框
  2978. editDialogVisible_s: false,
  2979. editDialogVisible_ss: false,
  2980. editDialogVisible_sss: false,
  2981. editDialogClosed_ss: false,
  2982. addOrUpdateVisible: false,
  2983. addOrUpdateVisib: false,
  2984. // 新增计划净重
  2985. weightList: false,
  2986. dataList: [],
  2987. warehouseCrList: [],
  2988. warehouseDrList: [],
  2989. Pledgebank: [],
  2990. relevantAttachments: [],
  2991. // 非单个禁用
  2992. single: true,
  2993. // 非多个禁用
  2994. multiple: true,
  2995. // 显示搜索条件
  2996. showSearch: true,
  2997. // 总条数
  2998. total: 0,
  2999. // 仓库主(出入库)表格数据
  3000. warehousebillsList: [],
  3001. // 弹出层标题
  3002. title: "",
  3003. activeIndex: '1',
  3004. activeIndex2: '1',
  3005. // 是否显示弹出层
  3006. open: false,
  3007. // 货权方(客户数据)
  3008. fMblnoOptions: [],
  3009. // 货权方(客户数据)
  3010. // 客户名称
  3011. KHblnoOptions: [],
  3012. // 作业费协议
  3013. tasklegList: [],
  3014. whgenlegTotal: 0,
  3015. Printinglist: [],
  3016. // 库存明细入账数组
  3017. dataListSelection: [],
  3018. fWarehouselocid:'',
  3019. fAddr: "",
  3020. // 库存明细撤回入账数组
  3021. dataWithdrawList: [],
  3022. fSbuOptions: [],
  3023. // 操作员
  3024. userOptions: [],
  3025. // 操作员
  3026. goodsOptions: [],
  3027. // 制单部门
  3028. deptOptions: [],
  3029. // 主表状态
  3030. businessTypeOption: [],
  3031. // 仓库(仓库数据)
  3032. warehouseOptions: [],
  3033. kqhouseOptions: [],
  3034. // 贸易方式(数据字典),对应t_trademodels 字典
  3035. fTrademodeidOptions: [],
  3036. // 仓储类型 入库时选择 产地 规格 品牌 所用,对应storage_type 字典
  3037. fStorageTypeOptions: [],
  3038. // 计费单位(数据字典),下拉选择毛重或净重字典
  3039. fFeetunitOptions: [],
  3040. // 结算方式(数据字典),下拉选择字典
  3041. fStltypeOptions: [],
  3042. // 是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择字典
  3043. fIfweighOptions: [],
  3044. // 是否质押(数据字典),默认 F ,质押T 否者F 下拉选择字典
  3045. fIfpledgeOptions: [],
  3046. // 是否破损(数据字典),默认F否则T字典
  3047. fIfdamageOptions: [],
  3048. // 单据类型(数据字典)SJRK字典
  3049. fBilltypeOptions: [],
  3050. // 状态(数据字典),N 入字典
  3051. fBillstatusOptions: [],
  3052. //结算方式对应字典表
  3053. fStltypeidOptions:[],
  3054. // 费用名称
  3055. fWbuOptions: [],
  3056. // 计价单位
  3057. jFeetunitOptions: [
  3058. // { dictLabel: "件数", dictValue: "1" },
  3059. // { dictLabel: "毛重", dictValue: "2" },
  3060. // { dictLabel: "净重", dictValue: "3" },
  3061. // { dictLabel: "尺码", dictValue: "4" },
  3062. // { dictLabel: "固定", dictValue: "5" },
  3063. ],
  3064. current:'',
  3065. before:'',
  3066. //控制选择库位弹出
  3067. choiceWarehouse:false,
  3068. // 查询参数
  3069. queryParams: {
  3070. pageNum: 1,
  3071. pageSize: 10,
  3072. fBillno: null,
  3073. createBy: null,
  3074. createTime: null,
  3075. fCustomsdeclartion: null,
  3076. fOriginalbillno: null,
  3077. fDeptid: null,
  3078. timeInterval: null,
  3079. fBsdeptid: null,
  3080. fContacts: null,
  3081. fTel: null,
  3082. fCorpid: null,
  3083. fTocorpid: null,
  3084. fStltypeid: null,
  3085. fBscorpno: null,
  3086. fWarehouseid: null,
  3087. fStorekeeper: null,
  3088. fBsdate: null,
  3089. fPlanqty: null,
  3090. fPlangrossweight: null,
  3091. fPlannetweight: null,
  3092. fPlanvolumn: null,
  3093. fQty: null,
  3094. fGrossweight: null,
  3095. fNetweight: null,
  3096. fVolumn: null,
  3097. fTrademodeid: null,
  3098. fSbu: null,
  3099. fFeetunit: null,
  3100. fMblno: null,
  3101. fVslvoy: null,
  3102. fEta: null,
  3103. fCustomno: null,
  3104. fIfweigh: null,
  3105. fIfpledge: null,
  3106. fIfdamage: null,
  3107. fBankcorpid: null,
  3108. fBilltype: null,
  3109. fBillstatus: null,
  3110. fBusinessType: null,
  3111. fCreateby: null,
  3112. fCreatetime: null,
  3113. fGoodsid: null,
  3114. fCntrtype: null,
  3115. fCntqty: null,
  3116. },
  3117. planningList: {
  3118. fPlanqty: null,
  3119. fPlannetweight: null,
  3120. fPlangrossweight: null,
  3121. },
  3122. approVal:false,
  3123. // 表单参数
  3124. form: {
  3125. fLabour:null,
  3126. fFleet:null,
  3127. fBusinessType:null,
  3128. fItemsStatus: null,
  3129. fFeetunit: '2'
  3130. },
  3131. // 表单校验
  3132. rules: {
  3133. fDeptid: [{ required: true, message: " ", trigger: "blur" }],
  3134. fMblno: [{ required: true, message: " ", trigger: "blur" }],
  3135. fBsdeptid: [{ required: true, message: " ", trigger: "blur" }],
  3136. fCorpid: [
  3137. {
  3138. required: true,
  3139. message: " ",
  3140. trigger: "blur",
  3141. },
  3142. ],
  3143. fFeetunit: [{ required: true, message: " ", trigger: "blur" }],
  3144. fPlanqty: [{ required: true, message: " ", trigger: "blur" }],
  3145. fPlangrossweight: [{ required: true, message: " ", trigger: "blur" }],
  3146. fPlannetweight: [{ required: true, message: " ", trigger: "blur" }],
  3147. fChargedate: [{ required: true, message: " ", trigger: "blur" }],
  3148. fMarks: [{ required: true, message: " ", trigger: "blur" }],
  3149. fBsdate: [{ required: true, message: " ", trigger: "blur" }],
  3150. fTrademodeid: [{ required: true, message: " ", trigger: "blur" }],
  3151. fSbu: [{ required: true, message: " ", trigger: "blur" }],
  3152. fBusinessType:[{ required: true, message: " ", trigger: "blur" }],
  3153. fStorekeeper: {
  3154. required: true,
  3155. message: " ",
  3156. trigger: "blur",
  3157. },
  3158. // fleet:[{required: this.isrequired == '1' ? true : false,message: " ", trigger: "blur"}],
  3159. fWarehouseid: [{ required: true, message: " ", trigger: "blur" }],
  3160. fbillingway: [
  3161. {
  3162. required: true,
  3163. message: " ",
  3164. trigger: "blur",
  3165. },
  3166. ],
  3167. fTocorpid: [
  3168. {
  3169. required: true,
  3170. message: " ",
  3171. trigger: "blur",
  3172. },
  3173. ],
  3174. },
  3175. };
  3176. },
  3177. created() {
  3178. this.getList();
  3179. this.getDicts("storage_type").then((response) => {
  3180. this.fStorageTypeOptions = response.data;
  3181. });
  3182. this.getDicts("data_trademodes").then((response) => {
  3183. this.fTrademodeidOptions = response.data;
  3184. });
  3185. this.getDicts("data_stltype_type").then((response) => {
  3186. this.fStltypeOptions = response.data;
  3187. });
  3188. this.getDicts("tax_rate").then((response) => {
  3189. this.fTaxrate = response.data[0].dictValue;
  3190. });
  3191. this.getDicts("data_ifweigh_status").then((response) => {
  3192. this.fIfweighOptions = response.data;
  3193. });
  3194. this.getDicts("data_ifpledge_status").then((response) => {
  3195. this.fIfpledgeOptions = response.data;
  3196. });
  3197. this.getDicts("data_ifdamage_status").then((response) => {
  3198. this.fIfdamageOptions = response.data;
  3199. });
  3200. this.getDicts("data_billtype_type").then((response) => {
  3201. this.fBilltypeOptions = response.data;
  3202. });
  3203. this.getDicts("sys_common_status").then((response) => {
  3204. this.fBillstatusOptions = response.data;
  3205. });
  3206. this.getDicts("data_unitfees").then((response) => {
  3207. this.fFeetunitOptions = response.data;
  3208. });
  3209. this.getDicts("data_unitfees").then((response) => {
  3210. this.jFeetunitOptions = response.data;
  3211. });
  3212. this.getDicts("st_in_type").then((response) => {
  3213. this.businessTypeOption = response.data;
  3214. });
  3215. this.getDicts("data_stltype_type").then(response => {
  3216. this.fStltypeidOptions = response.data;
  3217. });
  3218. },
  3219. activated() {
  3220. this.adoPt()
  3221. },
  3222. methods: {
  3223. handleSelect(key, keyPath) {
  3224. console.log(key, keyPath);
  3225. },
  3226. /** 查询部门下拉树结构 */
  3227. getTreeselect() {
  3228. treeselect(this.form.fWarehouseid).then(response => {
  3229. console.log(response)
  3230. this.fWarehouseidOptions = response.data;
  3231. console.log(this.fWarehouseidOptions)
  3232. // console.log(this.dataList.fWarehouseid)
  3233. });
  3234. },
  3235. // 出库件数的计算
  3236. qtyChange(row) {
  3237. if (!row.fQty || row.fQty === "") {
  3238. this.$set(row, "fNetweight", 0);
  3239. this.$set(row, "fGrossweight", 0);
  3240. return false;
  3241. }
  3242. // 净重 fPlannetweight
  3243. // 毛重 fPlangrossweight
  3244. // let fVolumn = parseFloat(Number(row.fVolumn) / Number(row.fPlanqty)).toFixed(2);
  3245. let netweight = parseFloat(Number(this.form.fPlannetweight) / Number(this.form.fPlanqty)).toFixed(2);
  3246. let grossweigh = parseFloat(Number(this.form.fPlangrossweight) / Number(this.form.fPlanqty)).toFixed(2);
  3247. // this.$set(row, "fVolumn", parseFloat(Number(fVolumn) * Number(row.fQty)).toFixed(2));
  3248. this.$set(row, "fNetweight", parseFloat(Number(netweight) * Number(row.fQty)).toFixed(2));
  3249. this.$set(row, "fGrossweight", parseFloat(Number(grossweigh) * Number(row.fQty)).toFixed(2));
  3250. },
  3251. adoPt(){
  3252. this.approval = this.$route.query.data
  3253. if (this.approval){
  3254. this.getTreeselect()
  3255. this.reset();
  3256. this.doNot = true
  3257. this.closeButton = false
  3258. this.approval = JSON.parse(this.approval)
  3259. this.approVal = true
  3260. this.browseStatus = true;
  3261. this.contrOl = true;
  3262. this.detailsHidden = false;
  3263. this.formBrowseStatus = false;
  3264. this.dataList = [];
  3265. getWarehousebills(this.approval.billId).then((response) => {
  3266. if (response.data.warehousebills) {
  3267. this.form = response.data.warehousebills;
  3268. if (this.form.fBillstatus > 2) {
  3269. this.approvalStatus = false;
  3270. } else {
  3271. this.approvalStatus = true;
  3272. }
  3273. }
  3274. if (response.data.warehouseBillsItem) {
  3275. this.dataList = response.data.warehouseBillsItem;
  3276. for (let list in this.dataList) {
  3277. if (this.dataList[list].fBillstatus > 10) {
  3278. this.formBrowseStatus = true;
  3279. }
  3280. }
  3281. }
  3282. if (response.data.corps) {
  3283. this.fMblnoOptions = response.data.corps;
  3284. this.KHblnoOptions = response.data.corps;
  3285. this.fSbuOptions = response.data.corps;
  3286. }
  3287. if (response.data.feesList) {
  3288. this.fWbuOptions = response.data.feesList;
  3289. }
  3290. if (response.data.warehouse) {
  3291. this.warehouseOptions = response.data.warehouse;
  3292. }
  3293. if (response.data.warehouseBillsItem) {
  3294. this.dataList = response.data.warehouseBillsItem;
  3295. }
  3296. if (response.data.enclosures) {
  3297. this.relevantAttachments = response.data.enclosures;
  3298. }
  3299. this.$set(this.form, "fStltypeid", this.form.fStltypeid + "");
  3300. this.$set(this.form, "fEta", Date.parse(this.form.fEta));
  3301. this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
  3302. this.$set(this.form, "createTime", Date.parse(this.form.createTime));
  3303. this.$set(this.form, "fTrademodeid", this.form.fTrademodeid + "");
  3304. this.$set(
  3305. this.form,
  3306. "fPlannetweight",
  3307. this.form.fPlannetweight.toFixed(2)
  3308. );
  3309. this.$set(
  3310. this.form,
  3311. "fPlangrossweight",
  3312. this.form.fPlangrossweight.toFixed(2)
  3313. );
  3314. for (let list in this.dataList) {
  3315. this.$set(
  3316. this.dataList[list],
  3317. "fBsdate",
  3318. Date.parse(this.dataList[list].fBsdate)
  3319. );
  3320. this.$set(this.dataList[list], 'fBusinessType', this.dataList[list].fBusinessType + '')
  3321. }
  3322. this.goodsOptions = response.data.goodsList;
  3323. this.kqhouseOptions = response.data.warehouseAreas;
  3324. this.warehouseDrList = response.data.warehousebillsfeesDr;
  3325. for (let dr in this.warehouseDrList) {
  3326. this.$set(this.warehouseDrList[dr], "fFeeUnitid", this.warehouseDrList[dr].fFeeunitid + "");
  3327. this.$set(this.warehouseDrList[dr], "fQty", this.warehouseDrList[dr].fQty.toFixed(2));
  3328. this.$set(this.warehouseDrList[dr], "fAmount", this.warehouseDrList[dr].fAmount.toFixed(2));
  3329. }
  3330. this.warehouseCrList = response.data.warehousebillsfeesCr;
  3331. for (let cr in this.warehouseCrList) {
  3332. this.$set(this.warehouseCrList[cr], "fFeeUnitid", this.warehouseCrList[cr].fFeeunitid + '');
  3333. }
  3334. this.userOptions = response.data.sysUser;
  3335. this.open = true;
  3336. this.title = "修改仓入库";
  3337. });
  3338. }
  3339. },
  3340. //关闭弹框的事件
  3341. addCloseDialog(){
  3342. this.reset()
  3343. this.getList()
  3344. },
  3345. cancelTwo(){
  3346. this.open = false
  3347. let view = {
  3348. fullPath: "/business/inStock",
  3349. hash: "",
  3350. matched: Array(2),
  3351. meta: Object,
  3352. name: "InStock",
  3353. params: Object,
  3354. path: "/business/inStock",
  3355. query: Object,
  3356. title: "入库"
  3357. }
  3358. this.$router.push({ path: '/index'})
  3359. this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => {
  3360. if (this.isActive(view)) {
  3361. this.toLastView(visitedViews, view)
  3362. }
  3363. })
  3364. Global.$emit("removeCache", "closeSelectedTag", view);
  3365. },
  3366. // 上传成功返回数据
  3367. showFile(row) {
  3368. for (let list in this.relevantAttachments) {
  3369. this.$set(this.relevantAttachments[list], "fUrl", row.url);
  3370. this.$set(this.relevantAttachments[list], "fName", row.fileName);
  3371. }
  3372. },
  3373. hanDleclose(done){
  3374. this.$confirm('确认关闭?')
  3375. .then(_ => {
  3376. done();
  3377. })
  3378. .catch(_ => {});
  3379. },
  3380. revoke(){
  3381. revoke(this.form.fId).then(data=>{
  3382. if (data.code === 200){
  3383. this.reset();
  3384. this.open = false;
  3385. this.contrOl = true
  3386. }
  3387. })
  3388. },
  3389. revokeTwo(){
  3390. let data = {
  3391. actId:110,
  3392. billId:this.form.fId,
  3393. id:this.form.fId
  3394. }
  3395. revokeTwo(data).then(data =>{
  3396. if (data.code === 200) {
  3397. this.msgSuccess("撤销成功");
  3398. this.open = false;
  3399. this.getList()
  3400. this.reset();
  3401. }
  3402. })
  3403. },
  3404. printSomething() {
  3405. // 此处的style即为打印时的样式
  3406. const style =
  3407. "@media print { .print-div{ padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center}}";
  3408. print({
  3409. printable: "print_area3",
  3410. type: "html",
  3411. style: style, // 亦可使用引入的外部css;
  3412. scanStyles: false,
  3413. });
  3414. },
  3415. printSomething1() {
  3416. // 此处的style即为打印时的样式
  3417. const style =
  3418. "@media print { .print-div{ padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center}}";
  3419. print({
  3420. printable: "print_area2",
  3421. type: "html",
  3422. style: style, // 亦可使用引入的外部css;
  3423. scanStyles: false,
  3424. });
  3425. },
  3426. printSomething2() {
  3427. // 此处的style即为打印时的样式
  3428. const style =
  3429. "@media print { .print-div{ padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center}}";
  3430. print({
  3431. printable: "print_area1",
  3432. type: "html",
  3433. style: style, // 亦可使用引入的外部css;
  3434. scanStyles: false,
  3435. });
  3436. this.addList();
  3437. this.editDialogVisible_sss = false;
  3438. },
  3439. // 新增附件上传
  3440. addRelevt() {
  3441. this.relevantAttachments.push({
  3442. fUrl: null,
  3443. fName: null,
  3444. createBy: this.form.createBy,
  3445. createTime: Date.parse(new Date()),
  3446. });
  3447. },
  3448. // 新增作业费协议
  3449. addAgreement() {
  3450. if (!this.form.fCorpid) {
  3451. this.$message({
  3452. message: "请维护货权方",
  3453. type: "warning",
  3454. });
  3455. }else if(this.form.fProductName == undefined) {
  3456. this.$message({
  3457. message: "请维护入库明细品名",
  3458. type: "warning",
  3459. });
  3460. }else {
  3461. this.whgenlegList = [];
  3462. this.dialogWhgenlegList = [];
  3463. this.whgenlegTotal = 0;
  3464. this.warehousingagreement = true;
  3465. this.getWhgenlegList();
  3466. }
  3467. },
  3468. // 新增付款作业费协议
  3469. addAgreements() {
  3470. if (!this.form.fCorpid) {
  3471. this.$message({
  3472. message: "请维护货权方",
  3473. type: "warning",
  3474. });
  3475. }else if(this.form.fProductName == undefined) {
  3476. this.$message({
  3477. message: "请维护入库明细品名",
  3478. type: "warning",
  3479. });
  3480. } else {
  3481. this.whgenlegList = [];
  3482. this.dialogWhgenlegList = [];
  3483. this.whgenlegTotal = 0;
  3484. this.warehousingagreements = true;
  3485. this.getWhgenlegList();
  3486. }
  3487. },
  3488. // 新增list
  3489. addRelevant(status) {
  3490. if (!this.form.fPlannetweight || !this.form.fPlangrossweight || !this.form.fPlanqty) {
  3491. this.$message({ message: "请维护计划净重,计划毛重,计划件数", type: "warning", });
  3492. return false;
  3493. }
  3494. this.fPlaNnumber = this.form.fPlannetweight / this.form.fPlanqty;
  3495. this.fPlangNumber = this.form.fPlangrossweight / this.form.fPlanqty;
  3496. this.planningList.fPlanqty = Number(this.form.fPlanqty) - Number(this.mum)
  3497. this.planningList.fPlannetweight = parseFloat(Number(this.fPlaNnumber) * Number(this.planningList.fPlanqty).toFixed(2))
  3498. this.planningList.fPlangrossweight = parseFloat(Number(this.fPlangNumber) * Number(this.planningList.fPlanqty)).toFixed(2)
  3499. this.weightList = true
  3500. },
  3501. // 收货单打印界面
  3502. showEditDialog_s() {
  3503. if (this.Printinglist.length > 0) {
  3504. this.editDialogVisible_s = true;
  3505. let sumFNetweight = 0
  3506. let sumFGrossweight = 0
  3507. for (let aorp in this.Printinglist) {
  3508. sumFNetweight = Number(sumFNetweight) + Number(this.Printinglist[aorp].fNetweight)
  3509. sumFGrossweight = Number(sumFGrossweight) + Number(this.Printinglist[aorp].fGrossweight)
  3510. var date = new Date(this.Printinglist[aorp].fBsdate);
  3511. var Y = date.getFullYear() + "-";
  3512. var M =
  3513. (date.getMonth() + 1 < 10
  3514. ? "0" + (date.getMonth() + 1)
  3515. : date.getMonth() + 1) + "-";
  3516. var D =
  3517. (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " ";
  3518. this.$set(this.Printinglist[aorp], "fBsdate", Y + M + D);
  3519. }
  3520. this.$set(this.form , 'sumFNetweight', parseFloat(Number(sumFNetweight) / 1000).toFixed(2))
  3521. this.$set(this.form , 'sumFGrossweight', parseFloat(Number(sumFGrossweight) / 1000).toFixed(2))
  3522. for (let corp in this.fMblnoOptions) {
  3523. if (this.form.fCorpid === this.fMblnoOptions[corp].fId) {
  3524. this.$set(this.form, "fCorpidName", this.fMblnoOptions[corp].fName);
  3525. }
  3526. }
  3527. for (let sorp in this.warehouseOptions) {
  3528. if (this.form.fWarehouseid === this.warehouseOptions[sorp].fId) {
  3529. this.$set(this.form, "fWarehouseid", this.warehouseOptions[sorp].fName);
  3530. }
  3531. }
  3532. } else {
  3533. this.$message.error("请选择需要打印的明细!");
  3534. }
  3535. },
  3536. closeDialog() {
  3537. for (let aorp in this.Printinglist) {
  3538. this.$set(
  3539. this.Printinglist[aorp],
  3540. "fBsdate",
  3541. Date.parse(this.Printinglist[aorp].fBsdate)
  3542. );
  3543. }
  3544. },
  3545. showEditDialog_ss() {
  3546. if (this.Printinglist.length > 0) {
  3547. for (let li in this.Printinglist) {
  3548. if (this.dataListSelection.length > 0) {
  3549. this.fTruckno = this.dataListSelection[0].fTruckno;
  3550. this.fCntrtype = this.dataListSelection[0].fCntrtype;
  3551. this.fGoodsids = this.dataListSelection[0].fGoodsids;
  3552. this.fPackagespecs = this.dataListSelection[0].fPackagespecs;
  3553. var date = new Date(this.dataListSelection[0].fBsdate);
  3554. var Y = date.getFullYear() + "-";
  3555. var M =
  3556. (date.getMonth() + 1 < 10
  3557. ? "0" + (date.getMonth() + 1)
  3558. : date.getMonth() + 1) + "-";
  3559. var D =
  3560. (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) +
  3561. " ";
  3562. this.fBsdates = Y + M + D;
  3563. }
  3564. for (let list in this.goodsOptions) {
  3565. if (
  3566. this.Printinglist[li].fGoodsid === this.goodsOptions[list].fId
  3567. ) {
  3568. this.$set(
  3569. this.Printinglist[li],
  3570. "fGoodsids",
  3571. this.goodsOptions[list].fName
  3572. );
  3573. }
  3574. }
  3575. }
  3576. this.editDialogVisible_ss = true;
  3577. } else {
  3578. this.$message.error("请选择需要打印的明细!");
  3579. }
  3580. },
  3581. showEditDialog_sss() {
  3582. if (this.Printinglist.length > 0) {
  3583. // if (!this.form.fId) {
  3584. // this.form.fId = this.fid
  3585. // }
  3586. if(this.form.fFeetunit > 3){
  3587. this.$message.error('请维护主表计费单位为件数、毛重或净重')
  3588. return false
  3589. }
  3590. if (!this.form.fBusinessType) {
  3591. this.$message.error('请选择作业类型!')
  3592. return false
  3593. }
  3594. for (let li in this.Printinglist) {
  3595. if (!this.Printinglist[li].fBsdate) {
  3596. this.$message.error('请选择入库日期')
  3597. return false
  3598. }
  3599. if (!this.Printinglist[li].fGoodsid) {
  3600. this.$message.error('请选择品名')
  3601. return false
  3602. }
  3603. if (!this.Printinglist[li].fWarehouselocid) {
  3604. this.$message.error('请选择库区')
  3605. return false
  3606. }
  3607. if (!this.Printinglist[li].fPackagespecs) {
  3608. this.$message.error('请输入包装规格')
  3609. return false
  3610. }
  3611. if (!this.Printinglist[li].fMarks) {
  3612. this.$message.error('请输入属性详情')
  3613. return false
  3614. }
  3615. if (!this.Printinglist[li].fDriverName) {
  3616. this.$message.error('请输入司机姓名')
  3617. return false
  3618. }
  3619. if (!this.Printinglist[li].fDriverTel) {
  3620. this.$message.error('请输入司机电话')
  3621. return false
  3622. }
  3623. if (!this.Printinglist[li].fTruckno) {
  3624. this.$message.error('请输入车号')
  3625. return false
  3626. }
  3627. if (this.Printinglist[li].fTruckno !== this.Printinglist[0].fTruckno) {
  3628. this.$message.error('请选择车相同车号')
  3629. return false
  3630. }
  3631. if (this.Printinglist[li].fDriverName !== this.Printinglist[0].fDriverName) {
  3632. this.$message.error('请选择相同司机名')
  3633. return false
  3634. }
  3635. if (!this.Printinglist[li].fId) {
  3636. this.$message.error('请先保存!')
  3637. return false
  3638. }
  3639. if (!this.Printinglist[li].fBusinessType) {
  3640. this.$message.error('请先维护业务类型!')
  3641. return false
  3642. }
  3643. if (!this.Printinglist[li].fMarks) {
  3644. this.$message.error('请先维护业务详情!')
  3645. return false
  3646. }
  3647. for (let list in this.goodsOptions) {
  3648. if (this.Printinglist[li].fGoodsid === this.goodsOptions[list].fId) {
  3649. this.$set(this.Printinglist[li], 'fGoodsids', this.goodsOptions[list].fName)
  3650. break
  3651. }
  3652. }
  3653. for (let list in this.fStorageTypeOptions) {
  3654. if (this.Printinglist[li].fBusinessType === this.fStorageTypeOptions[list].dictValue) {
  3655. this.$set(this.Printinglist[li], 'fBusinessTypes', this.fStorageTypeOptions[list].dictLabel)
  3656. break
  3657. }
  3658. }
  3659. }
  3660. if (this.dataListSelection.length > 0) {
  3661. this.fTruckno = this.dataListSelection[0].fTruckno
  3662. this.fCntrtype = this.dataListSelection[0].fCntrtype
  3663. this.fGoodsids = this.dataListSelection[0].fGoodsids
  3664. this.fDriverTel = this.dataListSelection[0].fDriverTel
  3665. this.fPackagespecs = this.dataListSelection[0].fPackagespecs
  3666. var date = new Date(this.dataListSelection[0].fBsdate)
  3667. var Y = date.getFullYear() + '-'
  3668. var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
  3669. var D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' '
  3670. this.fBsdates = Y + M + D
  3671. }
  3672. this.editDialogVisible_sss = true
  3673. } else {
  3674. this.$message.error('请选择需要打印的明细!')
  3675. }
  3676. },
  3677. // 收款信息
  3678. addCollection() {
  3679. this.warehouseDrList.push({
  3680. fCorpid: null,
  3681. fFeeid: null,
  3682. fFeeUnitid: null,
  3683. fQty: null,
  3684. fUnitprice: null,
  3685. fAmount: null,
  3686. fCurrency: "RMB",
  3687. fExrate: "1",
  3688. fTaxrate: this.fTaxrate,
  3689. fCxrate: null,
  3690. fRate: null,
  3691. remarks: null,
  3692. fMblno:this.form.fMblno,
  3693. fProductName:this.form.fProductName,
  3694. fMarks:this.form.fMarks
  3695. });
  3696. },
  3697. addpayment() {
  3698. this.warehouseCrList.push({
  3699. fCorpid: null,
  3700. fFeeid: null,
  3701. fFeeUnitid: null,
  3702. fQty: null,
  3703. fUnitprice: null,
  3704. fAmount: null,
  3705. fCurrency: "RMB",
  3706. fExrate: "1",
  3707. fTaxrate: this.fTaxrate,
  3708. fCxrate: null,
  3709. fRate: null,
  3710. remarks: null,
  3711. fMblno:this.form.fMblno,
  3712. fProductName:this.form.fProductName,
  3713. fMarks:this.form.fMarks
  3714. });
  3715. },
  3716. queryUser() {
  3717. queryUserVal().then((response) => {
  3718. if (response.user !== null) {
  3719. this.userVal = response.user;
  3720. this.$set(this.form, "fDeptid", this.userVal.deptId);
  3721. this.$set(this.form, "createBy", this.userVal.userName);
  3722. this.$set(this.form,"fStorekeeper",this.userVal.nickName)
  3723. this.$set(this.form, "fIfdamage", "1");
  3724. this.$set(this.form, "fIfweigh", "1");
  3725. this.$set(this.form, "fTrademodeid", "1");
  3726. this.$set(this.form, "createTime", Date.parse(new Date()));
  3727. }
  3728. if (response.dept !== null) {
  3729. this.deptOptions = [];
  3730. this.deptOptions.push(response.dept);
  3731. }
  3732. });
  3733. },
  3734. /** 查询仓库主(出入库)列表 */
  3735. getList() {
  3736. this.loading = true;
  3737. listWarehousebills(this.queryParams).then((response) => {
  3738. this.warehousebillsList = response.rows;
  3739. this.total = response.total;
  3740. this.loading = false;
  3741. });
  3742. },
  3743. // 查询作业费信息
  3744. getWhgenlegList() {
  3745. // this.queryParams.fCorpid = this.form.fCorpid;
  3746. // this.queryParams.fLineno = this.form.fCorpid;
  3747. let data = {
  3748. pageNum:1,
  3749. pageSize:10,
  3750. fLineno:this.form.fCorpid,
  3751. fFeeid:this.dataList[0].fGoodsid
  3752. }
  3753. operationAgreement(data).then((response) => {
  3754. this.tasklegList = response.rows;
  3755. for (let li in this.tasklegList) {
  3756. this.$set(
  3757. this.tasklegList[li],
  3758. "fFeeUnitid",
  3759. this.tasklegList[li].fFeeUnitid + ""
  3760. );
  3761. }
  3762. this.whgenlegTotal = response.total;
  3763. });
  3764. },
  3765. // 导入计划重量
  3766. costList() {
  3767. if (Number(this.planningList.fPlanqty) > Number(this.form.fPlanqty)) {
  3768. this.$message({ message: "计划费件数不能大于主表计划费件数!", type: "warning", });
  3769. return false;
  3770. }
  3771. if (Number(this.planningList.fPlanqty === 0)) {
  3772. this.$message({ message: "计划件数不能为0", type: "warning", });
  3773. return false;
  3774. }
  3775. this.getTreeselect()
  3776. let fTruckno = null
  3777. let fDriverTel = null
  3778. let fDriverName = null
  3779. let fDriverIdCar = null
  3780. if (this.form.fTruckno) {
  3781. fTruckno = this.form.fTruckno
  3782. }
  3783. if (this.form.fDriverTel) {
  3784. fDriverTel = this.form.fDriverTel
  3785. }
  3786. if (this.form.fDriverName) {
  3787. fDriverName = this.form.fDriverName
  3788. }
  3789. if (this.form.fDriverIdCar) {
  3790. fDriverIdCar = this.form.fDriverIdCar
  3791. }
  3792. this.dataList.push({
  3793. fBsdate: this.form.fBsdate,
  3794. fGoodsid: null,
  3795. fCntrtype: null,
  3796. fCntqty: 1,
  3797. fNetweight: this.planningList.fPlannetweight,
  3798. fPlanvolumn: 0,
  3799. fGrossweight: this.planningList.fPlangrossweight,
  3800. fQty: this.planningList.fPlanqty,
  3801. fPackagespecs: null,
  3802. fWarehouselocid: null,
  3803. fBoxno: null,
  3804. fMarks: this.form.fMarks,
  3805. fGoodsval: null,
  3806. fTruckno: fTruckno,
  3807. fDriverTel: fDriverTel,
  3808. fDriverName: fDriverName,
  3809. fDriverIdCar: fDriverIdCar,
  3810. remark: null,
  3811. fBillstatus: 10,
  3812. fMblno:this.form.fMblno
  3813. });
  3814. this.weightList = false;
  3815. // this.contrOl = true
  3816. // 查询库区下 所有库位
  3817. // this.warehouseMethod();
  3818. },
  3819. /* 所有库位信息 */
  3820. warehouseMethod() {
  3821. var fWarehouseid = this.form.fWarehouseid ;
  3822. let queryParams = { pageNum: 1, pageSize: 10, fStatus: 0, delFlag: 0, fWarehouseid : fWarehouseid };
  3823. listWarehouse(queryParams).then((response) => {
  3824. this.kqhouseOptions = response.rows;
  3825. });
  3826. },
  3827. // 导入付款信息
  3828. whgenlegData() {
  3829. if (this.dialogWhgenlegList.length === 0) {
  3830. this.$message({
  3831. message: "请选择需要导入的数据",
  3832. type: "warning",
  3833. });
  3834. } else {
  3835. for (let whgen in this.dialogWhgenlegList) {
  3836. let feeId = this.dialogWhgenlegList[whgen].feeFId;
  3837. getFees(feeId).then((response) => {
  3838. this.fWbuOptions.push(response.data);
  3839. });
  3840. this.warehouseDrList.push({
  3841. fCorpid: this.dialogWhgenlegList[whgen].fCorpid,
  3842. fFeeid: feeId,
  3843. fFeeUnitid: this.dialogWhgenlegList[whgen].fFeeUnitid + "",
  3844. fUnitprice: this.dialogWhgenlegList[whgen].fPrice,
  3845. fCurrency: "RMB",
  3846. fExrate: "1",
  3847. fTaxrate: this.fTaxrate,
  3848. fMblno:this.form.fMblno,
  3849. fProductName:this.form.fProductName,
  3850. fMarks:this.form.fMarks
  3851. });
  3852. }
  3853. for (let list in this.warehouseDrList) {
  3854. if (this.warehouseDrList[list].fFeeUnitid === "1") {
  3855. this.$set(this.warehouseDrList[list], "fQty", this.fQty.toFixed(2));
  3856. } else if (this.warehouseDrList[list].fFeeUnitid === "2") {
  3857. this.$set(this.warehouseDrList[list], "fQty", (this.fGrossweight/1000).toFixed(2));
  3858. } else if (this.warehouseDrList[list].fFeeUnitid === "3") {
  3859. this.$set(this.warehouseDrList[list], "fQty", (this.fNetweight/1000).toFixed(2));
  3860. } else {
  3861. this.$set(this.warehouseDrList[list], "fQty", 0);
  3862. }
  3863. this.$set(this.warehouseDrList[list], "fAmount", (Number(this.warehouseDrList[list].fUnitprice) * Number(this.warehouseDrList[list].fQty)).toFixed(2)
  3864. );
  3865. }
  3866. this.warehousingagreement = false;
  3867. }
  3868. },
  3869. zhgenlegData() {
  3870. if (this.dialogWhgenlegList.length === 0) {
  3871. this.$message({
  3872. message: "请选择需要导入的数据",
  3873. type: "warning",
  3874. });
  3875. } else {
  3876. for (let zhgen in this.dialogWhgenlegList) {
  3877. let feeId = this.dialogWhgenlegList[zhgen].feeFId;
  3878. getFees(feeId).then((response) => {
  3879. this.fWbuOptions.push(response.data);
  3880. });
  3881. this.warehouseCrList.push({
  3882. fCorpid: this.dialogWhgenlegList[zhgen].fCorpid,
  3883. fFeeid: feeId,
  3884. fFeeUnitid: this.dialogWhgenlegList[zhgen].fFeeUnitid + "",
  3885. fUnitprice: this.dialogWhgenlegList[zhgen].fPrice,
  3886. fCurrency: "RMB",
  3887. fExrate: "1",
  3888. fTaxrate: this.fTaxrate,
  3889. fMblno:this.form.fMblno,
  3890. fProductName:this.form.fProductName,
  3891. fMarks:this.form.fMarks
  3892. });
  3893. }
  3894. for (let list in this.warehouseCrList) {
  3895. if (this.warehouseCrList[list].fFeeUnitid === "1") {
  3896. this.$set(this.warehouseCrList[list], "fQty", this.fQty.toFixed(2));
  3897. } else if (this.warehouseCrList[list].fFeeUnitid === "2") {
  3898. this.$set(this.warehouseCrList[list], "fQty", (this.fGrossweight/1000).toFixed(2));
  3899. } else if (this.warehouseCrList[list].fFeeUnitid === "3") {
  3900. this.$set(this.warehouseCrList[list], "fQty", (this.fNetweight/1000).toFixed(2));
  3901. } else {
  3902. this.$set(this.warehouseCrList[list], "fQty", 0);
  3903. }
  3904. this.$set(this.warehouseCrList[list], "fAmount", (Number(this.warehouseCrList[list].fUnitprice) * Number(this.warehouseCrList[list].fQty)).toFixed(2));
  3905. }
  3906. this.warehousingagreements = false;
  3907. }
  3908. },
  3909. // 作业类型(数据字典),对应st_in_type 字典翻译
  3910. fBusinessTypeFormat(row,column){
  3911. return this.selectDictLabel(this.businessTypeOption, row.fBusinessType);
  3912. },
  3913. // 贸易方式(数据字典),对���t_trademodels 字典翻译
  3914. fTrademodeidFormat(row, column) {
  3915. return this.selectDictLabel(this.fTrademodeidOptions, row.fTrademodeid);
  3916. },
  3917. // 计费单位(数据字典),下拉选择毛重或净重字典翻译
  3918. fFeetunitFormat(row, column) {
  3919. return this.selectDictLabel(this.fFeetunitOptions, row.fFeetunit);
  3920. },
  3921. // 是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择字典翻译
  3922. fIfweighFormat(row, column) {
  3923. return this.selectDictLabel(this.fIfweighOptions, row.fIfweigh);
  3924. },
  3925. // 编号字典翻译
  3926. fStltypeidFormat(row, column) {
  3927. return this.selectDictLabel(this.fStltypeOptions, row.fStltypeid);
  3928. },
  3929. // 是否质押(数据字典),默认 F ,质押T 否者F 下拉选择字典翻译
  3930. fIfpledgeFormat(row, column) {
  3931. return this.selectDictLabel(this.fIfpledgeOptions, row.fIfpledge);
  3932. },
  3933. // 是否破损(数据字典),默认F否则T字典翻译
  3934. fIfdamageFormat(row, column) {
  3935. return this.selectDictLabel(this.fIfdamageOptions, row.fIfdamage);
  3936. },
  3937. // 单据类型(数据字典)SJRK字典翻译
  3938. fBilltypeFormat(row, column) {
  3939. return this.selectDictLabel(this.fBilltypeOptions, row.fBilltype);
  3940. },
  3941. // 状态(数据字典),N 入字典翻译
  3942. fBillstatusFormat(row, column) {
  3943. return this.selectDictLabel(this.fBillstatusOptions, row.fBillstatus);
  3944. },
  3945. // 取消按钮
  3946. cancel() {
  3947. this.open = false;
  3948. this.reset();
  3949. this.getList()
  3950. },
  3951. // 表单重置
  3952. reset() {
  3953. this.doNot = false
  3954. this.browseStatus = false
  3955. this.approvalStatus = false
  3956. this.detailsHidden = false
  3957. this.warehousingagreement = false
  3958. this.warehousingagreements = false
  3959. this.formBrowseStatus = false
  3960. this.editDialogVisible_s = false
  3961. this.editDialogVisible_ss = false
  3962. this.editDialogVisible_sss = false
  3963. this.editDialogClosed_ss = false
  3964. this.addOrUpdateVisible = false
  3965. this.addOrUpdateVisib = false
  3966. this.weightList = false
  3967. this.form = {
  3968. fId: null,
  3969. fBillno: null,
  3970. fCustomsdeclartion: null,
  3971. fOriginalbillno: null,
  3972. fDeptid: null,
  3973. fBsdeptid: null,
  3974. fContacts: null,
  3975. fTel: null,
  3976. fCorpid: null,
  3977. fTocorpid: null,
  3978. fStltypeid: null,
  3979. fBscorpno: null,
  3980. fWarehouseid: null,
  3981. fStorekeeper: null,
  3982. fBsdate: null,
  3983. fPlanqty: null,
  3984. fPlangrossweight: null,
  3985. fPlannetweight: null,
  3986. fPlanvolumn: null,
  3987. fQty: null,
  3988. fGrossweight: null,
  3989. fNetweight: null,
  3990. fVolumn: null,
  3991. fTrademodeid: null,
  3992. fSbu: null,
  3993. fFeetunit: null,
  3994. fMblno: null,
  3995. fVslvoy: null,
  3996. fEta: null,
  3997. fCustomno: null,
  3998. fIfweigh: null,
  3999. fIfpledge: null,
  4000. fIfdamage: null,
  4001. fBankcorpid: null,
  4002. fBilltype: null,
  4003. fBillstatus: null,
  4004. delFlag: null,
  4005. createBy: null,
  4006. createTime: null,
  4007. updateBy: null,
  4008. updateTime: null,
  4009. remark: null,
  4010. fCreateby: null,
  4011. fCreatetime: null,
  4012. fGoodsid: null,
  4013. fCntrtype: null,
  4014. fCntqty: null
  4015. }
  4016. this.fMblnoOptions = []
  4017. this.userOptions = [];
  4018. this.warehouseOptions = [];
  4019. this.fSbuOptions = [];
  4020. this.goodsOptions = [];
  4021. this.kqhouseOptions = [];
  4022. this.relevantAttachments = [];
  4023. this.KHblnoOptions = [];
  4024. this.fWbuOptions = [];
  4025. this.resetForm("form");
  4026. },
  4027. /** 搜索按钮操作 */
  4028. handleQuery() {
  4029. this.queryParams.pageNum = 1;
  4030. this.getList();
  4031. },
  4032. /** 重置按钮操作 */
  4033. resetQuery() {
  4034. this.resetForm("queryForm");
  4035. this.handleQuery();
  4036. },
  4037. // 多选框选中数据
  4038. handleSelectionChange(selection) {
  4039. this.ids = selection.map((item) => item.fId);
  4040. this.single = selection.length !== 1;
  4041. this.multiple = !selection.length;
  4042. },
  4043. // 库存明细多选
  4044. Selectinventory(selection) {
  4045. this.Printinglist = selection;
  4046. this.Printinglists = selection;
  4047. this.dataListSelection = [];
  4048. this.dataWithdrawList = [];
  4049. if (!selection || selection.length === 0) {
  4050. return false;
  4051. } else {
  4052. for (let se in selection) {
  4053. if (!selection[se].fBillstatus || selection[se].fBillstatus !== 40) {
  4054. this.dataListSelection.push(selection[se]);
  4055. } else if (selection[se].fBillstatus && selection[se].fBillstatus === 40) {
  4056. this.dataWithdrawList.push(selection[se]);
  4057. }
  4058. }
  4059. }
  4060. // 打印回显仓库
  4061. for (let corp in this.warehouseOptions) {
  4062. this.fAddr = this.warehouseOptions[corp].fAddr;
  4063. }
  4064. },
  4065. // 收款选
  4066. Collectionoptions(selection) {
  4067. this.Collectionoptionss = selection
  4068. for (let lest in this.fWbuOptions) {
  4069. for (let li in this.Collectionoptionss) {
  4070. if (this.fWbuOptions[lest].fId === this.Collectionoptionss[li].fFeeid) {
  4071. this.$set(this.Collectionoptionss[li], 'fFeeids', this.fWbuOptions[lest].fName)
  4072. }
  4073. }
  4074. }
  4075. },
  4076. // 收款删除
  4077. deleteRow(index, rows) {
  4078. rows.splice(index, 1);
  4079. },
  4080. deleteRoww(index, rows) {
  4081. rows.splice(index, 1);
  4082. },
  4083. // 付款选择
  4084. Paymentoptions(selection) {
  4085. },
  4086. /** 新增按钮操作 */
  4087. handleAdd(status) {
  4088. this.getTreeselect();
  4089. this.form = {
  4090. fItemsStatus: null,
  4091. fFeetunit:"2"
  4092. }
  4093. this.browseStatus = status;
  4094. this.queryUser();
  4095. this.goodsRemoteMethod()
  4096. this.warehousesssMethod()
  4097. this.open = true;
  4098. this.detailsHidden = false;
  4099. this.dataList = [];
  4100. this.warehouseCrList = [];
  4101. this.warehouseDrList = [];
  4102. this.relevantAttachments = [];
  4103. this.mum = 0;
  4104. this.title = "入库单";
  4105. this.contrOl = false
  4106. this.formBrowseStatus = false;
  4107. },
  4108. /** 修改按钮操作 */
  4109. handleUpdate(row, status) {
  4110. this.getTreeselect();
  4111. this.reset();
  4112. // this.contrOl = false
  4113. // if (this.dataList.length === 0){
  4114. //
  4115. // }
  4116. this.browseStatus = status;
  4117. this.detailsHidden = false;
  4118. this.formBrowseStatus = false;
  4119. const fId = row.fId || this.ids;
  4120. this.dataList = [];
  4121. this.goodsRemoteMethod()
  4122. getWarehousebills(fId).then((response) => {
  4123. if (response.data.warehousebills) {
  4124. this.form = response.data.warehousebills;
  4125. this.before = this.form.createBy
  4126. if (this.form.fBillstatus > 2) {
  4127. this.approvalStatus = false;
  4128. } else {
  4129. this.fMblno = true;
  4130. }
  4131. }
  4132. if (response.data.warehouseBillsItem) {
  4133. this.dataList = response.data.warehouseBillsItem;
  4134. for (let list in this.dataList) {
  4135. this.$set(this.dataList[list], 'fBusinessType', this.dataList[list].fBusinessType + '')
  4136. if (this.dataList[list].fBillstatus > 10) {
  4137. this.formBrowseStatus = true;
  4138. this.$set(this.dataList[list], "fBusinessType", this.dataList[list].fBusinessType + '')
  4139. }
  4140. if(this.dataList[list].fBillstatus === 40){
  4141. this.contrOl = true
  4142. }
  4143. }
  4144. }
  4145. if (response.data.corps) {
  4146. this.fMblnoOptions = response.data.corps;
  4147. this.KHblnoOptions = response.data.corps;
  4148. this.fSbuOptions = response.data.corps;
  4149. }
  4150. if (response.data.feesList) {
  4151. this.fWbuOptions = response.data.feesList;
  4152. }
  4153. if (response.data.warehouse) {
  4154. this.warehouseOptions = response.data.warehouse;
  4155. }
  4156. if (response.data.warehouseBillsItem) {
  4157. this.dataList = response.data.warehouseBillsItem;
  4158. for(let list in this.dataList){
  4159. if (this.dataList[list].fBillstatus > 10) {
  4160. this.formBrowseStatus = true;
  4161. }
  4162. }
  4163. }
  4164. if (response.data.enclosures) {
  4165. this.relevantAttachments = response.data.enclosures;
  4166. }
  4167. this.$set(this.form, "fEta", Date.parse(this.form.fEta));
  4168. this.$set(this.form, "fStltypeid", this.form.fStltypeid + "");
  4169. this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
  4170. this.$set(this.form, "fTrademodeid", this.form.fTrademodeid + "");
  4171. this.$set(this.form, "createTime", Date.parse(this.form.createTime));
  4172. this.$set(this.form, "fFeeUnitid", this.form.fFeeunitid + "");
  4173. this.$set(this.form, "fPlannetweight", this.form.fPlannetweight.toFixed(2));
  4174. this.$set(this.form, "fPlangrossweight", this.form.fPlangrossweight.toFixed(2));
  4175. for (let list in this.dataList) {
  4176. this.$set(this.dataList[list], "fBsdate", Date.parse(this.dataList[list].fBsdate));
  4177. }
  4178. this.kqhouseOptions = response.data.warehouseAreas;
  4179. this.warehouseDrList = response.data.warehousebillsfeesDr;
  4180. for (let dr in this.warehouseDrList) {
  4181. this.$set(this.warehouseDrList[dr], "fFeeUnitid", this.warehouseDrList[dr].fFeeunitid + "");
  4182. this.$set(this.warehouseDrList[dr], "fQty", this.warehouseDrList[dr].fQty.toFixed(2));
  4183. this.$set(this.warehouseDrList[dr], "fAmount", this.warehouseDrList[dr].fAmount.toFixed(2));
  4184. }
  4185. this.warehouseCrList = response.data.warehousebillsfeesCr;
  4186. for (let cr in this.warehouseCrList) {
  4187. this.$set(this.warehouseCrList[cr], "fFeeUnitid", this.warehouseCrList[cr].fFeeunitid + "");
  4188. }
  4189. this.userOptions = response.data.sysUser;
  4190. this.open = true;
  4191. this.title = "修改仓入库";
  4192. });
  4193. queryUserVal().then((response)=>{
  4194. this.current = response.user.userName
  4195. })
  4196. },
  4197. // 库存总账多选框
  4198. whgenlegSelectionChange(selection) {
  4199. this.dialogWhgenlegList = selection;
  4200. },
  4201. // 合计
  4202. getSummaries(param) {
  4203. const { columns, data } = param;
  4204. const sums = [];
  4205. var values = [];
  4206. columns.forEach((column, index) => {
  4207. if (index === 0) {
  4208. sums[index] = "";
  4209. return;
  4210. }
  4211. if (column.property === "fPlanvolumn") {
  4212. values = data.map((item) => Number(item["fPlanvolumn"]));
  4213. }
  4214. if (column.property === "fGrossweight") {
  4215. values = data.map((item) => Number(item["fGrossweight"]));
  4216. }
  4217. if (column.property === "fNetweight") {
  4218. values = data.map((item) => Number(item["fNetweight"]));
  4219. }
  4220. if (column.property === "fQty") {
  4221. values = data.map((item) => Number(item["fQty"]));
  4222. }
  4223. if (column.property === "fCntqty") {
  4224. values = data.map((item) => Number(item["fCntqty"]));
  4225. }
  4226. if (
  4227. column.property === "fPlanvolumn" ||
  4228. column.property === "fGrossweight" ||
  4229. column.property === "fNetweight" ||
  4230. column.property === "fQty" ||
  4231. column.property === "fCntqty"
  4232. ) {
  4233. sums[index] = values.reduce((prev, curr) => {
  4234. const value = Number(curr);
  4235. if (!isNaN(value)) {
  4236. if (column.property === "fPlanvolumn") {
  4237. this.fPlanvolumn = prev + curr;
  4238. }
  4239. if (column.property === "fGrossweight") {
  4240. this.fGrossweight = prev + curr;
  4241. }
  4242. if (column.property === "fNetweight") {
  4243. this.fNetweight = prev + curr;
  4244. }
  4245. if (column.property === "fQty") {
  4246. this.fQty = prev + curr;
  4247. this.mum = prev + curr;
  4248. }
  4249. if (column.property === "fCntqty") {
  4250. this.fCntqty = prev + curr;
  4251. }
  4252. return prev + curr;
  4253. } else {
  4254. if (column.property === "fQty") {
  4255. this.fQty = prev;
  4256. this.mum = prev;
  4257. }
  4258. return prev;
  4259. }
  4260. }, 0);
  4261. sums[index] = sums[index].toFixed(2);
  4262. }
  4263. });
  4264. this.sums = sums;
  4265. return sums;
  4266. },
  4267. // 付款合计
  4268. warehouseDrSummaries(param) {
  4269. const { columns, data } = param;
  4270. const sums = [];
  4271. columns.forEach((column, index) => {
  4272. if (index === 0) {
  4273. sums[index] = "合计";
  4274. return;
  4275. }
  4276. const values = data.map((item) => Number(item[column.property]));
  4277. if (
  4278. column.property === "fUnitprice" ||
  4279. column.property === "fAmount" ||
  4280. column.property === "fQty" ||
  4281. column.property === "fQty"
  4282. ) {
  4283. sums[index] = values.reduce((prev, curr) => {
  4284. const value = Number(curr);
  4285. if (!isNaN(value)) {
  4286. return prev + curr;
  4287. } else {
  4288. return prev;
  4289. }
  4290. }, 0);
  4291. sums[index] = sums[index].toFixed(2);
  4292. }
  4293. });
  4294. return sums;
  4295. },
  4296. // 计划废用导入计算
  4297. changeList(row) {
  4298. this.fPlaNnumber = this.form.fPlannetweight / this.form.fPlanqty;
  4299. this.fPlangNumber = this.form.fPlangrossweight / this.form.fPlanqty;
  4300. this.planningList.fPlannetweight = (
  4301. Number(this.planningList.fPlanqty) * Number(this.fPlaNnumber)
  4302. ).toFixed(2);
  4303. this.planningList.fPlangrossweight = (
  4304. Number(this.planningList.fPlanqty) * Number(this.fPlangNumber)
  4305. ).toFixed(2);
  4306. },
  4307. // 数量计算
  4308. changeContractAmt(row) {
  4309. let fQty = 0;
  4310. let fUnitprice = 0;
  4311. if (row.fUnitprice) {
  4312. fUnitprice = row.fUnitprice;
  4313. }
  4314. if (row.fQty) {
  4315. fQty = row.fQty;
  4316. }
  4317. this.$set(row, "fAmount", Number(fUnitprice) * Number(fQty)).toFixed(2);
  4318. },
  4319. changefCorpid(row) {
  4320. this.$set(row, "fSbu", row.fCorpid);
  4321. for (let corp in this.fMblnoOptions) {
  4322. if (row.fCorpid === this.fMblnoOptions[corp].fId) {
  4323. this.$set(
  4324. this.form,
  4325. "fStltypeid",
  4326. this.fMblnoOptions[corp].fStltypeid + ""
  4327. );
  4328. }
  4329. }
  4330. },
  4331. // 品名改变
  4332. changefGoodsid(row) {
  4333. for (let corp in this.goodsOptions) {
  4334. if (row.fGoodsid === this.goodsOptions[corp].fId) {
  4335. this.$set(row, "fGoodsids", this.goodsOptions[corp].fName);
  4336. this.$set(row, "fPackagespecs", this.goodsOptions[corp].fPackagespecs);
  4337. }
  4338. }
  4339. },
  4340. // 变更计价单位
  4341. changeFeeUnit(row) {
  4342. if (!row.fFeeUnitid) {
  4343. return false;
  4344. }
  4345. if (row.fFeeUnitid === "2") {
  4346. this.$set(row, "fQty", (this.fGrossweight/1000).toFixed(2));
  4347. } else if (row.fFeeUnitid === "1") {
  4348. this.$set(row, "fQty", this.fQty.toFixed(2));
  4349. } else if (row.fFeeUnitid === "3") {
  4350. this.$set(row, "fQty", (this.fNetweight/1000).toFixed(2));
  4351. } else {
  4352. this.$set(row, "fQty", 0);
  4353. }
  4354. if (row.fUnitprice) {
  4355. this.$set(
  4356. row,
  4357. "fAmount",
  4358. parseFloat(Number(row.fUnitprice) * Number(row.fQty)).toFixed(2)
  4359. );
  4360. }
  4361. },
  4362. changefBsdate(row) {
  4363. if (this.dataList.length > 0) {
  4364. for (var i = 0; i < this.dataList.length; i++) {
  4365. this.$set(this.dataList[i], "fBsdate", row);
  4366. }
  4367. }
  4368. },
  4369. // 入账
  4370. creditClick() {
  4371. this.$refs['form'].validate((valid) => {
  4372. for (let warehouseCr in this.Printinglist) {
  4373. if(this.form.fFeetunit > 3){
  4374. this.$message.error('请维护主表计费单位为件数、毛重或净重')
  4375. return false
  4376. }
  4377. if (!this.Printinglist[warehouseCr].fQty || this.Printinglist[warehouseCr].fQty === 0) {
  4378. this.$message.error("请维护入库件数");
  4379. return false;
  4380. }
  4381. if (!this.Printinglist[warehouseCr].fNetweight || this.Printinglist[warehouseCr].fNetweight === 0) {
  4382. this.$message.error("请维护入库净重");
  4383. return false;
  4384. }
  4385. if (!this.Printinglist[warehouseCr].fGrossweight || this.Printinglist[warehouseCr].fGrossweight === 0) {
  4386. this.$message.error("请维护入库毛重");
  4387. return false;
  4388. }
  4389. }
  4390. for (let warehouseCr in this.dataListSelection) {
  4391. if (this.dataListSelection[warehouseCr].fBillstatus === 20) {
  4392. this.$message.error('请先卸货')
  4393. return false
  4394. }
  4395. if (this.dataListSelection[warehouseCr].fBillstatus !== 30) {
  4396. this.$message.error('请先打印作业单')
  4397. return false
  4398. }
  4399. if (!this.dataListSelection[warehouseCr].fBusinessType) {
  4400. this.$message.error('请维护业务类型')
  4401. return false
  4402. }
  4403. if (!this.dataListSelection[warehouseCr].fMarks) {
  4404. this.$message.error('请维护业务详情')
  4405. return false
  4406. }
  4407. if (!this.dataListSelection[warehouseCr].fWarehouselocid) {
  4408. this.$message.error('请选择库区')
  4409. return false
  4410. }
  4411. if (!this.dataListSelection[warehouseCr].fGoodsid) {
  4412. this.$message.error('请选择品名')
  4413. return false
  4414. }
  4415. if (!this.dataListSelection[warehouseCr].fGrossweight) {
  4416. this.$message.error('请选择入库毛重')
  4417. return false
  4418. }
  4419. if (!this.dataListSelection[warehouseCr].fNetweight) {
  4420. this.$message.error('请选择入库净重')
  4421. return false
  4422. }
  4423. if (!this.dataListSelection[warehouseCr].fQty) {
  4424. this.$message.error('请选择入库件数')
  4425. return false
  4426. }
  4427. if (!this.dataListSelection[warehouseCr].fDriverName) {
  4428. this.$message.error('请输入司机姓名')
  4429. return false
  4430. }
  4431. }
  4432. if (valid) {
  4433. let formData = new window.FormData()
  4434. formData.append('warehouseBills', JSON.stringify(this.form))
  4435. formData.append('warehousebillsitems', JSON.stringify(this.dataListSelection))
  4436. formData.append('warehousebillsfeesDr', JSON.stringify(this.warehouseDrList))
  4437. formData.append('warehousebillsfeesCr', JSON.stringify(this.warehouseCrList))
  4438. formData.append('tEnclosure', JSON.stringify(this.relevantAttachments))
  4439. formData.append('whgenleg', JSON.stringify(this.relevantAttachments))
  4440. addWhgenleg(formData).then((response) => {
  4441. this.fid = response.data
  4442. this.formBrowseStatus = true
  4443. let warehouseItem = response.data.warehousebillsitems
  4444. for (let item in warehouseItem) {
  4445. for (let li in this.dataList) {
  4446. if (warehouseItem[item].fId === this.dataList[li].fId) {
  4447. this.$set(this.dataList[li], 'fBillstatus', warehouseItem[item].fBillstatus)
  4448. this.$set(this.dataList[li], 'fIsInventory', warehouseItem[item].fIsInventory)
  4449. break
  4450. }
  4451. }
  4452. }
  4453. this.msgSuccess('入账成功')
  4454. this.$refs.checkout.clearSelection()
  4455. this.contrOl = true
  4456. })
  4457. }
  4458. })
  4459. },
  4460. // 打印作业单
  4461. addList() {
  4462. this.$refs["form"].validate((valid) => {
  4463. if (valid) {
  4464. let formData = new window.FormData();
  4465. formData.append("warehouseBills", JSON.stringify(this.form));
  4466. formData.append("warehousebillsitems", JSON.stringify(this.dataListSelection));
  4467. formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
  4468. formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
  4469. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  4470. addJoblist(formData).then((response) => {
  4471. this.formBrowseStatus = true
  4472. let dataSelection = response.data.warehousebillsitems
  4473. for (let li in dataSelection) {
  4474. for (let i in this.dataList) {
  4475. if (dataSelection[li].fId === this.dataList[i].fId && this.dataList[i].fBillstatus === 10) {
  4476. this.$set(this.dataList[i], 'fBillstatus', dataSelection[li].fBillstatus)
  4477. this.$set(this.dataList[i], 'fSerialNumber', dataSelection[li].fSerialNumber)
  4478. break
  4479. }
  4480. }
  4481. }
  4482. this.$refs.checkout.clearSelection()
  4483. })
  4484. }
  4485. });
  4486. },
  4487. // 撤回入账
  4488. withdrawClick() {
  4489. // 撤回入库
  4490. let formData = new window.FormData();
  4491. formData.append("warehouseBills", JSON.stringify(this.form));
  4492. formData.append("warehousebillsitems", JSON.stringify(this.dataWithdrawList));
  4493. formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
  4494. formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
  4495. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  4496. updateCredit(formData).then((response) => {
  4497. this.fid = response.data;
  4498. this.formBrowseStatus = false;
  4499. this.msgSuccess("撤销入账成功");
  4500. for (let li in this.dataWithdrawList) {
  4501. for (let i in this.dataList) {
  4502. if (this.dataWithdrawList[li].fId === this.dataList[i].fId) {
  4503. this.$set(this.dataList[i], "fBillstatus", 10);
  4504. break
  4505. }
  4506. }
  4507. }
  4508. this.$refs.checkout.clearSelection();
  4509. });
  4510. },
  4511. // 仓库发生变化时
  4512. changeWarehouse () {
  4513. for (let ware in this.warehouseOptions) {
  4514. if (this.form.fWarehouseid === this.warehouseOptions[ware].fId) {
  4515. this.$set(this.form, 'fTel', this.warehouseOptions[ware].fTel)
  4516. this.$set(this.form, 'fContacts', this.warehouseOptions[ware].fContacts)
  4517. }
  4518. }
  4519. },
  4520. // 卸货按钮
  4521. discharge() {
  4522. if (this.Printinglist.length > 0) {
  4523. for (let warehouseCr in this.Printinglist) {
  4524. if (this.Printinglist[warehouseCr].fBillstatus === 10) {
  4525. this.$message.error("请先打印作业单");
  4526. return false;
  4527. }
  4528. if (this.Printinglist[warehouseCr].fBillstatus >= 30) {
  4529. this.$message.error("请勿重复卸货");
  4530. return false;
  4531. }
  4532. // if (!this.Printinglist[warehouseCr].fQty || this.Printinglist[warehouseCr].fQty === 0) {
  4533. // this.$message.error("请维护入库件数");
  4534. // return false;
  4535. // }
  4536. // if (!this.Printinglist[warehouseCr].fNetweight || this.Printinglist[warehouseCr].fNetweight === 0) {
  4537. // this.$message.error("请维护入库净重");
  4538. // return false;
  4539. // }
  4540. // if (!this.Printinglist[warehouseCr].fGrossweight || this.Printinglist[warehouseCr].fGrossweight === 0) {
  4541. // this.$message.error("请维护入库毛重");
  4542. // return false;
  4543. // }
  4544. }
  4545. this.$refs["form"].validate((valid) => {
  4546. if (valid) {
  4547. let dataSelection = JSON.parse(JSON.stringify(this.dataListSelection))
  4548. let formData = new window.FormData();
  4549. formData.append("warehouseBills", JSON.stringify(this.form));
  4550. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  4551. formData.append("warehousebillsitems", JSON.stringify(this.dataListSelection));
  4552. formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
  4553. formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
  4554. if (!this.form.fId) {
  4555. this.form.fId = this.fid;
  4556. }
  4557. disChargelist(formData).then((response) => {
  4558. this.dataList = response.data.warehousebillsitems
  4559. for (let li in this.dataList) {
  4560. this.$set(this.dataList[li], "fBsdate", Date.parse(this.dataList[li].fBsdate));
  4561. this.$set(this.dataList[li], "fBusinessType", this.dataList[li].fBusinessType + '')
  4562. }
  4563. this.msgSuccess("卸货成功");
  4564. this.$refs.checkout.clearSelection();
  4565. });
  4566. }
  4567. });
  4568. } else {
  4569. this.$message.error("请选择需要卸货的明细!");
  4570. }
  4571. },
  4572. /** 提交按钮 */
  4573. submitForm(status) {
  4574. this.updateDeduplication()
  4575. if (status === 2) {
  4576. this.preservation();
  4577. } else {
  4578. this.pleaseCheck();
  4579. }
  4580. },
  4581. // 更新主表唛头、品名并去重
  4582. updateDeduplication: function() {
  4583. if (this.dataList.length === 0) {
  4584. return false
  4585. }
  4586. let fMarks = []
  4587. let fGoodsid = []
  4588. for (let li in this.dataList) {
  4589. if (this.dataList[li].fMarks) {
  4590. fMarks.push(this.dataList[li].fMarks)
  4591. }
  4592. fGoodsid.push(this.dataList[li].fGoodsids)
  4593. }
  4594. this.$set(this.form, 'fMarks', Array.from(new Set(fMarks)).join(","))
  4595. this.$set(this.form, 'fProductName', Array.from(new Set(fGoodsid)).join(","))
  4596. },
  4597. //作业类型校验
  4598. educationChange() {
  4599. console.log(this.form.fBusinessType)
  4600. if (this.form.fBusinessType === '1' || this.form.fBusinessType === '2') {
  4601. console.log("111")
  4602. console.log("走这")
  4603. this.isrequired = 1
  4604. this.isrequired_s = 2
  4605. }else if(this.form.fBusinessType === '3' || this.form.fBusinessType === '4'){
  4606. console.log("333")
  4607. this.isrequired_s = 1
  4608. this.isrequired = 2
  4609. }else{
  4610. this.isrequired = 2
  4611. this.isrequired_s = 2
  4612. }
  4613. },
  4614. // 提交保存保存成功
  4615. preservation() {
  4616. this.$refs['form'].validate((valid) => {
  4617. if (valid) {
  4618. this.form.fBillstatus = status
  4619. this.form.fNetweight = this.fNetweight
  4620. this.form.fPlanvolumn = this.fPlanvolumn
  4621. this.form.fGrossweight = this.fGrossweight
  4622. this.form.fQty = this.fQty
  4623. // if (!this.form.fId) {
  4624. // this.form.fId = this.fid
  4625. // }
  4626. // if (!this.form.fBusinessType) {
  4627. // this.$message.error('请选择货物属性!')
  4628. // return false
  4629. // }
  4630. for (let list in this.dataList) {
  4631. if (!this.dataList[list].fBusinessType) {
  4632. this.$message.error('请输入库存明细的货物属性!')
  4633. return false
  4634. }
  4635. }
  4636. let formDatae = new window.FormData()
  4637. // 附件数据
  4638. this.form.fBillingway = this.form.fFeetunit
  4639. console.log(this.form)
  4640. formDatae.append('tWarehouseBills', JSON.stringify(this.form))
  4641. // 库存明细
  4642. formDatae.append('tWarehousebillsitems', JSON.stringify(this.dataList))
  4643. // 附件数据
  4644. formDatae.append('tEnclosure', JSON.stringify(this.relevantAttachments))
  4645. // 费用明细付款
  4646. formDatae.append('tWarehousebillsfeesCr', JSON.stringify(this.warehouseCrList))
  4647. // 收款
  4648. formDatae.append('tWarehousebillsfeesDr', JSON.stringify(this.warehouseDrList))
  4649. console.log(this.form)
  4650. addWarehousebills(formDatae).then((response) => {
  4651. this.msgSuccess('保存成功')
  4652. this.form = response.data.warehouseBills
  4653. this.$set(this.form, 'fEta', Date.parse(this.form.fEta))
  4654. this.$set(this.form, 'fStltypeid', this.form.fStltypeid + '')
  4655. this.$set(this.form, 'fBsdate', Date.parse(this.form.fBsdate))
  4656. this.$set(this.form, 'fTrademodeid', this.form.fTrademodeid + '')
  4657. this.$set(this.form, 'createTime', Date.parse(this.form.createTime))
  4658. this.dataList = response.data.warehousebillsitems
  4659. for (let list in this.dataList) {
  4660. this.$set(this.dataList[list], 'fBsdate', Date.parse(this.dataList[list].fBsdate))
  4661. this.$set(this.dataList[list], 'fBusinessType', this.dataList[list].fBusinessType + '')
  4662. }
  4663. this.fid = response.data.warehouseBills.fId
  4664. this.getList()
  4665. })
  4666. }
  4667. })
  4668. },
  4669. // 请核成功
  4670. pleaseCheck() {
  4671. this.updateDeduplication()
  4672. this.$refs['form'].validate((valid) => {
  4673. if (this.dataList.length === 0) {
  4674. this.$message.error('请新增库存明细!')
  4675. return false
  4676. }
  4677. if (!this.form.fBusinessType) {
  4678. this.$message.error('请选择货物属性!')
  4679. return false
  4680. }
  4681. for (let list in this.dataList) {
  4682. if (!this.dataList[list].fGoodsid) {
  4683. this.$message.error('请输入品名!')
  4684. return false
  4685. }
  4686. if (!this.dataList[list].fWarehouselocid) {
  4687. this.$message.error('请输入库区!')
  4688. return false
  4689. }
  4690. if (this.dataList[list].fBillstatus !== 40) {
  4691. this.$message.error('请入账库存明细!')
  4692. return false
  4693. }
  4694. }
  4695. if (valid) {
  4696. this.form.fBillstatus = status
  4697. this.form.fNetweight = this.fNetweight
  4698. this.form.fPlanvolumn = this.fPlanvolumn
  4699. this.form.fGrossweight = this.fGrossweight
  4700. this.form.fQty = this.fQty
  4701. if (!this.form.fId) {
  4702. this.form.fId = this.fid
  4703. }
  4704. let formData = new window.FormData()
  4705. // 附件数据
  4706. this.form.fBillingway = this.form.fFeetunit
  4707. formData.append('tWarehouseBills', JSON.stringify(this.form))
  4708. // 库存明细
  4709. formData.append('tWarehousebillsitems', JSON.stringify(this.dataList))
  4710. // 附件数据
  4711. formData.append('tEnclosure', JSON.stringify(this.relevantAttachments))
  4712. // 费用明细付款
  4713. formData.append('tWarehousebillsfeesCr', JSON.stringify(this.warehouseCrList))
  4714. // 收款
  4715. formData.append('tWarehousebillsfeesDr', JSON.stringify(this.warehouseDrList))
  4716. addWarehouse(formData).then((response) => {
  4717. this.msgSuccess('提交成功')
  4718. this.open = false
  4719. this.getList()
  4720. this.reset()
  4721. })
  4722. }
  4723. })
  4724. },
  4725. /** 删除按钮操作 */
  4726. handleDelete(row) {
  4727. const fIds = row.fId || this.ids
  4728. this.$confirm(
  4729. '是否确认删除仓库主(出入库)编号为"' + fIds + '"的数据项?',
  4730. '警告',
  4731. {
  4732. confirmButtonText: '确定',
  4733. cancelButtonText: '取消',
  4734. type: 'warning'
  4735. }
  4736. )
  4737. .then(function() {
  4738. return delWarehousebills(fIds)
  4739. })
  4740. .then(() => {
  4741. this.getList()
  4742. this.msgSuccess('删除成功')
  4743. })
  4744. },
  4745. /** 导出按钮操作 */
  4746. handleExport() {
  4747. const queryParams = this.queryParams
  4748. this.$confirm('是否确认导出所有仓库主(出入库)数据项?', '警告', {
  4749. confirmButtonText: '确定',
  4750. cancelButtonText: '取消',
  4751. type: 'warning'
  4752. }).then(function() {
  4753. return exportWarehousebills(queryParams)
  4754. }).then((response) => {
  4755. this.download(response.msg)
  4756. })
  4757. },
  4758. wDeleteRow(index, rows) {
  4759. rows.splice(index, 1)
  4760. let sum = 0
  4761. for (let li in this.dataList) {
  4762. if (this.dataList[li].fQty) {
  4763. sum = Number(sum) + Number(this.dataList[li].fQty)
  4764. }
  4765. if (this.dataList[li].fBillstatus > 10) {
  4766. this.formBrowseStatus = true
  4767. }
  4768. }
  4769. this.mum = sum
  4770. if (this.dataList.length === 0) {
  4771. this.formBrowseStatus = false
  4772. this.contrOl = false
  4773. return false
  4774. }
  4775. },
  4776. // 查看审批流
  4777. getDataList() {
  4778. this.addOrUpdateVisible = false
  4779. },
  4780. returnData() {
  4781. this.addOrUpdateVisib = false
  4782. this.open = false
  4783. this.cancelTwo()
  4784. },
  4785. addOrUpdateHandle(form) {
  4786. this.addOrUpdateVisible = true
  4787. let id = '448'
  4788. let actId = '110'
  4789. this.$nextTick(() => {
  4790. this.$refs.addOrUpdate.init(form.fId, actId)
  4791. })
  4792. },
  4793. addOrUpdateHand(form) {
  4794. this.addOrUpdateVisib = true;
  4795. this.$nextTick(() => {
  4796. this.$refs.ApprovalComments.init(form.fId, 110);
  4797. });
  4798. },
  4799. /* 远程模糊查询用户 */
  4800. corpsRemoteMethod(name) {
  4801. if (name == null || name === "") {
  4802. return false;
  4803. }
  4804. let queryParams = { pageNum: 1, pageSize: 10, fName: name, type: 1 };
  4805. listCorps(queryParams).then((response) => {
  4806. this.fMblnoOptions = response.rows;
  4807. this.KHblnoOptions = response.rows;
  4808. });
  4809. },
  4810. /* 远程模糊查询质押银行 */
  4811. corpsRemoteMethodd(name) {
  4812. if (name == null || name === "") {
  4813. return false;
  4814. }
  4815. let queryParams = { pageNum: 1, pageSize: 10, fName: name, type: 5 };
  4816. listCorps(queryParams).then((response) => {
  4817. this.Pledgebank = response.rows;
  4818. });
  4819. },
  4820. /* 弹窗获取所有商品信息 */
  4821. goodsRemoteMethod() {
  4822. let queryParams = { pageNum: 1, pageSize: 10, fStatus: 0, delFlag: 0 };
  4823. listGoods(queryParams).then((response) => {
  4824. this.goodsOptions = response.rows;
  4825. });
  4826. },
  4827. /* 获取所有仓库信息 */
  4828. warehousesssMethod() {
  4829. let queryParams = { pageNum: 1, pageSize: 10, fStatus: 0, delFlag: 0 };
  4830. listWarehousesss(queryParams).then((response) => {
  4831. this.warehouseOptions = response.rows;
  4832. });
  4833. },
  4834. // 选择费用信息时获取计价单位
  4835. changeFeeId (row) {
  4836. for (let li in this.fWbuOptions) {
  4837. if (row.fFeeid === this.fWbuOptions[li].fId) {
  4838. this.$set(row, 'fFeeUnitid', this.fWbuOptions[li].fFeeunitid + '')
  4839. this.changeFeeUnit(row)
  4840. break
  4841. }
  4842. }
  4843. },
  4844. // 远程模糊查询费用名称
  4845. fWRemoteMethod(name) {
  4846. if (name == null || name === "") {
  4847. return false;
  4848. }
  4849. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  4850. listFees(queryParams).then((response) => {
  4851. this.fWbuOptions = response.rows;
  4852. });
  4853. },
  4854. /* 远程模糊查询劳务公司 */
  4855. flabourRemoteMethod(name) {
  4856. if (name == null || name === "") {
  4857. return false;
  4858. }
  4859. let queryParams = { pageNum: 1, pageSize: 10, fName: name, fTypeid: 6};
  4860. listCorps(queryParams).then((response) => {
  4861. this.fSbuOptions = response.rows;
  4862. });
  4863. },
  4864. /* 远程模糊查询车队 */
  4865. fleetRemoteMethod(name) {
  4866. if (name == null || name === "") {
  4867. return false;
  4868. }
  4869. let queryParams = { pageNum: 1, pageSize: 10, fName: name, fTypeid: 2};
  4870. listCorps(queryParams).then((response) => {
  4871. this.fSbuOptions = response.rows;
  4872. });
  4873. },
  4874. /* 远程模糊查询经营单位 */
  4875. fSbuRemoteMethod(name) {
  4876. if (name == null || name === "") {
  4877. return false;
  4878. }
  4879. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  4880. listCorps(queryParams).then((response) => {
  4881. this.fSbuOptions = response.rows;
  4882. });
  4883. },
  4884. /* 远程模糊查询仓库 */
  4885. warehouseRemoteMethod(name) {
  4886. if (name == null || name === "") {
  4887. return false;
  4888. }
  4889. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  4890. listWarehouse(queryParams).then((response) => {
  4891. this.warehouseOptions = response.rows;
  4892. });
  4893. },
  4894. /* 远程模糊查询库区 */
  4895. kqhouseRemoteMethod(name) {
  4896. if (name == null || name === "") {
  4897. return false;
  4898. }
  4899. if (!this.form.fWarehouseid) {
  4900. this.$message.error("请输入仓库!");
  4901. return false;
  4902. }
  4903. let queryParams = {
  4904. pageNum: 1,
  4905. pageSize: 10,
  4906. fWarehouseid: this.form.fWarehouseid,
  4907. fName: name,
  4908. };
  4909. listArea(queryParams).then((response) => {
  4910. this.kqhouseOptions = response.rows;
  4911. });
  4912. },
  4913. /* 远程模糊查询操作用户 */
  4914. userRemoteMethod(name) {
  4915. if (name == null || name === "") {
  4916. return false;
  4917. }
  4918. let queryParams = { pageNum: 1, pageSize: 10, userName: name };
  4919. listUser(queryParams).then((response) => {
  4920. this.userOptions = response.rows;
  4921. });
  4922. },
  4923. },
  4924. };
  4925. </script>
  4926. <style lang="scss">
  4927. .juzhong > th {
  4928. text-align: center;
  4929. }
  4930. .biaoge > tr > td {
  4931. height: 50px;
  4932. text-align: center;
  4933. border-right: 1px solid #dfe6ec !important;
  4934. order-bottom: 1px solid #dfe6ec !important;
  4935. border-bottom: 1px solid #dfe6ec !important;
  4936. }
  4937. .el-table thead th {
  4938. background: #1890ff;
  4939. color: #fff;
  4940. }
  4941. .upload-demo {
  4942. margin-left: 50px;
  4943. }
  4944. .el-form-item {
  4945. margin-bottom: 5px !important;
  4946. }
  4947. .el-form-item__label {
  4948. font-size: 12px !important;
  4949. }
  4950. .el-collapse-item__header{
  4951. font-size: 16px;
  4952. font-weight: bolder;
  4953. padding-left: 5px;
  4954. }
  4955. .el-icon-s-home,.el-icon-s-order,.el-icon-circle-plus,.el-icon-remove{
  4956. padding-right: 5px;
  4957. }
  4958. </style>