index.vue 146 KB

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