index.vue 169 KB

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