AddOrUpdate.vue 148 KB

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