index.vue 127 KB

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