index.vue 73 KB

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