导出功能修正

main
weitingdong 11 months ago
parent 2bfc3b6e5d
commit c5074e6814
  1. 2
      src/views/inspection/inspectionobject.vue
  2. 5
      src/views/inspection/inspectionobjectDetail.vue
  3. 2
      src/views/leger/equipmentledger.vue
  4. 5
      src/views/leger/toolinventoryrecord.vue

@ -413,7 +413,7 @@
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(() => { }).then(() => {
expUtil.excelExport(`/api/inspection/inspectionobject/export?daf-auth=${getToken()}`, this.search, ['stations', "istatus", "objectName"]); expUtil.excelExportEasy(`/api/inspection/inspectionobject/export?daf-auth=${getToken()}`, this.search);
}); });
}, },
beforeOpen(done, type) { beforeOpen(done, type) {

@ -102,8 +102,6 @@ export default {
kksNo.disabled = true; kksNo.disabled = true;
if(["view"].includes(this.$route.query.frameMode)) { if(["view"].includes(this.$route.query.frameMode)) {
kksNo.disabled = false; kksNo.disabled = false;
const objectNo = this.findObject(this.option.column, "objectNo");
objectNo.disabled = false;
} }
}else{ }else{
const toolsCodeId = this.findObject(this.option.column, "toolsCodeId"); const toolsCodeId = this.findObject(this.option.column, "toolsCodeId");
@ -112,8 +110,6 @@ export default {
kksNo.disabled = false; kksNo.disabled = false;
if(["view"].includes(this.$route.query.frameMode)) { if(["view"].includes(this.$route.query.frameMode)) {
kksNo.disabled = false; kksNo.disabled = false;
const objectNo = this.findObject(this.option.column, "objectNo");
objectNo.disabled = false;
} }
} }
} }
@ -258,7 +254,6 @@ export default {
}else{ }else{
const objectNo = this.findObject(this.option.column, "objectNo"); const objectNo = this.findObject(this.option.column, "objectNo");
objectNo.value = ' '; objectNo.value = ' ';
objectNo.disabled = true;
const iStatus = this.findObject(this.option.column, "istatus"); const iStatus = this.findObject(this.option.column, "istatus");
iStatus.display = false; iStatus.display = false;
const cancelReason = this.findObject(this.option.column, "cancelReason"); const cancelReason = this.findObject(this.option.column, "cancelReason");

@ -635,7 +635,7 @@ import {getList, getDetail, add, update, remove, reject, auditing} from "@/api/l
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(() => { }).then(() => {
expUtil.excelExportEasy(`/api/workorder/export?daf-auth=${getToken()}`, this.search); expUtil.excelExportEasy(`/api/equipmentledger/export?daf-auth=${getToken()}`, this.search);
}); });
}, },
beforeOpen(done, type) { beforeOpen(done, type) {

@ -62,11 +62,13 @@
import {mapGetters} from "vuex"; import {mapGetters} from "vuex";
import {getToken} from "@/util/auth"; import {getToken} from "@/util/auth";
import {Alert} from "element-ui"; import {Alert} from "element-ui";
import expUtil from "@/util/exportUtil";
export default { export default {
data() { data() {
return { return {
form: {}, form: {},
query: {}, query: {},
search:{},
loading: true, loading: true,
page: { page: {
pageSize: 10, pageSize: 10,
@ -327,8 +329,7 @@
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(() => { }).then(() => {
var formStr = Object.keys(this.search).map(key => `${encodeURIComponent(key)}=${encodeURIComponent(this.search[key])}`).join('&'); expUtil.excelExportEasy(`/api/leger/toolinventoryrecord/export?daf-auth=${getToken()}`, this.search);
window.open(`/api/leger/toolinventoryrecord/export?daf-auth=${getToken()}&${formStr}`);
}); });
}, },
beforeOpen(done, type) { beforeOpen(done, type) {

Loading…
Cancel
Save