index.vue 151 KB

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