index.vue 170 KB

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