导出功能修正

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

@ -413,7 +413,7 @@
cancelButtonText: "取消",
type: "warning"
}).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) {

@ -48,7 +48,7 @@ export default {
label: "对象编号",
prop: "objectNo",
span:8,
disabled: true,
disabled:true,
rules: [{
required: true,
message: "请输入对象编号",
@ -102,8 +102,6 @@ export default {
kksNo.disabled = true;
if(["view"].includes(this.$route.query.frameMode)) {
kksNo.disabled = false;
const objectNo = this.findObject(this.option.column, "objectNo");
objectNo.disabled = false;
}
}else{
const toolsCodeId = this.findObject(this.option.column, "toolsCodeId");
@ -112,8 +110,6 @@ export default {
kksNo.disabled = false;
if(["view"].includes(this.$route.query.frameMode)) {
kksNo.disabled = false;
const objectNo = this.findObject(this.option.column, "objectNo");
objectNo.disabled = false;
}
}
}
@ -258,7 +254,6 @@ export default {
}else{
const objectNo = this.findObject(this.option.column, "objectNo");
objectNo.value = ' ';
objectNo.disabled = true;
const iStatus = this.findObject(this.option.column, "istatus");
iStatus.display = false;
const cancelReason = this.findObject(this.option.column, "cancelReason");

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

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

Loading…
Cancel
Save