index.vue 175 KB

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