Browse Source

2025/6/17

master
Aoi_Tori 7 months ago
parent
commit
8645d54fa6
  1. 17
      src/views/modules/proofing/requestForProofing.vue
  2. 20
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue
  3. 4
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue
  4. 22
      src/views/modules/sampleManagement/technicalSpecificationList.vue

17
src/views/modules/proofing/requestForProofing.vue

@ -142,6 +142,16 @@
style="width: 100px; height: 80px"/></span>
</div>
</template>
<template slot-scope="scope">
<div v-if="item.columnProp === 'oriCodeNo'">
<el-link style="cursor:pointer;" v-if="!item.columnHidden" @click="toTechnicalSpecificationMenu(scope.row.oriCodeNo)"> {{ 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
fixed="right"
@ -3816,6 +3826,13 @@ export default {
this.isFilterSearch = true
this.filterVisible = false
},
toTechnicalSpecificationMenu (oriCodeNo) {
if (this.$router.resolve(`/sampleManagement-technicalSpecificationList`).resolved.name === '404') {
this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',})
} else {
this.$router.push({name:`sampleManagement-technicalSpecificationList`,params:{oriCodeNo: oriCodeNo},})
}
},
}
}
</script>

20
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_bom.vue

@ -1,6 +1,6 @@
<template>
<div class="mod-config">
<el-form :inline="true" label-position="top" style="margin-top: 1px; margin-left: 0px;" >
<div class="mod-config" v-highlight-container>
<el-form :inline="true" label-position="top" :model="bomData" :rules="componentRules" style="margin-top: 1px; margin-left: 0px;" >
<el-row :gutter="20">
<el-col :span="18">
<el-form-item label="物料编码/Part No.">
@ -25,13 +25,12 @@
<el-form-item
prop="urlFile"
:rules="componentRules.urlFile"
label="UL文件号/UL Product Model"
>
<span slot="label">
<a href="javascript:void(0)" @click="queryUrlFile" style=" text-decoration: none;">UL文件号/UL Product Model</a>
</span>
<el-input v-model="bomData.urlFile" style="width: 370px" />
<el-input v-model="bomData.urlFile" :class="{ 'input-error-border': urlFileChange && bomData.urlFile && bomData.urlFile.trim() !== '' }" style="width: 370px" />
</el-form-item>
<el-form-item label=" ">
<el-button type="primary" @click="searchTable(true)" >刷新</el-button>
@ -363,6 +362,7 @@
modalFlag:false,
bomFlag:false,
urlFileFlag:false,
urlFileChange: false,
height:200,
searchData: {
site: '',
@ -386,7 +386,7 @@
{
required: true,
message: ' ',
trigger: ['blur', 'change']
trigger: 'blur'
}
],
},
@ -933,6 +933,16 @@
this.bomData.urlFile = row.dictLabel
this.urlFileFlag = false
},
validateUrlFile() {
const value = this.bomData.urlFile.trim();
this.urlFileInvalid = !value; //
},
},
watch: {
'bomData.urlFile'(newVal) {
this.urlFileChange = true
},
},
}
</script>

4
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue

@ -154,6 +154,10 @@
label="参数卡编码"
height="150px"
style="margin-top: 5px"
:save-visible="isAuth('103002:upload')"
:download-visible="isAuth('103002:download')"
:remove-visible="isAuth('103002:remove')"
:preview-visible="isAuth('103002:preview')"
:disabled="ifDisableFlag"
:columns="ossColumns"
:order-ref1="dataForm.site?dataForm.site:''"

22
src/views/modules/sampleManagement/technicalSpecificationList.vue

@ -381,10 +381,10 @@
<el-tab-pane label="附件信息" name="file">
<oss-components style="margin-top: 5px"
ref="ossRef2"
:save-visible="isAuth('107001:tab5:save')"
:download-visible="isAuth('107001:tab5:download')"
:remove-visible="isAuth('107001:tab5:remove')"
:preview-visible="isAuth('107001:tab5:preview')"
:save-visible="isAuth('103002:upload')"
:download-visible="isAuth('103002:download')"
:remove-visible="isAuth('103002:remove')"
:preview-visible="isAuth('103002:preview')"
:disabled="currentRow.testStatus === '已完成'"
label="测试单号"
height="45vh"
@ -1107,6 +1107,19 @@
this.fetchNodeOptions()
})
},
watch: {
'$route.params': {
handler(newParams) {
// oriCodeNo searchData search
if (newParams.oriCodeNo !== this.searchData.oriCodeNo) {
this.searchData.oriCodeNo = newParams.oriCodeNo;
this.search();
}
},
deep: true, //
immediate: true // handler
}
},
activated() {
if (this.$route.params.type === 'tokenLogin') {
if (this.$route.params.docNo) {
@ -1580,6 +1593,7 @@
params.size = this.pageSize
params.site = this.$store.state.user.site
params.username = this.$store.state.user.name
params.userId = this.$store.state.user.id
technicalSpecificationListSearchByAnyField(params).then(({data})=>{
if (data && data.code === 0){
this.dataList1 = data.page.list

Loading…
Cancel
Save