@@ -61,7 +61,7 @@
-->
-
+
@@ -71,7 +71,7 @@
-
+
@@ -80,22 +80,22 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
@@ -242,42 +242,42 @@ export default {
fixed: '',
columnWidth: 100
},
- {
- userId: this.$store.state.user.name,
- functionId: 811001,
- serialNumber: '811001Table5SecondarySupplierCode',
- tableId: '811001Table5',
- tableName: '供应商合同',
- columnProp: 'secondarySupplierCode',
- headerAlign: 'center',
- align: 'left',
- columnLabel: '二级供应商编码',
- columnHidden: false,
- columnImage: false,
- columnSortable: false,
- sortLv: 0,
- status: true,
- fixed: '',
- columnWidth: 150
- },
- {
- userId: this.$store.state.user.name,
- functionId: 811001,
- serialNumber: '811001Table5SecondarySupplierName',
- tableId: '811001Table5',
- tableName: '供应商合同',
- columnProp: 'secondarySupplierName',
- headerAlign: 'center',
- align: 'left',
- columnLabel: '二级供应商名称',
- columnHidden: false,
- columnImage: false,
- columnSortable: false,
- sortLv: 0,
- status: true,
- fixed: '',
- columnWidth: 150
- },
+ // {
+ // userId: this.$store.state.user.name,
+ // functionId: 811001,
+ // serialNumber: '811001Table5SecondarySupplierCode',
+ // tableId: '811001Table5',
+ // tableName: '供应商合同',
+ // columnProp: 'secondarySupplierCode',
+ // headerAlign: 'center',
+ // align: 'left',
+ // columnLabel: '二级供应商编码',
+ // columnHidden: false,
+ // columnImage: false,
+ // columnSortable: false,
+ // sortLv: 0,
+ // status: true,
+ // fixed: '',
+ // columnWidth: 150
+ // },
+ // {
+ // userId: this.$store.state.user.name,
+ // functionId: 811001,
+ // serialNumber: '811001Table5SecondarySupplierName',
+ // tableId: '811001Table5',
+ // tableName: '供应商合同',
+ // columnProp: 'secondarySupplierName',
+ // headerAlign: 'center',
+ // align: 'left',
+ // columnLabel: '二级供应商名称',
+ // columnHidden: false,
+ // columnImage: false,
+ // columnSortable: false,
+ // sortLv: 0,
+ // status: true,
+ // fixed: '',
+ // columnWidth: 150
+ // },
{
userId: this.$store.state.user.name,
functionId: 811001,
@@ -327,7 +327,7 @@ export default {
getBaseData (val) {
if (this.tagNo === 520) {
this.partSuppliersData.supplierCode = val.supplier_no
-
+
}
},
//初始化组件的参数
@@ -355,7 +355,7 @@ export default {
site:this.$store.state.user.site,
partNo:this.searchData.partNo,
supplierCode:'',
- supplierName:'',
+ supplierName:'',
priceWithTax:'',
deliveryTime:'',
secondarySupplierCode:'',
@@ -364,18 +364,18 @@ export default {
isMainSupplier:'',
createBy:this.$store.state.user.name,
}
-
+
this.contractModelFlag=true;
},
-
+
submitData(){
-
+
if(this.partSuppliersData.supplierCode==''||this.partSuppliersData.supplierCode==null){
this.$message.warning('未输入supplierCode!')
return false
}
-
+
createPartSupplierRelation( this.partSuppliersData).then(({data})=>{
if (data && data.code === 0){
@@ -390,7 +390,7 @@ export default {
})
},
-
+
editModel(row){
this.partSuppliersData=JSON.parse(JSON.stringify(row));
this.contractModelFlag=true;
@@ -442,4 +442,4 @@ export default {
}
-
\ No newline at end of file
+
diff --git a/src/views/modules/srmPart/partApprovalList.vue b/src/views/modules/srmPart/partApprovalList.vue
index e8d3faf..197d59d 100644
--- a/src/views/modules/srmPart/partApprovalList.vue
+++ b/src/views/modules/srmPart/partApprovalList.vue
@@ -74,7 +74,11 @@
:min-width="item.columnWidth"
:label="item.columnLabel">
- {{scope.row[item.columnProp]}}
+ {{
+ item.columnProp === 'status'
+ ? (scope.row.status === 'Y' ? '在用' : scope.row.status === 'N' ? '禁用' : scope.row.status)
+ : scope.row[item.columnProp]
+ }}
@@ -89,7 +93,7 @@
重新审批
审批
-
+
@@ -157,7 +161,7 @@
-->
-
+
@@ -397,7 +401,7 @@ export default {
columnProp: 'status',
headerAlign: 'center',
align: 'center',
- columnLabel: '状态',
+ columnLabel: '是否在用',
columnWidth: '80',
columnHidden: false,
columnImage: false,
@@ -498,7 +502,7 @@ export default {
// }
],
exportName: '产品信息' + this.dayjs().format('YYYYMMDDHHmmss')
-
+
}
},
/* 组件 */
@@ -520,7 +524,7 @@ export default {
this.height = (window.innerHeight - 280) / 2
})
},
-
+
methods: {
getBaseList (val, type) {
@@ -539,9 +543,9 @@ export default {
// if (this.tagNo === 1100) {
// this.searchData.partNo = val.part_no
// }
-
+
},
-
+
getMainData () {
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
@@ -563,11 +567,11 @@ export default {
this.dataListLoading = false
})
},
-
+
tabClick (tab, event) {
this.refreshCurrentTabTable()
},
-
+
// 每页数
sizeChangeHandle (val) {
this.pageSize = val
@@ -580,12 +584,12 @@ export default {
this.pageIndex = val
this.getMainData()
},
-
+
changeData (row) {
this.currentRow = JSON.parse(JSON.stringify(row))
this.refreshCurrentTabTable()
},
-
+
refreshCurrentTabTable () {
if (this.currentRow === '' || this.currentRow === null) {
this.currentRow = {site: '', partNo: ''}
@@ -606,7 +610,7 @@ export default {
this.refreshAttachments()
}
},
-
+
async exportExcel () {
this.searchData.limit = -1
this.searchData.page = 1
@@ -621,7 +625,7 @@ export default {
dropColumns: []
})
},
-
+
refreshBasicInfo () {
let inData = {
site: this.currentRow.site,
@@ -631,7 +635,7 @@ export default {
}
this.$refs.basicInfo.init(inData)
},
-
+
refreshSpecParams () {
let inData = {
site: this.currentRow.site,
@@ -642,7 +646,7 @@ export default {
}
this.$refs.specParams.init(inData)
},
-
+
refreshSuppliers () {
let inData = {
site: this.currentRow.site,
@@ -651,7 +655,7 @@ export default {
}
this.$refs.suppliers.init(inData)
},
-
+
refreshApproval () {
let inData = {
site: this.currentRow.site,
@@ -661,7 +665,7 @@ export default {
}
this.$refs.approval.init(inData)
},
-
+
refreshAttachments () {
let inData = {
orderRef1: this.currentRow.site,
@@ -671,8 +675,8 @@ export default {
}
this.$refs.attachments.init(inData)
},
-
-
+
+
// 打开审批对话框
openApproveDialog(row) {
this.approveData = {
@@ -682,8 +686,9 @@ export default {
flowCode: row.flowCode,
flowVersion: row.flowVersion,
nodeCode: row.nodeCode,
+ specialRelease: 'N',
comment: ''
-
+
}
this.approveDialogVisible = true
},
@@ -737,7 +742,7 @@ export default {
})
}).catch(() => {})
}
-
+
}
}
@@ -860,4 +865,4 @@ export default {
height: 28px;
}
}
-
\ No newline at end of file
+
diff --git a/src/views/modules/srmPart/partInfoList.vue b/src/views/modules/srmPart/partInfoList.vue
index f9cb810..3e96ec9 100644
--- a/src/views/modules/srmPart/partInfoList.vue
+++ b/src/views/modules/srmPart/partInfoList.vue
@@ -42,7 +42,11 @@
:min-width="item.columnWidth"
:label="item.columnLabel">
- {{scope.row[item.columnProp]}}
+ {{
+ item.columnProp === 'status'
+ ? (scope.row.status === 'Y' ? '在用' : scope.row.status === 'N' ? '禁用' : scope.row.status)
+ : scope.row[item.columnProp]
+ }}
@@ -137,7 +141,7 @@
-
+
@@ -162,10 +166,10 @@