@@ -796,6 +759,7 @@ import {
} from '@/api/customer/customerContact.js'
import {
getNodeAuthority, // 获取节点权限
+ checkSuperAdmin, // 校验是否为超级管理员
} from '@/api/changeManagement/changeManagement.js'
import Chooselist from '@/views/modules/common/Chooselist'
import quotationUploadFile from "./quotation_upload_file"
@@ -2113,13 +2077,25 @@ export default {
this.secondHeight = window.innerHeight -this.height;
})
},
+
created() {
- this.handleRouteQuery()
+ this.handleRouteQuery()
+ this.checkSuperAdmin()
},
+
activated () {
- this.handleRouteQuery()
+ this.handleRouteQuery()
},
+
methods: {
+
+ // 校验是否为超级管理员
+ checkSuperAdmin () {
+ checkSuperAdmin().then(({data}) => {
+ this.superAdmin = data.superAdmin
+ })
+ },
+
handleRouteQuery(){
if (this.$route.params.type === 'tokenLogin') {
if (this.$route.params.docNo) {
@@ -2150,7 +2126,7 @@ export default {
}
}
})
- }else if (this.$route.params.quotationNo) {
+ } else if (this.$route.params.quotationNo) {
this.searchData.quotationNo = this.$route.params.quotationNo
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
@@ -2173,19 +2149,18 @@ export default {
// this.refreshCurrentTabTable() //加载当前的页签的table
this.quotationClickRow(this.dataList[0])
// this.updateModal(this.dataList[0])
- }else {
+ } else {
this.quotationCurrentRow = {}
}
}
})
- }else {
+ } else {
this.getDataList()
}
},
// ======== 分页相关方法 ========
/**
* 每页数
- * @param val
*/
sizeChangeHandle(val) {
this.pageSize = val
@@ -2196,9 +2171,9 @@ export default {
this.searchByAnyField(this.filterSearchData)
}
},
+
/**
* 当前页
- * @param val
*/
currentChangeHandle(val) {
this.pageIndex = val
@@ -2212,7 +2187,6 @@ export default {
// ======== 复选框操作相关方法 ========
/**
* 选中一行
- * @param row
*/
projectPartClickRow(row) {
if (this.modalData.flag === '1') {
@@ -2220,6 +2194,7 @@ export default {
this.confirmProjectPart();
}
},
+
/**
* 多选
* @param val
@@ -2227,36 +2202,26 @@ export default {
selectionProjectPart(val) {
this.projectPartListSelections = val
},
+
/**
* 获取唯一值,一般都为 id
- * @param row
- * @returns {*}
*/
getRowKeys(row) {
return row.testPartNo;
},
- /**
- * 未知
- * @returns {boolean}
- */
- selectFlag() {
- return true;
- },
// ======== 页签切换相关方法 ========
+
/**
* 列表表格选择替换
- * @param tab
- * @param event
*/
tabClick(tab, event) {
// 刷新列表数据
this.refreshCurrentTabTable()
},
+
/**
* 当前值发生变化的时候修改
- * @param row
- * @param oldRow
*/
changeCurrentRow(row, oldRow) {
// 判断是否是获取焦点的事件
@@ -2266,6 +2231,7 @@ export default {
this.refreshCurrentTabTable()
}
},
+
/**
* 刷新页签的table数据
*/
@@ -2311,6 +2277,7 @@ export default {
this.dataListLoading = false
})
},
+
/**
* 获取询价结果列表
*/
@@ -2330,6 +2297,7 @@ export default {
// 附件列表
this.getFileContentData()
},
+
/**
* 获取项目信息
*/
@@ -2347,6 +2315,7 @@ export default {
}
})
},
+
/**
* 获取客户信息
*/
@@ -2418,7 +2387,6 @@ export default {
},
/**
* 询价信息编辑模态框
- * @param row
*/
async updateModal(row) {
await this.getNodeAuthority(row)
@@ -2521,6 +2489,7 @@ export default {
this.queryLoading = false
})
},
+
/**
* 确认多选产品
*/
@@ -2542,6 +2511,7 @@ export default {
this.modalData.testPartNo = this.modalData.testPartNo.substring(1)
this.modalData.partName = this.modalData.partName.substring(1)
},
+
/**
* 客户信息新增/编辑
*/
@@ -2633,6 +2603,7 @@ export default {
}
})
},
+
/**
* 询价信息删除
*/
@@ -2673,7 +2644,6 @@ export default {
})
}
})
- }).catch(() => {
})
},
@@ -2707,9 +2677,9 @@ export default {
this.$message.error(error)
})
},
+
/**
* 复选询价信息
- * @param val
*/
selectionQuotation(val) {
this.quotationSelections = val
@@ -2774,6 +2744,7 @@ export default {
// }
this.packQuotationResultModal()
},
+
/**
* 保存询价结果
*/
@@ -2857,6 +2828,7 @@ export default {
this.submitResultData.quotationNo = this.quotationCurrentRow.quotationNo
this.submitResultModalFlag = true
},
+
/**
* 提交客户询价
*/
@@ -2886,6 +2858,7 @@ export default {
// }
this.packSubmitQuotationModal()
},
+
/**
* 保存提交结果
*/
@@ -2970,6 +2943,7 @@ export default {
this.customerResponseData.quotationNo = this.quotationCurrentRow.quotationNo
this.customerResponseModalFlag = true
},
+
/**
* 客户回复
*/
@@ -2999,6 +2973,7 @@ export default {
// }
this.packCustomerResponseModal()
},
+
/**
* 保存客户回复
*/
@@ -3094,6 +3069,7 @@ export default {
// }
// })
// },
+
/**
* 上传文件
*/
@@ -3119,7 +3095,6 @@ export default {
},
/**
* 文件删除
- * @param row
*/
deleteFile(row) {
this.$confirm('确定要删除此文件?', '提示', {
@@ -3143,12 +3118,11 @@ export default {
})
}
})
- }).catch(() => {
})
},
+
/**
* 文件下载
- * @param row
*/
downloadFile(row) {
downLoadQuotationFile(row).then(({data}) => {
@@ -3196,8 +3170,6 @@ export default {
// ======== chooseList相关方法 ========
/**
* 获取基础数据列表S
- * @param val
- * @param type
*/
getBaseList(val, type) {
this.tagNo = val
@@ -3234,9 +3206,9 @@ export default {
this.$refs.baseList.init(val, strVal, conSql)
})
},
+
/**
* 列表方法的回调
- * @param val
*/
getBaseData(val) {
if (this.tagNo === 102) {
diff --git a/src/views/modules/test/requestForTest.vue b/src/views/modules/test/requestForTest.vue
index d915640..fb80f81 100644
--- a/src/views/modules/test/requestForTest.vue
+++ b/src/views/modules/test/requestForTest.vue
@@ -342,18 +342,14 @@
-
下一步
+ 下一步
-
-
+
+
-
+
{{ scope.row[item.columnProp] }}
-
![]()
+
{{ scope.row.textValue ? scope.row.textValue : scope.row.numValue }}
@@ -385,20 +380,16 @@
-
+
-
+
-
+
@@ -409,17 +400,12 @@
关闭
-
+
-
- 同意
-
+ 同意
- 驳回
-
+ 驳回
@@ -946,6 +932,7 @@ import {
} from '@/api/test/testInformation.js'
import {
getNodeAuthority, // 获取节点权限
+ checkSuperAdmin, // 校验是否为超级管理员
} from '@/api/changeManagement/changeManagement.js'
import {
downLoadQuotationFile, // 文件下载
@@ -2290,12 +2277,13 @@ export default {
],
rejectVisible: false,
rejectOpinion: "",
-
partPageNo: 1,
partPageSize: 20,
partPageTotal: 0,
+ superAdmin: false,
}
},
+
mounted() {
this.$nextTick(() => {
this.height = window.innerHeight / 2 - 240;
@@ -2303,13 +2291,25 @@ export default {
this.secondHeight = window.innerHeight / 2 - 206;
})
},
+
created() {
this.handleRouteQuery()
+ this.checkSuperAdmin()
},
+
activated() {
this.handleRouteQuery()
},
+
methods: {
+
+ // 校验是否为超级管理员
+ checkSuperAdmin () {
+ checkSuperAdmin().then(({data}) => {
+ this.superAdmin = data.superAdmin
+ })
+ },
+
handleRouteQuery() {
if (this.$route.params.type === 'tokenLogin') {
if (this.$route.params.docNo) {
diff --git a/src/views/modules/tooling/searchToolApply.vue b/src/views/modules/tooling/searchToolApply.vue
index 7998aa8..46ef9d6 100644
--- a/src/views/modules/tooling/searchToolApply.vue
+++ b/src/views/modules/tooling/searchToolApply.vue
@@ -537,7 +537,7 @@
保存
-
+
同意
驳回
@@ -608,7 +608,7 @@
-
+
@@ -639,6 +639,7 @@ import {
import {
getNodeAuthority, // 获取节点权限
getApprovalList, // 查询审批信息
+ checkSuperAdmin, // 校验是否为超级管理员
} from '@/api/changeManagement/changeManagement.js'
import ApprovalInformation from "../changeManagement/approvalInformation.vue";
import OssComponents from "../oss/ossComponents";
@@ -1447,6 +1448,7 @@ export default {
submitModalFlag: false,
processField: '',
sp: this.$store.state.user.name,
+ superAdmin: false,
}
},
watch: {
@@ -1458,13 +1460,23 @@ export default {
// }
// }
},
+
mounted() {
this.$nextTick(() => {
this.height = window.innerHeight - 520;
this.fieldColumn()
})
},
+
methods: {
+
+ // 校验是否为超级管理员
+ checkSuperAdmin () {
+ checkSuperAdmin().then(({data}) => {
+ this.superAdmin = data.superAdmin
+ })
+ },
+
accessProcessField(key) {
return this.processField.indexOf(key) !== -1 || false
},
@@ -1702,6 +1714,7 @@ export default {
// 审批
editModal(row) {
this.getNodeAuthority(row)
+ this.checkSuperAdmin()
this.dataForm = {
site: row.site,
applyNo: row.applyNo,
@@ -2157,6 +2170,7 @@ export default {
},
},
+
activated() {
if (this.$route.params.type === 'tokenLogin') {
console.log("进来啦")