index.vue 76 KB

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