Browse Source

2024-10-22

优化
master
fengyuan_yang 1 year ago
parent
commit
8c6193d800
  1. 6
      src/api/part/partInformation.js
  2. 36
      src/views/modules/changeManagement/changeRecord.vue
  3. 12
      src/views/modules/processManagement/processBindingInfo.vue
  4. 1
      src/views/modules/project/projectInfo/projectInfo.vue
  5. 140
      src/views/modules/project/projectPart/searchProjectPart.vue

6
src/api/part/partInformation.js

@ -273,6 +273,12 @@ export const addProjectPart2 = data => createAPI(`/plm/partInformation/addProjec
*/ */
export const getChangeRecordByPartNo = data => createAPI(`/plm/partInformation/getChangeRecordByPartNo`,'post',data) export const getChangeRecordByPartNo = data => createAPI(`/plm/partInformation/getChangeRecordByPartNo`,'post',data)
/**
* 查询变更记录
*/
export const getChangeRecordByPartNo2 = data => createAPI(`/plm/partInformation/getChangeRecordByPartNo2`,'post',data)
/** /**
* 查询变更记录 * 查询变更记录
*/ */

36
src/views/modules/changeManagement/changeRecord.vue

@ -278,10 +278,10 @@
</el-form> </el-form>
</div> </div>
<el-footer style="height:25px;text-align:center"> <el-footer style="height:25px;text-align:center">
<el-button type="primary" @click="saveData">保存</el-button>
<el-button type="primary" :loading="saveLoading" @click="saveData">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button> <el-button type="primary" @click="modalFlag = false">关闭</el-button>
<el-button v-if="modalData.changeStatus === '审批中'" type="primary" @click="agreeSubmit">同意</el-button>
<el-button v-if="modalData.changeStatus === '审批中' && modalData.isReject === 'Y'" type="primary" @click="submitDataModal">驳回</el-button>
<el-button v-if="modalData.changeStatus === '审批中'" type="primary" :loading="submitLoading" @click="agreeSubmit">同意</el-button>
<el-button v-if="modalData.changeStatus === '审批中' && modalData.isReject === 'Y'" type="primary" :loading="submitLoading" @click="submitDataModal">驳回</el-button>
</el-footer> </el-footer>
</el-tab-pane> </el-tab-pane>
@ -377,10 +377,10 @@
</el-form> </el-form>
</div> </div>
<el-footer style="height:25px;text-align:center"> <el-footer style="height:25px;text-align:center">
<el-button type="primary" @click="saveData">保存</el-button>
<el-button type="primary" :loading="saveLoading" @click="saveData">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button> <el-button type="primary" @click="modalFlag = false">关闭</el-button>
<el-button v-if="modalData.changeStatus === '审批中'" type="primary" @click="agreeSubmit">同意</el-button>
<el-button v-if="modalData.changeStatus === '审批中' && modalData.isReject === 'Y'" type="primary" @click="submitDataModal">驳回</el-button>
<el-button v-if="modalData.changeStatus === '审批中'" type="primary" :loading="submitLoading" @click="agreeSubmit">同意</el-button>
<el-button v-if="modalData.changeStatus === '审批中' && modalData.isReject === 'Y'" type="primary" :loading="submitLoading" @click="submitDataModal">驳回</el-button>
</el-footer> </el-footer>
</el-tab-pane> </el-tab-pane>
@ -527,10 +527,10 @@
</div> </div>
</div> </div>
<el-footer style="height:25px;text-align:center"> <el-footer style="height:25px;text-align:center">
<el-button type="primary" @click="saveData">保存</el-button>
<el-button type="primary" :loading="saveLoading" @click="saveData">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button> <el-button type="primary" @click="modalFlag = false">关闭</el-button>
<el-button v-if="modalData.changeStatus === '审批中'" type="primary" @click="agreeSubmit">同意</el-button>
<el-button v-if="modalData.changeStatus === '审批中' && modalData.isReject === 'Y'" type="primary" @click="submitDataModal">驳回</el-button>
<el-button v-if="modalData.changeStatus === '审批中'" type="primary" :loading="submitLoading" @click="agreeSubmit">同意</el-button>
<el-button v-if="modalData.changeStatus === '审批中' && modalData.isReject === 'Y'" type="primary" :loading="submitLoading" @click="submitDataModal">驳回</el-button>
</el-footer> </el-footer>
</el-tab-pane> </el-tab-pane>
@ -581,10 +581,10 @@
</div> </div>
</div> </div>
<el-footer style="height:25px;text-align:center"> <el-footer style="height:25px;text-align:center">
<el-button type="primary" @click="saveData">保存</el-button>
<el-button type="primary" :loading="saveLoading" @click="saveData">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button> <el-button type="primary" @click="modalFlag = false">关闭</el-button>
<el-button v-if="modalData.changeStatus === '审批中'" type="primary" @click="agreeSubmit">同意</el-button>
<el-button v-if="modalData.changeStatus === '审批中' && modalData.isReject === 'Y'" type="primary" @click="submitDataModal">驳回</el-button>
<el-button v-if="modalData.changeStatus === '审批中'" type="primary" :loading="submitLoading" @click="agreeSubmit">同意</el-button>
<el-button v-if="modalData.changeStatus === '审批中' && modalData.isReject === 'Y'" type="primary" :loading="submitLoading" @click="submitDataModal">驳回</el-button>
</el-footer> </el-footer>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -2479,7 +2479,9 @@
chooseCSModelFlag: false, chooseCSModelFlag: false,
uploadDialog: false, uploadDialog: false,
submitModalFlag: false, submitModalFlag: false,
addDetailModal: false
addDetailModal: false,
saveLoading: false,
submitLoading: false
} }
}, },
@ -3301,6 +3303,7 @@
this.modalData.costImpactData = this.costImpactData this.modalData.costImpactData = this.costImpactData
this.modalData.executionInfoData = this.executionInfoData this.modalData.executionInfoData = this.executionInfoData
this.modalData.countersignatureData = this.countersignatureData this.modalData.countersignatureData = this.countersignatureData
this.submitLoading = true
submitChange(this.modalData).then(({data}) => { submitChange(this.modalData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.getDataList() this.getDataList()
@ -3312,6 +3315,9 @@
confirmButtonText: '确定' confirmButtonText: '确定'
}) })
} }
this.submitLoading = false
}).catch(()=>{
this.submitLoading = false
}) })
}, },
@ -3635,6 +3641,7 @@
this.modalData.costImpactData = this.costImpactData this.modalData.costImpactData = this.costImpactData
this.modalData.executionInfoData = this.executionInfoData this.modalData.executionInfoData = this.executionInfoData
this.modalData.countersignatureData = this.countersignatureData this.modalData.countersignatureData = this.countersignatureData
this.saveLoading = true
changeRequestUpdate(this.modalData).then(({data}) => { changeRequestUpdate(this.modalData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.modalData = data.rows.modalData this.modalData = data.rows.modalData
@ -3660,6 +3667,9 @@
confirmButtonText: '确定' confirmButtonText: '确定'
}) })
} }
this.saveLoading = false
}).catch(()=>{
this.saveLoading = false
}) })
}, },

12
src/views/modules/processManagement/processBindingInfo.vue

@ -1486,7 +1486,7 @@
this.$message.warning('序号' + (i+1) +'未选择PLM字段类型,字段类型为必填项!') this.$message.warning('序号' + (i+1) +'未选择PLM字段类型,字段类型为必填项!')
return return
} }
if(this.tableData[i].fieldType != null && this.tableData[i].fieldType !== '' && (this.tableData[i].review == null || this.tableData[i].review === '')){
if(this.tableData[i].fieldType === 'A' && (this.tableData[i].review == null || this.tableData[i].review === '')){
this.$message.warning('序号' + (i+1) +'未选择审阅!') this.$message.warning('序号' + (i+1) +'未选择审阅!')
return return
} }
@ -1498,11 +1498,11 @@
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
let obj = {} let obj = {}
obj.site = this.$store.state.user.site,
obj.classificationNo = this.nodeCurrentRow.classificationNo,
obj.workflowId = this.nodeCurrentRow.workflowId,
obj.nodeId = this.nodeCurrentRow.nodeId,
obj.createBy = this.$store.state.user.name,
obj.site = this.$store.state.user.site
obj.classificationNo = this.nodeCurrentRow.classificationNo
obj.workflowId = this.nodeCurrentRow.workflowId
obj.nodeId = this.nodeCurrentRow.nodeId
obj.createBy = this.$store.state.user.name
deleteRequestNodeDetailByLine(obj).then(({data}) => { deleteRequestNodeDetailByLine(obj).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
// //

1
src/views/modules/project/projectInfo/projectInfo.vue

@ -327,7 +327,6 @@
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="变更记录" name="changeRecord"> <el-tab-pane label="变更记录" name="changeRecord">
<change-record :data-list="changeRecordList" :height="240" :columns="columnChangeRecord"></change-record> <change-record :data-list="changeRecordList" :height="240" :columns="columnChangeRecord"></change-record>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>

140
src/views/modules/project/projectPart/searchProjectPart.vue

@ -188,6 +188,9 @@
<el-tab-pane label="技术参数卡" name="technicalSpecification"> <el-tab-pane label="技术参数卡" name="technicalSpecification">
<technicalSpecification ref="technicalSpecification" ></technicalSpecification> <technicalSpecification ref="technicalSpecification" ></technicalSpecification>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="变更记录" name="changeRecord">
<change-record :data-list="changeRecordList" :height="240" :columns="columnChangeRecord"></change-record>
</el-tab-pane>
</el-tabs> </el-tabs>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
@ -202,6 +205,9 @@
import { import {
customerInformationSearchForCheck, // ` customerInformationSearchForCheck, // `
} from '@/api/customer/customerInformation.js' } from '@/api/customer/customerInformation.js'
import {
getChangeRecordByPartNo2, //
} from '@/api/part/partInformation.js'
import {getBuBySite} from "@/api/changeManagement/changeManagement.js" import {getBuBySite} from "@/api/changeManagement/changeManagement.js"
import Chooselist from '@/views/modules/common/Chooselist' import Chooselist from '@/views/modules/common/Chooselist'
import projectQuotation from "../projectInfo/com_project_puotation.vue";/*組件*/ import projectQuotation from "../projectInfo/com_project_puotation.vue";/*組件*/
@ -212,8 +218,10 @@
import ProjectPartQuote from "./projectPartQuote.vue"; import ProjectPartQuote from "./projectPartQuote.vue";
import toolApply from "../projectInfo/com_project_toolApplyCation.vue"; import toolApply from "../projectInfo/com_project_toolApplyCation.vue";
import CustomerInfo from "../../quotation/sellForQuotation/customerInfo.vue"; import CustomerInfo from "../../quotation/sellForQuotation/customerInfo.vue";
import ChangeRecord from "../projectInfo/com_project_change_record.vue";
export default { export default {
components: { components: {
ChangeRecord,
CustomerInfo, CustomerInfo,
toolApply, toolApply,
ProjectPartQuote, ProjectPartQuote,
@ -587,6 +595,119 @@
contactStatus: '', contactStatus: '',
addressName: '' addressName: ''
}, },
changeRecordList: [],
columnChangeRecord: [
{
columnProp: 'changeNo',
headerAlign: 'center',
align: 'center',
columnLabel: '申请编号',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 120
},
{
columnProp: 'applicantName',
headerAlign: 'center',
align: 'center',
columnLabel: '申请人',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 120
},
{
columnProp: 'applicationDepartmentName',
headerAlign: 'center',
align: 'center',
columnLabel: '申请部门',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 120
},
{
columnProp: 'changeStatus',
headerAlign: 'center',
align: 'center',
columnLabel: '变更单状态',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
columnProp: 'ecnStage',
headerAlign: 'center',
align: 'center',
columnLabel: 'ECN阶段',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
columnProp: 'changeType',
headerAlign: 'center',
align: 'center',
columnLabel: '变更类别',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
columnProp: 'ecnType',
headerAlign: 'center',
align: 'center',
columnLabel: 'ECN种类',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
columnProp: 'applyDate',
headerAlign: 'center',
align: 'center',
columnLabel: '申请日期',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
columnProp: 'changePhaseInDate',
headerAlign: 'center',
align: 'center',
columnLabel: '变更生效日期',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
},
{
columnProp: 'xxx',
headerAlign: 'center',
align: 'center',
columnLabel: 'ECN执行日期',
columnHidden: false,
columnImage: false,
status: true,
fixed: '',
columnWidth: 100
}
],
} }
}, },
@ -799,6 +920,9 @@
if (this.activeName === 'toolApply') { if (this.activeName === 'toolApply') {
this.refreshTable('toolApply'); this.refreshTable('toolApply');
} }
if (this.activeName === 'changeRecord') {
this.getChangeRecordList()
}
}, },
refreshTable (type) { refreshTable (type) {
let inData = { let inData = {
@ -834,6 +958,22 @@
} }
}, },
//
getChangeRecordList () {
let tempData = {
site: this.$store.state.user.site,
projectId: this.currentRow.projectId,
finalPartNo: this.currentRow.finalPartNo
}
getChangeRecordByPartNo2(tempData).then(({data}) => {
if (data && data.code === 0) {
this.changeRecordList = data.rows
} else {
this.changeRecordList = []
}
})
},
// //
searchCustomer (row) { searchCustomer (row) {

Loading…
Cancel
Save