|
@@ -75,6 +75,7 @@ export default {
|
|
|
spinning: false,
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
|
+ this.spinning = true
|
|
|
return allocateBillDetailList(Object.assign(parameter, { allocateSn: this.outBizSn || this.$route.params.sn })).then(res => {
|
|
|
const data = res.data
|
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
@@ -82,6 +83,7 @@ export default {
|
|
|
data.list[i].no = no + i + 1
|
|
|
}
|
|
|
this.localDataSource = data.list
|
|
|
+ this.spinning = false
|
|
|
return data
|
|
|
})
|
|
|
},
|
|
@@ -92,7 +94,7 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
isEdit () {
|
|
|
- return this.basicInfoData && ((this.basicInfoData.state == 'WAIT_SUBMIT') || (this.basicInfoData.state == 'WAIT_AUDIT') || (this.basicInfoData.state == 'AUDIT_REJECT')) && $hasPermissions('M_transferOut_edit')
|
|
|
+ return this.basicInfoData && ((this.basicInfoData.state == 'WAIT_SUBMIT') || (this.basicInfoData.state == 'WAIT_AUDIT') || (this.basicInfoData.state == 'AUDIT_REJECT')) && this.$hasPermissions('M_transferOut_edit')
|
|
|
},
|
|
|
columns () {
|
|
|
const arr = [
|
|
@@ -182,8 +184,11 @@ export default {
|
|
|
},
|
|
|
beforeRouteEnter (to, from, next) {
|
|
|
next(vm => {
|
|
|
- // vm.getDetail()
|
|
|
- // vm.getDetailCount()
|
|
|
+ if (!vm.spinning) {
|
|
|
+ vm.getDetail()
|
|
|
+ vm.getDetailCount()
|
|
|
+ vm.$refs.table.refresh()
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
}
|