|
@@ -104,8 +104,8 @@ export default {
|
|
// 表头
|
|
// 表头
|
|
columns: [
|
|
columns: [
|
|
{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
- { title: '货架名称', dataIndex: 'shelfName', width: '17%', align: 'left', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '配件经销商', dataIndex: 'dealerName', width: '17%', align: 'left', customRender: function (text) { return text || '--' } },
|
|
|
|
|
|
+ { title: '货架名称', dataIndex: 'shelfName', width: '17%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
|
+ { title: '配件经销商', dataIndex: 'dealerName', width: '17%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '汽车修理厂', dataIndex: 'storeName', width: '17%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '汽车修理厂', dataIndex: 'storeName', width: '17%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '货位数量', dataIndex: 'shelfPlaceNum', width: '7%', align: 'center', customRender: function (text) { return (text || text == 0) ? text : '--' } },
|
|
{ title: '货位数量', dataIndex: 'shelfPlaceNum', width: '7%', align: 'center', customRender: function (text) { return (text || text == 0) ? text : '--' } },
|
|
{ title: '结算方式', dataIndex: 'settleTypeDictValue', width: '7%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '结算方式', dataIndex: 'settleTypeDictValue', width: '7%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
@@ -207,7 +207,7 @@ export default {
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
this.pageInit()
|
|
this.pageInit()
|
|
- // this.reset()
|
|
|
|
|
|
+ this.reset()
|
|
// if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
|
|
// if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
|
|
// this.pageInit()
|
|
// this.pageInit()
|
|
// this.reset()
|
|
// this.reset()
|
|
@@ -215,8 +215,15 @@ export default {
|
|
},
|
|
},
|
|
beforeRouteEnter (to, from, next) {
|
|
beforeRouteEnter (to, from, next) {
|
|
next(vm => {
|
|
next(vm => {
|
|
- vm.$refs.table.refresh()
|
|
|
|
|
|
+ if (from.name == 'goodsAllocationSet' || from.name == 'settlementSet') {
|
|
|
|
+ vm.$refs.table.refresh()
|
|
|
|
+ } else {
|
|
|
|
+ vm.reset()
|
|
|
|
+ }
|
|
})
|
|
})
|
|
|
|
+ // next(vm => {
|
|
|
|
+ // vm.$refs.table.refresh()
|
|
|
|
+ // })
|
|
}
|
|
}
|
|
// activated () {
|
|
// activated () {
|
|
// // 如果是新页签打开,则重置当前页面
|
|
// // 如果是新页签打开,则重置当前页面
|