index.vue 152 KB

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