|
|
@@ -245,7 +245,7 @@ export default {
|
|
|
reportformsList,
|
|
|
check,
|
|
|
checkSchedule,
|
|
|
- reportContainerlos,
|
|
|
+ reportContainerlos
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -277,7 +277,7 @@ export default {
|
|
|
// pagerCount: 5,
|
|
|
pageSizes: [10, 20, 50, 100, 200, 500, 1000], // 可选的分页大小
|
|
|
currentPage: 1, // 当前页码
|
|
|
- total: 0,
|
|
|
+ total: 0
|
|
|
},
|
|
|
query: {},
|
|
|
configuration: {
|
|
|
@@ -288,12 +288,12 @@ export default {
|
|
|
collapseTags: false,
|
|
|
clearable: true,
|
|
|
placeholder: "请点击右边按钮选择",
|
|
|
- dicData: [],
|
|
|
- },
|
|
|
+ dicData: []
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
async created() {
|
|
|
- getUserInfo().then(async (res) => {
|
|
|
+ getUserInfo().then(async res => {
|
|
|
if (res.data.data.billType == 1) {
|
|
|
this.option = option2;
|
|
|
} else {
|
|
|
@@ -306,7 +306,7 @@ export default {
|
|
|
} else {
|
|
|
this.optionBack = JSON.parse(JSON.stringify(option));
|
|
|
|
|
|
- await isProcurement({ param: "business" }).then(async (res) => {
|
|
|
+ await isProcurement({ param: "business" }).then(async res => {
|
|
|
this.business = res.data.data;
|
|
|
if (res.data.data == 1) {
|
|
|
this.optionBack.column.forEach((item, index) => {
|
|
|
@@ -340,10 +340,10 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
- await this.getWorkDicts("auditStatus").then((res) => {
|
|
|
- this.findObject(this.option.column, "auditStatus").dicData = res.data.data.filter((item) => "S,A,B".indexOf(item.dictKey) >= 0);
|
|
|
+ await this.getWorkDicts("auditStatus").then(res => {
|
|
|
+ this.findObject(this.option.column, "auditStatus").dicData = res.data.data.filter(item => "S,A,B".indexOf(item.dictKey) >= 0);
|
|
|
});
|
|
|
- await gainUser().then((res) => {
|
|
|
+ await gainUser().then(res => {
|
|
|
this.findObject(this.option.column, "sendUserId").dicData = res.data.data;
|
|
|
});
|
|
|
/*
|
|
|
@@ -351,37 +351,35 @@ export default {
|
|
|
this.findObject(this.option.column, "processType").dicData = res.data.data;
|
|
|
});
|
|
|
*/
|
|
|
- await bbusinesstypeList(1, 1000, { enableFee: "1" }).then((res) => {
|
|
|
+ await bbusinesstypeList(1, 1000, { enableFee: "1" }).then(res => {
|
|
|
this.findObject(this.option.column, "checkType").dicData = res.data.data.records;
|
|
|
});
|
|
|
- await selectListLos("业务员").then((res) => {
|
|
|
+ await selectListLos("业务员").then(res => {
|
|
|
this.findObject(this.option.column, "srcCnName").dicData = res.data.data;
|
|
|
});
|
|
|
|
|
|
this.findObject(this.option.column, "profitStatus").dicData = [
|
|
|
- {value: "F", label: "正常"},
|
|
|
- {value: "Z", label: "为零"},
|
|
|
- {value: "D", label: "不成比例且过低"},
|
|
|
- {value: "T", label: "不成比例且过高"},
|
|
|
- {value: "H", label: "过高"},
|
|
|
- {value: "L", label: "过低"},
|
|
|
- {value: "M", label: "为负"},
|
|
|
- {value: "U", label: "不成比例"},
|
|
|
+ { value: "F", label: "正常" },
|
|
|
+ { value: "Z", label: "为零" },
|
|
|
+ { value: "D", label: "不成比例且过低" },
|
|
|
+ { value: "T", label: "不成比例且过高" },
|
|
|
+ { value: "H", label: "过高" },
|
|
|
+ { value: "L", label: "过低" },
|
|
|
+ { value: "M", label: "为负" },
|
|
|
+ { value: "U", label: "不成比例" }
|
|
|
];
|
|
|
|
|
|
- this.$nextTick(()=>{
|
|
|
+ this.$nextTick(() => {
|
|
|
this.onLoad(this.page, this.search);
|
|
|
- })
|
|
|
+ });
|
|
|
});
|
|
|
// 供应商
|
|
|
// corpsDescListAll({corpType: "GYS"}).then(res => {
|
|
|
// this.corpsList = res.data.data
|
|
|
// })
|
|
|
},
|
|
|
- destroyed() {
|
|
|
- },
|
|
|
- deactivated() {
|
|
|
- },
|
|
|
+ destroyed() {},
|
|
|
+ deactivated() {},
|
|
|
mounted() {
|
|
|
// option.height = window.innerHeight - 200 ;
|
|
|
},
|
|
|
@@ -439,59 +437,59 @@ export default {
|
|
|
obj = {
|
|
|
businessType: "HYCK",
|
|
|
classifyCode: "费用",
|
|
|
- groupCode: "销售报告",
|
|
|
+ groupCode: "销售报告"
|
|
|
};
|
|
|
} else if (type == "HYJK") {
|
|
|
obj = {
|
|
|
businessType: "HYJK",
|
|
|
classifyCode: "费用",
|
|
|
- groupCode: "销售报告",
|
|
|
+ groupCode: "销售报告"
|
|
|
};
|
|
|
} else if (type == "KYCK") {
|
|
|
obj = {
|
|
|
businessType: "KYCK",
|
|
|
classifyCode: "费用",
|
|
|
- groupCode: "销售报告",
|
|
|
+ groupCode: "销售报告"
|
|
|
};
|
|
|
} else if (type == "KYJK") {
|
|
|
obj = {
|
|
|
businessType: "KYJK",
|
|
|
classifyCode: "费用",
|
|
|
- groupCode: "销售报告",
|
|
|
+ groupCode: "销售报告"
|
|
|
};
|
|
|
} else if (type == "FFSQ") {
|
|
|
obj = {
|
|
|
businessType: "FFSQ",
|
|
|
classifyCode: "付费申请",
|
|
|
- groupCode: "付费申请",
|
|
|
+ groupCode: "付费申请"
|
|
|
};
|
|
|
} else if (type == "SEA") {
|
|
|
obj = {
|
|
|
businessType: "AMEND",
|
|
|
classifyCode: "AMENDSE",
|
|
|
- groupCode: "SE",
|
|
|
+ groupCode: "SE"
|
|
|
};
|
|
|
} else if (type == "SIA") {
|
|
|
obj = {
|
|
|
businessType: "AMEND",
|
|
|
classifyCode: "AMENDSI",
|
|
|
- groupCode: "SI",
|
|
|
+ groupCode: "SI"
|
|
|
};
|
|
|
} else if (type == "AEA") {
|
|
|
obj = {
|
|
|
businessType: "AMEND",
|
|
|
classifyCode: "AMENDAE",
|
|
|
- groupCode: "AE",
|
|
|
+ groupCode: "AE"
|
|
|
};
|
|
|
} else if (type == "AIA") {
|
|
|
obj = {
|
|
|
businessType: "AMEND",
|
|
|
classifyCode: "AMENDAI",
|
|
|
- groupCode: "AI",
|
|
|
+ groupCode: "AI"
|
|
|
};
|
|
|
} else {
|
|
|
}
|
|
|
- getreportsList(1, 10, obj).then((res) => {
|
|
|
+ getreportsList(1, 10, obj).then(res => {
|
|
|
this.reportRadio(res.data.data.records[0]);
|
|
|
if (!this.selectionList.includes(row)) {
|
|
|
this.$refs.crud.toggleRowSelection(row, true);
|
|
|
@@ -504,8 +502,8 @@ export default {
|
|
|
billId: this.reportsData.billId,
|
|
|
reportCode: val.classifyCode,
|
|
|
groupCode: val.groupCode,
|
|
|
- type: val.businessType,
|
|
|
- }).then((res) => {
|
|
|
+ type: val.businessType
|
|
|
+ }).then(res => {
|
|
|
// 关闭弹窗
|
|
|
this.selectPrintingDialog = false;
|
|
|
this.handleReportPreview(val.url, res.data.data.data);
|
|
|
@@ -519,7 +517,7 @@ export default {
|
|
|
this.objMail = {
|
|
|
attachments: e.fileName,
|
|
|
fileType: e.formatName,
|
|
|
- fileContent: e.data,
|
|
|
+ fileContent: e.data
|
|
|
};
|
|
|
},
|
|
|
// 预览报表
|
|
|
@@ -594,7 +592,7 @@ export default {
|
|
|
userButtonCell.appendChild(closeBtn);
|
|
|
|
|
|
let that = this;
|
|
|
- closeBtn.action = function () {
|
|
|
+ closeBtn.action = function() {
|
|
|
if (that.$refs.reportContainer) that.$refs.reportContainer.hideContainer();
|
|
|
};
|
|
|
},
|
|
|
@@ -632,15 +630,15 @@ export default {
|
|
|
this.$alert("" + row.pageLabel + "页面已存在,请关闭" + row.pageLabel + "页面再进行操作", "温馨提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
type: "warning",
|
|
|
- callback: (action) => {},
|
|
|
+ callback: action => {}
|
|
|
});
|
|
|
} else {
|
|
|
this.$router.$avueRouter.closeTag(row.url);
|
|
|
this.$router.push({
|
|
|
path: row.url,
|
|
|
query: {
|
|
|
- billId: row.billId,
|
|
|
- },
|
|
|
+ billId: row.billId
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
} else {
|
|
|
@@ -652,7 +650,7 @@ export default {
|
|
|
row.operate = operate;
|
|
|
this.loading = true;
|
|
|
approvePass(row)
|
|
|
- .then((res) => {
|
|
|
+ .then(res => {
|
|
|
this.$message.success("操作成功!");
|
|
|
this.refreshChange();
|
|
|
})
|
|
|
@@ -662,7 +660,7 @@ export default {
|
|
|
},
|
|
|
openCheck(row) {
|
|
|
if (row.checkType == "CK") {
|
|
|
- financingExcess({ id: row.corpId }).then((res) => {
|
|
|
+ financingExcess({ id: row.corpId }).then(res => {
|
|
|
if (res.data.data == "操作成功") {
|
|
|
this.batch = false; //单条操作
|
|
|
this.checkDialog = true;
|
|
|
@@ -671,7 +669,7 @@ export default {
|
|
|
this.$confirm(res.data.data, {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
+ type: "warning"
|
|
|
}).then(() => {
|
|
|
this.batch = false; //单条操作
|
|
|
this.checkDialog = true;
|
|
|
@@ -688,29 +686,30 @@ export default {
|
|
|
choceCheckFun(reload, removeRow) {
|
|
|
// this.checkDialog = false;
|
|
|
this.$refs.reportContainer.visible = false;
|
|
|
+ // this.refreshChange();
|
|
|
if (reload === true) {
|
|
|
this.refreshChange();
|
|
|
- }else if(removeRow){
|
|
|
- let selList = this.selectionList.filter(item => item != removeRow)
|
|
|
+ } else if (removeRow) {
|
|
|
+ let selList = this.selectionList.filter(item => item != removeRow);
|
|
|
let i1 = this.dataList.indexOf(removeRow);
|
|
|
- if(i1>=0) this.dataList.splice(i1, 1)
|
|
|
- this.$nextTick(()=>{
|
|
|
+ if (i1 >= 0) this.dataList.splice(i1, 1);
|
|
|
+ this.$nextTick(() => {
|
|
|
selList.forEach(item => {
|
|
|
this.$refs.crud.toggleRowSelection(item, true);
|
|
|
- })
|
|
|
- })
|
|
|
+ });
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
choceCheckFFSQ(reload, removeRow) {
|
|
|
this.checkDialog = false;
|
|
|
if (reload === true) {
|
|
|
this.refreshChange();
|
|
|
- }else if(removeRow){
|
|
|
+ } else if (removeRow) {
|
|
|
let i1 = this.dataList.indexOf(removeRow);
|
|
|
let i2 = this.selectionList.indexOf(removeRow);
|
|
|
console.log("choceCheckFFSQ", i1, i2);
|
|
|
- if(i2>=0) this.selectionList.splice(i2, 1)
|
|
|
- if(i1>=0) this.dataList.splice(i1, 1)
|
|
|
+ if (i2 >= 0) this.selectionList.splice(i2, 1);
|
|
|
+ if (i1 >= 0) this.dataList.splice(i1, 1);
|
|
|
}
|
|
|
},
|
|
|
openCheckSchedule(row) {
|
|
|
@@ -728,7 +727,7 @@ export default {
|
|
|
editOpen(row, status) {
|
|
|
this.detailData = {
|
|
|
id: row.id,
|
|
|
- status: status,
|
|
|
+ status: status
|
|
|
};
|
|
|
this.show = false;
|
|
|
},
|
|
|
@@ -758,8 +757,8 @@ export default {
|
|
|
this.search = {
|
|
|
// customizeThreeList: [startDate(), endDate()],
|
|
|
auditStatus: "S"
|
|
|
- }
|
|
|
- this.onLoad(this.page)
|
|
|
+ };
|
|
|
+ this.onLoad(this.page);
|
|
|
},
|
|
|
selectionChange(list) {
|
|
|
this.idList = [];
|
|
|
@@ -791,7 +790,7 @@ export default {
|
|
|
delete params.sendTime;
|
|
|
}
|
|
|
getList(page.currentPage, page.pageSize, params)
|
|
|
- .then((res) => {
|
|
|
+ .then(res => {
|
|
|
this.dataList = res.data.data.records;
|
|
|
this.page.total = res.data.data.total;
|
|
|
})
|
|
|
@@ -826,8 +825,8 @@ export default {
|
|
|
this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
|
this.searchReset();
|
|
|
}
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|