index.vue 145 KB

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