index.vue 89 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875
  1. <template>
  2. <div class="app-container">
  3. <el-form
  4. :model="queryParams"
  5. ref="queryForm"
  6. :inline="true"
  7. v-show="showSearch"
  8. label-width="88px"
  9. >
  10. <el-form-item label="业务编号" prop="fbillno">
  11. <el-input
  12. v-model="queryParams.fBillno"
  13. placeholder="请输入业务编号"
  14. clearable
  15. size="small"
  16. @keyup.enter.native="handleQuery"
  17. />
  18. </el-form-item>
  19. <el-form-item label="制单人" prop="createBy">
  20. <el-select
  21. v-model="queryParams.createBy"
  22. filterable
  23. remote
  24. clearable
  25. style="width: 250px"
  26. :remote-method="userRemoteMethod"
  27. placeholder="请选择制单人"
  28. >
  29. <el-option
  30. v-for="(dict, index) in userOptions"
  31. :key="index.userName"
  32. :label="dict.nickName"
  33. :value="dict.userName"
  34. ></el-option>
  35. </el-select>
  36. </el-form-item>
  37. <el-form-item label="出库日期" prop="timeInterval">
  38. <el-date-picker
  39. v-model="queryParams.timeInterval"
  40. type="daterange"
  41. value-format="yyyy-MM-dd"
  42. clearable
  43. range-separator="至"
  44. start-placeholder="开始日期"
  45. end-placeholder="结束日期"
  46. @keyup.enter.native="handleQuery">
  47. </el-date-picker>
  48. </el-form-item>
  49. <el-form-item label="贸易方式" prop="fTrademodeid">
  50. <el-select
  51. v-model="queryParams.fTrademodeid"
  52. placeholder="请选择贸易方式"
  53. clearable
  54. style="width: 250px"
  55. @keyup.enter.native="handleQuery"
  56. >
  57. <el-option
  58. v-for="(dict, index) in fTrademodeidOptions"
  59. :key="index.dictValue"
  60. :label="dict.dictLabel"
  61. :value="dict.dictValue"
  62. />
  63. </el-select>
  64. </el-form-item>
  65. <el-form-item label="货权方" prop="fCorpid">
  66. <el-select
  67. v-model="queryParams.fCorpid"
  68. filterable
  69. remote
  70. clearable
  71. style="width: 250px"
  72. @keyup.enter.native="handleQuery"
  73. :remote-method="corpsRemoteMethod"
  74. placeholder="请选择货权方"
  75. >
  76. <el-option
  77. v-for="(dict, index) in fMblnoOptions"
  78. :key="index.fId"
  79. :label="dict.fName"
  80. :value="dict.fId"
  81. ></el-option>
  82. </el-select>
  83. </el-form-item>
  84. <el-form-item label="提单号" prop="fmblno">
  85. <el-input
  86. v-model="queryParams.fMblno"
  87. placeholder="请输入提单号"
  88. clearable
  89. size="small"
  90. @keyup.enter.native="handleQuery"
  91. />
  92. </el-form-item>
  93. <el-form-item label="经营单位" prop="fsbu">
  94. <el-select
  95. v-model="queryParams.fSbu"
  96. filterable
  97. remote
  98. clearable
  99. :remote-method="fSbuRemoteMethod"
  100. @keyup.enter.native="handleQuery"
  101. style="width: 250px"
  102. placeholder="请选择经营单位"
  103. >
  104. <el-option
  105. v-for="(dict, index) in fSbuOptions"
  106. :key="index.fId"
  107. :label="dict.fName"
  108. :value="dict.fId"
  109. ></el-option>
  110. </el-select>
  111. </el-form-item>
  112. <el-form-item label="货物名称" prop="fgoodsid">
  113. <el-select
  114. v-model="queryParams.fGoodsid"
  115. filterable
  116. remote
  117. clearable
  118. :remote-method="goodsRemoteMethod"
  119. @keyup.enter.native="handleQuery"
  120. placeholder="请选择货物名称"
  121. >
  122. <el-option
  123. v-for="(dict, index) in goodsOptions"
  124. :key="index.fId"
  125. :label="dict.fName"
  126. :value="dict.fId"
  127. ></el-option>
  128. </el-select>
  129. </el-form-item>
  130. <el-form-item label="仓库" prop="fwarehouseid">
  131. <el-select
  132. v-model="queryParams.fWarehouseid"
  133. filterable
  134. :disabled="browseStatus"
  135. remote
  136. clearable
  137. style="width: 250px"
  138. :remote-method="warehouseRemoteMethod"
  139. @keyup.enter.native="handleQuery"
  140. placeholder="请选择仓库"
  141. >
  142. <el-option
  143. v-for="(dict, index) in warehouseOptions"
  144. :key="index.fId"
  145. :label="dict.fName"
  146. :value="dict.fId"
  147. ></el-option>
  148. </el-select>
  149. </el-form-item>
  150. <el-form-item>
  151. <el-button
  152. type="cyan"
  153. icon="el-icon-search"
  154. size="mini"
  155. @click="handleQuery"
  156. >搜索
  157. </el-button>
  158. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  159. >重置
  160. </el-button>
  161. </el-form-item>
  162. </el-form>
  163. <el-row :gutter="10" class="mb8">
  164. <el-col :span="1.5">
  165. <el-button
  166. type="primary"
  167. icon="el-icon-plus"
  168. size="mini"
  169. @click="handleAdd(false)"
  170. v-hasPermi="['warehouseBusiness:warehousebills:add']"
  171. >新增
  172. </el-button>
  173. </el-col>
  174. <el-col :span="1.5">
  175. <el-button
  176. type="success"
  177. icon="el-icon-edit"
  178. size="mini"
  179. :disabled="single"
  180. @click="handleUpdate"
  181. v-hasPermi="['warehouseBusiness:warehousebills:edit']"
  182. >修改
  183. </el-button>
  184. </el-col>
  185. <el-col :span="1.5">
  186. <el-button
  187. type="danger"
  188. icon="el-icon-delete"
  189. size="mini"
  190. :disabled="multiple"
  191. @click="handleDelete"
  192. v-hasPermi="['warehouseBusiness:warehousebills:remove']"
  193. >删除
  194. </el-button>
  195. </el-col>
  196. <el-col :span="1.5">
  197. <el-button
  198. type="warning"
  199. icon="el-icon-download"
  200. size="mini"
  201. @click="handleExport"
  202. v-hasPermi="['warehouseBusiness:warehousebills:export']"
  203. >导出
  204. </el-button>
  205. </el-col>
  206. <right-toolbar
  207. :showSearch.sync="showSearch"
  208. @queryTable="getList"
  209. ></right-toolbar>
  210. </el-row>
  211. <el-table
  212. v-loading="loading"
  213. :data="warehousebillsList"
  214. @selection-change="handleSelectionChange"
  215. >
  216. <el-table-column type="selection" width="55" align="center" />
  217. <el-table-column type="index" label="行号" align="center" />
  218. <el-table-column label="货权方" align="center" prop="fCorpid" />
  219. <el-table-column label="提单号" align="center" prop="fMblno" />
  220. <el-table-column label="经营单位" align="center" prop="fSbu" />
  221. <el-table-column
  222. label="出库日期"
  223. align="center"
  224. prop="createTime"
  225. width="180"
  226. ><template slot-scope="scope">
  227. <span>{{ parseTime(scope.row.fBsdate, "{y}-{m}-{d}") }}</span>
  228. </template>
  229. </el-table-column>
  230. <el-table-column
  231. label="贸易方式"
  232. align="center"
  233. prop="fTrademodeid"
  234. :formatter="fTrademodeidFormat"
  235. />
  236. <el-table-column label="仓库" align="center" prop="fWarehouseid" />
  237. <el-table-column label="出库件数" align="center" prop="fQty" />
  238. <!-- <el-table-column label="入库毛重" align="center" prop="fGrossweight"/>-->
  239. <!-- <el-table-column label="货转客户名称" align="center" prop="fTocorpid" /> -->
  240. <el-table-column label="出库毛重" align="center" prop="fGrossweight" />
  241. <el-table-column label="净重" align="center" prop="fNetweight" />
  242. <el-table-column
  243. label="操作"
  244. align="center"
  245. class-name="small-padding fixed-width"
  246. width="100"
  247. >
  248. <template slot-scope="scope">
  249. <el-button
  250. size="mini"
  251. type="text"
  252. icon="el-icon-edit"
  253. @click="handleUpdate(scope.row, true)"
  254. v-hasPermi="['warehouseBusiness:warehousebills:edit']"
  255. >查看
  256. </el-button>
  257. <el-button
  258. size="mini"
  259. type="text"
  260. icon="el-icon-edit"
  261. @click="handleUpdate(scope.row, false)"
  262. v-hasPermi="['warehouseBusiness:warehousebills:edit']"
  263. >修改
  264. </el-button>
  265. <el-button
  266. size="mini"
  267. type="text"
  268. icon="el-icon-delete"
  269. v-if="scope.row.fBillstatus !== '6'"
  270. @click="handleDelete(scope.row)"
  271. v-hasPermi="['warehouseBusiness:warehousebills:remove']"
  272. >删除
  273. </el-button>
  274. </template>
  275. </el-table-column>
  276. </el-table>
  277. <pagination
  278. v-show="total > 0"
  279. :total="total"
  280. :page.sync="queryParams.pageNum"
  281. :limit.sync="queryParams.pageSize"
  282. @pagination="getList"
  283. />
  284. <!-- 添加或修改仓库主(出入库)对话框 -->
  285. <el-dialog
  286. :title="title"
  287. :visible.sync="open"
  288. :close-on-click-modal="false"
  289. width="80%"
  290. append-to-body
  291. >
  292. <el-form
  293. ref="form"
  294. :model="form"
  295. :rules="rules"
  296. label-width="120px"
  297. >
  298. <el-row>
  299. <el-col :span="8">
  300. <el-form-item label="原货权方" prop="fCorpid">
  301. <el-select
  302. v-model="form.fCorpid"
  303. filterable
  304. remote
  305. :disabled="browseStatus"
  306. style="width: 250px"
  307. :remote-method="corpsRemoteMethod"
  308. placeholder="请选择原货权方"
  309. >
  310. <el-option
  311. v-for="(dict,index) in fMblnoOptions"
  312. :key="index.fId"
  313. :label="dict.fName"
  314. :value="dict.fId"
  315. ></el-option>
  316. </el-select>
  317. </el-form-item>
  318. </el-col>
  319. <el-col :span="8">
  320. <el-form-item label="结算方式" prop="fstltypeid">
  321. <el-select
  322. v-model="form.fStltypeid"
  323. placeholder="请选择结算方式"
  324. :disabled="browseStatus"
  325. clearable
  326. style="width: 250px"
  327. >
  328. <el-option
  329. v-for="(dict,index) in fStltypeOptions"
  330. :key="index.dictValue"
  331. :label="dict.dictLabel"
  332. :value="dict.dictValue"
  333. />
  334. </el-select>
  335. </el-form-item>
  336. </el-col>
  337. <el-col :span="8">
  338. <el-form-item label="提单号" prop="fMblno">
  339. <el-input
  340. v-model="form.fMblno"
  341. style="width: 250px"
  342. :disabled="browseStatus"
  343. placeholder="手工输入"
  344. />
  345. </el-form-item>
  346. </el-col>
  347. </el-row>
  348. <el-row>
  349. <el-col :span="8">
  350. <el-form-item label="业务日期" prop="fBsdate">
  351. <el-date-picker
  352. v-model="form.fBsdate"
  353. style="width: 250px"
  354. type="date"
  355. :disabled="browseStatus"
  356. @change="changefBsdate"
  357. value-format="timestamp"
  358. placeholder="业务日期"
  359. >
  360. </el-date-picker>
  361. </el-form-item>
  362. </el-col>
  363. <el-col :span="8">
  364. <el-form-item label="仓管员" prop="fStorekeeper">
  365. <el-select
  366. v-model="form.fStorekeeper"
  367. filterable
  368. remote
  369. :disabled="browseStatus"
  370. style="width: 250px"
  371. :remote-method="userRemoteMethod"
  372. placeholder="请选择仓管员"
  373. >
  374. <el-option
  375. v-for="dict in userOptions"
  376. :key="dict.userName"
  377. :label="dict.nickName"
  378. :value="dict.userName"
  379. ></el-option>
  380. </el-select>
  381. </el-form-item>
  382. </el-col>
  383. <el-col :span="8">
  384. <el-form-item label="仓库" prop="fWarehouseid">
  385. <el-select
  386. v-model="form.fWarehouseid"
  387. filterable
  388. remote
  389. :disabled="browseStatus"
  390. style="width: 250px"
  391. :remote-method="warehouseRemoteMethod"
  392. placeholder="请选择仓库"
  393. >
  394. <el-option
  395. v-for="(dict,index) in warehouseOptions"
  396. :key="index.fId"
  397. :label="dict.fName"
  398. :value="dict.fId"
  399. ></el-option>
  400. </el-select>
  401. </el-form-item>
  402. </el-col>
  403. </el-row>
  404. <el-row>
  405. <el-col :span="8">
  406. <el-form-item label="存货编号" prop="fBscorpno">
  407. <el-input
  408. disabled
  409. v-model="form.fBscorpno"
  410. style="width: 250px"
  411. laceholder="存货编号"
  412. />
  413. </el-form-item>
  414. </el-col>
  415. <el-col :span="8">
  416. <el-form-item label="破损" prop="fifdamage">
  417. <el-select
  418. v-model="form.fIfdamage"
  419. placeholder="请选择是否破损"
  420. :disabled="browseStatus"
  421. clearable
  422. style="width: 250px"
  423. >
  424. <el-option
  425. v-for="dict in fIfdamageOptions"
  426. :key="dict.dictValue"
  427. :label="dict.dictLabel"
  428. :value="dict.dictValue"
  429. />
  430. </el-select>
  431. </el-form-item>
  432. </el-col>
  433. <el-col :span="8">
  434. <el-form-item label="过磅" prop="fifweigh">
  435. <el-select
  436. v-model="form.fIfweigh"
  437. placeholder="请选择是否过磅"
  438. :disabled="browseStatus"
  439. clearable
  440. style="width: 250px"
  441. >
  442. <el-option
  443. v-for="dict in fIfweighOptions"
  444. :key="dict.dictValue"
  445. :label="dict.dictLabel"
  446. :value="dict.dictValue"
  447. />
  448. </el-select>
  449. </el-form-item>
  450. </el-col>
  451. </el-row>
  452. <el-row>
  453. <el-col :span="8">
  454. <el-form-item label="质押" prop="fifpledge">
  455. <el-select
  456. v-model="form.fIfpledge"
  457. placeholder="请选择是否过磅"
  458. :disabled="browseStatus"
  459. clearable
  460. style="width: 250px"
  461. >
  462. <el-option
  463. v-for="dict in fIfpledgeOptions"
  464. :key="dict.dictValue"
  465. :label="dict.dictLabel"
  466. :value="dict.dictValue"
  467. />
  468. </el-select>
  469. </el-form-item>
  470. </el-col>
  471. <el-col :span="8">
  472. <el-form-item label="质押银行" prop="fbankcorpid">
  473. <el-input
  474. v-model="form.fBankcorpid"
  475. :disabled="browseStatus"
  476. laceholder="质押银行"
  477. style="width: 250px"
  478. />
  479. </el-form-item>
  480. </el-col>
  481. <el-col :span="8">
  482. <el-form-item label="计费单位" prop="ffeetunit">
  483. <el-select
  484. v-model="form.fFeetunit"
  485. placeholder="请选择计费单位"
  486. :disabled="browseStatus"
  487. clearable
  488. style="width: 250px"
  489. >
  490. <el-option
  491. v-for="dict in fFeetunitOptions"
  492. :key="dict.dictValue"
  493. :label="dict.dictLabel"
  494. :value="dict.dictValue"
  495. />
  496. </el-select>
  497. </el-form-item>
  498. </el-col>
  499. </el-row>
  500. <el-row>
  501. <el-form-item label="备注" prop="remark">
  502. <el-input
  503. style="width: 100%"
  504. v-model="form.remark"
  505. :disabled="browseStatus"
  506. type="textarea"
  507. placeholder="请输入内容"
  508. />
  509. </el-form-item>
  510. </el-row>
  511. <!--点击展开-->
  512. <el-button
  513. @click="
  514. detailsHidden ? (detailsHidden = false) : (detailsHidden = true)
  515. "
  516. >展开</el-button
  517. >
  518. <div v-if="detailsHidden">
  519. <el-row style="margin-top: 30px">
  520. <el-col :span="8">
  521. <el-form-item label="仓库联系人" prop="fContacts">
  522. <el-input
  523. v-model="form.fContacts"
  524. style="width: 250px"
  525. placeholder="仓库联系人"
  526. />
  527. </el-form-item>
  528. </el-col>
  529. <el-col :span="8">
  530. <el-form-item label="仓库电话" prop="ftel">
  531. <el-input
  532. v-model="form.fTel"
  533. :disabled="browseStatus"
  534. style="width: 250px"
  535. placeholder="请输仓库入电话"
  536. />
  537. </el-form-item>
  538. </el-col>
  539. <el-col :span="8">
  540. <el-form-item label="船名航次" prop="fvslvoy">
  541. <el-input
  542. v-model="form.fVslvoy"
  543. :disabled="browseStatus"
  544. style="width: 250px"
  545. placeholder="船名航次"
  546. />
  547. </el-form-item>
  548. </el-col>
  549. </el-row>
  550. <el-row>
  551. <el-col :span="8">
  552. <el-form-item label="到港日期" prop="feta">
  553. <el-date-picker
  554. v-model="form.fEta"
  555. style="width: 250px"
  556. type="date"
  557. :disabled="browseStatus"
  558. value-format="timestamp"
  559. placeholder="到港日期"
  560. >
  561. </el-date-picker>
  562. </el-form-item>
  563. </el-col>
  564. <el-col :span="8">
  565. <el-form-item label="报关单号" prop="fcustomno">
  566. <el-input
  567. v-model="form.fCustomno"
  568. style="width: 250px"
  569. :disabled="browseStatus"
  570. laceholder="报关单号"
  571. />
  572. </el-form-item>
  573. </el-col>
  574. <el-col :span="8">
  575. <el-form-item label="经营单位" prop="fSbu">
  576. <el-select
  577. v-model="form.fSbu"
  578. filterable
  579. remote
  580. :disabled="browseStatus"
  581. :remote-method="fSbuRemoteMethod"
  582. style="width: 250px"
  583. placeholder="请选择经营单位"
  584. >
  585. <el-option
  586. v-for="(dict,index) in fSbuOptions"
  587. :key="index.fId"
  588. :label="dict.fName"
  589. :value="dict.fId"
  590. ></el-option>
  591. </el-select>
  592. </el-form-item>
  593. </el-col>
  594. </el-row>
  595. <el-row>
  596. <el-col :span="8">
  597. <el-form-item label="单据编号" prop="foriginalbillno">
  598. <el-input
  599. v-model="form.fOriginalbillno"
  600. style="width: 250px"
  601. :disabled="browseStatus"
  602. placeholder="单据编号"
  603. />
  604. </el-form-item>
  605. </el-col>
  606. <el-col :span="8">
  607. <el-form-item label="贸易方式" prop="fTrademodeid">
  608. <el-select
  609. v-model="form.fTrademodeid"
  610. placeholder="请选择贸易方式"
  611. :disabled="browseStatus"
  612. clearable
  613. style="width: 250px"
  614. >
  615. <el-option
  616. v-for="dict in fTrademodeidOptions"
  617. :key="dict.dictValue"
  618. :label="dict.dictLabel"
  619. :value="dict.dictValue"
  620. />
  621. </el-select>
  622. </el-form-item>
  623. </el-col>
  624. <el-col :span="8">
  625. <el-form-item label="制单人" prop="createBy">
  626. <el-input
  627. disabled
  628. v-model="form.createBy"
  629. style="width: 250px"
  630. placeholder="制单人"
  631. />
  632. </el-form-item>
  633. </el-col>
  634. </el-row>
  635. <el-row>
  636. <el-col :span="8">
  637. <el-form-item label="制单部门" prop="fDeptid">
  638. <el-select
  639. v-model="form.fDeptid"
  640. filterable
  641. disabled
  642. style="width: 250px"
  643. remote
  644. >
  645. <el-option
  646. v-for="dict in deptOptions"
  647. :key="dict.deptId"
  648. :label="dict.deptName"
  649. :value="dict.deptId"
  650. ></el-option>
  651. </el-select>
  652. </el-form-item>
  653. </el-col>
  654. <el-col :span="8">
  655. <el-form-item disabled label="制单日期" prop="fbilldate">
  656. <el-date-picker
  657. v-model="form.createTime"
  658. size="large"
  659. type="date"
  660. disabled
  661. value-format="timestamp"
  662. placeholder="制单日期"
  663. >
  664. </el-date-picker>
  665. </el-form-item>
  666. </el-col>
  667. <el-col :span="8">
  668. <el-form-item label="唛头" prop="fbarks">
  669. <el-input
  670. v-model="form.fMarks"
  671. style="width: 250px"
  672. :disabled="browseStatus"
  673. placeholder="唛头"
  674. />
  675. </el-form-item>
  676. </el-col>
  677. </el-row>
  678. </div>
  679. </el-form>
  680. <div class="dialogTableTitle flex a-center jlr">
  681. <h2>库存明细</h2>
  682. <el-button :disabled="browseStatus" @click.prevent="addRelevant()"
  683. >添加
  684. </el-button>
  685. </div>
  686. <el-table
  687. :data="dataList"
  688. ref="table"
  689. tooltip-effect="dark"
  690. border
  691. stripe
  692. :summary-method="getSummaries"
  693. show-summary
  694. >
  695. <el-table-column label="序号" type="index" width="80">
  696. </el-table-column>
  697. <el-table-column
  698. prop="fMblno"
  699. header-align="center"
  700. align="center"
  701. width="140px"
  702. label="提单号"
  703. >
  704. <template slot-scope="scope">
  705. <el-input
  706. disabled
  707. v-model="scope.row.fMblno"
  708. style="width: 250px"
  709. placeholder="手工输入"
  710. />
  711. </template>
  712. </el-table-column>
  713. <el-table-column
  714. prop="fGoodsid"
  715. header-align="center"
  716. align="center"
  717. width="140px"
  718. label="品名"
  719. >
  720. <template slot-scope="scope">
  721. <el-select
  722. v-model="scope.row.fGoodsids"
  723. filterable
  724. disabled
  725. remote
  726. :remote-method="goodsRemoteMethod"
  727. placeholder="请选择品名"
  728. >
  729. <el-option
  730. v-for="(dict,index) in goodsOptions"
  731. :key="index.fId"
  732. :label="dict.fName"
  733. :value="dict.fId"
  734. ></el-option>
  735. </el-select>
  736. </template>
  737. </el-table-column>
  738. <el-table-column
  739. prop="fcntrtype"
  740. header-align="center"
  741. align="center"
  742. width="140px"
  743. label="箱型"
  744. >
  745. <template slot-scope="scope">
  746. <el-input
  747. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  748. v-model="scope.row.fCntrtype"
  749. :disabled="browseStatus"
  750. placeholder="箱型"
  751. show-word-limit
  752. />
  753. </template>
  754. </el-table-column>
  755. <el-table-column
  756. prop="fCntqty"
  757. header-align="center"
  758. align="center"
  759. width="140px"
  760. label="箱量"
  761. >
  762. <template slot-scope="scope">
  763. <el-input
  764. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  765. v-model="scope.row.fCntqty"
  766. placeholder="箱量"
  767. :disabled="browseStatus"
  768. show-word-limit
  769. />
  770. </template>
  771. </el-table-column>
  772. <el-table-column
  773. prop="fQtyblc"
  774. header-align="center"
  775. align="center"
  776. width="180px"
  777. label="当前库存"
  778. >
  779. </el-table-column>
  780. <el-table-column
  781. prop="fgrossweight"
  782. header-align="center"
  783. width="180px"
  784. align="center"
  785. label="出库毛重"
  786. >
  787. <template slot-scope="scope">
  788. <el-input
  789. :disabled="browseStatus"
  790. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  791. v-model="scope.row.fGrossweight"
  792. placeholder="出库毛重"
  793. show-word-limit
  794. />
  795. </template>
  796. </el-table-column>
  797. <el-table-column
  798. prop="fnetweight"
  799. header-align="center"
  800. width="180px"
  801. align="center"
  802. label="出库净重"
  803. >
  804. <template slot-scope="scope">
  805. <el-input
  806. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  807. v-model="scope.row.fNetweight"
  808. :disabled="browseStatus"
  809. placeholder="出库净重"
  810. show-word-limit
  811. />
  812. </template>
  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).*$/, "$1$2.$3")'
  824. v-model="scope.row.fQty"
  825. :disabled="browseStatus"
  826. placeholder="出库件数"
  827. show-word-limit
  828. />
  829. </template>
  830. </el-table-column>
  831. <el-table-column
  832. prop="fPackagespecs"
  833. header-align="center"
  834. width="180px"
  835. align="center"
  836. label="包装规格"
  837. >
  838. <template slot-scope="scope">
  839. <el-input
  840. oninput="value=value.replace(/[^\d.]/g,'')"
  841. v-model="scope.row.fPackagespecs"
  842. :disabled="browseStatus"
  843. placeholder="包装规格"
  844. show-word-limit
  845. />
  846. </template>
  847. </el-table-column>
  848. <el-table-column
  849. prop="fwarehouselocid"
  850. header-align="center"
  851. width="150px"
  852. align="center"
  853. label="库区"
  854. >
  855. <template slot-scope="scope">
  856. <el-select
  857. v-model="scope.row.fWarehouselocid"
  858. filterable
  859. remote
  860. disabled
  861. :remote-method="kqhouseRemoteMethod"
  862. placeholder="请选择库区"
  863. >
  864. <el-option
  865. v-for="dict in kqhouseOptions"
  866. :key="dict.fId"
  867. :label="dict.fName"
  868. :disabled="browseStatus"
  869. :value="dict.fId"
  870. ></el-option>
  871. </el-select>
  872. </template>
  873. </el-table-column>
  874. <el-table-column
  875. prop="fCntrno"
  876. header-align="center"
  877. width="150px"
  878. align="center"
  879. label="箱号"
  880. >
  881. <template slot-scope="scope">
  882. <el-input
  883. v-model="scope.row.fCntrno"
  884. placeholder="箱号"
  885. :disabled="browseStatus"
  886. show-word-limit
  887. />
  888. </template>
  889. </el-table-column>
  890. <el-table-column
  891. prop="fGoodsval"
  892. header-align="center"
  893. width="150px"
  894. align="center"
  895. label="货值"
  896. >
  897. <template slot-scope="scope">
  898. <el-input
  899. oninput="value=value.replace(/[^\d.]/g,'')"
  900. v-model="scope.row.fGoodsval"
  901. placeholder="货值"
  902. :disabled="browseStatus"
  903. show-word-limit
  904. />
  905. </template>
  906. </el-table-column>
  907. <el-table-column
  908. prop="ftruckno"
  909. header-align="center"
  910. width="150px"
  911. align="center"
  912. label="车号"
  913. >
  914. <template slot-scope="scope">
  915. <el-input
  916. oninput="value=value.replace(/[^\d.]/g,'')"
  917. v-model="scope.row.fTruckno"
  918. placeholder="车号"
  919. :disabled="browseStatus"
  920. show-word-limit
  921. />
  922. </template>
  923. </el-table-column>
  924. <el-table-column
  925. prop="remark"
  926. header-align="center"
  927. width="150px"
  928. align="center"
  929. label="备注"
  930. >
  931. <template slot-scope="scope">
  932. <el-input
  933. v-model="scope.row.remark"
  934. placeholder="备注"
  935. :disabled="browseStatus"
  936. show-word-limit
  937. />
  938. </template>
  939. </el-table-column>
  940. <el-table-column
  941. header-align="center"
  942. align="center"
  943. label="操作"
  944. width="130PX"
  945. >
  946. <template slot-scope="scope">
  947. <el-button
  948. @click.native.prevent="deleteRow(scope.$index, dataList)"
  949. size="small"
  950. >移除</el-button
  951. >
  952. </template>
  953. </el-table-column>
  954. </el-table>
  955. <div class="dialogTableTitle flex a-center jlr">
  956. <h2>附件上传</h2>
  957. <el-button :disabled="browseStatus" @click.prevent="addRelevt()"
  958. >添加
  959. </el-button>
  960. </div>
  961. <el-table
  962. :data="relevantAttachments"
  963. ref="table"
  964. tooltip-effect="dark"
  965. border
  966. stripe
  967. style="width: 100%"
  968. height="150"
  969. >
  970. <el-table-column label="序号" type="index" width="80">
  971. </el-table-column>
  972. <el-table-column
  973. prop="fName"
  974. header-align="center"
  975. align="center"
  976. label="附件名称"
  977. >
  978. <template slot-scope="scope">
  979. <el-input
  980. v-model="scope.row.fName"
  981. :disabled="browseStatus"
  982. placeholder="附件名称"
  983. show-word-limit
  984. />
  985. </template>
  986. </el-table-column>
  987. <el-table-column
  988. prop="createBy"
  989. header-align="center"
  990. align="center"
  991. label="上传人"
  992. >
  993. <template slot-scope="scope">
  994. <el-input
  995. v-model="scope.row.createBy"
  996. :disabled="browseStatus"
  997. placeholder="上传人"
  998. show-word-limit
  999. />
  1000. </template>
  1001. </el-table-column>
  1002. <el-table-column
  1003. prop="createTime"
  1004. header-align="center"
  1005. align="center"
  1006. label="上传时间"
  1007. >
  1008. <template slot-scope="scope">
  1009. <el-date-picker
  1010. v-model="scope.row.createTime"
  1011. type="date"
  1012. disabled
  1013. placeholder="上传时间"
  1014. format="yyyy-MM-dd HH:mm"
  1015. value-format="timestamp"
  1016. ></el-date-picker>
  1017. </template>
  1018. </el-table-column>
  1019. <el-table-column
  1020. prop="fUrl"
  1021. header-align="center"
  1022. align="center"
  1023. width="250PX"
  1024. label="上传附件"
  1025. >
  1026. <template slot-scope="scope">
  1027. <uploadFile @input="showFile" v-model="scope.row.fUrl" />
  1028. </template>
  1029. </el-table-column>
  1030. <el-table-column
  1031. header-align="center"
  1032. align="center"
  1033. label="操作"
  1034. width="130PX"
  1035. >
  1036. <template slot-scope="scope">
  1037. <el-button
  1038. @click.native.prevent="
  1039. deleteRow(scope.$index, relevantAttachments)
  1040. "
  1041. :disabled="browseStatus"
  1042. size="small"
  1043. >移除
  1044. </el-button>
  1045. </template>
  1046. </el-table-column>
  1047. </el-table>
  1048. <div class="dialogTableTitle flex a-center jlr">
  1049. <h2>收款信息</h2>
  1050. <el-button :disabled="browseStatus" @click.prevent="addCollection()"
  1051. >添加
  1052. </el-button>
  1053. </div>
  1054. <el-table
  1055. :data="warehouseDrList"
  1056. ref="table"
  1057. tooltip-effect="dark"
  1058. border
  1059. stripe
  1060. show-summary
  1061. :summary-method="warehouseDrSummaries"
  1062. >
  1063. <el-table-column label="序号" type="index" width="80">
  1064. </el-table-column>
  1065. <el-table-column
  1066. prop="fCorpid"
  1067. header-align="center"
  1068. align="center"
  1069. width="180px"
  1070. label="客户名称"
  1071. >
  1072. <template slot-scope="scope">
  1073. <el-select
  1074. v-model="scope.row.fCorpid"
  1075. filterable
  1076. remote
  1077. :disabled="browseStatus"
  1078. :remote-method="corpsRemoteMethod"
  1079. placeholder="客户名称"
  1080. >
  1081. <el-option
  1082. v-for="(dict,index) in KHblnoOptions"
  1083. :key="index.fId"
  1084. :label="dict.fName"
  1085. :value="dict.fId"
  1086. ></el-option>
  1087. </el-select>
  1088. </template>
  1089. </el-table-column>
  1090. <el-table-column
  1091. prop="fFeeid"
  1092. header-align="center"
  1093. align="center"
  1094. width="180px"
  1095. label="费用名称"
  1096. >
  1097. <template slot-scope="scope">
  1098. <el-select
  1099. v-model="scope.row.fFeeid"
  1100. filterable
  1101. remote
  1102. :disabled="browseStatus"
  1103. :remote-method="fWRemoteMethod"
  1104. placeholder="费用名称"
  1105. >
  1106. <el-option
  1107. v-for="dict in fWbuOptions"
  1108. :key="dict.fId"
  1109. :label="dict.fName"
  1110. :value="dict.fId"
  1111. ></el-option>
  1112. </el-select>
  1113. </template>
  1114. </el-table-column>
  1115. <el-table-column
  1116. prop="ffeeUnitid"
  1117. header-align="center"
  1118. align="center"
  1119. width="180px"
  1120. label="计价单位"
  1121. >
  1122. <template slot-scope="scope">
  1123. <!-- <el-input
  1124. v-model="scope.row.fFeeUnitid"
  1125. placeholder="计价单位"
  1126. show-word-limit
  1127. /> -->
  1128. <el-select
  1129. v-model="scope.row.fFeeUnitid"
  1130. placeholder="请选择计费单位"
  1131. @change="changeFeeUnit(scope.row)"
  1132. :disabled="browseStatus"
  1133. clearable
  1134. >
  1135. <el-option
  1136. v-for="dict in jFeetunitOptions"
  1137. :key="dict.dictValue"
  1138. :label="dict.dictLabel"
  1139. :value="dict.dictValue"
  1140. />
  1141. </el-select>
  1142. </template>
  1143. </el-table-column>
  1144. <el-table-column
  1145. prop="fQty"
  1146. header-align="center"
  1147. align="center"
  1148. width="150px"
  1149. label="数量"
  1150. >
  1151. <template slot-scope="scope">
  1152. <el-input
  1153. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1154. v-model="scope.row.fQty"
  1155. placeholder="数量"
  1156. :disabled="browseStatus"
  1157. @change="changeEstmateAmt(scope.row)"
  1158. show-word-limit
  1159. />
  1160. </template>
  1161. </el-table-column>
  1162. <el-table-column
  1163. prop="funitprice"
  1164. header-align="center"
  1165. align="center"
  1166. width="150px"
  1167. label="单价"
  1168. >
  1169. <template slot-scope="scope">
  1170. <el-input
  1171. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1172. v-model="scope.row.fUnitprice"
  1173. placeholder="单价"
  1174. :disabled="browseStatus"
  1175. @change="changeContractAmt(scope.row)"
  1176. show-word-limit
  1177. />
  1178. </template>
  1179. </el-table-column>
  1180. <el-table-column
  1181. prop="fAmount"
  1182. header-align="center"
  1183. align="center"
  1184. width="150px"
  1185. label="金额"
  1186. >
  1187. <template slot-scope="scope">
  1188. <el-input
  1189. disabled
  1190. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1191. v-model="scope.row.fAmount"
  1192. placeholder="金额"
  1193. show-word-limit
  1194. />
  1195. </template>
  1196. </el-table-column>
  1197. <el-table-column
  1198. prop="fCurrency"
  1199. header-align="center"
  1200. align="center"
  1201. width="150px"
  1202. label="币别"
  1203. >
  1204. <template slot-scope="scope">
  1205. <el-input
  1206. v-model="scope.row.fCurrency"
  1207. :disabled="browseStatus"
  1208. placeholder="币别"
  1209. show-word-limit
  1210. />
  1211. </template>
  1212. </el-table-column>
  1213. <el-table-column
  1214. prop="fCxrate"
  1215. header-align="center"
  1216. align="center"
  1217. width="150px"
  1218. label="汇率"
  1219. >
  1220. <template slot-scope="scope">
  1221. <el-input
  1222. v-model="scope.row.fCxrate"
  1223. :disabled="browseStatus"
  1224. placeholder="汇率"
  1225. show-word-limit
  1226. />
  1227. </template>
  1228. </el-table-column>
  1229. <el-table-column
  1230. prop="fRate"
  1231. header-align="center"
  1232. align="center"
  1233. width="150px"
  1234. label="税率"
  1235. >
  1236. <template slot-scope="scope">
  1237. <el-input
  1238. v-model="scope.row.fRate"
  1239. :disabled="browseStatus"
  1240. placeholder="税率"
  1241. show-word-limit
  1242. />
  1243. </template>
  1244. </el-table-column>
  1245. <el-table-column
  1246. prop="remarks"
  1247. header-align="center"
  1248. align="center"
  1249. width="150px"
  1250. label="备注"
  1251. >
  1252. <template slot-scope="scope">
  1253. <el-input
  1254. v-model="scope.row.remarks"
  1255. :disabled="browseStatus"
  1256. placeholder="备注"
  1257. show-word-limit
  1258. />
  1259. </template>
  1260. </el-table-column>
  1261. <el-table-column
  1262. header-align="center"
  1263. align="center"
  1264. label="操作"
  1265. width="200px"
  1266. >
  1267. <template slot-scope="scope">
  1268. <el-button size="small">审核费用</el-button>
  1269. <el-button
  1270. @click.native.prevent="deleteRow(scope.$index, warehouseDrList)"
  1271. size="small"
  1272. >移除</el-button
  1273. >
  1274. </template>
  1275. </el-table-column>
  1276. </el-table>
  1277. <div class="dialogTableTitle flex a-center jlr">
  1278. <h2>付款信息</h2>
  1279. <el-button :disabled="browseStatus" @click.prevent="addpayment()"
  1280. >添加
  1281. </el-button>
  1282. </div>
  1283. <el-table
  1284. :data="warehouseCrList"
  1285. ref="table"
  1286. tooltip-effect="dark"
  1287. border
  1288. stripe
  1289. show-summary
  1290. :summary-method="warehouseDrSummaries"
  1291. >
  1292. <el-table-column label="序号" type="index" width="80">
  1293. </el-table-column>
  1294. <el-table-column
  1295. prop="fCorpid"
  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.fCorpid"
  1304. filterable
  1305. remote
  1306. :disabled="browseStatus"
  1307. :remote-method="corpsRemoteMethod"
  1308. placeholder="客户名称"
  1309. >
  1310. <el-option
  1311. v-for="(dict, index) in KHblnoOptions"
  1312. :key="index.fId"
  1313. :label="dict.fName"
  1314. :value="dict.fId"
  1315. ></el-option>
  1316. </el-select>
  1317. </template>
  1318. </el-table-column>
  1319. <el-table-column
  1320. prop="fFeeid"
  1321. header-align="center"
  1322. align="center"
  1323. width="180px"
  1324. label="费用名称"
  1325. >
  1326. <template slot-scope="scope">
  1327. <el-select
  1328. v-model="scope.row.fFeeid"
  1329. filterable
  1330. remote
  1331. :disabled="browseStatus"
  1332. :remote-method="fWRemoteMethod"
  1333. placeholder="费用名称"
  1334. >
  1335. <el-option
  1336. v-for="dict in fWbuOptions"
  1337. :key="dict.fId"
  1338. :label="dict.fName"
  1339. :value="dict.fId"
  1340. ></el-option>
  1341. </el-select>
  1342. </template>
  1343. </el-table-column>
  1344. <el-table-column
  1345. prop="ffeeUnitid"
  1346. header-align="center"
  1347. align="center"
  1348. width="180px"
  1349. label="计价单位"
  1350. >
  1351. <template slot-scope="scope">
  1352. <el-select
  1353. v-model="scope.row.fFeeUnitid"
  1354. placeholder="请选择计费单位"
  1355. @change="changeFeeUnit(scope.row)"
  1356. :disabled="browseStatus"
  1357. clearable
  1358. >
  1359. <el-option
  1360. v-for="dict in jFeetunitOptions"
  1361. :key="dict.dictValue"
  1362. :label="dict.dictLabel"
  1363. :value="dict.dictValue"
  1364. />
  1365. </el-select>
  1366. </template>
  1367. </el-table-column>
  1368. <el-table-column
  1369. prop="fQty"
  1370. header-align="center"
  1371. align="center"
  1372. width="150px"
  1373. label="数量"
  1374. >
  1375. <template slot-scope="scope">
  1376. <el-input
  1377. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
  1378. v-model="scope.row.fQty"
  1379. @change="changeEstmateAmt(scope.row)"
  1380. :disabled="browseStatus"
  1381. placeholder="数量"
  1382. show-word-limit
  1383. />
  1384. </template>
  1385. </el-table-column>
  1386. <el-table-column
  1387. prop="funitprice"
  1388. header-align="center"
  1389. align="center"
  1390. width="150px"
  1391. label="单价"
  1392. >
  1393. <template slot-scope="scope">
  1394. <el-input
  1395. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1396. v-model="scope.row.fUnitprice"
  1397. @change="changeContractAmt(scope.row)"
  1398. :disabled="browseStatus"
  1399. placeholder="单价"
  1400. show-word-limit
  1401. />
  1402. </template>
  1403. </el-table-column>
  1404. <el-table-column
  1405. prop="fAmount"
  1406. header-align="center"
  1407. align="center"
  1408. width="150px"
  1409. label="金额"
  1410. >
  1411. <template slot-scope="scope">
  1412. <el-input
  1413. disabled
  1414. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1415. v-model="scope.row.fAmount"
  1416. placeholder="金额"
  1417. show-word-limit
  1418. />
  1419. </template>
  1420. </el-table-column>
  1421. <el-table-column
  1422. prop="fCurrency"
  1423. header-align="center"
  1424. align="center"
  1425. width="150px"
  1426. label="币别"
  1427. >
  1428. <template slot-scope="scope">
  1429. <el-input
  1430. v-model="scope.row.fCurrency"
  1431. :disabled="browseStatus"
  1432. placeholder="币别"
  1433. show-word-limit
  1434. />
  1435. </template>
  1436. </el-table-column>
  1437. <el-table-column
  1438. prop="fCxrate"
  1439. header-align="center"
  1440. align="center"
  1441. width="150px"
  1442. label="汇率"
  1443. >
  1444. <template slot-scope="scope">
  1445. <el-input
  1446. v-model="scope.row.fCxrate"
  1447. :disabled="browseStatus"
  1448. placeholder="汇率"
  1449. show-word-limit
  1450. />
  1451. </template>
  1452. </el-table-column>
  1453. <el-table-column
  1454. prop="fRate"
  1455. header-align="center"
  1456. align="center"
  1457. width="150px"
  1458. label="税率"
  1459. >
  1460. <template slot-scope="scope">
  1461. <el-input
  1462. v-model="scope.row.fRate"
  1463. :disabled="browseStatus"
  1464. placeholder="税率"
  1465. show-word-limit
  1466. />
  1467. </template>
  1468. </el-table-column>
  1469. <el-table-column
  1470. prop="remarks"
  1471. header-align="center"
  1472. align="center"
  1473. width="150px"
  1474. label="备注"
  1475. >
  1476. <template slot-scope="scope">
  1477. <el-input
  1478. v-model="scope.row.remarks"
  1479. :disabled="browseStatus"
  1480. placeholder="备注"
  1481. show-word-limit
  1482. />
  1483. </template>
  1484. </el-table-column>
  1485. <el-table-column
  1486. header-align="center"
  1487. align="center"
  1488. width="200px"
  1489. label="操作"
  1490. >
  1491. <template slot-scope="scope">
  1492. <el-button size="small">审核费用</el-button>
  1493. <el-button
  1494. @click.native.prevent="deleteRow(scope.$index, warehouseCrList)"
  1495. size="small"
  1496. >移除</el-button
  1497. >
  1498. </template>
  1499. </el-table-column>
  1500. </el-table>
  1501. <div slot="footer" class="dialog-footer">
  1502. <el-button
  1503. type="danger"
  1504. size="mini"
  1505. prop="打印"
  1506. @click="showEditDialog_ss"
  1507. >收货单
  1508. </el-button>
  1509. <el-button
  1510. type="danger"
  1511. size="mini"
  1512. prop="打印"
  1513. @click="showEditDialog_s"
  1514. >出库单
  1515. </el-button>
  1516. <el-button type="primary" @click="submitForm(2)">暂 存</el-button>
  1517. <el-button type="primary" @click="submitForm(6)">确 定</el-button>
  1518. <el-button @click="cancel">取 消</el-button>
  1519. </div>
  1520. <!-- 选择库存总账数据 -->
  1521. <el-dialog
  1522. title="库存总账"
  1523. :modal="false"
  1524. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  1525. :visible.sync="whgenlegVisible"
  1526. width="70%"
  1527. >
  1528. <el-table
  1529. :data="whgenlegList"
  1530. ref="table"
  1531. tooltip-effect="dark"
  1532. width="100%"
  1533. border
  1534. stripe
  1535. @selection-change="whgenlegSelectionChange"
  1536. >
  1537. <el-table-column
  1538. type="selection"
  1539. width="55">
  1540. </el-table-column>
  1541. <el-table-column
  1542. prop="fMblno"
  1543. header-align="center"
  1544. align="center"
  1545. label="提单号"
  1546. >
  1547. </el-table-column>
  1548. <el-table-column
  1549. prop="createTime"
  1550. header-align="center"
  1551. align="center"
  1552. width="180px"
  1553. label="入库日期"
  1554. >
  1555. </el-table-column>
  1556. <el-table-column
  1557. prop="fGoodsid"
  1558. header-align="center"
  1559. align="center"
  1560. label="品名"
  1561. >
  1562. </el-table-column>
  1563. <el-table-column
  1564. prop="fQtyblc"
  1565. header-align="center"
  1566. align="center"
  1567. label="结余数量"
  1568. >
  1569. </el-table-column>
  1570. <el-table-column
  1571. prop="fWarehouseLocationid"
  1572. header-align="center"
  1573. align="center"
  1574. label="库区"
  1575. >
  1576. </el-table-column>
  1577. </el-table>
  1578. <pagination
  1579. v-show="whgenlegTotal>0"
  1580. :total="whgenlegTotal"
  1581. :page.sync="whgenlegParams.pageNum"
  1582. :limit.sync="whgenlegParams.pageSize"
  1583. @pagination="getWhgenlegList"
  1584. />
  1585. <div slot="footer" class="dialog-footer">
  1586. <el-button type="primary" @click="whgenlegData">导入</el-button>
  1587. <el-button @click="whgenlegVisible = false">取 消</el-button>
  1588. </div>
  1589. </el-dialog>
  1590. <el-dialog
  1591. title="入库页面"
  1592. :modal="false"
  1593. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  1594. :visible.sync="editDialogVisible_s"
  1595. width="70%"
  1596. >
  1597. <table
  1598. id="print_area"
  1599. class="biaoge zzss"
  1600. border="1"
  1601. style="border-collapse: collapse; border: none"
  1602. >
  1603. <tr>
  1604. <td
  1605. width="100"
  1606. colspan="7"
  1607. class="zzss"
  1608. style="font-size: 28px; font-weight: bold; border: none"
  1609. >
  1610. 青岛大木进进仓单
  1611. </td>
  1612. </tr>
  1613. <tr>
  1614. <td
  1615. width="100"
  1616. colspan="7"
  1617. class="zzss"
  1618. style="font-size: 28px; font-weight: bold; border: none"
  1619. >
  1620. &nbsp;
  1621. </td>
  1622. </tr>
  1623. <tr>
  1624. <td width="450" colspan="2" class="zzss">货权方:某某有限公司</td>
  1625. <td width="450" colspan="2" class="zzss">仓库:某某3号大仓</td>
  1626. <td width="450" colspan="3" class="zzss">
  1627. 地址:青岛市市北区郑州路1344号
  1628. </td>
  1629. </tr>
  1630. <tr>
  1631. <td width="200" colspan="2" class="zzss">保管方:某某有限公司</td>
  1632. <td width="200" colspan="2" class="zzss">联系人:张三</td>
  1633. <td width="200" colspan="3" class="zzss">
  1634. 电话:0532-561651561-546
  1635. </td>
  1636. </tr>
  1637. <tr>
  1638. <td width="100" border="1">提单号</td>
  1639. <td width="100">品名</td>
  1640. <td width="100">箱型</td>
  1641. <td width="100">品牌</td>
  1642. <td width="100">件数</td>
  1643. <td width="100">重量</td>
  1644. <td width="100">包装规格</td>
  1645. </tr>
  1646. <tr>
  1647. <td width="100">56165654555</td>
  1648. <td width="100">某某商品</td>
  1649. <td width="100">20GP</td>
  1650. <td width="100">某某</td>
  1651. <td width="100">包</td>
  1652. <td width="100">吨</td>
  1653. <td width="100">50kg</td>
  1654. </tr>
  1655. <tr>
  1656. <td width="100">序号</td>
  1657. <td width="100">入货日期</td>
  1658. <td width="100">箱量(20GP)</td>
  1659. <td width="100">重量</td>
  1660. <td width="100">件数</td>
  1661. <td width="100">入库重量</td>
  1662. <td width="100">入库件数</td>
  1663. </tr>
  1664. <tr>
  1665. <td width="100">1</td>
  1666. <td width="100">2020-11-20</td>
  1667. <td width="100">10</td>
  1668. <td width="100">100</td>
  1669. <td width="100">10000</td>
  1670. <td width="100">20</td>
  1671. <td width="100">3000</td>
  1672. </tr>
  1673. <tr>
  1674. <td width="100">2</td>
  1675. <td width="100">2020-11-20</td>
  1676. <td width="100">10</td>
  1677. <td width="100">100</td>
  1678. <td width="100">10000</td>
  1679. <td width="100">20</td>
  1680. <td width="100">3000</td>
  1681. </tr>
  1682. <tr>
  1683. <td width="100">3</td>
  1684. <td width="100">2020-11-20</td>
  1685. <td width="100">10</td>
  1686. <td width="100">100</td>
  1687. <td width="100">10000</td>
  1688. <td width="100">20</td>
  1689. <td width="100">3000</td>
  1690. </tr>
  1691. <tr>
  1692. <td width="100">4</td>
  1693. <td width="100">2020-11-20</td>
  1694. <td width="100">10</td>
  1695. <td width="100">100</td>
  1696. <td width="100">10000</td>
  1697. <td width="100">20</td>
  1698. <td width="100">3000</td>
  1699. </tr>
  1700. <tr>
  1701. <td width="100">5</td>
  1702. <td width="100">2020-11-20</td>
  1703. <td width="100">10</td>
  1704. <td width="100">100</td>
  1705. <td width="100">10000</td>
  1706. <td width="100">20</td>
  1707. <td width="100">3000</td>
  1708. </tr>
  1709. <tr>
  1710. <td width="100">6</td>
  1711. <td width="100">2020-11-20</td>
  1712. <td width="100">10</td>
  1713. <td width="100">100</td>
  1714. <td width="100">10000</td>
  1715. <td width="100">20</td>
  1716. <td width="100">3000</td>
  1717. </tr>
  1718. <tr>
  1719. <td width="100">7</td>
  1720. <td width="100">2020-11-20</td>
  1721. <td width="100">10</td>
  1722. <td width="100">100</td>
  1723. <td width="100">10000</td>
  1724. <td width="100">20</td>
  1725. <td width="100">3000</td>
  1726. </tr>
  1727. <tr>
  1728. <td width="100" colspan="2">合计:</td>
  1729. <td width="100">10</td>
  1730. <td width="100">100</td>
  1731. <td width="100">10000</td>
  1732. <td width="100">20</td>
  1733. <td width="100">3000</td>
  1734. </tr>
  1735. <tr>
  1736. <td width="100">备注:</td>
  1737. <td width="100" colspan="6"></td>
  1738. </tr>
  1739. <tr>
  1740. <td width="100" colspan="7" class="zzss">
  1741. 本进仓单经仓管员签字并经保管方盖章后即专项作为货物所有人的货权证明,本单据不得转让。
  1742. </td>
  1743. </tr>
  1744. <tr style="border: none">
  1745. <td width="100" colspan="2" class="zzss" style="border: none">
  1746. 开单员:
  1747. </td>
  1748. <td width="100" colspan="3" class="zzss" style="border: none"></td>
  1749. <td width="100" colspan="2" class="zzss" style="border: none">
  1750. 仓管员:张三
  1751. </td>
  1752. </tr>
  1753. <tr style="border: none">
  1754. <td width="100" colspan="2" class="zzss" style="border: none">
  1755. 开单时间:
  1756. </td>
  1757. <td width="100" colspan="3" class="zzss" style="border: none"></td>
  1758. <td width="100" colspan="2" class="zzss" style="border: none">
  1759. (盖章)
  1760. </td>
  1761. </tr>
  1762. </table>
  1763. <button @click="printSomething">打印</button>
  1764. </el-dialog>
  1765. <el-dialog
  1766. title="收货单打印"
  1767. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  1768. :visible.sync="editDialogVisible_ss"
  1769. width="70%"
  1770. :modal="false"
  1771. >
  1772. <table
  1773. id="print_area"
  1774. class="biaoge zzss"
  1775. border="1"
  1776. style="border-collapse: collapse; border: none"
  1777. >
  1778. <tr>
  1779. <td
  1780. width="1400"
  1781. colspan="6"
  1782. class="zzss"
  1783. style="font-size: 28px; font-weight: bold; border: none"
  1784. >
  1785. 大木国际物流(青岛)有限公司收货单
  1786. </td>
  1787. </tr>
  1788. <tr>
  1789. <td
  1790. width="900"
  1791. colspan="4"
  1792. class="zzss"
  1793. style="font-size: 28px; font-weight: bold"
  1794. >
  1795. &nbsp;
  1796. </td>
  1797. <td
  1798. width="500"
  1799. colspan="2"
  1800. style="padding-bottom: 0px; font-weight: bold; border: none"
  1801. class="zzss"
  1802. >
  1803. 出库日期:2020-11-20
  1804. </td>
  1805. </tr>
  1806. <tr>
  1807. <td width="200">车号</td>
  1808. <td width="200">苏HFN751</td>
  1809. <td width="200">货物品名</td>
  1810. <td width="200" colspan="4" class="zzss">某某商品名</td>
  1811. </tr>
  1812. <tr>
  1813. <td width="1400" colspan="6">&nbsp;</td>
  1814. </tr>
  1815. <tr>
  1816. <td>备注:</td>
  1817. <td colspan="5"></td>
  1818. </tr>
  1819. <tr>
  1820. <td>收费</td>
  1821. <td>装箱费</td>
  1822. <td>100元</td>
  1823. <td colspan="4">办单费:5元,过磅费自理</td>
  1824. </tr>
  1825. <tr>
  1826. <td>司机签字:</td>
  1827. <td></td>
  1828. <td>电话</td>
  1829. <td>15896154516</td>
  1830. <td colspan="2" rowspan="2">
  1831. 确认货物数量无误,包装于货物完好!<br />出库盖好篷布,如有违背责任自负<br />装卸工是否收小费
  1832. </td>
  1833. </tr>
  1834. <tr>
  1835. <td>制表:</td>
  1836. <td>张三</td>
  1837. <td>机械/人工:</td>
  1838. <td></td>
  1839. </tr>
  1840. <tr>
  1841. <td colspan="6" class="zzss">&nbsp;</td>
  1842. </tr>
  1843. <tr>
  1844. <td width="280" class="zzss"></td>
  1845. <td width="280" class="zzss"></td>
  1846. <td width="280" class="zzss"></td>
  1847. <td width="280" class="zzss"></td>
  1848. <td width="290" class="zzss">地址:淮河东路96号</td>
  1849. <td width="290" class="zzss">电话:18685818919</td>
  1850. </tr>
  1851. </table>
  1852. <button @click="printSomething">打印</button>
  1853. </el-dialog>
  1854. </el-dialog>
  1855. </div>
  1856. </template>
  1857. <script>
  1858. import print from "print-js";
  1859. import {
  1860. listWarehousebills,
  1861. getWarehousebills,
  1862. delWarehousebills,
  1863. addWarehousebills,
  1864. updateWarehousebills,
  1865. exportWarehousebills,
  1866. } from "@/api/warehouseBusiness/warehouseOutStock";
  1867. import { listCorps } from "@/api/basicdata/corps";
  1868. import { listFees } from "@/api/basicdata/fees";
  1869. import { listWarehouse } from "@/api/basicdata/warehouse";
  1870. import { listArea } from "@/api/basicdata/area";
  1871. import { listGoods } from "@/api/basicdata/goods";
  1872. import { listUser, queryUserVal } from "@/api/system/user";
  1873. import UploadFile from "@/components/Uploadfile";
  1874. import { listWhgenleg } from '@/api/reportManagement/whgenleg'
  1875. export default {
  1876. name: "Warehousebills",
  1877. components: {
  1878. UploadFile,
  1879. },
  1880. data() {
  1881. return {
  1882. fFeeUnitid: "",
  1883. fFeeUnitids: "",
  1884. browseStatus: false,
  1885. detailsHidden: false,
  1886. fGrossweight: '',
  1887. fNetweight: '',
  1888. fQty: '',
  1889. // 遮罩层
  1890. loading: true,
  1891. // 选中数组
  1892. ids: [],
  1893. userVal: {
  1894. userName: null,
  1895. nickName: null,
  1896. deptId: null,
  1897. },
  1898. queryForm: {},
  1899. // 库存总账表
  1900. whgenlegList: [],
  1901. whgenlegTotal: 0,
  1902. // 弹窗库存总账数据
  1903. dialogWhgenlegList: [],
  1904. // 库存总账对话框
  1905. whgenlegVisible: false,
  1906. // 添加用户对话框
  1907. editDialogVisible_s: false,
  1908. editDialogVisible_ss: false,
  1909. editDialogClosed_ss: false,
  1910. dataList: [],
  1911. warehouseCrList: [],
  1912. warehouseDrList: [],
  1913. browseStatus: false,
  1914. relevantAttachments: [],
  1915. // 非单个禁用
  1916. single: true,
  1917. // 非多个禁用
  1918. multiple: true,
  1919. // 显示搜索条件
  1920. showSearch: true,
  1921. // 总条数
  1922. total: 0,
  1923. // 仓库主(出入库)表格数据
  1924. warehousebillsList: [],
  1925. // 弹出层标题
  1926. title: "",
  1927. // 是否显示弹出层
  1928. open: false,
  1929. // 货权方(客户数据)
  1930. fMblnoOptions: [],
  1931. // 货权方(客户数据)
  1932. // 客户名称
  1933. KHblnoOptions: [],
  1934. fSbuOptions: [],
  1935. // 操作员
  1936. userOptions: [],
  1937. // 操作员
  1938. goodsOptions: [],
  1939. // 制单部门
  1940. deptOptions: [],
  1941. // 仓库(仓库数据)
  1942. warehouseOptions: [],
  1943. kqhouseOptions: [],
  1944. // 贸易方式(数据字典),对应t_trademodels 字典
  1945. fTrademodeidOptions: [],
  1946. // 计费单位(数据字典),下拉选择毛重或净重字典
  1947. fFeetunitOptions: [],
  1948. // 结算方式(数据字典),下拉选择字典
  1949. fStltypeOptions: [],
  1950. // 是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择字典
  1951. fIfweighOptions: [],
  1952. // 是否质押(数据字典),默认 F ,质押T 否者F 下拉选择字典
  1953. fIfpledgeOptions: [],
  1954. // 是否破损(数据字典),默认F否则T字典
  1955. fIfdamageOptions: [],
  1956. // 单据类型(数据字典)SJRK字典
  1957. fBilltypeOptions: [],
  1958. // 状态(数据字典),N 入字典
  1959. fBillstatusOptions: [],
  1960. // 费用名称
  1961. fWbuOptions: [],
  1962. // 计价单位
  1963. jFeetunitOptions: [],
  1964. // 查询参数
  1965. queryParams: {
  1966. pageNum: 1,
  1967. pageSize: 10,
  1968. fBillno: null,
  1969. createBy: null,
  1970. createTime: null,
  1971. fCustomsdeclartion: null,
  1972. fOriginalbillno: null,
  1973. fDeptid: null,
  1974. fBsdeptid: null,
  1975. fContacts: null,
  1976. fTel: null,
  1977. fCorpid: null,
  1978. fTocorpid: null,
  1979. fStltypeid: null,
  1980. fBscorpno: null,
  1981. fWarehouseid: null,
  1982. fStorekeeper: null,
  1983. fBsdate: null,
  1984. fPlanqty: null,
  1985. fPlangrossweight: null,
  1986. fPlannetweight: null,
  1987. fPlanvolumn: null,
  1988. fQty: null,
  1989. fGrossweight: null,
  1990. fNetweight: null,
  1991. fVolumn: null,
  1992. fTrademodeid: null,
  1993. fSbu: null,
  1994. fFeetunit: null,
  1995. fMblno: null,
  1996. fVslvoy: null,
  1997. fEta: null,
  1998. fCustomno: null,
  1999. fIfweigh: null,
  2000. fIfpledge: null,
  2001. fIfdamage: null,
  2002. fBankcorpid: null,
  2003. fBilltype: null,
  2004. fBillstatus: null,
  2005. fCreateby: null,
  2006. fCreatetime: null,
  2007. fGoodsid: null,
  2008. fCntrtype: null,
  2009. fCntqty: null,
  2010. },
  2011. // 库存总账参数
  2012. whgenlegParams: {
  2013. pageNum: 1,
  2014. pageSize: 10,
  2015. fMblno: null,
  2016. fCorpid: null,
  2017. fWarehouseid: null
  2018. },
  2019. // 表单参数
  2020. form: {
  2021. fMblno: null,
  2022. fCorpid: null,
  2023. fTrademodeid: null,
  2024. fWarehouseid: null
  2025. },
  2026. // 表单校验
  2027. rules: {
  2028. fDeptid: [
  2029. { required: true, message: "制单部门不能为空", trigger: "blur" },
  2030. ],
  2031. fMblno: [{ required: true, message: "请输入提单号", trigger: "blur" }],
  2032. fBsdeptid: [
  2033. { required: true, message: "业务所属部门不能为空", trigger: "blur" },
  2034. ],
  2035. fCorpid: [
  2036. {
  2037. required: true,
  2038. message: "请选择货权方",
  2039. trigger: "blur",
  2040. },
  2041. ],
  2042. fBsdate: [
  2043. { required: true, message: "请选择业务日期", trigger: "blur" },
  2044. ],
  2045. fTrademodeid: [
  2046. { required: true, message: "请选择贸易方式", trigger: "blur" },
  2047. ],
  2048. fSbu: [
  2049. { required: true, message: "请选择经营方式", trigger: "blur" },
  2050. ],
  2051. fStorekeeper: {
  2052. required: true,
  2053. message: "请输入仓管员",
  2054. trigger: "blur",
  2055. },
  2056. fWarehouseid: [
  2057. { required: true, message: "请选择仓库", trigger: "blur" },
  2058. ],
  2059. // fBscorpno: [
  2060. // { required: true, message: "请输入存货编号", trigger: "blur" },
  2061. // ],
  2062. fbillingway: [
  2063. {
  2064. required: true,
  2065. message: "请选择结算方式",
  2066. trigger: "blur",
  2067. },
  2068. ],
  2069. fTocorpid: [
  2070. {
  2071. required: true,
  2072. message:
  2073. "货转客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name,自有在货权转移是该字段有效不能为空",
  2074. trigger: "blur",
  2075. },
  2076. ],
  2077. },
  2078. };
  2079. },
  2080. created() {
  2081. this.getList();
  2082. this.getDicts("data_trademodes").then((response) => {
  2083. this.fTrademodeidOptions = response.data;
  2084. });
  2085. this.getDicts("data_unitfees").then((response) => {
  2086. this.fFeetunitOptions = response.data;
  2087. this.jFeetunitOptions = response.data;
  2088. });
  2089. this.getDicts("data_stltype_type").then((response) => {
  2090. this.fStltypeOptions = response.data;
  2091. });
  2092. this.getDicts("data_ifweigh_status").then((response) => {
  2093. this.fIfweighOptions = response.data;
  2094. });
  2095. this.getDicts("data_ifpledge_status").then((response) => {
  2096. this.fIfpledgeOptions = response.data;
  2097. });
  2098. this.getDicts("data_ifdamage_status").then((response) => {
  2099. this.fIfdamageOptions = response.data;
  2100. });
  2101. this.getDicts("data_billtype_type").then((response) => {
  2102. this.fBilltypeOptions = response.data;
  2103. });
  2104. this.getDicts("sys_common_status").then((response) => {
  2105. this.fBillstatusOptions = response.data;
  2106. });
  2107. },
  2108. methods: {
  2109. // 上传成功返回数据
  2110. showFile(row) {
  2111. // this.$set(this.relevantAttachments[0], 'fName', row.fileName)
  2112. this.$set(this.relevantAttachments[0], 'fUrl', row.url)
  2113. },
  2114. printSomething() {
  2115. // 此处的style即为打印时的样式
  2116. const style =
  2117. "@media print { .print-div{ padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center}}";
  2118. print({
  2119. printable: "print_area",
  2120. type: "html",
  2121. style: style, // 亦可使用引入的外部css;
  2122. scanStyles: false,
  2123. });
  2124. },
  2125. // 添加附件上传
  2126. addRelevt() {
  2127. this.relevantAttachments.push({
  2128. fUrl: null,
  2129. fName: null,
  2130. createBy: this.queryParams.createBy,
  2131. createTime: Date.parse(new Date()),
  2132. });
  2133. },
  2134. // 添加list
  2135. addRelevant() {
  2136. let corpidStatus = typeof this.form.fCorpid === 'undefined' || this.form.fCorpid == null || this.form.fCorpid === ''
  2137. let ftrademodeids = typeof this.form.fTrademodeid === 'undefined' || this.form.fTrademodeid == null || this.form.fTrademodeid === ''
  2138. let warehouseidStatus = typeof this.form.fWarehouseid === 'undefined' || this.form.fWarehouseid == null || this.form.fWarehouseid === ''
  2139. if (corpidStatus || warehouseidStatus || ftrademodeids) {
  2140. this.$message({ message: '请维护货权方、仓库、贸易方式', type: 'warning' })
  2141. return false
  2142. }
  2143. this.whgenlegList = []
  2144. this.dialogWhgenlegList = []
  2145. this.whgenlegTotal = 0
  2146. this.whgenlegVisible = true
  2147. this.getWhgenlegList()
  2148. },
  2149. // 库存总账导出数据
  2150. whgenlegData () {
  2151. console.log(this.dialogWhgenlegList)
  2152. for (let whgen in this.dialogWhgenlegList) {
  2153. this.dataList.push({
  2154. fMblno: this.dialogWhgenlegList[whgen].fMblno,
  2155. fGoodsid: this.dialogWhgenlegList[whgen].fGoodsid,
  2156. fCntrtype: null,
  2157. fQtyblc: this.dialogWhgenlegList[whgen].fQtyblc,
  2158. fWarehouseLocationids: this.dialogWhgenlegList[whgen].fWarehouseLocationids,
  2159. fGoodsids: this.dialogWhgenlegList[whgen].fGoodsids,
  2160. fGrossweight: 0,
  2161. fNetweight: 0,
  2162. fQty: 0,
  2163. fCntqty: 1,
  2164. fPackagespecs: null,
  2165. fWarehouselocid: this.dialogWhgenlegList[whgen].fWarehouseLocationid,
  2166. fCntrno: this.dialogWhgenlegList[whgen].fCntrno,
  2167. fGoodsval: null,
  2168. fTruckno: null,
  2169. remark: null
  2170. })
  2171. }
  2172. this.whgenlegVisible = false
  2173. },
  2174. // 收货单打印界面
  2175. showEditDialog_s() {
  2176. this.editDialogVisible_s = true;
  2177. },
  2178. showEditDialog_ss() {
  2179. this.editDialogVisible_ss = true;
  2180. },
  2181. // 收款信息
  2182. addCollection() {
  2183. this.warehouseDrList.push({
  2184. fcorpid: null,
  2185. ffeeid: null,
  2186. fFeeUnitid: null,
  2187. fQty: null,
  2188. funitprice: null,
  2189. fAmount: null,
  2190. fCurrency: null,
  2191. fCxrate: null,
  2192. fRate: null,
  2193. remarks: null,
  2194. });
  2195. },
  2196. addpayment() {
  2197. this.warehouseCrList.push({
  2198. fcorpid: null,
  2199. ffeeid: null,
  2200. fFeeUnitid: null,
  2201. fQty: null,
  2202. funitprice: null,
  2203. fAmount: null,
  2204. fCurrency: null,
  2205. fCxrate: null,
  2206. fRate: null,
  2207. remarks: null,
  2208. });
  2209. },
  2210. queryUser() {
  2211. queryUserVal().then((response) => {
  2212. if (response.user !== null) {
  2213. this.userVal = response.user;
  2214. this.$set(this.form, "fDeptid", this.userVal.deptId);
  2215. this.$set(this.form, "createBy", this.userVal.userName);
  2216. this.$set(this.form, "createTime", Date.parse(new Date()));
  2217. }
  2218. if (response.dept !== null) {
  2219. this.deptOptions = [];
  2220. this.deptOptions.push(response.dept);
  2221. }
  2222. });
  2223. },
  2224. /** 查询仓库主(出入库)列表 */
  2225. getList() {
  2226. this.loading = true;
  2227. listWarehousebills(this.queryParams).then((response) => {
  2228. this.warehousebillsList = response.rows;
  2229. console.log(response.rows)
  2230. this.total = response.total;
  2231. this.loading = false;
  2232. });
  2233. },
  2234. // 查询库存总账信息
  2235. getWhgenlegList () {
  2236. this.whgenlegParams.fMblno = this.form.fMblno
  2237. this.whgenlegParams.fCorpid = this.form.fCorpid
  2238. this.whgenlegParams.fWarehouseid = this.form.fWarehouseid
  2239. this.whgenlegParams.fTrademodeid = this.form.fTrademodeid
  2240. listWhgenleg(this.whgenlegParams).then(response => {
  2241. this.whgenlegList = response.rows
  2242. this.whgenlegTotal = response.total
  2243. })
  2244. },
  2245. // 贸易方式(数据字典),对应t_trademodels 字典翻译
  2246. fTrademodeidFormat(row, column) {
  2247. return this.selectDictLabel(this.fTrademodeidOptions, row.fTrademodeid);
  2248. },
  2249. // 计费单位(数据字典),下拉选择毛重或净重字典翻译
  2250. fFeetunitFormat(row, column) {
  2251. return this.selectDictLabel(this.fFeetunitOptions, row.fFeetunit);
  2252. },
  2253. // 是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择字典翻译
  2254. fIfweighFormat(row, column) {
  2255. return this.selectDictLabel(this.fIfweighOptions, row.fIfweigh);
  2256. },
  2257. // 是否质押(数据字典),默认 F ,质押T 否者F 下拉选择字典翻译
  2258. fIfpledgeFormat(row, column) {
  2259. return this.selectDictLabel(this.fIfpledgeOptions, row.fIfpledge);
  2260. },
  2261. // 是否破损(数据字典),默认F否则T字典翻译
  2262. fIfdamageFormat(row, column) {
  2263. return this.selectDictLabel(this.fIfdamageOptions, row.fIfdamage);
  2264. },
  2265. // 单据类型(数据字典)SJRK字典翻译
  2266. fBilltypeFormat(row, column) {
  2267. return this.selectDictLabel(this.fBilltypeOptions, row.fBilltype);
  2268. },
  2269. // 状态(数据字典),N 入字典翻译
  2270. fBillstatusFormat(row, column) {
  2271. return this.selectDictLabel(this.fBillstatusOptions, row.fBillstatus);
  2272. },
  2273. // 取消按钮
  2274. cancel() {
  2275. this.open = false;
  2276. this.reset();
  2277. },
  2278. // 表单重置
  2279. reset() {
  2280. this.form = {
  2281. fId: null,
  2282. fBillno: null,
  2283. fCustomsdeclartion: null,
  2284. fOriginalbillno: null,
  2285. fDeptid: null,
  2286. fBsdeptid: null,
  2287. fContacts: null,
  2288. fTel: null,
  2289. fCorpid: null,
  2290. fTocorpid: null,
  2291. fStltypeid: null,
  2292. fBscorpno: null,
  2293. fWarehouseid: null,
  2294. fStorekeeper: null,
  2295. fBsdate: null,
  2296. fPlanqty: null,
  2297. fPlangrossweight: null,
  2298. fPlannetweight: null,
  2299. fPlanvolumn: null,
  2300. fQty: null,
  2301. fGrossweight: null,
  2302. fNetweight: null,
  2303. fVolumn: null,
  2304. fTrademodeid: null,
  2305. fSbu: null,
  2306. fFeetunit: null,
  2307. fMblno: null,
  2308. fVslvoy: null,
  2309. fEta: null,
  2310. fCustomno: null,
  2311. fIfweigh: null,
  2312. fIfpledge: null,
  2313. fIfdamage: null,
  2314. fBankcorpid: null,
  2315. fBilltype: null,
  2316. fBillstatus: null,
  2317. delFlag: null,
  2318. createBy: null,
  2319. createTime: null,
  2320. updateBy: null,
  2321. updateTime: null,
  2322. remark: null,
  2323. fCreateby: null,
  2324. fCreatetime: null,
  2325. fGoodsid: null,
  2326. fCntrtype: null,
  2327. fCntqty: null,
  2328. };
  2329. this.deptOptions = []
  2330. this.userOptions = []
  2331. this.fSbuOptions = []
  2332. this.fWbuOptions = []
  2333. this.goodsOptions = []
  2334. this.KHblnoOptions = []
  2335. this.fMblnoOptions = []
  2336. this.kqhouseOptions = []
  2337. this.resetForm("form");
  2338. },
  2339. /** 搜索按钮操作 */
  2340. handleQuery() {
  2341. this.queryParams.pageNum = 1;
  2342. this.getList();
  2343. },
  2344. /** 重置按钮操作 */
  2345. resetQuery() {
  2346. this.resetForm("queryForm");
  2347. this.handleQuery();
  2348. },
  2349. // 多选框选中数据
  2350. handleSelectionChange(selection) {
  2351. this.ids = selection.map((item) => item.fId);
  2352. this.single = selection.length !== 1;
  2353. this.multiple = !selection.length;
  2354. },
  2355. // 库存总账多选框
  2356. whgenlegSelectionChange (selection) {
  2357. this.dialogWhgenlegList = selection
  2358. },
  2359. /** 新增按钮操作 */
  2360. handleAdd(status) {
  2361. this.browseStatus = status
  2362. this.reset();
  2363. this.queryUser();
  2364. this.open = true;
  2365. this.dataList = [];
  2366. this.warehouseCrList = [];
  2367. this.warehouseDrList = [];
  2368. this.relevantAttachments = []
  2369. this.title = "出库单";
  2370. },
  2371. /** 修改按钮操作 */
  2372. handleUpdate(row, status) {
  2373. this.browseStatus = status
  2374. this.reset();
  2375. const fId = row.fId || this.ids;
  2376. getWarehousebills(fId).then((response) => {
  2377. this.form = response.data.warehousebills;
  2378. // this.fMblnoOptions = []
  2379. this.fMblnoOptions = response.data.corps;
  2380. this.KHblnoOptions = response.data.corps;
  2381. this.dataList = response.data.warehouseBillsItem;
  2382. this.relevantAttachments = response.data.enclosures;
  2383. this.warehouseDrList = response.data.warehousebillsfeesDr;
  2384. this.warehouseCrList = response.data.warehousebillsfeesCr;
  2385. this.fWbuOptions = response.data.feesList;
  2386. this.warehouseOptions = response.data.warehouse;
  2387. this.$set(this.form, 'fStltypeid', this.form.fStltypeid + '')
  2388. this.$set(this.form, 'fTrademodeid', this.form.fTrademodeid + '')
  2389. for (let list in this.dataList) {
  2390. this.$set(this.dataList[list], 'fBsdate', Date.parse(this.dataList[list].fBsdate))
  2391. this.$set(this.dataList[list], 'fGoodsids', this.dataList[list].fGoodsid)
  2392. }
  2393. for (let dr in this.warehouseDrList) {
  2394. this.$set(this.warehouseDrList[dr], 'fFeeUnitid', this.warehouseDrList[dr].fFeeUnitid + "")
  2395. }
  2396. this.warehouseCrList = response.data.warehousebillsfeesCr
  2397. for (let cr in this.warehouseCrList) {
  2398. this.$set(this.warehouseCrList[cr], 'fFeeUnitid', this.warehouseCrList[cr].fFeeUnitid + "")
  2399. }
  2400. this.userOptions = response.data.sysUser;
  2401. this.goodsOptions = response.data.goodsList;
  2402. this.goodsOptions = response.data.goodsList
  2403. this.kqhouseOptions = response.data.warehouseAreas
  2404. this.relevantAttachments = response.data.enclosures
  2405. this.$set(
  2406. this.form,
  2407. "fBsdate",
  2408. Date.parse(response.data.warehousebills.fBsdate)
  2409. );
  2410. this.open = true;
  2411. this.title = "修改出库";
  2412. });
  2413. },
  2414. // 数量计算
  2415. changeContractAmt(row) {
  2416. if (row.fUnitprice !== "") {
  2417. if (row.fQty !== "") {
  2418. this.$set(
  2419. row,
  2420. "fAmount",
  2421. Number(row.fUnitprice) * Number(row.fQty)
  2422. ).toFixed(2);
  2423. } else {
  2424. this.$set(row, "fAmount", row.fUnitprice);
  2425. }
  2426. }
  2427. },
  2428. changeEstmateAmt(row) {
  2429. if (row.fUnitprice !== "") {
  2430. if (row.fQty !== "") {
  2431. this.$set(
  2432. row,
  2433. "fAmount",
  2434. Number(row.fUnitprice) * Number(row.fQty)
  2435. ).toFixed(2);
  2436. } else {
  2437. this.$set(row, "fAmount", row.fUnitprice);
  2438. }
  2439. }
  2440. },
  2441. changefBsdate(row) {
  2442. if (this.dataList.length > 0) {
  2443. for (var i = 0; i < this.dataList.length; i++) {
  2444. this.$set(this.dataList[i], "fBsdate", row);
  2445. }
  2446. }
  2447. },
  2448. // 合计
  2449. getSummaries (param) {
  2450. console.log(param)
  2451.         const {columns, data} = param
  2452.          const sums = []
  2453.          var values = []
  2454.       columns.forEach((column, index) => {
  2455. if (index === 0) {
  2456. sums[index] = '总价'
  2457. return
  2458. }
  2459.         if (column.property === 'fgrossweight') {
  2460.             values = data.map(item => Number(item['fGrossweight']))
  2461.           }
  2462.           if (column.property === 'fnetweight') {
  2463.             values = data.map(item => Number(item['fNetweight']))
  2464.           }
  2465.           if (column.property === 'fqty') {
  2466.             values = data.map(item => Number(item['fQty']))
  2467.           }
  2468. if (column.property === "fCntqty") {
  2469. values = data.map((item) => Number(item["fCntqty"]));
  2470. }
  2471.       
  2472.         // const values = data.map(item => Number(item[column.property]))
  2473.         if (column.property === 'fgrossweight' || column.property === 'fnetweight' || column.property === 'fqty' ||
  2474. column.property === "fCntqty") {
  2475.           sums[index] = values.reduce((prev, curr) => {
  2476.             const value = Number(curr)
  2477.             if (!isNaN(value)) {
  2478. if (column.property === 'fgrossweight') {
  2479. this.form.fGrossweight = prev + curr
  2480. this.fGrossweight = prev + curr;
  2481. }
  2482. if (column.property === 'fnetweight') {
  2483. this.form.fNetweight = prev + curr
  2484. }
  2485. if (column.property === 'fqty') {
  2486. this.form.fQty = prev + curr
  2487. }
  2488. if (column.property === "fCntqty") {
  2489. this.fCntqty = prev + curr;
  2490. }
  2491.               return prev + curr
  2492.             } else {
  2493.               return prev
  2494.             }
  2495.           }, 0)
  2496.           // sums[index]
  2497.         }
  2498.       })
  2499.     this.sums = sums
  2500.    return sums
  2501. },
  2502. // 付款合计
  2503. warehouseDrSummaries (param) {
  2504.         const {columns, data} = param
  2505.          const sums = []
  2506.       columns.forEach((column, index) => {
  2507. if (index === 0) {
  2508. sums[index] = '合计'
  2509. return
  2510. }
  2511.         const values = data.map(item => Number(item[column.property]))
  2512.         if (column.property === 'fUnitprice' || column.property === 'fAmount'|| column.property === 'fQty'|| column.property === 'fQty') {
  2513.           sums[index] = values.reduce((prev, curr) => {
  2514.             const value = Number(curr)
  2515.             if (!isNaN(value)) {
  2516.               return prev + curr
  2517.             } else {
  2518.               return prev
  2519.             }
  2520.           }, 0)
  2521.           // sums[index]
  2522.         }
  2523.       })
  2524.    return sums
  2525. },
  2526. // 变更计价单位
  2527. changeFeeUnit (row) {
  2528. console.log(this.fCntqty)
  2529. console.log(row)
  2530. if (!row.fFeeUnitid) {
  2531. return false
  2532. }
  2533. if (row.fFeeUnitid === '0') {
  2534. this.$set(row, 'fQty', this.fCntqty)
  2535. } else if (row.fFeeUnitid === '1') {
  2536. this.$set(row, 'fQty', this.fGrossweight)
  2537. }
  2538. if (row.fUnitprice) {
  2539. this.$set(row, 'fAmount', parseFloat(Number(row.fUnitprice) * Number(row.fQty)).toFixed(2))
  2540. }
  2541. },
  2542. // 付款信息计价单位合计
  2543. getwarehouseCrList(param) {
  2544. console.log(param);
  2545. const { columns, data } = param;
  2546. const sums = [];
  2547. var values = [];
  2548. columns.forEach((column, index) => {
  2549. if (index === 0) {
  2550. sums[index] = "总价";
  2551. return;
  2552. }
  2553. if (index === 3) {
  2554. // values = data.map((item) => Number(item["fFeeUnitid"]));
  2555. sums[index] = this.fFeeUnitids;
  2556. return;
  2557. }
  2558. });
  2559. this.sums = sums;
  2560. return sums;
  2561. },
  2562. // 计价单位选择
  2563. changefFeeunitid(row) {
  2564. console.log(row)
  2565. if(row === "0"){
  2566. console.log(this.fCntqty)
  2567. this.fFeeUnitid = this.fCntqty
  2568. }else{
  2569. console.log(this.fGrossweight)
  2570. this.fFeeUnitid = this.fGrossweight
  2571. }
  2572. },
  2573. // 计价单位选择
  2574. changefFeeunitids(row) {
  2575. console.log(row)
  2576. if(row === "0"){
  2577. console.log(this.fFeeUnitid)
  2578. this.fFeeUnitids = this.fCntqty
  2579. }else{
  2580. this.fFeeUnitids = this.fGrossweight
  2581. }
  2582. },
  2583. /** 提交按钮 */
  2584. submitForm(status) {
  2585. this.$refs["form"].validate((valid) => {
  2586. console.log(this.dataList)
  2587. if(status === 2) {
  2588. if (valid) {
  2589. this.form.fBillstatus = status;
  2590. this.form.fNetweight = this.fNetweight;
  2591. this.form.fPlangrossweight = this.fPlangrossweight;
  2592. this.form.fPlannetweight = this.fPlannetweight;
  2593. this.form.fPlanvolumn = this.fPlanvolumn;
  2594. this.form.fPlanqty = this.fPlanqty;
  2595. this.form.fGrossweight = this.fGrossweight;
  2596. this.form.fQty = this.fQty;
  2597. console.log(this.amt);
  2598. let formData = new window.FormData();
  2599. // 附件数据
  2600. formData.append("tWarehouseBills", JSON.stringify(this.form));
  2601. // 库存明细
  2602. formData.append(
  2603. "tWarehousebillsitems",
  2604. JSON.stringify(this.dataList)
  2605. );
  2606. // 附件数据
  2607. formData.append(
  2608. "tWhgenleg",
  2609. JSON.stringify(this.relevantAttachments)
  2610. );
  2611. // 费用明细付款
  2612. formData.append(
  2613. "tWarehousebillsfeesCr",
  2614. JSON.stringify(this.warehouseCrList)
  2615. );
  2616. // 收款
  2617. formData.append(
  2618. "tWarehousebillsfeesDr",
  2619. JSON.stringify(this.warehouseDrList)
  2620. );
  2621. addWarehousebills(formData).then((response) => {
  2622. this.msgSuccess("提交成功");
  2623. this.open = false;
  2624. this.getList();
  2625. });
  2626. }
  2627. }else {
  2628. if (this.dataList.length === 0) {
  2629. this.$message.error('请添加库存明细!')
  2630. return false
  2631. }
  2632. if (this.relevantAttachments.length === 0) {
  2633. this.$message.error('请添加附件上传!')
  2634. return false
  2635. }
  2636. if (this.warehouseDrList.length === 0) {
  2637. this.$message.error('请添加收款信息!')
  2638. return false
  2639. }
  2640. if (this.warehouseCrList.length === 0) {
  2641. this.$message.error('请添加付款信息!')
  2642. return false
  2643. }
  2644. for (let list in this.dataList) {
  2645. if (!this.dataList[list].fWarehouselocid) {
  2646. this.$message.error('请输入库区!')
  2647. return false
  2648. }
  2649. }
  2650. for (let list in this.dataList) {
  2651. if (this.dataList[list].fQty === '') {
  2652. this.$message.error('请输入出库件数!')
  2653. return false
  2654. }
  2655. }
  2656. for (let list in this.relevantAttachments) {
  2657. if (this.relevantAttachments[list].fName === null) {
  2658. this.$message.error('请输入附件名称!')
  2659. return false
  2660. }
  2661. }
  2662. for (let list in this.warehouseDrList) {
  2663. if (!this.warehouseDrList[list].fCorpid) {
  2664. this.$message.error('请选择客户名称')
  2665. return false
  2666. }
  2667. }
  2668. for (let list in this.warehouseCrList) {
  2669. if (!this.warehouseCrList[list].fCorpid) {
  2670. this.$message.error('请选择客户名称')
  2671. return false
  2672. }
  2673. }
  2674. if (valid) {
  2675. this.form.fBillstatus = status;
  2676. let formData = new window.FormData();
  2677. // 附件数据
  2678. formData.append("tWarehouseBills", JSON.stringify(this.form));
  2679. // 附件数据
  2680. formData.append("tWhgenleg", JSON.stringify(this.relevantAttachments));
  2681. // // 费用明细付款
  2682. formData.append(
  2683. "tWarehousebillsfeesCr",
  2684. JSON.stringify(this.warehouseCrList)
  2685. );
  2686. // // 收款
  2687. formData.append(
  2688. "tWarehousebillsfeesDr",
  2689. JSON.stringify(this.warehouseDrList)
  2690. );
  2691. // // 库存明细
  2692. formData.append(
  2693. "tWarehousebillsitems",
  2694. JSON.stringify(this.dataList)
  2695. );
  2696. addWarehousebills(formData).then((response) => {
  2697. this.msgSuccess("新增成功");
  2698. this.open = false;
  2699. this.getList();
  2700. });
  2701. }
  2702. }
  2703. });
  2704. },
  2705. /** 删除按钮操作 */
  2706. handleDelete(row) {
  2707. const fIds = row.fId || this.ids;
  2708. this.$confirm(
  2709. '是否确认删除仓库主(出入库)编号为"' + fIds + '"的数据项?',
  2710. "警告",
  2711. {
  2712. confirmButtonText: "确定",
  2713. cancelButtonText: "取消",
  2714. type: "warning",
  2715. }
  2716. )
  2717. .then(function () {
  2718. return delWarehousebills(fIds);
  2719. })
  2720. .then(() => {
  2721. this.getList();
  2722. this.msgSuccess("删除成功");
  2723. });
  2724. },
  2725. /** 导出按钮操作 */
  2726. handleExport() {
  2727. const queryParams = this.queryParams;
  2728. this.$confirm("是否确认导出所有仓库主(出入库)数据项?", "警告", {
  2729. confirmButtonText: "确定",
  2730. cancelButtonText: "取消",
  2731. type: "warning",
  2732. })
  2733. .then(function () {
  2734. return exportWarehousebills(queryParams);
  2735. })
  2736. .then((response) => {
  2737. this.download(response.msg);
  2738. });
  2739. },
  2740. deleteRow(index, rows) {
  2741. rows.splice(index, 1);
  2742. },
  2743. /* 远程模糊查询用户 */
  2744. corpsRemoteMethod(name) {
  2745. if (name == null || name === "") {
  2746. return false;
  2747. }
  2748. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  2749. listCorps(queryParams).then((response) => {
  2750. this.fMblnoOptions = response.rows;
  2751. this.KHblnoOptions = response.rows;
  2752. });
  2753. },
  2754. /* 远程模糊查询商品 */
  2755. goodsRemoteMethod(name) {
  2756. if (name == null || name === "") {
  2757. return false;
  2758. }
  2759. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  2760. listGoods(queryParams).then((response) => {
  2761. this.goodsOptions = response.rows;
  2762. });
  2763. },
  2764. // 远程模糊查询费用名称
  2765. fWRemoteMethod(name) {
  2766. if (name == null || name === "") {
  2767. return false;
  2768. }
  2769. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  2770. listFees(queryParams).then((response) => {
  2771. this.fWbuOptions = response.rows;
  2772. });
  2773. },
  2774. /* 远程模糊查询经营单位 */
  2775. fSbuRemoteMethod(name) {
  2776. if (name == null || name === "") {
  2777. return false;
  2778. }
  2779. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  2780. listCorps(queryParams).then((response) => {
  2781. this.fSbuOptions = response.rows;
  2782. });
  2783. },
  2784. /* 远程模糊查询仓库 */
  2785. warehouseRemoteMethod(name) {
  2786. if (name == null || name === "") {
  2787. return false;
  2788. }
  2789. let queryParams = { pageNum: 1, pageSize: 10, fName: name};
  2790. listWarehouse(queryParams).then((response) => {
  2791. this.warehouseOptions = response.rows;
  2792. });
  2793. },
  2794. /* 远程模糊查询库区 */
  2795. kqhouseRemoteMethod(name) {
  2796. if (name == null || name === "") {
  2797. return false;
  2798. }
  2799. if (!this.form.fWarehouseid) {
  2800.         this.$message.error('请输入仓库!')
  2801.         return false
  2802.       }
  2803. let queryParams = { pageNum: 1, pageSize: 10, fWarehouseid:this.form.fWarehouseid , fName: name };
  2804. listArea(queryParams).then((response) => {
  2805. console.log(response);
  2806. this.kqhouseOptions = response.rows;
  2807. });
  2808. },
  2809. /* 远程模糊查询操作用户 */
  2810. userRemoteMethod(name) {
  2811. if (name == null || name === "") {
  2812. return false;
  2813. }
  2814. let queryParams = { pageNum: 1, pageSize: 10, userName: name };
  2815. listUser(queryParams).then((response) => {
  2816. this.userOptions = response.rows;
  2817. });
  2818. },
  2819. },
  2820. };
  2821. </script>
  2822. <style lang="scss">
  2823. .juzhong > th {
  2824. text-align: center;
  2825. }
  2826. .biaoge > tr > td {
  2827. height: 30px;
  2828. text-align: center;
  2829. border-right: 1px solid #dfe6ec !important;
  2830. order-bottom: 1px solid #dfe6ec !important;
  2831. border-bottom: 1px solid #dfe6ec !important;
  2832. }
  2833. .el-table thead th {
  2834. background: #1890ff;
  2835. color: #fff;
  2836. }
  2837. .upload-demo {
  2838. margin-left: 50px;
  2839. }
  2840. </style>