edit.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. <template>
  2. <div class="chainTransferOutEdit-wrap">
  3. <a-spin :spinning="spinning" tip="Loading...">
  4. <a-page-header :ghost="false" :backIcon="false" class="chainTransferOutEdit-back" >
  5. <!-- 自定义的二级文字标题 -->
  6. <template slot="subTitle">
  7. <a id="chainTransferOutEdit-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
  8. <span style="margin: 0 15px;color: #666;">调往对象:{{ (basicInfoData&&basicInfoData.putTenantName) || '--' }}</span>
  9. </template>
  10. <!-- 操作区,位于 title 行的行尾 -->
  11. <template slot="extra" v-if="$hasPermissions('B_allocLinkageOutPrint')">
  12. <Print :disabled="localDataSource.length==0" :showExport="false" @handlePrint="handlePrint"></Print>
  13. </template>
  14. </a-page-header>
  15. <!-- 选择产品 -->
  16. <a-card size="small" :bordered="false" class="chainTransferOutEdit-cont">
  17. <a-collapse :activeKey="['1']">
  18. <a-collapse-panel key="1" header="选择产品">
  19. <!-- 筛选条件 -->
  20. <div class="table-page-search-wrapper">
  21. <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
  22. <a-row :gutter="15">
  23. <a-col :md="6" :sm="24">
  24. <a-form-item label="产品编码" prop="productCode">
  25. <a-input id="chainTransferOutEdit-productCode" v-model="queryParam.productCode" placeholder="请输入产品编码" allowClear />
  26. </a-form-item>
  27. </a-col>
  28. <a-col :md="6" :sm="24">
  29. <a-form-item label="产品名称" prop="productName">
  30. <a-input id="chainTransferOutEdit-productName" v-model="queryParam.productName" placeholder="请输入产品名称" allowClear />
  31. </a-form-item>
  32. </a-col>
  33. <a-col :md="6" :sm="24">
  34. <a-form-item label="原厂编码" prop="productOrigCode">
  35. <a-input id="chainTransferOutEdit-productOrigCode" v-model="queryParam.productOrigCode" placeholder="请输入原厂编码" allowClear />
  36. </a-form-item>
  37. </a-col>
  38. <template v-if="advanced">
  39. <a-col :md="6" :sm="24">
  40. <a-form-item label="产品品牌">
  41. <a-select
  42. placeholder="请选择"
  43. id="chainTransferOutEdit-brandSn"
  44. allowClear
  45. v-model="queryParam.brandSn"
  46. :showSearch="true"
  47. option-filter-prop="children"
  48. :filter-option="filterOption">
  49. <a-select-option v-for="item in productBrandList" :key="item.brandSn" :value="item.brandSn">{{ item.brandName }}</a-select-option>
  50. </a-select>
  51. </a-form-item>
  52. </a-col>
  53. <a-col :md="6" :sm="24">
  54. <a-form-item label="产品分类">
  55. <a-cascader
  56. @change="changeProductType"
  57. change-on-select
  58. v-model="productType"
  59. expand-trigger="hover"
  60. :options="productTypeList"
  61. :fieldNames="{ label: 'productTypeName', value: 'productTypeSn', children: 'children' }"
  62. id="chainTransferOutEdit-productType"
  63. placeholder="请选择产品分类"
  64. allowClear />
  65. </a-form-item>
  66. </a-col>
  67. <a-col :md="6" :sm="24">
  68. <a-form-item label="仓库">
  69. <a-select id="chainTransferOutEdit-warehouseSn" allowClear placeholder="请选择仓库" v-model="queryParam.warehouseSn" >
  70. <a-select-option v-for="item in warehouseList" :key="item.warehouseSn" :value="item.warehouseSn">{{ item.name }}</a-select-option>
  71. </a-select>
  72. </a-form-item>
  73. </a-col>
  74. </template>
  75. <a-col :md="6" :sm="24" style="margin-bottom: 10px;">
  76. <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="chainTransferOutEdit-refresh">查询</a-button>
  77. <a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="chainTransferOutEdit-reset">重置</a-button>
  78. <a @click="advanced=!advanced" style="margin-left: 8px">
  79. {{ advanced ? '收起' : '展开' }}
  80. <a-icon :type="advanced ? 'up' : 'down'"/>
  81. </a>
  82. </a-col>
  83. </a-row>
  84. </a-form>
  85. </div>
  86. <!-- 列表 -->
  87. <s-table
  88. class="sTable"
  89. ref="table"
  90. size="small"
  91. :rowKey="(record) => record.stockSn+record.productSn+record.warehouseSn+record.warehouseLocationSn"
  92. :columns="columns"
  93. :customRow="handleClickRow"
  94. :data="loadData"
  95. :defaultLoadData="false"
  96. :scroll="{ y: 300 }"
  97. bordered>
  98. <!-- 调出数量 -->
  99. <template slot="outQty" slot-scope="text, record">
  100. <a-input-number
  101. size="small"
  102. id="chainTransferOutEdit-outQty"
  103. v-model="record.outQty"
  104. :precision="0"
  105. :min="1"
  106. :max="record.currentQty"
  107. placeholder="请输入"
  108. style="width: 100%;" />
  109. </template>
  110. <!-- 操作 -->
  111. <template slot="action" slot-scope="text, record">
  112. <a-button size="small" type="primary" class="button-primary" @click="handleAdd(record)" id="chainTransferOutEdit-add-btn">添加</a-button>
  113. </template>
  114. </s-table>
  115. </a-collapse-panel>
  116. </a-collapse>
  117. </a-card>
  118. <!-- 已选产品 -->
  119. <a-card size="small" :bordered="false" class="chainTransferOutEdit-cont">
  120. <a-collapse :activeKey="['1']">
  121. <a-collapse-panel key="1" header="已选产品">
  122. <!-- 总计 -->
  123. <a-alert type="info" style="margin-bottom:10px">
  124. <div slot="message">
  125. 总款数 <strong>{{ (productTotal&&(productTotal.productTotalCategory || productTotal.productTotalCategory==0)) ? productTotal.productTotalCategory : '--' }}</strong> ,
  126. 总数量 <strong>{{ (productTotal&&(productTotal.productTotalQty || productTotal.productTotalQty==0)) ? productTotal.productTotalQty : '--' }}</strong> ,
  127. 总成本 <strong>{{ (productTotal&&(productTotal.productTotalCost || productTotal.productTotalCost==0)) ? '¥'+productTotal.productTotalCost : '--' }}</strong>
  128. </div>
  129. </a-alert>
  130. <!-- 筛选条件 -->
  131. <a-row :gutter="15" justify="space-between">
  132. <a-col :span="17">
  133. <div class="table-page-search-wrapper">
  134. <a-form layout="inline" @keyup.enter.native="$refs.chooseTable.refresh(true)">
  135. <a-row :gutter="15">
  136. <a-col :md="9" :sm="24">
  137. <a-form-item label="产品编码" prop="productCode">
  138. <a-input id="chainTransferOutEdit-productCode" v-model="chooseQueryParam.productCode" placeholder="请输入产品编码" allowClear />
  139. </a-form-item>
  140. </a-col>
  141. <a-col :md="9" :sm="24">
  142. <a-form-item label="产品名称" prop="productName">
  143. <a-input id="chainTransferOutEdit-productName" v-model="chooseQueryParam.productName" placeholder="请输入产品名称" allowClear />
  144. </a-form-item>
  145. </a-col>
  146. <a-col :md="6" :sm="24" style="margin-bottom: 10px;">
  147. <a-button type="primary" @click="$refs.chooseTable.refresh(true)" :disabled="chooseDisabled" id="chainTransferOutList-refresh">查询</a-button>
  148. <a-button style="margin-left: 8px" @click="chooseResetSearchForm" :disabled="chooseDisabled" id="chainTransferOutList-reset">重置</a-button>
  149. </a-col>
  150. </a-row>
  151. </a-form>
  152. </div>
  153. </a-col>
  154. <a-col :span="7" style="text-align: right;">
  155. <!-- <a-button size="small" style="margin-left: 8px" id="chainTransferOutEdit-import-btn">导入明细</a-button> -->
  156. <a-button size="small" type="danger" style="margin-left: 8px" @click.stop="handleDel('', 'all')" id="chainTransferOutEdit-del-all-btn">整单删除</a-button>
  157. </a-col>
  158. </a-row>
  159. <!-- 列表 -->
  160. <s-table
  161. class="sTable"
  162. ref="chooseTable"
  163. size="small"
  164. :rowKey="(record) => record.id"
  165. :columns="chooseColumns"
  166. :data="chooseLoadData"
  167. :defaultLoadData="false"
  168. :scroll="{ y: 300 }"
  169. bordered>
  170. <!-- 操作 -->
  171. <template slot="action" slot-scope="text, record">
  172. <a-button size="small" type="primary" class="button-error" @click="handleDel(record)" id="chainTransferOutEdit-del-btn">删除</a-button>
  173. </template>
  174. </s-table>
  175. </a-collapse-panel>
  176. </a-collapse>
  177. </a-card>
  178. </a-spin>
  179. <div class="affix-cont">
  180. <a-button
  181. type="primary"
  182. id="chainTransferOutEdit-submit"
  183. size="large"
  184. :disabled="spinning"
  185. class="button-primary"
  186. @click="handleSubmit"
  187. style="padding: 0 60px;">提交</a-button>
  188. </div>
  189. </div>
  190. </template>
  191. <script>
  192. import { STable, VSelect } from '@/components'
  193. import { getOperationalPrecision } from '@/libs/tools.js'
  194. import { allocLinkageOutDetailSn, allocLinkageOutDetailList, allocLinkageOutDetailSave, allocLinkageOutDetailDel, allocLinkageOutDetailCount, allocLinkageOutSubmit, allocLinkageOutDetailDelAll, allocLinkageOutDetailPrint } from '@/api/allocLinkageOut'
  195. import { productQuery } from '@/api/allocWarehouse'
  196. import { dealerProductBrandQuery } from '@/api/dealerProductBrand'
  197. import { dealerProductTypeList } from '@/api/dealerProductType'
  198. import { warehouseAllList } from '@/api/warehouse'
  199. import Print from '@/views/common/print.vue'
  200. import { hdPrint } from '@/libs/JGPrint'
  201. export default {
  202. components: { STable, VSelect, Print },
  203. data () {
  204. return {
  205. spinning: false,
  206. queryParam: {
  207. productCode: '',
  208. productName: '',
  209. productOrigCode: '',
  210. warehouseSn: undefined,
  211. brandSn: undefined,
  212. productTypeSn1: undefined,
  213. productTypeSn2: undefined,
  214. productTypeSn3: undefined
  215. },
  216. productBrandList: [], // 产品品牌 下拉数据
  217. productTypeList: [], // 产品分类 下拉数据
  218. productType: [],
  219. warehouseList: [], // 仓库 下拉数据
  220. disabled: false, // 查询、重置按钮是否可操作
  221. chooseDisabled: false,
  222. advanced: false, // 高级搜索 展开/关闭
  223. // 表头
  224. columns: [
  225. { title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
  226. { title: '产品编码', dataIndex: 'productCode', width: '13%', align: 'center', customRender: function (text) { return text || '--' } },
  227. { title: '产品名称', dataIndex: 'productName', width: '13%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
  228. { title: '原厂编码', dataIndex: 'productOrigCode', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
  229. { title: '品牌', dataIndex: 'brandName', width: '9%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
  230. { title: '仓库', dataIndex: 'warehouseName', width: '9%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
  231. { title: '仓位', dataIndex: 'warehouseLocationName', width: '9%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
  232. { title: '成本价', dataIndex: 'putCost', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  233. { title: '库存数量', dataIndex: 'currentQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  234. { title: '单位', dataIndex: 'unit', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },
  235. { title: '调出数量', scopedSlots: { customRender: 'outQty' }, width: '8%', align: 'center' },
  236. { title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }
  237. ],
  238. // 加载数据方法 必须为 Promise 对象
  239. loadData: parameter => {
  240. this.disabled = true
  241. // 箭冠品牌 sysFlag传1,非箭冠品牌传0。与新增时所选调出产品类型有关
  242. this.queryParam.sysFlag = this.basicInfoData.allocationType == 'JIANGUAN' ? '1' : '0'
  243. const params = Object.assign(parameter, this.queryParam)
  244. return productQuery(params).then(res => {
  245. const data = res.data
  246. const no = (data.pageNo - 1) * data.pageSize
  247. for (var i = 0; i < data.list.length; i++) {
  248. data.list[i].no = no + i + 1
  249. }
  250. this.disabled = false
  251. return data
  252. })
  253. },
  254. chooseQueryParam: {
  255. productCode: '',
  256. productName: ''
  257. },
  258. // 表头
  259. chooseColumns: [
  260. { title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
  261. { title: '产品编码', dataIndex: 'dealerProductEntity.code', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
  262. { title: '产品名称', dataIndex: 'dealerProductEntity.name', width: '15%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
  263. { title: '原厂编码', dataIndex: 'dealerProductEntity.origCode', width: '9%', align: 'center', customRender: function (text) { return text || '--' } },
  264. { title: '品牌', dataIndex: 'dealerProductEntity.productBrandName', width: '9%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
  265. { title: '仓库', dataIndex: 'warehouseName', width: '9%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
  266. { title: '仓位', dataIndex: 'warehouseLocationName', width: '9%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
  267. { title: '单位', dataIndex: 'dealerProductEntity.unit', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },
  268. { title: '成本价', dataIndex: 'outCost', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  269. { title: '调出数量', dataIndex: 'outQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  270. { title: '成本小计', dataIndex: 'costSubtotal', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  271. { title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }
  272. ],
  273. // 加载数据方法 必须为 Promise 对象
  274. chooseLoadData: parameter => {
  275. this.chooseDisabled = true
  276. const params = Object.assign(parameter, this.chooseQueryParam, { allocationLinkageOutSn: this.$route.params.sn })
  277. return allocLinkageOutDetailList(params).then(res => {
  278. const data = res.data
  279. const no = (data.pageNo - 1) * data.pageSize
  280. for (var i = 0; i < data.list.length; i++) {
  281. data.list[i].no = no + i + 1
  282. // 成本小计 由于数据库内小数位数为4位,页面则需显示2位。因此会做小数运算精度处理
  283. data.list[i].costSubtotal = getOperationalPrecision(data.list[i].outCost, data.list[i].outQty)
  284. }
  285. this.chooseDisabled = false
  286. this.getDetailCount(params)
  287. this.localDataSource = data.list
  288. return data
  289. })
  290. },
  291. basicInfoData: null, // 基本信息
  292. productTotal: null, // 合计
  293. localDataSource: []
  294. }
  295. },
  296. methods: {
  297. // 重置
  298. resetSearchForm () {
  299. this.resetData()
  300. this.$refs.table.refresh(true)
  301. },
  302. resetData () {
  303. this.queryParam.productCode = ''
  304. this.queryParam.productName = ''
  305. this.queryParam.productOrigCode = ''
  306. this.queryParam.warehouseSn = undefined
  307. this.queryParam.brandSn = undefined
  308. this.queryParam.productTypeSn1 = undefined
  309. this.queryParam.productTypeSn2 = undefined
  310. this.queryParam.productTypeSn3 = undefined
  311. this.productType = []
  312. },
  313. // 已选产品 重置
  314. chooseResetSearchForm () {
  315. this.chooseQueryParam.productCode = ''
  316. this.chooseQueryParam.productName = ''
  317. this.$refs.chooseTable.refresh(true)
  318. },
  319. // 双击快速添加
  320. handleClickRow (record) {
  321. return {
  322. on: {
  323. dblclick: (event) => {
  324. this.handleAdd(record)
  325. }
  326. }
  327. }
  328. },
  329. // 基本信息
  330. getDetail () {
  331. allocLinkageOutDetailSn({ sn: this.$route.params.sn }).then(res => {
  332. if (res.status == 200) {
  333. this.basicInfoData = res.data
  334. this.$refs.table.refresh(true)
  335. this.getProductBrand()
  336. this.getProductType()
  337. } else {
  338. this.basicInfoData = null
  339. }
  340. })
  341. },
  342. // 添加/编辑
  343. handleAdd (row, isEdit) {
  344. if (!isEdit && !row.outQty) {
  345. this.$message.warning('请输入调出数量后再添加!')
  346. return
  347. }
  348. const params = {
  349. id: isEdit ? row.id : undefined,
  350. allocationLinkageOutSn: this.$route.params.sn,
  351. outCost: isEdit ? row.outCost : row.putCost,
  352. outQty: row.outQty,
  353. productSn: row.productSn,
  354. productProduceDate: row.productProduceDate,
  355. productExpiryDate: row.productExpiryDate,
  356. warehouseSn: row.warehouseSn,
  357. warehouseLocationSn: row.warehouseLocationSn
  358. }
  359. this.spinning = true
  360. allocLinkageOutDetailSave(params).then(res => {
  361. if (res.status == 200) {
  362. this.$message.success(res.message)
  363. this.$refs.table.refresh()
  364. this.$refs.chooseTable.refresh()
  365. this.spinning = false
  366. } else {
  367. this.spinning = false
  368. }
  369. })
  370. },
  371. // 删除
  372. handleDel (row, isAll) {
  373. const _this = this
  374. const content = isAll ? '删除后不可恢复,确定要进行整单删除吗?' : '删除后不可恢复,确定要进行删除吗?'
  375. this.$confirm({
  376. title: '提示',
  377. content: content,
  378. centered: true,
  379. onOk () {
  380. if (isAll) { // 整单删除
  381. _this.spinning = true
  382. allocLinkageOutDetailDelAll({ sn: _this.$route.params.sn }).then(res => {
  383. if (res.status == 200) {
  384. _this.$message.success(res.message)
  385. _this.$refs.table.refresh()
  386. _this.$refs.chooseTable.refresh()
  387. _this.spinning = false
  388. } else {
  389. _this.spinning = false
  390. }
  391. })
  392. } else { // 单个删除
  393. _this.spinning = true
  394. allocLinkageOutDetailDel({ id: row.id }).then(res => {
  395. if (res.status == 200) {
  396. _this.$message.success(res.message)
  397. _this.$refs.table.refresh()
  398. _this.$refs.chooseTable.refresh()
  399. _this.spinning = false
  400. } else {
  401. _this.spinning = false
  402. }
  403. })
  404. }
  405. }
  406. })
  407. },
  408. // 提交
  409. handleSubmit () {
  410. const _this = this
  411. _this.spinning = true
  412. allocLinkageOutSubmit({ sn: this.$route.params.sn }).then(res => {
  413. if (res.status == 200) {
  414. this.$message.success(res.message)
  415. setTimeout(() => {
  416. _this.handleBack()
  417. _this.spinning = false
  418. }, 1000)
  419. } else {
  420. _this.spinning = false
  421. }
  422. })
  423. },
  424. // 返回列表
  425. handleBack () {
  426. this.$router.push({ path: '/allocationManagement/chainTransferOut/list' })
  427. },
  428. filterOption (input, option) {
  429. return (
  430. option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
  431. )
  432. },
  433. // 合计
  434. getDetailCount (params) {
  435. allocLinkageOutDetailCount(params).then(res => {
  436. if (res.status == 200) {
  437. this.productTotal = res.data
  438. } else {
  439. this.productTotal = null
  440. }
  441. })
  442. },
  443. // 产品分类 change
  444. changeProductType (val, opt) {
  445. this.queryParam.productTypeSn1 = val[0] ? val[0] : ''
  446. this.queryParam.productTypeSn2 = val[1] ? val[1] : ''
  447. this.queryParam.productTypeSn3 = val[2] ? val[2] : ''
  448. },
  449. // 产品品牌 列表
  450. getProductBrand () {
  451. // sysFlag为1查询箭冠产品,为0查询非箭冠产品
  452. dealerProductBrandQuery({ sysFlag: this.basicInfoData.allocationType == 'JIANGUAN' ? '1' : '0' }).then(res => {
  453. if (res.status == 200) {
  454. this.productBrandList = res.data
  455. } else {
  456. this.productBrandList = []
  457. }
  458. })
  459. },
  460. // 产品分类 列表
  461. getProductType () {
  462. dealerProductTypeList({ sysFlag: this.basicInfoData.allocationType == 'JIANGUAN' ? '1' : '0' }).then(res => {
  463. if (res.status == 200) {
  464. this.productTypeList = res.data
  465. } else {
  466. this.productTypeList = []
  467. }
  468. })
  469. },
  470. // 仓库下拉数据
  471. getWarehouseList (type) {
  472. warehouseAllList({}).then(res => {
  473. if (res.status == 200) {
  474. this.warehouseList = res.data
  475. } else {
  476. this.warehouseList = []
  477. }
  478. })
  479. },
  480. // 打印预览/快捷打印
  481. handlePrint (type, printerType) {
  482. const _this = this
  483. _this.spinning = true
  484. const url = allocLinkageOutDetailPrint
  485. const params = { sn: this.$route.params.sn, type: printerType }
  486. // 打印或导出
  487. hdPrint(printerType, type, url, params, '', function () {
  488. _this.spinning = false
  489. })
  490. },
  491. pageInit () {
  492. this.resetData()
  493. this.chooseResetSearchForm()
  494. this.getDetail()
  495. this.getWarehouseList()
  496. }
  497. },
  498. mounted () {
  499. if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
  500. this.pageInit()
  501. }
  502. },
  503. activated () {
  504. // 如果是新页签打开或者进入新的子页(例:存在列表第2条数据编辑页页签时再打开第4条数据的编辑页),则重置当前页面
  505. if (this.$store.state.app.isNewTab || !this.$store.state.app.isNewSubTab) {
  506. this.pageInit()
  507. }
  508. },
  509. beforeRouteEnter (to, from, next) {
  510. next(vm => {})
  511. }
  512. }
  513. </script>
  514. <style lang="less">
  515. .chainTransferOutEdit-wrap{
  516. position: relative;
  517. height: 100%;
  518. padding-bottom: 51px;
  519. box-sizing: border-box;
  520. .chainTransferOutEdit-back, .chainTransferOutEdit-cont{
  521. margin-bottom: 10px;
  522. }
  523. >.ant-spin-nested-loading{
  524. overflow-y: scroll;
  525. height: 100%;
  526. }
  527. }
  528. </style>