index.vue 125 KB

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