-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
过往12个月的绩效
{
if (data.code === 0) {
this.dataList = data.page.list
+ this.tableData1 = data.tableData1
+ this.tableData2 = data.tableData2
+ this.tableData3 = data.tableData3
this.pageIndex = data.page.currPage
this.pageSize = data.page.pageSize
this.totalPage = data.page.totalCount
@@ -139,44 +169,44 @@ export default {
})
},
- generateTableData() {
- const items = [
- { type: '服务表现', item: '包装数量短缺(件数)' },
- { type: '服务表现', item: '包装方式未按规定要求执行(件数)' },
- { type: '服务表现', item: '到料数量与计划数量差异' },
- { type: '服务表现', item: '需交付总批次(件数)' },
- { type: '交期表现', item: '延期交付(件数)' },
- { type: '交期表现', item: '准时交付批次完成率' },
- { type: '交期表现', item: '需交付总数量' },
- { type: '交期表现', item: '延期交付(数量)' },
- { type: '交期表现', item: '准时交付数量完成率' },
- { type: '质量表现', item: '检验总批数' },
- { type: '质量表现', item: '批量验收数抽选总批数' },
- { type: '质量表现', item: '合格批率' },
- { type: '质量表现', item: '出货检验报告未提交(件数)' },
- { type: '质量表现', item: '出货检验报告数据与样品进料检验的数据不符(件数)' },
- { type: '质量表现', item: '标签不正确或未贴(次数)' }
- ];
-
- this.tableData = items.map((item, index) => ({
- type: item.type,
- item: item.item,
- value: this.dataList[index] ? this.dataList[index].indicatorScore : 0 // 确保 dataList 有值
- }));
- },
- arraySpanMethod({ row, column, rowIndex, columnIndex }) {
- if (columnIndex === 0) {
- if (rowIndex === 0) {
- return [4, 1];
- } else if (rowIndex === 4) {
- return [5, 1];
- } else if (rowIndex === 9) {
- return [6, 1];
- } else {
- return [0, 0];
- }
- }
- }
+ // generateTableData() {
+ // const items = [
+ // { type: '服务表现', item: '包装数量短缺(件数)' },
+ // { type: '服务表现', item: '包装方式未按规定要求执行(件数)' },
+ // { type: '服务表现', item: '到料数量与计划数量差异' },
+ // { type: '服务表现', item: '需交付总批次(件数)' },
+ // { type: '交期表现', item: '延期交付(件数)' },
+ // { type: '交期表现', item: '准时交付批次完成率' },
+ // { type: '交期表现', item: '需交付总数量' },
+ // { type: '交期表现', item: '延期交付(数量)' },
+ // { type: '交期表现', item: '准时交付数量完成率' },
+ // { type: '质量表现', item: '检验总批数' },
+ // { type: '质量表现', item: '批量验收数抽选总批数' },
+ // { type: '质量表现', item: '合格批率' },
+ // { type: '质量表现', item: '出货检验报告未提交(件数)' },
+ // { type: '质量表现', item: '出货检验报告数据与样品进料检验的数据不符(件数)' },
+ // { type: '质量表现', item: '标签不正确或未贴(次数)' }
+ // ];
+ //
+ // this.tableData = items.map((item, index) => ({
+ // type: item.type,
+ // item: item.item,
+ // value: this.dataList[index] ? this.dataList[index].indicatorScore : 0 // 确保 dataList 有值
+ // }));
+ // },
+ // arraySpanMethod({ row, column, rowIndex, columnIndex }) {
+ // if (columnIndex === 0) {
+ // if (rowIndex === 0) {
+ // return [4, 1];
+ // } else if (rowIndex === 4) {
+ // return [5, 1];
+ // } else if (rowIndex === 9) {
+ // return [6, 1];
+ // } else {
+ // return [0, 0];
+ // }
+ // }
+ // }
},
};
@@ -194,4 +224,7 @@ export default {
width: 100px;
margin-left: 10px;
}
+.right-align .el-input__inner {
+ text-align: right; /* 向右对齐文本 */
+}
diff --git a/src/views/modules/performance/performanceIndicatorDefinition.vue b/src/views/modules/performance/performanceIndicatorDefinition.vue
index c251ee3..6604195 100644
--- a/src/views/modules/performance/performanceIndicatorDefinition.vue
+++ b/src/views/modules/performance/performanceIndicatorDefinition.vue
@@ -65,9 +65,14 @@
:width="item.columnWidth"
:label="item.columnLabel">
- {{ scope.row[item.columnProp] }}
-
- {{ scope.row[item.columnProp] === 'Y' ? '是' : '否' }}
+
+ {{'是'}}
+ {{'否'}}
+
+
+
{{ scope.row[item.columnProp] }}
+
![]()
+
供应商编码
-
+
查询
+
+ {{ "导出" }}
+
供应商绩效统计计算
@@ -65,7 +79,7 @@
width="80"
label="操作">
- 总得分
+ 详情
@@ -80,7 +94,7 @@
layout="total, sizes, prev, pager, next, jumper">
-
+
{
- if (data && data.code === 0) {
- if (data.baseListData.length > 0) {
- this.searchData.supplierName = data.baseListData[0].SupplierName
- } else {
- this.$message.warning('供应商编码不存在')
- this.searchData.supplierName = ''
- }
- } else {
- this.$message.warning(data.msg)
- this.modalData.supplierName = ''
- }
- })
- }
- },
+ // setupSupplierBlur (tagNo) {
+ // if (this.searchData.supplierId != null && this.searchData.supplierId !== '') {
+ // let tempData = {
+ // tagno: tagNo,
+ // conditionSql: " and SupplierID = '" + this.searchData.supplierId + "'" + " and site = '" + this.searchData.site + "'"
+ // }
+ // verifyData(tempData).then(({data}) => {
+ // if (data && data.code === 0) {
+ // if (data.baseListData.length > 0) {
+ // this.searchData.supplierName = data.baseListData[0].SupplierName
+ // } else {
+ // this.$message.warning('供应商编码不存在')
+ // this.searchData.supplierName = ''
+ // }
+ // } else {
+ // this.$message.warning(data.msg)
+ // this.modalData.supplierName = ''
+ // }
+ // })
+ // }
+ // },
// 每页数
sizeChangeHandle (val) {
@@ -560,6 +572,31 @@
this.authUpdate = !updateFlag
this.authDelete = !deleteFlag
},
+
+ //导出excel
+ async createExportData () {
+ this.searchData.limit = -1
+ this.searchData.page = 1
+ await supplierPerformanceQuerySummarySearch(this.searchData).then(({data}) => {
+ this.exportList = data.page.list
+ })
+ return this.exportList
+ },
+ startDownload () {},
+ finishDownload () {},
+ fields () {
+ let json = "{"
+ this.columnList.forEach((item, index) => {
+ if (index == this.columnList.length - 1) {
+ json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
+ } else {
+ json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
+ }
+ })
+ json += "}"
+ let s = eval("(" + json + ")")
+ return s
+ },
}
}
diff --git a/src/views/modules/performance/supplierPerformanceThisMonth.vue b/src/views/modules/performance/supplierPerformanceThisMonth.vue
index 711a474..3d64f85 100644
--- a/src/views/modules/performance/supplierPerformanceThisMonth.vue
+++ b/src/views/modules/performance/supplierPerformanceThisMonth.vue
@@ -26,7 +26,7 @@
供应商编码
-
+
@@ -79,7 +79,7 @@
layout="total, sizes, prev, pager, next, jumper">
-
+
{
- if (data && data.code === 0) {
- if (data.baseListData.length > 0) {
- this.searchData.supplierName = data.baseListData[0].SupplierName
- } else {
- this.$message.warning('供应商编码不存在')
- this.searchData.supplierName = ''
- }
- } else {
- this.$message.warning(data.msg)
- this.modalData.supplierName = ''
- }
- })
- }
- },
+ // setupSupplierBlur (tagNo) {
+ // if (this.searchData.supplierId != null && this.searchData.supplierId !== '') {
+ // let tempData = {
+ // tagno: tagNo,
+ // conditionSql: " and SupplierID = '" + this.searchData.supplierId + "'" + " and site = '" + this.searchData.site + "'"
+ // }
+ // verifyData(tempData).then(({data}) => {
+ // if (data && data.code === 0) {
+ // if (data.baseListData.length > 0) {
+ // this.searchData.supplierName = data.baseListData[0].SupplierName
+ // } else {
+ // this.$message.warning('供应商编码不存在')
+ // this.searchData.supplierName = ''
+ // }
+ // } else {
+ // this.$message.warning(data.msg)
+ // this.modalData.supplierName = ''
+ // }
+ // })
+ // }
+ // },
// 收藏 OR 取消收藏
favoriteFunction () {