index.vue 172 KB

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