index.vue 125 KB

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