index.vue 145 KB

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