index.vue 170 KB

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