index.vue 155 KB

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