index.vue 145 KB

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