Browse Source

2025/6/3

master
Aoi_Tori 7 months ago
parent
commit
dbfaf6c67d
  1. 2
      src/views/modules/oss/ossComponents.vue
  2. 1
      src/views/modules/part/partCatalogInformation.vue
  3. 33
      src/views/modules/part/partInformation.vue
  4. 1
      src/views/modules/part/routingManagement.vue

2
src/views/modules/oss/ossComponents.vue

@ -109,8 +109,6 @@ export default {
this.fileList = fileList
},
handleUploadFiles(){
console.log('单号为:')
console.log(this.ossForm.orderRef2)
if (this.fileList.length === 0){
this.$message.error('请选择文件');
return;

1
src/views/modules/part/partCatalogInformation.vue

@ -1141,7 +1141,6 @@
const {ifsPartNo} = this.$route.params;
if (ifsPartNo) {
this.searchData.partNo = ifsPartNo;
console.log('赋值成功')
}
this.getDataList()
},

33
src/views/modules/part/partInformation.vue

@ -104,8 +104,14 @@
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
<div v-if="item.columnProp === 'ifsPartNo'">
<el-link style="cursor:pointer;" v-if="!item.columnHidden" @click="toPartMenu(scope.row.ifsPartNo)"> {{ scope.row[item.columnProp] }}</el-link>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</div>
<div v-else>
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</div>
</template>
</el-table-column>
<el-table-column
@ -1592,6 +1598,11 @@
this.searchData.partNo = this.searchData.partNo.toUpperCase()
}
},
'searchData.plmPartNo': function(newVal, oldVal) {
if (newVal !== oldVal && newVal !== '') {
this.getDataList();
}
},
modalData: {
deep: true,
handler: function (newV, oldV) {
@ -3418,12 +3429,11 @@
plmPartNo: '',
partType: ''
}
// const { partNo } = this.$route.params;
//
// if (partNo) {
// this.searchData.plmPartNo = partNo;
// }
// this.$router.replace({ params: {} });
const { partNo } = this.$route.params;
if (partNo) {
this.searchData.plmPartNo = partNo;
}
this.getDataList()
},
@ -5952,6 +5962,13 @@
return { 'background-color': '#E8F7F6', cursor: 'pointer' }
}
},
toPartMenu (ifsPartNo) {
if (this.$router.resolve(`/part-partCatalogInformation`).resolved.name === '404') {
this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',})
} else {
this.$router.push({name:`part-partCatalogInformation`,params:{ifsPartNo: ifsPartNo},})
}
},
}
}
</script>

1
src/views/modules/part/routingManagement.vue

@ -5033,7 +5033,6 @@ export default {
//
workCenterBlur(tagNo) {
console.log('@change触发')
if (this.componentData.workCenterNo != null && this.componentData.workCenterNo !== '') {
let tempData = {
tagno: tagNo,

Loading…
Cancel
Save