index.vue 170 KB

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