Commit ad219a5d authored by jingnan's avatar jingnan 👀

批量签审界面包含tab页签的界面loading处理

parent 221ff6cf
...@@ -23,6 +23,13 @@ const disShowLadingRequestUrl = [ ...@@ -23,6 +23,13 @@ const disShowLadingRequestUrl = [
'/ExtProcessSkillUser/getSkillUser' '/ExtProcessSkillUser/getSkillUser'
] ]
const disShowLadingRequestRoute = [
'/dee-task-center/workflow/task-center/home/Activity_1gsdy96', // 批量_验收入库申请
'/dee-task-center/workflow/task-center/home/Activity_1oc19vh', // 批量_验收入库审核
'/dee-task-center/workflow/task-center/home/Activity_1f9m8pv', // 批量_验收入库理化
'/dee-task-center/workflow/task-center/home/Activity_1sj6bja', // 批量_验收入库检验
'/dee-task-center/workflow/task-center/home/Activity_1rlj2pq'// 批量_退库入库检验
]
axios.defaults.baseURL = VUE_APP_BASE_API || process.env.VUE_APP_BASE_API // eslint-disable-line axios.defaults.baseURL = VUE_APP_BASE_API || process.env.VUE_APP_BASE_API // eslint-disable-line
axios.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8' axios.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8'
axios.defaults.headers.post['Cache-Control'] = 'no-cache' axios.defaults.headers.post['Cache-Control'] = 'no-cache'
...@@ -37,6 +44,8 @@ axios.interceptors.request.use( ...@@ -37,6 +44,8 @@ axios.interceptors.request.use(
} }
const disLoading = disShowLadingRequestUrl.find((el) => { const disLoading = disShowLadingRequestUrl.find((el) => {
return config.url.includes(el) return config.url.includes(el)
}) || disShowLadingRequestRoute.find((r) => {
return router.app.$route.path.includes(r) && router.app.$route.query && router.app.$route.query.DAO === '批量签审'
}) })
if (!disLoading) { if (!disLoading) {
loadingInstance = Loading.service({ loadingInstance = Loading.service({
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<el-tab-pane :label="'器材验收单(' + totals.MaterialTotal + ')'" name="Material"> <el-tab-pane :label="'器材验收单(' + totals.MaterialTotal + ')'" name="Material">
<dee-as-com <dee-as-com
ref="MaterialTable" ref="MaterialTable"
v-dee-loading="loadingMaterial"
class="list-table" class="list-table"
:basic-data=" {...basicData,tableType:'Material'}" :basic-data=" {...basicData,tableType:'Material'}"
:lay-config="{ typeName: 'InStorageBackItem', layKey: 'Material_batchSign_InStorageBackInTest'}" :lay-config="{ typeName: 'InStorageBackItem', layKey: 'Material_batchSign_InStorageBackInTest'}"
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
<el-tab-pane :label="'机载系统设备验收单(' + totals.AirEquipmentTotal + ')'" name="AirEquipment"> <el-tab-pane :label="'机载系统设备验收单(' + totals.AirEquipmentTotal + ')'" name="AirEquipment">
<dee-as-com <dee-as-com
ref="AirEquipmentTable" ref="AirEquipmentTable"
v-dee-loading="loadingAirEquipment"
class="list-table" class="list-table"
:lay-config="{ typeName: 'InStorageBackItem', layKey: 'AirEquipment_batchSign_InStorageBackItem'}" :lay-config="{ typeName: 'InStorageBackItem', layKey: 'AirEquipment_batchSign_InStorageBackItem'}"
:basic-data=" {...basicData,tableType:'AirEquipment'}" :basic-data=" {...basicData,tableType:'AirEquipment'}"
...@@ -36,6 +38,7 @@ ...@@ -36,6 +38,7 @@
<el-tab-pane :label="'外包产品验收单(' + totals.OutSourceTotal + ')'" name="OutSource"> <el-tab-pane :label="'外包产品验收单(' + totals.OutSourceTotal + ')'" name="OutSource">
<dee-as-com <dee-as-com
ref="OutSourceTable" ref="OutSourceTable"
v-dee-loading="loadingOutSource"
class="list-table" class="list-table"
:lay-config="{ typeName: 'InStorageBackItem', layKey: 'OutSource_batchSign_InStorageBackItem'}" :lay-config="{ typeName: 'InStorageBackItem', layKey: 'OutSource_batchSign_InStorageBackItem'}"
:basic-data="{...basicData,tableType:'OutSource'}" :basic-data="{...basicData,tableType:'OutSource'}"
...@@ -75,7 +78,10 @@ export default { ...@@ -75,7 +78,10 @@ export default {
'OutSource' 'OutSource'
], ],
selectionRows: {}, selectionRows: {},
basicData: { selectData: _that.selectData, selectionRows: [] } basicData: { selectData: _that.selectData, selectionRows: [] },
loadingMaterial: false,
loadingAirEquipment: false,
loadingOutSource: false
} }
}, },
computed: { computed: {
...@@ -108,6 +114,7 @@ export default { ...@@ -108,6 +114,7 @@ export default {
// 组件方法 // 组件方法
methods: { methods: {
onRequestSuccess(res, tabName) { onRequestSuccess(res, tabName) {
this['loading' + tabName] = false
this.$set(this.totals, tabName + 'Total', res.items.totalElements) this.$set(this.totals, tabName + 'Total', res.items.totalElements)
}, },
searchEvent(val) { searchEvent(val) {
...@@ -116,6 +123,7 @@ export default { ...@@ -116,6 +123,7 @@ export default {
}, },
getTableData() { getTableData() {
this.tabNames.forEach(item => { this.tabNames.forEach(item => {
this['loading' + item] = true
const el = this.$refs[item + 'Table'] const el = this.$refs[item + 'Table']
if (el && el.$refs.asCom) { if (el && el.$refs.asCom) {
el.$refs.asCom.getData(this.searchItems) el.$refs.asCom.getData(this.searchItems)
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<el-tab-pane :label="'器材验收单(' + totals.MaterialTotal + ')'" name="Material"> <el-tab-pane :label="'器材验收单(' + totals.MaterialTotal + ')'" name="Material">
<dee-as-com <dee-as-com
ref="MaterialTable" ref="MaterialTable"
v-dee-loading="loadingMaterial"
class="list-table" class="list-table"
:basic-data=" {...basicData,tableType:'Material'}" :basic-data=" {...basicData,tableType:'Material'}"
:lay-config="{ typeName: 'JobResponseInStorage', layKey: 'material_batchSign_jobResponseInExperiment'}" :lay-config="{ typeName: 'JobResponseInStorage', layKey: 'material_batchSign_jobResponseInExperiment'}"
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
<el-tab-pane :label="'机载系统设备验收单(' + totals.AirEquipmentTotal + ')'" name="AirEquipment"> <el-tab-pane :label="'机载系统设备验收单(' + totals.AirEquipmentTotal + ')'" name="AirEquipment">
<dee-as-com <dee-as-com
ref="AirEquipmentTable" ref="AirEquipmentTable"
v-dee-loading="loadingAirEquipment"
class="list-table" class="list-table"
:lay-config="{ typeName: 'JobResponseInStorage', layKey: 'airborne_batchSign_jobResponseInExperiment'}" :lay-config="{ typeName: 'JobResponseInStorage', layKey: 'airborne_batchSign_jobResponseInExperiment'}"
:basic-data=" {...basicData,tableType:'AirEquipment'}" :basic-data=" {...basicData,tableType:'AirEquipment'}"
...@@ -36,6 +38,7 @@ ...@@ -36,6 +38,7 @@
<el-tab-pane :label="'外包产品验收单(' + totals.OutSourceTotal + ')'" name="OutSource"> <el-tab-pane :label="'外包产品验收单(' + totals.OutSourceTotal + ')'" name="OutSource">
<dee-as-com <dee-as-com
ref="OutSourceTable" ref="OutSourceTable"
v-dee-loading="loadingOutSource"
class="list-table" class="list-table"
:lay-config="{ typeName: 'JobResponseInStorage', layKey: 'outsource_batchSign_jobResponseInExperiment'}" :lay-config="{ typeName: 'JobResponseInStorage', layKey: 'outsource_batchSign_jobResponseInExperiment'}"
:basic-data="{...basicData,tableType:'OutSource'}" :basic-data="{...basicData,tableType:'OutSource'}"
...@@ -75,7 +78,10 @@ export default { ...@@ -75,7 +78,10 @@ export default {
'OutSource' 'OutSource'
], ],
selectionRows: {}, selectionRows: {},
basicData: { selectData: _that.selectData, selectionRows: [] } basicData: { selectData: _that.selectData, selectionRows: [] },
loadingMaterial: false,
loadingAirEquipment: false,
loadingOutSource: false
} }
}, },
computed: { computed: {
...@@ -108,6 +114,7 @@ export default { ...@@ -108,6 +114,7 @@ export default {
// 组件方法 // 组件方法
methods: { methods: {
onRequestSuccess(res, tabName) { onRequestSuccess(res, tabName) {
this['loading' + tabName] = false
this.$set(this.totals, tabName + 'Total', res.items.totalElements) this.$set(this.totals, tabName + 'Total', res.items.totalElements)
}, },
searchEvent(val) { searchEvent(val) {
...@@ -116,6 +123,7 @@ export default { ...@@ -116,6 +123,7 @@ export default {
}, },
getTableData() { getTableData() {
this.tabNames.forEach(item => { this.tabNames.forEach(item => {
this['loading' + item] = true
const el = this.$refs[item + 'Table'] const el = this.$refs[item + 'Table']
if (el && el.$refs.asCom) { if (el && el.$refs.asCom) {
el.$refs.asCom.getData(this.searchItems) el.$refs.asCom.getData(this.searchItems)
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<el-tab-pane :label="'器材验收单(' + totals.MaterialTotal + ')'" name="Material"> <el-tab-pane :label="'器材验收单(' + totals.MaterialTotal + ')'" name="Material">
<dee-as-com <dee-as-com
ref="MaterialTable" ref="MaterialTable"
v-dee-loading="loadingMaterial"
class="list-table" class="list-table"
:basic-data=" { selectData: selectData }" :basic-data=" { selectData: selectData }"
:lay-config="{ typeName: 'InStorageRequestItem', layKey: 'material_table'}" :lay-config="{ typeName: 'InStorageRequestItem', layKey: 'material_table'}"
...@@ -25,6 +26,7 @@ ...@@ -25,6 +26,7 @@
<el-tab-pane :label="'机载系统设备验收单(' + totals.AirEquipmentTotal + ')'" name="AirEquipment"> <el-tab-pane :label="'机载系统设备验收单(' + totals.AirEquipmentTotal + ')'" name="AirEquipment">
<dee-as-com <dee-as-com
ref="AirEquipmentTable" ref="AirEquipmentTable"
v-dee-loading="loadingAirEquipment"
class="list-table" class="list-table"
:lay-config="{ typeName: 'InStorageRequestItem', layKey: 'airEquipment_table'}" :lay-config="{ typeName: 'InStorageRequestItem', layKey: 'airEquipment_table'}"
:basic-data=" { selectData: selectData }" :basic-data=" { selectData: selectData }"
...@@ -34,6 +36,7 @@ ...@@ -34,6 +36,7 @@
<el-tab-pane :label="'外包产品验收单(' + totals.OutSourceTotal + ')'" name="OutSource"> <el-tab-pane :label="'外包产品验收单(' + totals.OutSourceTotal + ')'" name="OutSource">
<dee-as-com <dee-as-com
ref="OutSourceTable" ref="OutSourceTable"
v-dee-loading="loadingOutSource"
class="list-table" class="list-table"
:lay-config="{ typeName: 'InStorageRequestItem', layKey: 'outSource_table'}" :lay-config="{ typeName: 'InStorageRequestItem', layKey: 'outSource_table'}"
:basic-data=" { selectData: selectData }" :basic-data=" { selectData: selectData }"
...@@ -69,7 +72,10 @@ export default { ...@@ -69,7 +72,10 @@ export default {
'Material', 'Material',
'AirEquipment', 'AirEquipment',
'OutSource' 'OutSource'
] ],
loadingMaterial: false,
loadingAirEquipment: false,
loadingOutSource: false
} }
}, },
computed: { computed: {
...@@ -101,6 +107,7 @@ export default { ...@@ -101,6 +107,7 @@ export default {
// 组件方法 // 组件方法
methods: { methods: {
onRequestSuccess(res, tabName) { onRequestSuccess(res, tabName) {
this['loading' + tabName] = false
this.$set(this.totals, tabName + 'Total', res.items.totalElements) this.$set(this.totals, tabName + 'Total', res.items.totalElements)
}, },
searchEvent(val) { searchEvent(val) {
...@@ -109,6 +116,7 @@ export default { ...@@ -109,6 +116,7 @@ export default {
}, },
getTableData() { getTableData() {
this.tabNames.forEach(item => { this.tabNames.forEach(item => {
this['loading' + item] = true
const el = this.$refs[item + 'Table'] const el = this.$refs[item + 'Table']
if (el && el.$refs.asCom) { if (el && el.$refs.asCom) {
el.$refs.asCom.getData(this.searchItems) el.$refs.asCom.getData(this.searchItems)
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<el-tab-pane :label="'器材验收单(' + totals.MaterialTotal + ')'" name="Material"> <el-tab-pane :label="'器材验收单(' + totals.MaterialTotal + ')'" name="Material">
<dee-as-com <dee-as-com
ref="MaterialTable" ref="MaterialTable"
v-dee-loading="loadingMaterial"
class="list-table" class="list-table"
:basic-data=" basicData" :basic-data=" basicData"
:lay-config="{ typeName: 'InStorageRequestItem', layKey: 'examine_material_table'}" :lay-config="{ typeName: 'InStorageRequestItem', layKey: 'examine_material_table'}"
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
<el-tab-pane :label="'机载系统设备验收单(' + totals.AirEquipmentTotal + ')'" name="AirEquipment"> <el-tab-pane :label="'机载系统设备验收单(' + totals.AirEquipmentTotal + ')'" name="AirEquipment">
<dee-as-com <dee-as-com
ref="AirEquipmentTable" ref="AirEquipmentTable"
v-dee-loading="loadingAirEquipment"
class="list-table" class="list-table"
:lay-config="{ typeName: 'InStorageRequestItem', layKey: 'examine_airEquipment_table'}" :lay-config="{ typeName: 'InStorageRequestItem', layKey: 'examine_airEquipment_table'}"
:basic-data=" basicData" :basic-data=" basicData"
...@@ -36,6 +38,7 @@ ...@@ -36,6 +38,7 @@
<el-tab-pane :label="'外包产品验收单(' + totals.OutSourceTotal + ')'" name="OutSource"> <el-tab-pane :label="'外包产品验收单(' + totals.OutSourceTotal + ')'" name="OutSource">
<dee-as-com <dee-as-com
ref="OutSourceTable" ref="OutSourceTable"
v-dee-loading="loadingOutSource"
class="list-table" class="list-table"
:lay-config="{ typeName: 'InStorageRequestItem', layKey: 'examine_outSource_table'}" :lay-config="{ typeName: 'InStorageRequestItem', layKey: 'examine_outSource_table'}"
:basic-data=" basicData" :basic-data=" basicData"
...@@ -75,7 +78,10 @@ export default { ...@@ -75,7 +78,10 @@ export default {
'OutSource' 'OutSource'
], ],
selectionRows: {}, selectionRows: {},
basicData: { selectData: _that.selectData, selectionRows: [] } basicData: { selectData: _that.selectData, selectionRows: [] },
loadingMaterial: false,
loadingAirEquipment: false,
loadingOutSource: false
} }
}, },
computed: { computed: {
...@@ -100,6 +106,7 @@ export default { ...@@ -100,6 +106,7 @@ export default {
// 组件方法 // 组件方法
methods: { methods: {
onRequestSuccess(res, tabName) { onRequestSuccess(res, tabName) {
this['loading' + tabName] = false
this.$set(this.totals, tabName + 'Total', res.items.totalElements) this.$set(this.totals, tabName + 'Total', res.items.totalElements)
}, },
searchEvent(val) { searchEvent(val) {
...@@ -108,6 +115,7 @@ export default { ...@@ -108,6 +115,7 @@ export default {
}, },
getTableData() { getTableData() {
this.tabNames.forEach(item => { this.tabNames.forEach(item => {
this['loading' + item] = true
const el = this.$refs[item + 'Table'] const el = this.$refs[item + 'Table']
if (el && el.$refs.asCom) { if (el && el.$refs.asCom) {
el.$refs.asCom.getData(this.searchItems) el.$refs.asCom.getData(this.searchItems)
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<el-tab-pane :label="'器材验收单(' + totals.MaterialTotal + ')'" name="Material"> <el-tab-pane :label="'器材验收单(' + totals.MaterialTotal + ')'" name="Material">
<dee-as-com <dee-as-com
ref="MaterialTable" ref="MaterialTable"
v-dee-loading="loadingMaterial"
class="list-table" class="list-table"
:basic-data=" {...basicData,tableType:'Material'}" :basic-data=" {...basicData,tableType:'Material'}"
:lay-config="{ typeName: 'JobResponseInStorage', layKey: 'batchSign_jobResponseInTest'}" :lay-config="{ typeName: 'JobResponseInStorage', layKey: 'batchSign_jobResponseInTest'}"
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
<el-tab-pane :label="'机载系统设备验收单(' + totals.AirEquipmentTotal + ')'" name="AirEquipment"> <el-tab-pane :label="'机载系统设备验收单(' + totals.AirEquipmentTotal + ')'" name="AirEquipment">
<dee-as-com <dee-as-com
ref="AirEquipmentTable" ref="AirEquipmentTable"
v-dee-loading="loadingAirEquipment"
class="list-table" class="list-table"
:lay-config="{ typeName: 'JobResponseInStorage', layKey: 'airborne_batchSign_jobResponseInTest'}" :lay-config="{ typeName: 'JobResponseInStorage', layKey: 'airborne_batchSign_jobResponseInTest'}"
:basic-data=" {...basicData,tableType:'AirEquipment'}" :basic-data=" {...basicData,tableType:'AirEquipment'}"
...@@ -36,6 +38,7 @@ ...@@ -36,6 +38,7 @@
<el-tab-pane :label="'外包产品验收单(' + totals.OutSourceTotal + ')'" name="OutSource"> <el-tab-pane :label="'外包产品验收单(' + totals.OutSourceTotal + ')'" name="OutSource">
<dee-as-com <dee-as-com
ref="OutSourceTable" ref="OutSourceTable"
v-dee-loading="loadingOutSource"
class="list-table" class="list-table"
:lay-config="{ typeName: 'JobResponseInStorage', layKey: 'outsource_batchSign_jobResponseInTest'}" :lay-config="{ typeName: 'JobResponseInStorage', layKey: 'outsource_batchSign_jobResponseInTest'}"
:basic-data="{...basicData,tableType:'OutSource'}" :basic-data="{...basicData,tableType:'OutSource'}"
...@@ -75,7 +78,10 @@ export default { ...@@ -75,7 +78,10 @@ export default {
'OutSource' 'OutSource'
], ],
selectionRows: {}, selectionRows: {},
basicData: { selectData: _that.selectData, selectionRows: [] } basicData: { selectData: _that.selectData, selectionRows: [] },
loadingMaterial: false,
loadingAirEquipment: false,
loadingOutSource: false
} }
}, },
computed: { computed: {
...@@ -108,6 +114,7 @@ export default { ...@@ -108,6 +114,7 @@ export default {
// 组件方法 // 组件方法
methods: { methods: {
onRequestSuccess(res, tabName) { onRequestSuccess(res, tabName) {
this['loading' + tabName] = false
this.$set(this.totals, tabName + 'Total', res.items.totalElements) this.$set(this.totals, tabName + 'Total', res.items.totalElements)
}, },
searchEvent(val) { searchEvent(val) {
...@@ -116,6 +123,7 @@ export default { ...@@ -116,6 +123,7 @@ export default {
}, },
getTableData() { getTableData() {
this.tabNames.forEach(item => { this.tabNames.forEach(item => {
this['loading' + item] = true
const el = this.$refs[item + 'Table'] const el = this.$refs[item + 'Table']
if (el && el.$refs.asCom) { if (el && el.$refs.asCom) {
el.$refs.asCom.getData(this.searchItems) el.$refs.asCom.getData(this.searchItems)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment