Browse Source

2025-05-14

master
qiezi 1 year ago
parent
commit
f86e689bc4
  1. 3
      src/api/sampleManagement/technicalSpecificationList.js
  2. 261
      src/views/modules/sampleManagement/technicalSpecificationDetail/changeLog.vue
  3. 22
      src/views/modules/sampleManagement/technicalSpecificationList.vue
  4. 3266
      src/views/modules/tooling/searchToolApply.vue

3
src/api/sampleManagement/technicalSpecificationList.js

@ -127,3 +127,6 @@ export const getOADetailForBM= data => createAPI(`/technicalSpecification/getOAD
export const searchCopyPart= data => createAPI(`/technicalSpecification/searchCopyPart`,'post',data)
export const copyBm= data => createAPI(`/technicalSpecification/copyBm`,'post',data)
// 2025-05-14 查询变更信息
export const queryChangeLogList = data => createAPI("/technicalSpecification/change/log",'post',data)

261
src/views/modules/sampleManagement/technicalSpecificationDetail/changeLog.vue

@ -0,0 +1,261 @@
<script>
import {queryChangeLogList} from "../../../../api/sampleManagement/technicalSpecificationList";
export default {
name: "changeLog",
props:{
row:{
type:Object,
required:true
},
height:{
type:[Number,String],
default:200
}
},
data(){
return{
queryLoading:false,
dataList:[],
columns:[
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1BuNo',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'buNo',
headerAlign: 'center',
align: 'center',
columnLabel: 'BU',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1ChangeNo',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'changeNo',
headerAlign: 'center',
align: 'left',
columnLabel: '申请编号',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1ApplicantName',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'applicantName',
headerAlign: 'center',
align: 'left',
columnLabel: '申请人',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1DepartmentName',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'applicationDepartmentName',
headerAlign: 'center',
align: 'left',
columnLabel: '申请部门',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1ChangeStatus',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'changeStatus',
headerAlign: 'center',
align: 'left',
columnLabel: '变更单状态',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1EcnStage',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'ecnStage',
headerAlign: 'center',
align: 'left',
columnLabel: 'ECN阶段',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1ChangeType',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'changeType',
headerAlign: 'center',
align: 'left',
columnLabel: '变更类别',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1EcnType',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'ecnType',
headerAlign: 'center',
align: 'left',
columnLabel: 'ECN种类',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1ApplyDate',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'applyDate',
headerAlign: 'center',
align: 'center',
columnLabel: '申请日期',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1ChangePhaseInDate',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'changePhaseInDate',
headerAlign: 'center',
align: 'center',
columnLabel: '变更生效日期',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 108002,
serialNumber: '108002Table1xxx',
tableId: '108002Table1',
tableName: '工程变更记录表',
columnProp: 'xxx',
headerAlign: 'center',
align: 'center',
columnLabel: 'ECN执行日期',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
],
}
},
watch:{
row(newVal,oldVal){
this.queryChangeLogList();
},
queryLoading(newVal,oldVal){
if (!newVal){
setTimeout(()=>{
this.queryLoading = false;
},10000)
}
}
},
methods:{
queryChangeLogList(){
let params = {
site:this.row.site,
codeNo:this.row.codeNo,
}
this.queryLoading = true;
queryChangeLogList(params).then(({data})=>{
if (data && data.code === 0){
this.dataList = data.rows;
}else {
this.$message.warning(data.msg);
}
this.queryLoading = false;
}).catch((error)=>{
this.$message.error(error);
this.queryLoading = false;
})
}
},
}
</script>
<template>
<div>
<el-table
:data="dataList"
border v-loading="queryLoading" :height="height">
<el-table-column
v-for="(item,index) in columns" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed === ''?false:item.fixed"
: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>
</template>
</el-table-column>
</el-table>
</div>
</template>
<style scoped>
</style>

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

@ -12,6 +12,7 @@
<el-input v-model="searchData.testPartNo" style="width: 120px" clearable></el-input>
</el-form-item>
<el-form-item label="客户">
<span slot="label" @click="getBaseList(102,1)"><a herf="#">客户</a></span>
<el-input v-model="searchData.customerDesc" style="width: 120px" clearable></el-input>
</el-form-item>
<el-form-item label="刀版号">
@ -20,9 +21,9 @@
<el-form-item :label="'状态'">
<el-select v-model="searchData.statusDesc" clearable style="width: 130px">
<el-option label="全部" value=""></el-option>
<el-option label="草稿" value="草稿"></el-option>
<el-option label="审批中" value="审批中"></el-option>
<el-option label="已升版" value="已升版"></el-option>
<el-option label="草稿" value="cg"></el-option>
<el-option label="审批中" value="spz"></el-option>
<el-option label="已升版" value="death"></el-option>
<el-option label="已完成" value="已完成"></el-option>
</el-select>
</el-form-item>
@ -337,6 +338,9 @@
<!-- </el-form-item>-->
<!-- </el-form>-->
</el-tab-pane>
<el-tab-pane label="变更记录" name="changelog">
<change-log :row="currentRow" :height="240"></change-log>
</el-tab-pane>
<!-- 审批信息 -->
<el-tab-pane label="审批信息" name="approvalInformation">
<approval-information ref="approvalTable" v-model:data-list="approvalList" :height="240"></approval-information>
@ -465,8 +469,10 @@
} from '@/api/changeManagement/changeManagement.js'
import ApprovalInformation from "../changeManagement/approvalInformation.vue";
import CustomerInfo from "../quotation/sellForQuotation/customerInfo.vue";
import ChangeLog from "./technicalSpecificationDetail/changeLog.vue";
export default {
components: {
ChangeLog,
CustomerInfo,
ApprovalInformation,
Chooselist,
@ -1067,6 +1073,11 @@
strVal = this.searchData.testPartNo
}
}
if (val === 102) {
if(type==1) {
strVal = this.searchData.customerDesc
}
}
this.$refs.baseList.init(val, strVal)
})
},
@ -1104,6 +1115,11 @@
this.searchData.testPartNo = val.Test_part_no
}
}
if (this.tagNo === 102) {
if(this.tagNo1==1) {
this.searchData.customerDesc = val.Customer_desc
}
}
},
// /
addOrUpdateHandle (id) {

3266
src/views/modules/tooling/searchToolApply.vue
File diff suppressed because it is too large
View File

Loading…
Cancel
Save