From 91671d2be82bcc280688729306e24fb3d7f42f0d Mon Sep 17 00:00:00 2001
From: Aoi_Tori <2547614904@qq.com>
Date: Tue, 15 Jul 2025 11:24:45 +0800
Subject: [PATCH] 2025/7/15
---
.../demoComponents/orderProperties.vue | 10 +-
src/views/modules/oss/ossComponents.vue | 10 +-
src/views/modules/part/bomManagement.vue | 2 +-
.../com_bm_printingFlexo.vue | 4 +-
.../com_bm_printingIndigo.vue | 4 +-
src/views/modules/test/requestForTest.vue | 13 +-
src/views/modules/tooling/searchToolApply.vue | 380 +++++++++++++++---
7 files changed, 353 insertions(+), 70 deletions(-)
diff --git a/src/views/modules/demoComponents/orderProperties.vue b/src/views/modules/demoComponents/orderProperties.vue
index c6bdfc5..49b1cc1 100644
--- a/src/views/modules/demoComponents/orderProperties.vue
+++ b/src/views/modules/demoComponents/orderProperties.vue
@@ -3,17 +3,17 @@
- 新增
+ 新增
- {{ attributeDialog?'编辑':'保存' }}
+ {{ attributeDialog?'编辑':'保存' }}
- 刷新属性模板
+ 刷新属性模板
@@ -136,6 +136,10 @@ export default {
type:Boolean,
default:false,
},
+ readonly: {
+ type:Boolean,
+ default:false,
+ },
superAdmin: {
type: Boolean,
default: false
diff --git a/src/views/modules/oss/ossComponents.vue b/src/views/modules/oss/ossComponents.vue
index 4d8ab1f..226bc3d 100644
--- a/src/views/modules/oss/ossComponents.vue
+++ b/src/views/modules/oss/ossComponents.vue
@@ -55,6 +55,10 @@ export default {
visibleFlag: {
type: Boolean,
default: true
+ },
+ readonly: {
+ type: Boolean,
+ default: false
}
},
data(){
@@ -280,10 +284,10 @@ export default {
-
+
上传附件
-
+
下载
- 删除
+ 删除
预览
diff --git a/src/views/modules/part/bomManagement.vue b/src/views/modules/part/bomManagement.vue
index 16d37e7..638c6ef 100644
--- a/src/views/modules/part/bomManagement.vue
+++ b/src/views/modules/part/bomManagement.vue
@@ -563,7 +563,7 @@
-
+
-
+
+
+
+
+
+
@@ -1727,7 +1733,7 @@ export default {
columnProp: 'createDate',
headerAlign: 'center',
align: 'center',
- columnLabel: '创建时间',
+ columnLabel: '申请时间',
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1745,7 +1751,7 @@ export default {
columnProp: 'createBy',
headerAlign: 'center',
align: 'center',
- columnLabel: '创建人',
+ columnLabel: '申请人',
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -2754,6 +2760,7 @@ export default {
nodeId: row.nodeId,
approvalUsername: row.approvalUsername,
soNumber: row.soNumber,
+ createBy: row.createBy,
}
this.activeTabList = ['product', 'process', 'attribute', 'partAttribute', 'file']
// this.$refs.dialogSoBom.clearTable();
diff --git a/src/views/modules/tooling/searchToolApply.vue b/src/views/modules/tooling/searchToolApply.vue
index 46c324d..91b6a28 100644
--- a/src/views/modules/tooling/searchToolApply.vue
+++ b/src/views/modules/tooling/searchToolApply.vue
@@ -89,6 +89,9 @@
审批
+
+ 详情
+
删除
@@ -390,7 +393,7 @@
-
+
@@ -549,7 +552,7 @@
-
+
@@ -631,7 +634,7 @@
-
+
@@ -694,6 +697,15 @@
+
+
应用
@@ -702,6 +714,166 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 报价员
+
+
+
+ TP
+
+
+
+ 采购员
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ scope.row[item.columnProp] }}
+
![]()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ '关闭' }}
+
+
+
@@ -819,6 +991,8 @@ export default {
dataSelections: [],
chooseDataList: [],
visibleU: false,
+ visibleD: false,
+ isInitialized: false,
plmChangeApplyHeaderArr: [],
plmChangeApplyDetailArr: [],
dataForm: {
@@ -901,6 +1075,9 @@ export default {
pageIndex: 1,
pageSize: 100,
totalPage: 0,
+ pageIndex1: 1,
+ pageSize1: 100,
+ totalPage1: 0,
ossColumns: [
{
userId: this.$store.state.user.name,
@@ -1070,38 +1247,20 @@ export default {
{
userId: this.$store.state.user.name,
functionId: 106002,
- serialNumber: '106002Table1Status',
- tableId: "106002Table1",
- tableName: "刀具申请主表",
- columnProp: "status",
- headerAlign: "center",
- align: "left",
- columnLabel: "状态",
- columnHidden: false,
- columnImage: false,
- columnSortable: false,
- sortLv: 0,
- status: true,
- fixed: '',
- columnWidth: 60
- },
- {
- userId: this.$store.state.user.name,
- functionId: 106002,
- serialNumber: '106002Table1NodeId',
+ serialNumber: '106002Table1ApplyDate',
tableId: "106002Table1",
tableName: "刀具申请主表",
- columnProp: "nodeId",
+ columnProp: "applyDate",
headerAlign: "center",
align: "left",
- columnLabel: "当前节点",
+ columnLabel: "申请日期",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 60
+ columnWidth: 80
},
{
userId: this.$store.state.user.name,
@@ -1112,7 +1271,7 @@ export default {
columnProp: "sp",
headerAlign: "center",
align: "left",
- columnLabel: "当前节点审批人",
+ columnLabel: "当前审批人",
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1130,7 +1289,7 @@ export default {
columnProp: "nodeName",
headerAlign: "center",
align: "left",
- columnLabel: "节点名称",
+ columnLabel: "当前节点",
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1232,56 +1391,74 @@ export default {
{
userId: this.$store.state.user.name,
functionId: 106002,
- serialNumber: '106002Table1ApplyDate',
+ serialNumber: '106002Table1ApplyReason',
tableId: "106002Table1",
tableName: "刀具申请主表",
- columnProp: "applyDate",
+ columnProp: "applyReason",
headerAlign: "center",
align: "left",
- columnLabel: "申请日期",
+ columnLabel: "申请原因",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 80
+ columnWidth: 150
},
{
userId: this.$store.state.user.name,
functionId: 106002,
- serialNumber: '106002Table1ApplyReason',
+ serialNumber: '106002Table1Remark',
tableId: "106002Table1",
tableName: "刀具申请主表",
- columnProp: "applyReason",
+ columnProp: "remark",
headerAlign: "center",
align: "left",
- columnLabel: "申请原因",
+ columnLabel: "申请备注",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 150
+ columnWidth: 200
},
{
userId: this.$store.state.user.name,
functionId: 106002,
- serialNumber: '106002Table1Remark',
+ serialNumber: '106002Table1Status',
tableId: "106002Table1",
tableName: "刀具申请主表",
- columnProp: "remark",
+ columnProp: "status",
headerAlign: "center",
align: "left",
- columnLabel: "申请备注",
+ columnLabel: "状态",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 200
+ columnWidth: 60
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 106002,
+ serialNumber: '106002Table1NodeId',
+ tableId: "106002Table1",
+ tableName: "刀具申请主表",
+ columnProp: "nodeId",
+ headerAlign: "center",
+ align: "left",
+ columnLabel: "当前节点",
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 60
},
],
columnList2: [
@@ -1773,13 +1950,63 @@ export default {
// }
// }
visibleU (newV, oldV) {
- this.$refs.oss.handleQuery()
- this.$refs.dialogAttribute.getProperties()
+ if (newV === true){
+ const tryCall = () => {
+ if (this.$refs.oss1) {
+ this.$refs.oss1.handleQuery()
+ this.$refs.dialogAttribute.getProperties()
+ } else {
+ // 如果未定义,再次尝试延迟执行
+ setTimeout(tryCall, 50)
+ }
+ }
+ if (this.isInitialized) {
+ tryCall()
+ } else {
+ // 组件尚未初始化完成,监听 mounted 事件后再调用
+ this.$once('hook:mounted', tryCall)
+ }
+ }
},
visible(newV, oldV){
- this.$refs.oss.handleQuery()
- this.$refs.dialogAttribute.getProperties()
+ if (newV === true){
+ const tryCall = () => {
+ if (this.$refs.oss2) {
+ this.$refs.oss2.handleQuery()
+ this.$refs.dialogAttribute.getProperties()
+ } else {
+ // 如果未定义,再次尝试延迟执行
+ setTimeout(tryCall, 50)
+ }
+ }
+ if (this.isInitialized) {
+ tryCall()
+ } else {
+ // 组件尚未初始化完成,监听 mounted 事件后再调用
+ this.$once('hook:mounted', tryCall)
+ }
+ }
+ },
+
+ visibleD(newV, oldV){
+ if (newV === true){
+ const tryCall = () => {
+ if (this.$refs.oss3) {
+ this.$refs.oss3.handleQuery()
+ this.$refs.dialogAttribute.getProperties()
+ } else {
+ // 如果未定义,再次尝试延迟执行
+ setTimeout(tryCall, 50)
+ }
+ }
+ if (this.isInitialized) {
+ tryCall()
+ } else {
+ // 组件尚未初始化完成,监听 mounted 事件后再调用
+ this.$once('hook:mounted', tryCall)
+ }
+ }
},
toolDetailFlag(newV, oldV){
@@ -1804,6 +2031,7 @@ export default {
mounted() {
this.$nextTick(() => {
//this.height = window.innerHeight - 520;
+ this.isInitialized = true
this.height = window.innerHeight / 2 - 30
this.fieldColumn()
})
@@ -2123,6 +2351,47 @@ export default {
})
this.visible = true
},
+ detail(row) {
+ this.getNodeAuthority(row)
+ this.checkSuperAdmin()
+ this.dataForm = {
+ site: row.site,
+ applyNo: row.applyNo,
+ applyBy: row.applyBy,
+ applyDate: row.applyDate,
+ applySumQty: row.applySumQty,
+ applyReason: row.applyReason,
+ remark: row.remark,
+ createBy: row.createBy,
+ department: row.department,
+ detailList: [],
+ status: row.status,
+ rejectOpinion: '',
+ nodeConclusion: '',
+ quoter: row.quoter,
+ quoterName: row.quoterName,
+ tp: row.tp,
+ tpName: row.tpName,
+ purchaser: row.purchaser,
+ purchaserName: row.purchaserName,
+ totalCost: row.totalCost,
+ menuId: this.$route.meta.menuId,
+ userName: this.$store.state.user.name,
+ nodeId: row.nodeId,
+ sp: row.sp,
+ isReject: row.isReject
+ }
+ this.openModelMessage()
+ searchProjectToolApplyDetail({
+ site: row.site,
+ applyNo: row.applyNo,
+ }).then(({data}) => {
+ if (data.code == 0) {
+ this.toolData = data.rows
+ }
+ })
+ this.visibleD = true
+ },
editModalU(row) {
this.getNodeAuthority(row)
this.dataForm = {
@@ -2286,6 +2555,15 @@ export default {
this.queryByAnyField(this.filterSearchData)
}
},
+ sizeChangeHandle1(val) {
+ this.pageSize1 = val
+ this.pageIndex1 = 1
+ this.addChangeDetail()
+ },
+ currentChangeHandle1(val) {
+ this.pageIndex1 = val
+ this.addChangeDetail()
+ },
openModelMessage() {
this.modelData = {
@@ -2582,21 +2860,12 @@ export default {
addChangeDetail(){
this.toolDetailFlag = true
+ this.toolDetailSearchData.no = this.pageIndex1
+ this.toolDetailSearchData.size = this.pageSize1
queryProjectPartToolForApply(this.toolDetailSearchData).then(({data})=>{
if (data && data.code === 0){
this.dataList2 = data.rows
- // this.dataList2 = data.rows.map(row => {
- // const match = this.toolData.some(toolItem =>
- // toolItem.site === row.site &&
- // toolItem.applyNo === row.applyNo &&
- // toolItem.seqNo === row.seqNo
- // );
- // return {
- // ...row,
- // added: match
- // };
- // });
- this.total = data.total
+ this.totalPage1 = data.total
}else {
this.$message.error(data.msg)
}
@@ -2758,7 +3027,6 @@ export default {
}
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
- // console.log(this.searchData)
searchProjectToolApplyHeader(this.searchData).then(({data}) => {
if (data.code == 0) {
this.dataList1 = data.page.list