index.vue 168 KB

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