|
@@ -22,12 +22,12 @@
|
|
<a-row :gutter="15">
|
|
<a-row :gutter="15">
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="产品编码" prop="productCode">
|
|
<a-form-item label="产品编码" prop="productCode">
|
|
- <a-input id="purchaseReturnEdit-productCode" v-model.trim="queryParam.productCode" placeholder="请输入产品编码" allowClear />
|
|
|
|
|
|
+ <a-input id="purchaseReturnEdit-productCode" v-model.trim="queryParam.code" placeholder="请输入产品编码" allowClear />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="产品名称" prop="productName">
|
|
<a-form-item label="产品名称" prop="productName">
|
|
- <a-input id="purchaseReturnEdit-productName" v-model.trim="queryParam.productName" placeholder="请输入产品名称" allowClear />
|
|
|
|
|
|
+ <a-input id="purchaseReturnEdit-productName" v-model.trim="queryParam.name" placeholder="请输入产品名称" allowClear />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
@@ -73,14 +73,16 @@
|
|
</template>
|
|
</template>
|
|
<!-- 退货原因 -->
|
|
<!-- 退货原因 -->
|
|
<template slot="returnReason" slot-scope="text, record">
|
|
<template slot="returnReason" slot-scope="text, record">
|
|
- <v-select
|
|
|
|
|
|
+ <a-select
|
|
|
|
+ style="width:100%;"
|
|
|
|
+ size="small"
|
|
v-model="record.returnReason"
|
|
v-model="record.returnReason"
|
|
- ref="billStatus"
|
|
|
|
- code="RETURN_APPLY_BILL_STATUS"
|
|
|
|
placeholder="请选择退货原因"
|
|
placeholder="请选择退货原因"
|
|
- allowClear
|
|
|
|
- style="width: 100%;"
|
|
|
|
- ></v-select>
|
|
|
|
|
|
+ allowClear>
|
|
|
|
+ <a-select-option v-for="item in returnReasonList" :value="item.code">
|
|
|
|
+ {{ item.dispName }}
|
|
|
|
+ </a-select-option>
|
|
|
|
+ </a-select>
|
|
</template>
|
|
</template>
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
<template slot="action" slot-scope="text, record">
|
|
<template slot="action" slot-scope="text, record">
|
|
@@ -104,6 +106,12 @@
|
|
<template slot="header">
|
|
<template slot="header">
|
|
已选产品
|
|
已选产品
|
|
</template>
|
|
</template>
|
|
|
|
+ <!-- 总计 -->
|
|
|
|
+ <a-alert type="info" style="margin-bottom:10px">
|
|
|
|
+ <div slot="message">
|
|
|
|
+ 申请退货数量:<strong>{{ (detailData&&(detailData.totalQty || detailData.totalQty==0)) ? detailData.totalQty : '--' }}</strong> ;
|
|
|
|
+ </div>
|
|
|
|
+ </a-alert>
|
|
<!-- 筛选条件 -->
|
|
<!-- 筛选条件 -->
|
|
<div class="table-page-search-wrapper" style="display:flex;width:100%;">
|
|
<div class="table-page-search-wrapper" style="display:flex;width:100%;">
|
|
<div style="width:80%;">
|
|
<div style="width:80%;">
|
|
@@ -153,7 +161,7 @@
|
|
bordered>
|
|
bordered>
|
|
<!-- 产品分类 -->
|
|
<!-- 产品分类 -->
|
|
<template slot="productType" slot-scope="text, record">
|
|
<template slot="productType" slot-scope="text, record">
|
|
- <span v-if="record.productTypeName2 || record.productTypeName3">{{ record.productTypeName2 }} {{ record.productTypeName3 ? '>' : '' }} {{ record.productTypeName3 }}</span>
|
|
|
|
|
|
+ <span v-if="record.product.productTypeName2 || record.product.productTypeName3">{{ record.product.productTypeName2 }} {{ record.product.productTypeName3 ? '>' : '' }} {{ record.product.productTypeName3 }}</span>
|
|
<span v-else>--</span>
|
|
<span v-else>--</span>
|
|
</template>
|
|
</template>
|
|
<!-- 退货数量 -->
|
|
<!-- 退货数量 -->
|
|
@@ -170,15 +178,17 @@
|
|
</template>
|
|
</template>
|
|
<!-- 退货原因 -->
|
|
<!-- 退货原因 -->
|
|
<template slot="returnReason" slot-scope="text, record">
|
|
<template slot="returnReason" slot-scope="text, record">
|
|
- <v-select
|
|
|
|
|
|
+ <a-select
|
|
|
|
+ style="width:100%;"
|
|
|
|
+ size="small"
|
|
v-model="record.returnReason"
|
|
v-model="record.returnReason"
|
|
- ref="billStatus"
|
|
|
|
- code="RETURN_APPLY_BILL_STATUS"
|
|
|
|
placeholder="请选择退货原因"
|
|
placeholder="请选择退货原因"
|
|
- allowClear
|
|
|
|
- style="width: 100%;"
|
|
|
|
@change="e => remarksBlur(e, record)"
|
|
@change="e => remarksBlur(e, record)"
|
|
- ></v-select>
|
|
|
|
|
|
+ allowClear>
|
|
|
|
+ <a-select-option v-for="item in returnReasonList" :value="item.code">
|
|
|
|
+ {{ item.dispName }}
|
|
|
|
+ </a-select-option>
|
|
|
|
+ </a-select>
|
|
</template>
|
|
</template>
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
<template slot="action" slot-scope="text, record">
|
|
<template slot="action" slot-scope="text, record">
|
|
@@ -211,12 +221,13 @@ import ProductType from '../../common/productType.js'
|
|
import { productList } from '@/api/product'
|
|
import { productList } from '@/api/product'
|
|
import {
|
|
import {
|
|
purchaseReturnDetailList,
|
|
purchaseReturnDetailList,
|
|
|
|
+ purchaseReturnDetail,
|
|
purchaseReturnDetailSave,
|
|
purchaseReturnDetailSave,
|
|
purchaseReturnDetailDel,
|
|
purchaseReturnDetailDel,
|
|
- purchaseReturnSubmit,
|
|
|
|
purchaseReturnDetailDelAll,
|
|
purchaseReturnDetailDelAll,
|
|
purchaseReturnModifyQty,
|
|
purchaseReturnModifyQty,
|
|
modifyReturnReason,
|
|
modifyReturnReason,
|
|
|
|
+ purchaseReturnSubmit,
|
|
purchaseReturnDetailPrint,
|
|
purchaseReturnDetailPrint,
|
|
purchaseReturnDetailExport } from '@/api/purchaseReturnApply'
|
|
purchaseReturnDetailExport } from '@/api/purchaseReturnApply'
|
|
export default {
|
|
export default {
|
|
@@ -227,19 +238,21 @@ export default {
|
|
return {
|
|
return {
|
|
spinning: false,
|
|
spinning: false,
|
|
queryParam: {
|
|
queryParam: {
|
|
- productCode: '',
|
|
|
|
- productName: '',
|
|
|
|
|
|
+ code: '',
|
|
|
|
+ name: '',
|
|
productTypeSn1: undefined,
|
|
productTypeSn1: undefined,
|
|
productTypeSn2: undefined,
|
|
productTypeSn2: undefined,
|
|
productTypeSn3: undefined
|
|
productTypeSn3: undefined
|
|
},
|
|
},
|
|
productType: [],
|
|
productType: [],
|
|
dataSource: [],
|
|
dataSource: [],
|
|
|
|
+ returnReasonList: [], // 退货原因列表
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
this.disabled = true
|
|
this.disabled = true
|
|
|
|
+ this.queryParam.sysFlag = '1' // 剪冠产品
|
|
return productList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
return productList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
const data = res.data
|
|
const data = res.data
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
@@ -257,7 +270,7 @@ export default {
|
|
},
|
|
},
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
chooseLoadData: parameter => {
|
|
chooseLoadData: parameter => {
|
|
- return purchaseReturnDetailList(Object.assign(parameter, { purchaseReturnApplySn: this.$route.params.sn })).then(res => {
|
|
|
|
|
|
+ return purchaseReturnDetailList(Object.assign(parameter, { purchaseReturnApplySn: this.$route.params.sn }, this.chooseParam)).then(res => {
|
|
const data = res.data
|
|
const data = res.data
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
for (var i = 0; i < data.list.length; i++) {
|
|
for (var i = 0; i < data.list.length; i++) {
|
|
@@ -268,7 +281,8 @@ export default {
|
|
this.dataSource = data.list
|
|
this.dataSource = data.list
|
|
return data
|
|
return data
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ detailData: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -276,11 +290,11 @@ export default {
|
|
const arr = [
|
|
const arr = [
|
|
{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
{ title: '产品编码', dataIndex: 'code', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '产品编码', dataIndex: 'code', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '产品名称', dataIndex: 'name', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
|
- { title: '产品分类', scopedSlots: { customRender: 'productType' }, width: '15%', align: 'center' },
|
|
|
|
|
|
+ { title: '产品名称', dataIndex: 'name', width: '20%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
|
+ { title: '产品分类', scopedSlots: { customRender: 'productType' }, width: '20%', align: 'center' },
|
|
{ title: '单位', dataIndex: 'unit', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '单位', dataIndex: 'unit', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '申请退货数量', scopedSlots: { customRender: 'returnQty' }, width: '15%', align: 'center' },
|
|
|
|
- { title: '退货原因', scopedSlots: { customRender: 'returnReason' }, width: '15%', align: 'center' },
|
|
|
|
|
|
+ { title: '申请退货数量', scopedSlots: { customRender: 'returnQty' }, width: '10%', align: 'center' },
|
|
|
|
+ { title: '退货原因', scopedSlots: { customRender: 'returnReason' }, width: '10%', align: 'center' },
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
]
|
|
]
|
|
return arr
|
|
return arr
|
|
@@ -288,18 +302,22 @@ export default {
|
|
chooseColumns () {
|
|
chooseColumns () {
|
|
const arr = [
|
|
const arr = [
|
|
{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
- { title: '产品编码', dataIndex: 'code', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '产品名称', dataIndex: 'name', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
|
- { title: '产品分类', scopedSlots: { customRender: 'productType' }, width: '15%', align: 'center' },
|
|
|
|
- { title: '单位', dataIndex: 'unit', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '申请退货数量', scopedSlots: { customRender: 'qty' }, width: '15%', align: 'center' },
|
|
|
|
- { title: '退货原因', scopedSlots: { customRender: 'returnReason' }, width: '15%', align: 'center' },
|
|
|
|
|
|
+ { title: '产品编码', dataIndex: 'product.code', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '产品名称', dataIndex: 'product.name', width: '20%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
|
+ { title: '产品分类', scopedSlots: { customRender: 'productType' }, width: '20%', align: 'center' },
|
|
|
|
+ { title: '单位', dataIndex: 'product.unit', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '申请退货数量', scopedSlots: { customRender: 'qty' }, width: '10%', align: 'center' },
|
|
|
|
+ { title: '退货原因', scopedSlots: { customRender: 'returnReason' }, width: '10%', align: 'center' },
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
]
|
|
]
|
|
return arr
|
|
return arr
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 返回列表
|
|
|
|
+ handleBack () {
|
|
|
|
+ this.$router.push({ name: 'purchaseReturnApplyFormList' })
|
|
|
|
+ },
|
|
// 打印预览/快捷打印
|
|
// 打印预览/快捷打印
|
|
handlePrint (type, printerType) {
|
|
handlePrint (type, printerType) {
|
|
const _this = this
|
|
const _this = this
|
|
@@ -321,20 +339,16 @@ export default {
|
|
this.queryParam.productTypeSn2 = val[1] ? val[1] : ''
|
|
this.queryParam.productTypeSn2 = val[1] ? val[1] : ''
|
|
this.queryParam.productTypeSn3 = val[2] ? val[2] : ''
|
|
this.queryParam.productTypeSn3 = val[2] ? val[2] : ''
|
|
},
|
|
},
|
|
- // 重置
|
|
|
|
|
|
+ // 重置产品列表
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|
|
- this.queryParam.productCode = ''
|
|
|
|
- this.queryParam.productName = ''
|
|
|
|
|
|
+ this.queryParam.code = ''
|
|
|
|
+ this.queryParam.name = ''
|
|
this.queryParam.productTypeSn1 = undefined
|
|
this.queryParam.productTypeSn1 = undefined
|
|
this.queryParam.productTypeSn2 = undefined
|
|
this.queryParam.productTypeSn2 = undefined
|
|
this.queryParam.productTypeSn3 = undefined
|
|
this.queryParam.productTypeSn3 = undefined
|
|
|
|
+ this.productType = []
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
},
|
|
},
|
|
- resetChooseForm () {
|
|
|
|
- this.queryParam.productCode = ''
|
|
|
|
- this.queryParam.productName = ''
|
|
|
|
- this.$refs.chooseTable.refresh(true)
|
|
|
|
- },
|
|
|
|
// 添加/编辑
|
|
// 添加/编辑
|
|
handleAdd (row) {
|
|
handleAdd (row) {
|
|
// 添加时退货数量字段名为returnQty,编辑时退货数量字段名为qty
|
|
// 添加时退货数量字段名为returnQty,编辑时退货数量字段名为qty
|
|
@@ -357,6 +371,7 @@ export default {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.$message.success(res.message)
|
|
this.$message.success(res.message)
|
|
this.$refs.chooseTable.refresh()
|
|
this.$refs.chooseTable.refresh()
|
|
|
|
+ this.getDetail()
|
|
this.spinning = false
|
|
this.spinning = false
|
|
} else {
|
|
} else {
|
|
this.spinning = false
|
|
this.spinning = false
|
|
@@ -376,6 +391,12 @@ export default {
|
|
},
|
|
},
|
|
// 导入明细
|
|
// 导入明细
|
|
handleImport () {},
|
|
handleImport () {},
|
|
|
|
+ // 重置已选产品列表
|
|
|
|
+ resetChooseForm () {
|
|
|
|
+ this.chooseParam.productCode = ''
|
|
|
|
+ this.chooseParam.productName = ''
|
|
|
|
+ this.$refs.chooseTable.refresh(true)
|
|
|
|
+ },
|
|
// 删除
|
|
// 删除
|
|
handleDel (row, isAll) {
|
|
handleDel (row, isAll) {
|
|
const _this = this
|
|
const _this = this
|
|
@@ -385,31 +406,20 @@ export default {
|
|
content: content,
|
|
content: content,
|
|
centered: true,
|
|
centered: true,
|
|
onOk () {
|
|
onOk () {
|
|
- if (isAll) { // 整单删除
|
|
|
|
- _this.spinning = true
|
|
|
|
- purchaseReturnDetailDelAll({ purchaseReturnApplySn: _this.$route.params.sn }).then(res => {
|
|
|
|
- if (res.status == 200) {
|
|
|
|
- _this.$message.success(res.message)
|
|
|
|
- _this.$refs.table.refresh()
|
|
|
|
- _this.$refs.chooseTable.refresh()
|
|
|
|
- _this.spinning = false
|
|
|
|
- } else {
|
|
|
|
- _this.spinning = false
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- } else { // 单个删除
|
|
|
|
- _this.spinning = true
|
|
|
|
- purchaseReturnDetailDel({ purchaseReturnApplySn: _this.$route.params.sn }).then(res => {
|
|
|
|
- if (res.status == 200) {
|
|
|
|
- _this.$message.success(res.message)
|
|
|
|
- _this.$refs.table.refresh()
|
|
|
|
- _this.$refs.chooseTable.refresh()
|
|
|
|
- _this.spinning = false
|
|
|
|
- } else {
|
|
|
|
- _this.spinning = false
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ const fun = isAll ? purchaseReturnDetailDelAll : purchaseReturnDetailDel
|
|
|
|
+ const params = isAll ? { purchaseReturnApplySn: _this.$route.params.sn } : { purchaseReturnApplySn: _this.$route.params.sn, purchaseReturnApplyDetailSn: row.purchaseReturnApplyDetailSn }
|
|
|
|
+ _this.spinning = true
|
|
|
|
+ fun(params).then(res => {
|
|
|
|
+ if (res.status == 200) {
|
|
|
|
+ _this.$message.success(res.message)
|
|
|
|
+ _this.$refs.table.refresh()
|
|
|
|
+ _this.$refs.chooseTable.refresh()
|
|
|
|
+ _this.spinning = false
|
|
|
|
+ _this.getDetail()
|
|
|
|
+ } else {
|
|
|
|
+ _this.spinning = false
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -429,11 +439,7 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // 返回列表
|
|
|
|
- handleBack () {
|
|
|
|
- this.$router.push({ path: '/purchasingManagement/purchaseReturn/list' })
|
|
|
|
- },
|
|
|
|
- // 已选产品 退货数量 blur
|
|
|
|
|
|
+ // 已选产品 退货数量修改
|
|
qtyBlur (val, record) {
|
|
qtyBlur (val, record) {
|
|
// 光标移出,值发生改变再调用编辑接口
|
|
// 光标移出,值发生改变再调用编辑接口
|
|
if (val != record.qtyBackups) {
|
|
if (val != record.qtyBackups) {
|
|
@@ -446,6 +452,8 @@ export default {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.$message.success(res.message)
|
|
this.$message.success(res.message)
|
|
this.$refs.chooseTable.refresh()
|
|
this.$refs.chooseTable.refresh()
|
|
|
|
+ record.qtyBackups = record.qty
|
|
|
|
+ this.getDetail()
|
|
} else {
|
|
} else {
|
|
record.qty = record.qtyBackups
|
|
record.qty = record.qtyBackups
|
|
}
|
|
}
|
|
@@ -453,37 +461,48 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- // 已选产品 退货原因 blur
|
|
|
|
|
|
+ // 已选产品 退货原因修改
|
|
remarksBlur (val, record) {
|
|
remarksBlur (val, record) {
|
|
if (val && (val != record.returnReasonBackups)) {
|
|
if (val && (val != record.returnReasonBackups)) {
|
|
this.spinning = true
|
|
this.spinning = true
|
|
modifyReturnReason({
|
|
modifyReturnReason({
|
|
- returnReason: val,
|
|
|
|
|
|
+ returnReason: record.returnReason,
|
|
purchaseReturnApplyDetailSn: record.purchaseReturnApplyDetailSn,
|
|
purchaseReturnApplyDetailSn: record.purchaseReturnApplyDetailSn,
|
|
purchaseReturnApplySn: this.$route.params.sn
|
|
purchaseReturnApplySn: this.$route.params.sn
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.$message.success(res.message)
|
|
this.$message.success(res.message)
|
|
this.$refs.chooseTable.refresh()
|
|
this.$refs.chooseTable.refresh()
|
|
|
|
+ record.returnReasonBackups = record.returnReason
|
|
} else {
|
|
} else {
|
|
record.returnReason = record.returnReasonBackups
|
|
record.returnReason = record.returnReasonBackups
|
|
}
|
|
}
|
|
this.spinning = false
|
|
this.spinning = false
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ // 获取单据详情
|
|
|
|
+ getDetail () {
|
|
|
|
+ purchaseReturnDetail({ sn: this.$route.params.sn }).then(res => {
|
|
|
|
+ this.detailData = res.data ? res.data : null
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ pageInit () {
|
|
|
|
+ this.returnReasonList = this.$store.state.app.returnReason
|
|
|
|
+ this.$refs.chooseTable.refresh(true)
|
|
|
|
+ this.resetSearchForm()
|
|
|
|
+ this.getDetail()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
|
|
if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
|
|
- this.$refs.chooseTable.refresh(true)
|
|
|
|
- this.resetSearchForm()
|
|
|
|
|
|
+ this.pageInit()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated () {
|
|
activated () {
|
|
// 如果是新页签打开或者进入新的子页(例:存在列表第2条数据编辑页页签时再打开第4条数据的编辑页),则重置当前页面
|
|
// 如果是新页签打开或者进入新的子页(例:存在列表第2条数据编辑页页签时再打开第4条数据的编辑页),则重置当前页面
|
|
if (this.$store.state.app.isNewTab || !this.$store.state.app.isNewSubTab) {
|
|
if (this.$store.state.app.isNewTab || !this.$store.state.app.isNewSubTab) {
|
|
- this.$refs.chooseTable.refresh(true)
|
|
|
|
- this.resetSearchForm()
|
|
|
|
|
|
+ this.pageInit()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
beforeRouteEnter (to, from, next) {
|
|
beforeRouteEnter (to, from, next) {
|