index.vue 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325
  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="68px"
  9. >
  10. <el-form-item label="客户名称" prop="fCorpid">
  11. <el-input
  12. v-model="queryParams.fCorpid"
  13. placeholder="请输入客户名称"
  14. clearable
  15. size="small"
  16. @keyup.enter.native="handleQuery"
  17. />
  18. </el-form-item>
  19. <el-form-item label="仓库" prop="fWarehouseid">
  20. <el-input
  21. v-model="queryParams.fWarehouseid"
  22. placeholder="请输入仓库"
  23. clearable
  24. size="small"
  25. @keyup.enter.native="handleQuery"
  26. />
  27. </el-form-item>
  28. <el-form-item label="联系人" prop="fContacts">
  29. <el-input
  30. v-model="queryParams.fContacts"
  31. placeholder="请输入联系人"
  32. clearable
  33. size="small"
  34. @keyup.enter.native="handleQuery"
  35. />
  36. </el-form-item>
  37. <el-form-item label="电话" prop="fTel">
  38. <el-input
  39. v-model="queryParams.fTel"
  40. placeholder="请输入电话"
  41. clearable
  42. size="small"
  43. @keyup.enter.native="handleQuery"
  44. />
  45. </el-form-item>
  46. <el-button type="primary">入库记账</el-button>
  47. <el-form-item label="提单号" prop="fMblno">
  48. <el-input
  49. v-model="queryParams.fMblno"
  50. placeholder="请输入提单号"
  51. clearable
  52. size="small"
  53. @keyup.enter.native="handleQuery"
  54. />
  55. </el-form-item>
  56. <el-form-item label="入库日期" prop="fBsdate">
  57. <el-date-picker
  58. clearable
  59. size="small"
  60. style="width: 200px"
  61. v-model="queryParams.fBsdate"
  62. type="date"
  63. value-format="yyyy-MM-dd"
  64. placeholder="选择入库日期"
  65. >
  66. </el-date-picker>
  67. </el-form-item>
  68. <el-form-item label="仓管员" prop="fStorekeeper">
  69. <el-input
  70. v-model="queryParams.fStorekeeper"
  71. placeholder="请输入仓管员"
  72. clearable
  73. size="small"
  74. @keyup.enter.native="handleQuery"
  75. />
  76. </el-form-item>
  77. <el-form-item label="制单部门" prop="fDeptid">
  78. <el-input
  79. v-model="queryParams.fDeptid"
  80. placeholder="请输入制单部门"
  81. clearable
  82. size="small"
  83. @keyup.enter.native="handleQuery"
  84. />
  85. </el-form-item>
  86. <el-form-item label="制单人" prop="fCreateby">
  87. <el-input
  88. v-model="queryParams.fCreateby"
  89. placeholder="请输入制单人"
  90. clearable
  91. size="small"
  92. @keyup.enter.native="handleQuery"
  93. />
  94. </el-form-item>
  95. <el-form-item label="制单日期" prop="fCreatetime">
  96. <el-date-picker
  97. clearable
  98. size="small"
  99. style="width: 200px"
  100. v-model="queryParams.fCreatetime"
  101. type="date"
  102. value-format="yyyy-MM-dd"
  103. placeholder="选择制单日期"
  104. >
  105. </el-date-picker>
  106. </el-form-item>
  107. <el-form-item label="船名航次" prop="fVslvoy">
  108. <el-input
  109. v-model="queryParams.fVslvoy"
  110. placeholder="请输入船名航次"
  111. clearable
  112. size="small"
  113. @keyup.enter.native="handleQuery"
  114. />
  115. </el-form-item>
  116. <el-form-item label="到港日期" prop="fEta">
  117. <el-date-picker
  118. clearable
  119. size="small"
  120. style="width: 200px"
  121. v-model="queryParams.fEta"
  122. type="date"
  123. value-format="yyyy-MM-dd"
  124. placeholder="选择到港日期"
  125. >
  126. </el-date-picker>
  127. </el-form-item>
  128. <el-form-item label="贸易方式" prop="fTrademodeid">
  129. <el-input
  130. v-model="queryParams.fTrademodeid"
  131. placeholder="请输入贸易方式"
  132. clearable
  133. size="small"
  134. @keyup.enter.native="handleQuery"
  135. />
  136. </el-form-item>
  137. <el-form-item label="计费方式" prop="fBillingway ">
  138. <el-select
  139. v-model="queryParams.fBillingway "
  140. placeholder="请选择计费方式"
  141. clearable
  142. size="small"
  143. >
  144. <el-option
  145. v-for="dict in fFeetunitOptions"
  146. :key="dict.dictValue"
  147. :label="dict.dictLabel"
  148. :value="dict.dictValue"
  149. />
  150. </el-select>
  151. </el-form-item>
  152. <el-form-item label="计费单位" prop="fFeetunit">
  153. <el-select
  154. v-model="queryParams.fFeetunit"
  155. placeholder="请选择计费单位"
  156. clearable
  157. size="small"
  158. >
  159. <el-option
  160. v-for="dict in fFeetunitOptions"
  161. :key="dict.dictValue"
  162. :label="dict.dictLabel"
  163. :value="dict.dictValue"
  164. />
  165. </el-select>
  166. </el-form-item>
  167. <el-form-item label="客户存货编号" prop="fBscorpno">
  168. <el-input
  169. v-model="queryParams.fBscorpno"
  170. placeholder="请输入客户存货编号"
  171. clearable
  172. size="small"
  173. @keyup.enter.native="handleQuery"
  174. />
  175. </el-form-item>
  176. <el-form-item label="报关号" prop="fCustomsdeclartion">
  177. <el-input
  178. v-model="queryParams.fCustomsdeclartion"
  179. placeholder="请输入报关号"
  180. clearable
  181. size="small"
  182. @keyup.enter.native="handleQuery"
  183. />
  184. </el-form-item>
  185. <el-form-item
  186. label="结算方式"
  187. prop="fStltypeid"
  188. >
  189. <el-input
  190. v-model="queryParams.fStltypeid"
  191. placeholder="请输入结算方式"
  192. clearable
  193. size="small"
  194. @keyup.enter.native="handleQuery"
  195. />
  196. </el-form-item>
  197. <el-form-item label="是否过磅" prop="fIfweigh">
  198. <el-select
  199. v-model="queryParams.fIfweigh"
  200. placeholder="请选择是否过磅"
  201. clearable
  202. size="small"
  203. >
  204. <el-option
  205. v-for="dict in fIfweighOptions"
  206. :key="dict.dictValue"
  207. :label="dict.dictLabel"
  208. :value="dict.dictValue"
  209. />
  210. </el-select>
  211. </el-form-item>
  212. <el-form-item label="是否破损" prop="fIfdamage">
  213. <el-select
  214. v-model="queryParams.fIfdamage"
  215. placeholder="请选择是否破损"
  216. clearable
  217. size="small"
  218. >
  219. <el-option
  220. v-for="dict in fIfdamageOptions"
  221. :key="dict.dictValue"
  222. :label="dict.dictLabel"
  223. :value="dict.dictValue"
  224. />
  225. </el-select>
  226. </el-form-item>
  227. <el-form-item label="经营单位" prop="fSbu">
  228. <el-input
  229. v-model="queryParams.fSbu"
  230. placeholder="请输入经营单位"
  231. clearable
  232. size="small"
  233. @keyup.enter.native="handleQuery"
  234. />
  235. </el-form-item>
  236. <el-form-item
  237. label="是否质押"
  238. prop="fIfpledge"
  239. >
  240. <el-select
  241. v-model="queryParams.fIfpledge"
  242. placeholder="请选择是否质押"
  243. clearable
  244. size="small"
  245. >
  246. <el-option
  247. v-for="dict in fIfpledgeOptions"
  248. :key="dict.dictValue"
  249. :label="dict.dictLabel"
  250. :value="dict.dictValue"
  251. />
  252. </el-select>
  253. </el-form-item>
  254. <el-form-item
  255. label="银行名称"
  256. prop="fBankcorpid"
  257. >
  258. <el-input
  259. v-model="queryParams.fBankcorpid"
  260. placeholder="请输入银行名称"
  261. clearable
  262. size="small"
  263. @keyup.enter.native="handleQuery"
  264. />
  265. </el-form-item>
  266. <!-- <el-form-item label="单据类型" prop="fBilltype">
  267. <el-select
  268. v-model="queryParams.fBilltype"
  269. placeholder="请选择单据类型"
  270. clearable
  271. size="small"
  272. >
  273. <el-option
  274. v-for="dict in fBilltypeOptions"
  275. :key="dict.dictValue"
  276. :label="dict.dictLabel"
  277. :value="dict.dictValue"
  278. />
  279. </el-select>
  280. </el-form-item>
  281. <el-form-item
  282. label="业务编号,格式RK+YYYY+YY+NNN,编号不能断号,要连续、如果删除该编号,下次新建单据,优先使用删除单据号,每月从001开始。
  283. RK CK DB HZ
  284. "
  285. prop="fBillno"
  286. >
  287. <el-input
  288. v-model="queryParams.fBillno"
  289. placeholder="请输入业务编号,格式RK+YYYY+YY+NNN,编号不能断号,要连续、如果删除该编号,下次新建单据,优先使用删除单据号,每月从001开始。
  290. RK CK DB HZ
  291. "
  292. clearable
  293. size="small"
  294. @keyup.enter.native="handleQuery"
  295. />
  296. </el-form-item>
  297. <el-form-item
  298. label="原始业务编号,入库时和f_billno 相同,出库 取入库的f_originalbillno"
  299. prop="fOriginalbillno"
  300. >
  301. <el-input
  302. v-model="queryParams.fOriginalbillno"
  303. placeholder="请输入原始业务编号,入库时和f_billno 相同,出库 取入库的f_originalbillno"
  304. clearable
  305. size="small"
  306. @keyup.enter.native="handleQuery"
  307. />
  308. </el-form-item>
  309. <el-form-item label="业务所属部门" prop="fBsdeptid">
  310. <el-input
  311. v-model="queryParams.fBsdeptid"
  312. placeholder="请输入业务所属部门"
  313. clearable
  314. size="small"
  315. @keyup.enter.native="handleQuery"
  316. />
  317. </el-form-item>
  318. <el-form-item
  319. label="货转客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name,自有在货权转移是该字段有效"
  320. prop="fTocorpid"
  321. >
  322. <el-input
  323. v-model="queryParams.fTocorpid"
  324. placeholder="请输入货转客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name,自有在货权转移是该字段有效"
  325. clearable
  326. size="small"
  327. @keyup.enter.native="handleQuery"
  328. />
  329. </el-form-item>
  330. <el-form-item label="计划件数,由明细表自动合计生成" prop="fPlanqty">
  331. <el-input
  332. v-model="queryParams.fPlanqty"
  333. placeholder="请输入计划件数,由明细表自动合计生成"
  334. clearable
  335. size="small"
  336. @keyup.enter.native="handleQuery"
  337. />
  338. </el-form-item>
  339. <el-form-item
  340. label="计划毛重,由明细表自动合计生成"
  341. prop="fPlangrossweight"
  342. >
  343. <el-input
  344. v-model="queryParams.fPlangrossweight"
  345. placeholder="请输入计划毛重,由明细表自动合计生成"
  346. clearable
  347. size="small"
  348. @keyup.enter.native="handleQuery"
  349. />
  350. </el-form-item>
  351. <el-form-item label="计划净重,由明细表自动合计生成" prop="fPlannetweight">
  352. <el-input
  353. v-model="queryParams.fPlannetweight"
  354. placeholder="请输入计划净重,由明细表自动合计生成"
  355. clearable
  356. size="small"
  357. @keyup.enter.native="handleQuery"
  358. />
  359. </el-form-item>
  360. <el-form-item label="计划尺码,由明细表自动合计生成" prop="fPlanvolumn">
  361. <el-input
  362. v-model="queryParams.fPlanvolumn"
  363. placeholder="请输入计划尺码,由明细表自动合计生成"
  364. clearable
  365. size="small"
  366. @keyup.enter.native="handleQuery"
  367. />
  368. </el-form-item>
  369. <el-form-item label="件数,由明细表自动合计生成" prop="fQty">
  370. <el-input
  371. v-model="queryParams.fQty"
  372. placeholder="请输入件数,由明细表自动合计生成"
  373. clearable
  374. size="small"
  375. @keyup.enter.native="handleQuery"
  376. />
  377. </el-form-item>
  378. <el-form-item label="毛重,由明细表自动合计生成" prop="fGrossweight">
  379. <el-input
  380. v-model="queryParams.fGrossweight"
  381. placeholder="请输入毛重,由明细表自动合计生成"
  382. clearable
  383. size="small"
  384. @keyup.enter.native="handleQuery"
  385. />
  386. </el-form-item>
  387. <el-form-item label="净重,由明细表自动合计生成" prop="fNetweight">
  388. <el-input
  389. v-model="queryParams.fNetweight"
  390. placeholder="请输入净重,由明细表自动合计生成"
  391. clearable
  392. size="small"
  393. @keyup.enter.native="handleQuery"
  394. />
  395. </el-form-item>
  396. <el-form-item label="尺码,由明细表自动合计生成" prop="fVolumn">
  397. <el-input
  398. v-model="queryParams.fVolumn"
  399. placeholder="请输入尺码,由明细表自动合计生成"
  400. clearable
  401. size="small"
  402. @keyup.enter.native="handleQuery"
  403. />
  404. </el-form-item>
  405. <el-form-item label="报关单号" prop="fCustomno">
  406. <el-input
  407. v-model="queryParams.fCustomno"
  408. placeholder="请输入报关单号"
  409. clearable
  410. size="small"
  411. @keyup.enter.native="handleQuery"
  412. />
  413. </el-form-item>
  414. <el-form-item label="状态(数据字典),N 入" prop="fBillstatus">
  415. <el-select
  416. v-model="queryParams.fBillstatus"
  417. placeholder="请选择状态(数据字典),N 入"
  418. clearable
  419. size="small"
  420. >
  421. <el-option
  422. v-for="dict in fBillstatusOptions"
  423. :key="dict.dictValue"
  424. :label="dict.dictLabel"
  425. :value="dict.dictValue"
  426. />
  427. </el-select>
  428. </el-form-item> -->
  429. <el-form-item>
  430. <el-button
  431. type="cyan"
  432. icon="el-icon-search"
  433. size="mini"
  434. @click="handleQuery"
  435. >搜索</el-button
  436. >
  437. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  438. >重置</el-button
  439. >
  440. </el-form-item>
  441. </el-form>
  442. <el-row :gutter="10" class="mb8">
  443. <el-col :span="1.5">
  444. <el-button
  445. type="primary"
  446. icon="el-icon-plus"
  447. size="mini"
  448. @click="handleAdd"
  449. v-hasPermi="['warehouseBusiness:warehousebills:add']"
  450. >新增</el-button
  451. >
  452. </el-col>
  453. <el-col :span="1.5">
  454. <el-button
  455. type="success"
  456. icon="el-icon-edit"
  457. size="mini"
  458. :disabled="single"
  459. @click="handleUpdate"
  460. v-hasPermi="['warehouseBusiness:warehousebills:edit']"
  461. >修改</el-button
  462. >
  463. </el-col>
  464. <el-col :span="1.5">
  465. <el-button
  466. type="danger"
  467. icon="el-icon-delete"
  468. size="mini"
  469. :disabled="multiple"
  470. @click="handleDelete"
  471. v-hasPermi="['warehouseBusiness:warehousebills:remove']"
  472. >删除</el-button
  473. >
  474. </el-col>
  475. <el-col :span="1.5">
  476. <el-button
  477. type="warning"
  478. icon="el-icon-download"
  479. size="mini"
  480. @click="handleExport"
  481. v-hasPermi="['warehouseBusiness:warehousebills:export']"
  482. >导出</el-button
  483. >
  484. </el-col>
  485. <right-toolbar
  486. :showSearch.sync="showSearch"
  487. @queryTable="getList"
  488. ></right-toolbar>
  489. </el-row>
  490. <el-table
  491. v-loading="loading"
  492. :data="warehousebillsList"
  493. @selection-change="handleSelectionChange"
  494. >
  495. <el-table-column type="selection" width="55" align="center" />
  496. <el-table-column label="状态(数据字典),N 入" align="center" prop="fId" />
  497. <el-table-column
  498. label="业务编号,格式RK+YYYY+YY+NNN,编号不能断号,要连续、如果删除该编号,下次新建单据,优先使用删除单据号,每月从001开始。
  499. RK CK DB HZ
  500. "
  501. align="center"
  502. prop="fBillno"
  503. />
  504. <el-table-column
  505. label="报关号"
  506. align="center"
  507. prop="fCustomsdeclartion"
  508. />
  509. <el-table-column
  510. label="原始业务编号,入库时和f_billno 相同,出库 取入库的f_originalbillno"
  511. align="center"
  512. prop="fOriginalbillno"
  513. />
  514. <el-table-column label="制单部门" align="center" prop="fDeptid" />
  515. <el-table-column label="业务所属部门" align="center" prop="fBsdeptid" />
  516. <el-table-column label="联系人" align="center" prop="fContacts" />
  517. <el-table-column label="电话" align="center" prop="fTel" />
  518. <el-table-column
  519. label="客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name"
  520. align="center"
  521. prop="fCorpid"
  522. />
  523. <el-table-column
  524. label="货转客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name,自有在货权转移是该字段有效"
  525. align="center"
  526. prop="fTocorpid"
  527. />
  528. <el-table-column
  529. label="结算方式,默认提取corps中stltypeid 也可以从表t_stltypes中下拉选择,存储id,显示name"
  530. align="center"
  531. prop="fStltypeid"
  532. />
  533. <el-table-column
  534. label="客户存货编号,格式编号客户编号+YYYY +NNNN,
  535. 编号不能断号,要连续、如果删除该编号,下次新建单据,优先使用,每年从001开始"
  536. align="center"
  537. prop="fBscorpno"
  538. />
  539. <el-table-column label="仓库" align="center" prop="fWarehouseid" />
  540. <el-table-column label="仓管人" align="center" prop="fStorekeeper" />
  541. <el-table-column label="入" align="center" prop="fBsdate" width="180">
  542. <template slot-scope="scope">
  543. <span>{{ parseTime(scope.row.fBsdate, "{y}-{m}-{d}") }}</span>
  544. </template>
  545. </el-table-column>
  546. <el-table-column
  547. label="计划件数,由明细表自动合计生成"
  548. align="center"
  549. prop="fPlanqty"
  550. />
  551. <el-table-column
  552. label="计划毛重,由明细表自动合计生成"
  553. align="center"
  554. prop="fPlangrossweight"
  555. />
  556. <el-table-column
  557. label="计划净重,由明细表自动合计生成"
  558. align="center"
  559. prop="fPlannetweight"
  560. />
  561. <el-table-column
  562. label="计划尺码,由明细表自动合计生成"
  563. align="center"
  564. prop="fPlanvolumn"
  565. />
  566. <el-table-column
  567. label="件数,由明细表自动合计生成"
  568. align="center"
  569. prop="fQty"
  570. />
  571. <el-table-column
  572. label="毛重,由明细表自动合计生成"
  573. align="center"
  574. prop="fGrossweight"
  575. />
  576. <el-table-column
  577. label="净重,由明细表自动合计生成"
  578. align="center"
  579. prop="fNetweight"
  580. />
  581. <el-table-column
  582. label="尺码,由明细表自动合计生成"
  583. align="center"
  584. prop="fVolumn"
  585. />
  586. <el-table-column
  587. label="贸易方式(数据字典),对应t_trademodels "
  588. align="center"
  589. prop="fTrademodeid"
  590. :formatter="fTrademodeidFormat"
  591. />
  592. <el-table-column label="经营单位(客户列表)" align="center" prop="fSbu" />
  593. <el-table-column
  594. label="计费单位(数据字典),下拉选择毛重或净重"
  595. align="center"
  596. prop="fFeetunit"
  597. :formatter="fFeetunitFormat"
  598. />
  599. <el-table-column label="提单号" align="center" prop="fMblno" />
  600. <el-table-column
  601. label="船名航次,CMA/A0001"
  602. align="center"
  603. prop="fVslvoy"
  604. />
  605. <el-table-column label="到港日期" align="center" prop="fEta" width="180">
  606. <template slot-scope="scope">
  607. <span>{{ parseTime(scope.row.fEta, "{y}-{m}-{d}") }}</span>
  608. </template>
  609. </el-table-column>
  610. <el-table-column label="报关单号" align="center" prop="fCustomno" />
  611. <el-table-column
  612. label="是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择"
  613. align="center"
  614. prop="fIfweigh"
  615. :formatter="fIfweighFormat"
  616. />
  617. <el-table-column
  618. label="是否质押(数据字典),默认 F ,质押T 否者F 下拉选择"
  619. align="center"
  620. prop="fIfpledge"
  621. :formatter="fIfpledgeFormat"
  622. />
  623. <el-table-column
  624. label="是否破损(数据字典),默认F否则T"
  625. align="center"
  626. prop="fIfdamage"
  627. :formatter="fIfdamageFormat"
  628. />
  629. <el-table-column
  630. label="银行名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name"
  631. align="center"
  632. prop="fBankcorpid"
  633. />
  634. <el-table-column
  635. label="单据类型(数据字典)SJRK"
  636. align="center"
  637. prop="fBilltype"
  638. :formatter="fBilltypeFormat"
  639. />
  640. <el-table-column
  641. label="状态(数据字典),N 入"
  642. align="center"
  643. prop="fBillstatus"
  644. :formatter="fBillstatusFormat"
  645. />
  646. <el-table-column label="备注" align="center" prop="remark" />
  647. <el-table-column
  648. label="操作"
  649. align="center"
  650. class-name="small-padding fixed-width"
  651. >
  652. <template slot-scope="scope">
  653. <el-button
  654. size="mini"
  655. type="text"
  656. icon="el-icon-edit"
  657. @click="handleUpdate(scope.row)"
  658. v-hasPermi="['warehouseBusiness:warehousebills:edit']"
  659. >修改</el-button
  660. >
  661. <el-button
  662. size="mini"
  663. type="text"
  664. icon="el-icon-delete"
  665. @click="handleDelete(scope.row)"
  666. v-hasPermi="['warehouseBusiness:warehousebills:remove']"
  667. >删除</el-button
  668. >
  669. </template>
  670. </el-table-column>
  671. </el-table>
  672. <pagination
  673. v-show="total > 0"
  674. :total="total"
  675. :page.sync="queryParams.pageNum"
  676. :limit.sync="queryParams.pageSize"
  677. @pagination="getList"
  678. />
  679. <!-- 添加或修改仓库主(出入库)对话框 -->
  680. <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
  681. <el-form ref="form" :model="form" :rules="rules" label-width="80px">
  682. <el-form-item
  683. label="业务编号,格式RK+YYYY+YY+NNN,编号不能断号,要连续、如果删除该编号,下次新建单据,优先使用删除单据号,每月从001开始。
  684. RK CK DB HZ
  685. "
  686. prop="fBillno"
  687. >
  688. <el-input
  689. v-model="form.fBillno"
  690. placeholder="请输入业务编号,格式RK+YYYY+YY+NNN,编号不能断号,要连续、如果删除该编号,下次新建单据,优先使用删除单据号,每月从001开始。
  691. RK CK DB HZ
  692. "
  693. />
  694. </el-form-item>
  695. <el-form-item label="报关号" prop="fCustomsdeclartion">
  696. <el-input
  697. v-model="form.fCustomsdeclartion"
  698. placeholder="请输入报关号"
  699. />
  700. </el-form-item>
  701. <el-form-item
  702. label="原始业务编号,入库时和f_billno 相同,出库 取入库的f_originalbillno"
  703. prop="fOriginalbillno"
  704. >
  705. <el-input
  706. v-model="form.fOriginalbillno"
  707. placeholder="请输入原始业务编号,入库时和f_billno 相同,出库 取入库的f_originalbillno"
  708. />
  709. </el-form-item>
  710. <el-form-item label="制单部门" prop="fDeptid">
  711. <el-input v-model="form.fDeptid" placeholder="请输入制单部门" />
  712. </el-form-item>
  713. <el-form-item label="业务所属部门" prop="fBsdeptid">
  714. <el-input v-model="form.fBsdeptid" placeholder="请输入业务所属部门" />
  715. </el-form-item>
  716. <el-form-item label="联系人" prop="fContacts">
  717. <el-input v-model="form.fContacts" placeholder="请输入联系人" />
  718. </el-form-item>
  719. <el-form-item label="电话" prop="fTel">
  720. <el-input v-model="form.fTel" placeholder="请输入电话" />
  721. </el-form-item>
  722. <el-form-item
  723. label="客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name"
  724. prop="fCorpid"
  725. >
  726. <el-input
  727. v-model="form.fCorpid"
  728. placeholder="请输入客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name"
  729. />
  730. </el-form-item>
  731. <el-form-item
  732. label="货转客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name,自有在货权转移是该字段有效"
  733. prop="fTocorpid"
  734. >
  735. <el-input
  736. v-model="form.fTocorpid"
  737. placeholder="请输入货转客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name,自有在货权转移是该字段有效"
  738. />
  739. </el-form-item>
  740. <el-form-item
  741. label="结算方式,默认提取corps中stltypeid 也可以从表t_stltypes中下拉选择,存储id,显示name"
  742. prop="fStltypeid"
  743. >
  744. <el-input
  745. v-model="form.fStltypeid"
  746. placeholder="请输入结算方式,默认提取corps中stltypeid 也可以从表t_stltypes中下拉选择,存储id,显示name"
  747. />
  748. </el-form-item>
  749. <el-form-item
  750. label="客户存货编号,格式编号客户编号+YYYY +NNNN,
  751. 编号不能断号,要连续、如果删除该编号,下次新建单据,优先使用,每年从001开始"
  752. prop="fBscorpno"
  753. >
  754. <el-input
  755. v-model="form.fBscorpno"
  756. placeholder="请输入客户存货编号,格式编号客户编号+YYYY +NNNN,
  757. 编号不能断号,要连续、如果删除该编号,下次新建单据,优先使用,每年从001开始"
  758. />
  759. </el-form-item>
  760. <el-form-item label="仓库" prop="fWarehouseid">
  761. <el-input v-model="form.fWarehouseid" placeholder="请输入仓库" />
  762. </el-form-item>
  763. <el-form-item label="仓管人" prop="fStorekeeper">
  764. <el-input v-model="form.fStorekeeper" placeholder="请输入仓管人" />
  765. </el-form-item>
  766. <el-form-item label="入" prop="fBsdate">
  767. <el-date-picker
  768. clearable
  769. size="small"
  770. style="width: 200px"
  771. v-model="form.fBsdate"
  772. type="date"
  773. value-format="yyyy-MM-dd"
  774. placeholder="选择入"
  775. >
  776. </el-date-picker>
  777. </el-form-item>
  778. <el-form-item label="计划件数,由明细表自动合计生成" prop="fPlanqty">
  779. <el-input
  780. v-model="form.fPlanqty"
  781. placeholder="请输入计划件数,由明细表自动合计生成"
  782. />
  783. </el-form-item>
  784. <el-form-item
  785. label="计划毛重,由明细表自动合计生成"
  786. prop="fPlangrossweight"
  787. >
  788. <el-input
  789. v-model="form.fPlangrossweight"
  790. placeholder="请输入计划毛重,由明细表自动合计生成"
  791. />
  792. </el-form-item>
  793. <el-form-item
  794. label="计划净重,由明细表自动合计生成"
  795. prop="fPlannetweight"
  796. >
  797. <el-input
  798. v-model="form.fPlannetweight"
  799. placeholder="请输入计划净重,由明细表自动合计生成"
  800. />
  801. </el-form-item>
  802. <el-form-item label="计划尺码,由明细表自动合计生成" prop="fPlanvolumn">
  803. <el-input
  804. v-model="form.fPlanvolumn"
  805. placeholder="请输入计划尺码,由明细表自动合计生成"
  806. />
  807. </el-form-item>
  808. <el-form-item label="件数,由明细表自动合计生成" prop="fQty">
  809. <el-input
  810. v-model="form.fQty"
  811. placeholder="请输入件数,由明细表自动合计生成"
  812. />
  813. </el-form-item>
  814. <el-form-item label="毛重,由明细表自动合计生成" prop="fGrossweight">
  815. <el-input
  816. v-model="form.fGrossweight"
  817. placeholder="请输入毛重,由明细表自动合计生成"
  818. />
  819. </el-form-item>
  820. <el-form-item label="净重,由明细表自动合计生成" prop="fNetweight">
  821. <el-input
  822. v-model="form.fNetweight"
  823. placeholder="请输入净重,由明细表自动合计生成"
  824. />
  825. </el-form-item>
  826. <el-form-item label="尺码,由明细表自动合计生成" prop="fVolumn">
  827. <el-input
  828. v-model="form.fVolumn"
  829. placeholder="请输入尺码,由明细表自动合计生成"
  830. />
  831. </el-form-item>
  832. <el-form-item
  833. label="贸易方式(数据字典),对应t_trademodels "
  834. prop="fTrademodeid"
  835. >
  836. <el-input
  837. v-model="form.fTrademodeid"
  838. placeholder="请输入贸易方式(数据字典),对应t_trademodels "
  839. />
  840. </el-form-item>
  841. <el-form-item label="经营单位(客户列表)" prop="fSbu">
  842. <el-input
  843. v-model="form.fSbu"
  844. placeholder="请输入经营单位(客户列表)"
  845. />
  846. </el-form-item>
  847. <el-form-item
  848. label="计费单位(数据字典),下拉选择毛重或净重"
  849. prop="fFeetunit"
  850. >
  851. <el-select
  852. v-model="form.fFeetunit"
  853. placeholder="请选择计费单位(数据字典),下拉选择毛重或净重"
  854. >
  855. <el-option
  856. v-for="dict in fFeetunitOptions"
  857. :key="dict.dictValue"
  858. :label="dict.dictLabel"
  859. :value="dict.dictValue"
  860. ></el-option>
  861. </el-select>
  862. </el-form-item>
  863. <el-form-item label="提单号" prop="fMblno">
  864. <el-input v-model="form.fMblno" placeholder="请输入提单号" />
  865. </el-form-item>
  866. <el-form-item label="船名航次,CMA/A0001" prop="fVslvoy">
  867. <el-input
  868. v-model="form.fVslvoy"
  869. placeholder="请输入船名航次,CMA/A0001"
  870. />
  871. </el-form-item>
  872. <el-form-item label="到港日期" prop="fEta">
  873. <el-date-picker
  874. clearable
  875. size="small"
  876. style="width: 200px"
  877. v-model="form.fEta"
  878. type="date"
  879. value-format="yyyy-MM-dd"
  880. placeholder="选择到港日期"
  881. >
  882. </el-date-picker>
  883. </el-form-item>
  884. <el-form-item label="报关单号" prop="fCustomno">
  885. <el-input v-model="form.fCustomno" placeholder="请输入报关单号" />
  886. </el-form-item>
  887. <el-form-item
  888. label="是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择"
  889. prop="fIfweigh"
  890. >
  891. <el-select
  892. v-model="form.fIfweigh"
  893. placeholder="请选择是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择"
  894. >
  895. <el-option
  896. v-for="dict in fIfweighOptions"
  897. :key="dict.dictValue"
  898. :label="dict.dictLabel"
  899. :value="dict.dictValue"
  900. ></el-option>
  901. </el-select>
  902. </el-form-item>
  903. <el-form-item
  904. label="是否质押(数据字典),默认 F ,质押T 否者F 下拉选择"
  905. prop="fIfpledge"
  906. >
  907. <el-select
  908. v-model="form.fIfpledge"
  909. placeholder="请选择是否质押(数据字典),默认 F ,质押T 否者F 下拉选择"
  910. >
  911. <el-option
  912. v-for="dict in fIfpledgeOptions"
  913. :key="dict.dictValue"
  914. :label="dict.dictLabel"
  915. :value="dict.dictValue"
  916. ></el-option>
  917. </el-select>
  918. </el-form-item>
  919. <el-form-item label="是否破损(数据字典),默认F否则T" prop="fIfdamage">
  920. <el-select
  921. v-model="form.fIfdamage"
  922. placeholder="请选择是否破损(数据字典),默认F否则T"
  923. >
  924. <el-option
  925. v-for="dict in fIfdamageOptions"
  926. :key="dict.dictValue"
  927. :label="dict.dictLabel"
  928. :value="dict.dictValue"
  929. ></el-option>
  930. </el-select>
  931. </el-form-item>
  932. <el-form-item
  933. label="银行名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name"
  934. prop="fBankcorpid"
  935. >
  936. <el-input
  937. v-model="form.fBankcorpid"
  938. placeholder="请输入银行名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name"
  939. />
  940. </el-form-item>
  941. <el-form-item label="单据类型(数据字典)SJRK" prop="fBilltype">
  942. <el-select
  943. v-model="form.fBilltype"
  944. placeholder="请选择单据类型(数据字典)SJRK"
  945. >
  946. <el-option
  947. v-for="dict in fBilltypeOptions"
  948. :key="dict.dictValue"
  949. :label="dict.dictLabel"
  950. :value="dict.dictValue"
  951. ></el-option>
  952. </el-select>
  953. </el-form-item>
  954. <el-form-item label="状态(数据字典),N 入" prop="fBillstatus">
  955. <el-select
  956. v-model="form.fBillstatus"
  957. placeholder="请选择状态(数据字典),N 入"
  958. >
  959. <el-option
  960. v-for="dict in fBillstatusOptions"
  961. :key="dict.dictValue"
  962. :label="dict.dictLabel"
  963. :value="dict.dictValue"
  964. ></el-option>
  965. </el-select>
  966. </el-form-item>
  967. <el-form-item label="删除状态" prop="delFlag">
  968. <el-input v-model="form.delFlag" placeholder="请输入删除状态" />
  969. </el-form-item>
  970. <el-form-item label="备注" prop="remark">
  971. <el-input
  972. v-model="form.remark"
  973. type="textarea"
  974. placeholder="请输入内容"
  975. />
  976. </el-form-item>
  977. </el-form>
  978. <div slot="footer" class="dialog-footer">
  979. <el-button type="primary" @click="submitForm">确 定</el-button>
  980. <el-button @click="cancel">取 消</el-button>
  981. </div>
  982. </el-dialog>
  983. </div>
  984. </template>
  985. <script>
  986. import {
  987. listWarehousebills,
  988. getWarehousebills,
  989. delWarehousebills,
  990. addWarehousebills,
  991. updateWarehousebills,
  992. exportWarehousebills,
  993. } from "@/api/warehouseBusiness/warehouseInStock";
  994. export default {
  995. name: "Warehousebills",
  996. components: {},
  997. data() {
  998. return {
  999. // 遮罩层
  1000. loading: true,
  1001. // 选中数组
  1002. ids: [],
  1003. // 非单个禁用
  1004. single: true,
  1005. // 非多个禁用
  1006. multiple: true,
  1007. // 显示搜索条件
  1008. showSearch: true,
  1009. // 总条数
  1010. total: 0,
  1011. // 仓库主(出入库)表格数据
  1012. warehousebillsList: [],
  1013. // 弹出层标题
  1014. title: "",
  1015. // 是否显示弹出层
  1016. open: false,
  1017. // 贸易方式(数据字典),对应t_trademodels 字典
  1018. fTrademodeidOptions: [],
  1019. // 计费单位(数据字典),下拉选择毛重或净重字典
  1020. fFeetunitOptions: [],
  1021. // 是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择字典
  1022. fIfweighOptions: [],
  1023. // 是否质押(数据字典),默认 F ,质押T 否者F 下拉选择字典
  1024. fIfpledgeOptions: [],
  1025. // 是否破损(数据字典),默认F否则T字典
  1026. fIfdamageOptions: [],
  1027. // 单据类型(数据字典)SJRK字典
  1028. fBilltypeOptions: [],
  1029. // 状态(数据字典),N 入字典
  1030. fBillstatusOptions: [],
  1031. // 查询参数
  1032. queryParams: {
  1033. pageNum: 1,
  1034. pageSize: 10,
  1035. fBillno: null,
  1036. fCustomsdeclartion: null,
  1037. fOriginalbillno: null,
  1038. fDeptid: null,
  1039. fBsdeptid: null,
  1040. fContacts: null,
  1041. fTel: null,
  1042. fCorpid: null,
  1043. fTocorpid: null,
  1044. fStltypeid: null,
  1045. fBscorpno: null,
  1046. fWarehouseid: null,
  1047. fStorekeeper: null,
  1048. fBsdate: null,
  1049. fPlanqty: null,
  1050. fPlangrossweight: null,
  1051. fPlannetweight: null,
  1052. fPlanvolumn: null,
  1053. fQty: null,
  1054. fGrossweight: null,
  1055. fNetweight: null,
  1056. fVolumn: null,
  1057. fTrademodeid: null,
  1058. fSbu: null,
  1059. fFeetunit: null,
  1060. fMblno: null,
  1061. fVslvoy: null,
  1062. fEta: null,
  1063. fCustomno: null,
  1064. fIfweigh: null,
  1065. fIfpledge: null,
  1066. fIfdamage: null,
  1067. fBankcorpid: null,
  1068. fBilltype: null,
  1069. fBillstatus: null,
  1070. fCreateby :null,
  1071. fCreatetime :null,
  1072. },
  1073. // 表单参数
  1074. form: {},
  1075. // 表单校验
  1076. rules: {
  1077. fDeptid: [
  1078. { required: true, message: "制单部门不能为空", trigger: "blur" },
  1079. ],
  1080. fBsdeptid: [
  1081. { required: true, message: "业务所属部门不能为空", trigger: "blur" },
  1082. ],
  1083. fCorpid: [
  1084. {
  1085. required: true,
  1086. message:
  1087. "客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name不能为空",
  1088. trigger: "blur",
  1089. },
  1090. ],
  1091. fTocorpid: [
  1092. {
  1093. required: true,
  1094. message:
  1095. "货转客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name,自有在货权转移是该字段有效不能为空",
  1096. trigger: "blur",
  1097. },
  1098. ],
  1099. fBscorpno: [
  1100. {
  1101. required: true,
  1102. message:
  1103. "客户存货编号,格式编号客户编号+YYYY +NNNN,编号不能断号,要连续、如果删除该编号,下次新建单据,优先使用,每年从001开始不能为空",
  1104. trigger: "blur",
  1105. },
  1106. ],
  1107. },
  1108. };
  1109. },
  1110. created() {
  1111. this.getList();
  1112. this.getDicts("data_trademodes").then((response) => {
  1113. this.fTrademodeidOptions = response.data;
  1114. });
  1115. this.getDicts("data_unitfees").then((response) => {
  1116. this.fFeetunitOptions = response.data;
  1117. });
  1118. this.getDicts("data_ifweigh_status").then((response) => {
  1119. this.fIfweighOptions = response.data;
  1120. });
  1121. this.getDicts("data_ifpledge_status").then((response) => {
  1122. this.fIfpledgeOptions = response.data;
  1123. });
  1124. this.getDicts("data_ifdamage_status").then((response) => {
  1125. this.fIfdamageOptions = response.data;
  1126. });
  1127. this.getDicts("data_billtype_type").then((response) => {
  1128. this.fBilltypeOptions = response.data;
  1129. });
  1130. this.getDicts("sys_common_status").then((response) => {
  1131. this.fBillstatusOptions = response.data;
  1132. });
  1133. },
  1134. methods: {
  1135. /** 查询仓库主(出入库)列表 */
  1136. getList() {
  1137. this.loading = true;
  1138. listWarehousebills(this.queryParams).then((response) => {
  1139. this.warehousebillsList = response.rows;
  1140. this.total = response.total;
  1141. this.loading = false;
  1142. });
  1143. },
  1144. // 贸易方式(数据字典),对应t_trademodels 字典翻译
  1145. fTrademodeidFormat(row, column) {
  1146. return this.selectDictLabel(this.fTrademodeidOptions, row.fTrademodeid);
  1147. },
  1148. // 计费单位(数据字典),下拉选择毛重或净重字典翻译
  1149. fFeetunitFormat(row, column) {
  1150. return this.selectDictLabel(this.fFeetunitOptions, row.fFeetunit);
  1151. },
  1152. // 是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择字典翻译
  1153. fIfweighFormat(row, column) {
  1154. return this.selectDictLabel(this.fIfweighOptions, row.fIfweigh);
  1155. },
  1156. // 是否质押(数据字典),默认 F ,质押T 否者F 下拉选择字典翻译
  1157. fIfpledgeFormat(row, column) {
  1158. return this.selectDictLabel(this.fIfpledgeOptions, row.fIfpledge);
  1159. },
  1160. // 是否破损(数据字典),默认F否则T字典翻译
  1161. fIfdamageFormat(row, column) {
  1162. return this.selectDictLabel(this.fIfdamageOptions, row.fIfdamage);
  1163. },
  1164. // 单据类型(数据字典)SJRK字典翻译
  1165. fBilltypeFormat(row, column) {
  1166. return this.selectDictLabel(this.fBilltypeOptions, row.fBilltype);
  1167. },
  1168. // 状态(数据字典),N 入字典翻译
  1169. fBillstatusFormat(row, column) {
  1170. return this.selectDictLabel(this.fBillstatusOptions, row.fBillstatus);
  1171. },
  1172. // 取消按钮
  1173. cancel() {
  1174. this.open = false;
  1175. this.reset();
  1176. },
  1177. // 表单重置
  1178. reset() {
  1179. this.form = {
  1180. fId: null,
  1181. fBillno: null,
  1182. fCustomsdeclartion: null,
  1183. fOriginalbillno: null,
  1184. fDeptid: null,
  1185. fBsdeptid: null,
  1186. fContacts: null,
  1187. fTel: null,
  1188. fCorpid: null,
  1189. fTocorpid: null,
  1190. fStltypeid: null,
  1191. fBscorpno: null,
  1192. fWarehouseid: null,
  1193. fStorekeeper: null,
  1194. fBsdate: null,
  1195. fPlanqty: null,
  1196. fPlangrossweight: null,
  1197. fPlannetweight: null,
  1198. fPlanvolumn: null,
  1199. fQty: null,
  1200. fGrossweight: null,
  1201. fNetweight: null,
  1202. fVolumn: null,
  1203. fTrademodeid: null,
  1204. fSbu: null,
  1205. fFeetunit: null,
  1206. fMblno: null,
  1207. fVslvoy: null,
  1208. fEta: null,
  1209. fCustomno: null,
  1210. fIfweigh: null,
  1211. fIfpledge: null,
  1212. fIfdamage: null,
  1213. fBankcorpid: null,
  1214. fBilltype: null,
  1215. fBillstatus: null,
  1216. delFlag: null,
  1217. createBy: null,
  1218. createTime: null,
  1219. updateBy: null,
  1220. updateTime: null,
  1221. remark: null,
  1222. fCreateby :null,
  1223. fCreatetime :null,
  1224. };
  1225. this.resetForm("form");
  1226. },
  1227. /** 搜索按钮操作 */
  1228. handleQuery() {
  1229. this.queryParams.pageNum = 1;
  1230. this.getList();
  1231. },
  1232. /** 重置按钮操作 */
  1233. resetQuery() {
  1234. this.resetForm("queryForm");
  1235. this.handleQuery();
  1236. },
  1237. // 多选框选中数据
  1238. handleSelectionChange(selection) {
  1239. this.ids = selection.map((item) => item.fId);
  1240. this.single = selection.length !== 1;
  1241. this.multiple = !selection.length;
  1242. },
  1243. /** 新增按钮操作 */
  1244. handleAdd() {
  1245. this.reset();
  1246. this.open = true;
  1247. this.title = "添加仓库主(出入库)";
  1248. },
  1249. /** 修改按钮操作 */
  1250. handleUpdate(row) {
  1251. this.reset();
  1252. const fId = row.fId || this.ids;
  1253. getWarehousebills(fId).then((response) => {
  1254. this.form = response.data;
  1255. this.open = true;
  1256. this.title = "修改仓库主(出入库)";
  1257. });
  1258. },
  1259. /** 提交按钮 */
  1260. submitForm() {
  1261. this.$refs["form"].validate((valid) => {
  1262. if (valid) {
  1263. if (this.form.fId != null) {
  1264. updateWarehousebills(this.form).then((response) => {
  1265. this.msgSuccess("修改成功");
  1266. this.open = false;
  1267. this.getList();
  1268. });
  1269. } else {
  1270. addWarehousebills(this.form).then((response) => {
  1271. this.msgSuccess("新增成功");
  1272. this.open = false;
  1273. this.getList();
  1274. });
  1275. }
  1276. }
  1277. });
  1278. },
  1279. /** 删除按钮操作 */
  1280. handleDelete(row) {
  1281. const fIds = row.fId || this.ids;
  1282. this.$confirm(
  1283. '是否确认删除仓库主(出入库)编号为"' + fIds + '"的数据项?',
  1284. "警告",
  1285. {
  1286. confirmButtonText: "确定",
  1287. cancelButtonText: "取消",
  1288. type: "warning",
  1289. }
  1290. )
  1291. .then(function () {
  1292. return delWarehousebills(fIds);
  1293. })
  1294. .then(() => {
  1295. this.getList();
  1296. this.msgSuccess("删除成功");
  1297. });
  1298. },
  1299. /** 导出按钮操作 */
  1300. handleExport() {
  1301. const queryParams = this.queryParams;
  1302. this.$confirm("是否确认导出所有仓库主(出入库)数据项?", "警告", {
  1303. confirmButtonText: "确定",
  1304. cancelButtonText: "取消",
  1305. type: "warning",
  1306. })
  1307. .then(function () {
  1308. return exportWarehousebills(queryParams);
  1309. })
  1310. .then((response) => {
  1311. this.download(response.msg);
  1312. });
  1313. },
  1314. },
  1315. };
  1316. </script>