Browse Source

2024-05-31 更新2

master
fengyuan_yang 2 years ago
parent
commit
d2b3353a94
  1. 202
      src/views/modules/changeManagement/changeRecord.vue
  2. 8
      src/views/modules/quotation/requestForQuote.vue
  3. 8
      src/views/modules/test/requestForTest.vue

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

@ -364,7 +364,7 @@
</el-form>
</div>
<el-footer style="height:25px;text-align:center">
<el-button type="primary" @click="inventoryCostImpactSave">保存</el-button>
<el-button type="primary" @click="saveData">保存</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="rejectSubmit">驳回</el-button>
@ -513,7 +513,7 @@
</div>
</div>
<el-footer style="height:25px;text-align:center">
<el-button type="primary" @click="executionInformationSave">保存</el-button>
<el-button type="primary" @click="saveData">保存</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="rejectSubmit">驳回</el-button>
@ -566,7 +566,7 @@
</div>
</div>
<el-footer style="height:25px;text-align:center">
<el-button type="primary" @click="countersignatureSave">保存</el-button>
<el-button type="primary" @click="saveData">保存</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="rejectSubmit">驳回</el-button>
@ -1083,7 +1083,8 @@
stepId: '',
rejectFlag: '',
rejectStepId: '',
isReject: ''
isReject: '',
menuId: this.$route.meta.menuId
},
costImpactData: {
site: this.$store.state.user.site,
@ -2381,7 +2382,8 @@
stepId: row.stepId,
rejectFlag: row.rejectFlag,
rejectStepId: row.rejectStepId,
isReject: row.isReject
isReject: row.isReject,
menuId: this.$route.meta.menuId
}
this.changeTitle = '变更申请-' + this.modalData.changeNo
// ECN
@ -2457,20 +2459,68 @@
//
submitData () {
if (this.plmChangeRequestArr) {
for (let i = 0; i < this.plmChangeRequestArr.length; i++) {
if (!this.modalData[this.plmChangeRequestArr[i].fieldId] && this.plmChangeRequestArr[i].required === 'Y') {
this.$message.warning(this.plmChangeRequestArr[i].fieldName + '不能为空!')
return
}
}
let tempData = {
site: this.modalData.site,
userName: this.$store.state.user.name,
changeNo: this.modalData.changeNo,
menuId: this.$route.meta.menuId,
nodeConclusion: this.modalData.nodeConclusion
}
submitChange(tempData).then(({data}) => {
if (this.plmChangeRequestDetailArr) {
for (let i = 0; i < this.plmChangeRequestDetailArr.length; i++) {
if (!this.modalData[this.plmChangeRequestDetailArr[i].fieldId] && this.plmChangeRequestDetailArr[i].required === 'Y') {
this.$message.warning(this.plmChangeRequestDetailArr[i].fieldName + '不能为空!')
return
}
}
}
if (this.plmChangeCostImpactArr) {
for (let i = 0; i < this.plmChangeCostImpactArr.length; i++) {
if (!this.modalData[this.plmChangeCostImpactArr[i].fieldId] && this.plmChangeCostImpactArr[i].required === 'Y') {
this.$message.warning(this.plmChangeCostImpactArr[i].fieldName + '不能为空!')
return
}
}
}
if (this.plmChangeFAItemArr) {
for (let i = 0; i < this.plmChangeFAItemArr.length; i++) {
if (!this.modalData[this.plmChangeFAItemArr[i].fieldId] && this.plmChangeFAItemArr[i].required === 'Y') {
this.$message.warning(this.plmChangeFAItemArr[i].fieldName + '不能为空!')
return
}
}
}
if (this.plmChangeExecutionInfoArr) {
for (let i = 0; i < this.plmChangeExecutionInfoArr.length; i++) {
if (!this.modalData[this.plmChangeExecutionInfoArr[i].fieldId] && this.plmChangeExecutionInfoArr[i].required === 'Y') {
this.$message.warning(this.plmChangeExecutionInfoArr[i].fieldName + '不能为空!')
return
}
}
}
if (this.plmChangeItemArr) {
for (let i = 0; i < this.plmChangeItemArr.length; i++) {
if (!this.modalData[this.plmChangeItemArr[i].fieldId] && this.plmChangeItemArr[i].required === 'Y') {
this.$message.warning(this.plmChangeItemArr[i].fieldName + '不能为空!')
return
}
}
}
this.costImpactData.changeTotalCost = this.totalCost
this.executionInfoData.chooseItemList = this.chooseItemList
this.executionInfoData.chooseItemList2 = this.chooseItemList2
this.countersignatureData.changeNo = this.modalData.changeNo
this.countersignatureData.chooseCSItemList = this.chooseCSItemList
this.modalData.userName = this.$store.state.user.name
this.modalData.menuId = this.$route.meta.menuId
this.modalData.detailList = this.chooseDataList
this.modalData.ecnTypeData = this.form
this.modalData.costImpactData = this.costImpactData
this.modalData.executionInfoData = this.executionInfoData
this.modalData.countersignatureData = this.countersignatureData
submitChange(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
this.$message({message: '操作成功', type: 'success'})
@ -2671,20 +2721,132 @@
this.$message.warning('请选择CQC或者FAI人员!')
return
}
// if (this.modalData.cqcOperatorId !== '' && this.modalData.cqcOperatorId != null && this.modalData.faiOperatorId !== '' && this.modalData.faiOperatorId != null) {
// this.$message.warning('CQCFAI')
// return
// }
if (this.costImpactData.productionProductFlag === 'Y') { //
if (this.costImpactData.productionProductNumber == null || this.costImpactData.productionProductNumber === '') {
this.$message.warning('请填写在生产品数量!')
return
}
if (this.costImpactData.productionProductNumber <= 0) {
this.$message.warning('在生产品数量不能小于等于0!')
return
}
if (this.costImpactData.productionProductOpinions == null || this.costImpactData.productionProductOpinions === '') {
this.$message.warning('请填写在生产品处理意见!')
return
}
if (this.costImpactData.productionProductScrapAmount === 0) {
this.$message.warning('请填写在生产品报废金额!')
return
}
if (this.costImpactData.productionProductExecutor == null || this.costImpactData.productionProductExecutor === '') {
this.$message.warning('请填写在生产品执行人!')
return
}
}
if (this.costImpactData.inventoryProductFlag === 'Y') { //
if (this.costImpactData.inventoryProductNumber == null || this.costImpactData.inventoryProductNumber === '') {
this.$message.warning('请填写成品库存数量!')
return
}
if (this.costImpactData.inventoryProductNumber <= 0) {
this.$message.warning('成品库存数量不能小于等于0!')
return
}
if (this.costImpactData.inventoryProductOpinions == null || this.costImpactData.inventoryProductOpinions === '') {
this.$message.warning('请填写成品库存处理意见!')
return
}
if (this.costImpactData.inventoryProductScrapAmount === 0) {
this.$message.warning('请填写成品库存报废金额!')
return
}
if (this.costImpactData.inventoryProductExecutor == null || this.costImpactData.inventoryProductExecutor === '') {
this.$message.warning('请填写成品库存执行人!')
return
}
}
if (this.costImpactData.newOrderFlag === 'Y') { //
if (this.costImpactData.newOrderNumber == null || this.costImpactData.newOrderNumber === '') {
this.$message.warning('请填写新订单数量!')
return
}
if (this.costImpactData.newOrderNumber <= 0) {
this.$message.warning('新订单数量不能小于等于0!')
return
}
}
if (this.costImpactData.affectedFlag === 'Y') { //
if (this.costImpactData.affectedNumber == null || this.costImpactData.affectedNumber === '') {
this.$message.warning('请填写影响的原材料及其库存量数量!')
return
}
if (this.costImpactData.affectedNumber <= 0) {
this.$message.warning('影响的原材料及其库存量数量不能小于等于0!')
return
}
if (this.costImpactData.affectedOpinions == null || this.costImpactData.affectedOpinions === '') {
this.$message.warning('请填写影响的原材料及其库存量处理意见!')
return
}
if (this.costImpactData.affectedScrapAmount === 0) {
this.$message.warning('请填写影响的原材料及其库存量报废金额!')
return
}
if (this.costImpactData.affectedExecutor == null || this.costImpactData.affectedExecutor === '') {
this.$message.warning('请填写影响的原材料及其库存量执行人!')
return
}
}
if (this.executionInfoData.originalDieCuttingRuleNo == null || this.executionInfoData.originalDieCuttingRuleNo === '') {
this.$message.warning('请填写原啤刀编号!')
return;
}
if (this.executionInfoData.newDieCuttingRuleNo == null || this.executionInfoData.newDieCuttingRuleNo === '') {
this.$message.warning('请填写新啤刀编号!')
return;
}
if (this.executionInfoData.originalStencilNo == null || this.executionInfoData.originalStencilNo === '') {
this.$message.warning('请填写原网板/印版编号!')
return;
}
if (this.executionInfoData.newStencilNo == null || this.executionInfoData.newStencilNo === '') {
this.$message.warning('请填写新网板/印版编号!')
return;
}
if (this.executionInfoData.executionDate == null || this.executionInfoData.executionDate === '') {
this.$message.warning('请选择ECN执行日期!')
return;
}
this.costImpactData.changeTotalCost = this.totalCost
this.executionInfoData.chooseItemList = this.chooseItemList
this.executionInfoData.chooseItemList2 = this.chooseItemList2
this.countersignatureData.changeNo = this.modalData.changeNo
this.countersignatureData.chooseCSItemList = this.chooseCSItemList
this.modalData.detailList = this.chooseDataList
this.modalData.ecnTypeData = this.form
this.modalData.costImpactData = this.costImpactData
this.modalData.executionInfoData = this.executionInfoData
this.modalData.countersignatureData = this.countersignatureData
changeRequestUpdate(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.modalData = data.rows.modalData
this.modalData.menuId = this.$route.meta.menuId
this.changeTitle = '变更申请-' + this.modalData.changeNo
this.form = data.rows.form
this.chooseDataList = data.rows.chooseDataList
this.costImpactData = data.rows.costImpactData
this.executionInfoData = data.rows.executionInfoData
this.executionInfoData.createBy = this.$store.state.user.name
this.chooseItemList = data.rows.chooseItemList
this.chooseItemList2 = data.rows.chooseItemList2
this.chooseCSItemList = data.rows.chooseCSItemList
this.getDataList()
// ECN
this.getChangeChooseEcnType()
//
this.changeRequestDetailSearch()
this.$message({
message: '操作成功',
type: 'success',

8
src/views/modules/quotation/requestForQuote.vue

@ -3323,6 +3323,14 @@ export default {
//
submitData () {
if (this.plmQuotationInformationArr) {
for (let i = 0; i < this.plmQuotationInformationArr.length; i++) {
if (!this.modalData[this.plmQuotationInformationArr[i].fieldId] && this.plmQuotationInformationArr[i].required === 'Y') {
this.$message.warning(this.plmQuotationInformationArr[i].fieldName + '不能为空!')
return
}
}
}
this.modalData.userName = this.$store.state.user.name
this.modalData.menuId = this.$route.meta.menuId
submitChange(this.modalData).then(({data}) => {

8
src/views/modules/test/requestForTest.vue

@ -3399,6 +3399,14 @@
//
submitData () {
if (this.plmTestInformationArr) {
for (let i = 0; i < this.plmTestInformationArr.length; i++) {
if (!this.modalData[this.plmTestInformationArr[i].fieldId] && this.plmTestInformationArr[i].required === 'Y') {
this.$message.warning(this.plmTestInformationArr[i].fieldName + '不能为空!')
return
}
}
}
this.modalData.userName = this.$store.state.user.name
this.modalData.menuId = this.$route.meta.menuId
submitChange(this.modalData).then(({data}) => {

Loading…
Cancel
Save