index.vue 145 KB

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