Browse Source

2024-08-20

RFQ功能优化2
java8
fengyuan_yang 1 year ago
parent
commit
1af6c10b69
  1. 8
      src/views/modules/part/bomManagement.vue
  2. 58
      src/views/modules/part/routingManagement.vue

8
src/views/modules/part/bomManagement.vue

@ -530,7 +530,7 @@
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="Bom版本号">
<el-form-item label="BOM版本号">
<el-input v-model="modalData.engChgLevel" readonly style="width: 185px"></el-input>
</el-form-item>
<el-form-item label="制造类型">
@ -578,7 +578,7 @@
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="copyBomData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="Bom版本号">
<el-form-item label="BOM版本号">
<el-input v-model="copyBomData.engChgLevel" style="width: 185px"></el-input>
</el-form-item>
<el-form-item label="制造类型">
@ -618,7 +618,7 @@
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="detailData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="Bom版本号">
<el-form-item label="BOM版本号">
<el-input v-model="detailData.engChgLevel" readonly style="width: 185px"></el-input>
</el-form-item>
<el-form-item label="制造类型">
@ -645,7 +645,7 @@
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="copyAlternativeData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="Bom版本号">
<el-form-item label="BOM版本号">
<el-input v-model="copyAlternativeData.engChgLevel" style="width: 185px"></el-input>
</el-form-item>
<el-form-item label="制造类型">

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

@ -355,7 +355,8 @@
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px">
<el-form-item style="margin-left: 235px" prop="setupLaborClassNo">
<span style="cursor: pointer" slot="label" @click="getBaseList(217, 2)"><a herf="#">调机过程中人员等级</a></span>
<el-input v-model="componentData.setupLaborClassDesc" readonly style="width: 221px"></el-input>
<el-input v-model="componentData.setupLaborClassNo" @blur="setupLaborClassBlur(217)" style="width: 70px"></el-input>
<el-input v-model="componentData.setupLaborClassDesc" disabled style="width: 148px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px">
@ -381,7 +382,8 @@
</el-form-item>
<el-form-item prop="laborClassNo">
<span style="cursor: pointer" slot="label" @click="getBaseList(217, 1)"><a herf="#">人员等级</a></span>
<el-input v-model="componentData.laborClassDesc" readonly style="width: 221px"></el-input>
<el-input v-model="componentData.laborClassNo" @blur="laborClassBlur(217)" style="width: 70px"></el-input>
<el-input v-model="componentData.laborClassDesc" disabled style="width: 148px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px">
@ -637,8 +639,8 @@ export default {
deep: true,
handler: function (newV, oldV) {
this.componentData.workCenterNo = this.componentData.workCenterNo.toUpperCase()
this.componentData.laborClassDesc = this.componentData.laborClassDesc.toUpperCase()
this.componentData.setupLaborClassDesc = this.componentData.setupLaborClassDesc.toUpperCase()
this.componentData.laborClassNo = this.componentData.laborClassNo.toUpperCase()
this.componentData.setupLaborClassNo = this.componentData.setupLaborClassNo.toUpperCase()
}
},
},
@ -2829,6 +2831,54 @@ export default {
}
},
//
setupLaborClassBlur (tagNo) {
if (this.componentData.setupLaborClassNo != null && this.componentData.setupLaborClassNo !== '') {
let tempData = {
tagno: tagNo,
conditionSql: " and class_no = '" + this.componentData.setupLaborClassNo + "'" + " and site = '" + this.modalData.site + "'" + " and bu_no = '" + this.modalData.buNo + "'"
}
verifyData(tempData).then(({data}) => {
if (data && data.code === 0) {
if (data.baseListData.length > 0) {
this.componentData.setupLaborClassNo = data.baseListData[0].class_no
this.componentData.setupLaborClassDesc = data.baseListData[0].class_desc
} else {
this.$message.warning('该人员等级不存在!')
this.componentData.setupLaborClassDesc = ''
}
} else {
this.$message.warning(data.msg)
this.componentData.setupLaborClassDesc = ''
}
})
}
},
//
laborClassBlur (tagNo) {
if (this.componentData.laborClassNo != null && this.componentData.laborClassNo !== '') {
let tempData = {
tagno: tagNo,
conditionSql: " and class_no = '" + this.componentData.laborClassNo + "'" + " and site = '" + this.modalData.site + "'" + " and bu_no = '" + this.modalData.buNo + "'"
}
verifyData(tempData).then(({data}) => {
if (data && data.code === 0) {
if (data.baseListData.length > 0) {
this.componentData.laborClassNo = data.baseListData[0].class_no
this.componentData.laborClassDesc = data.baseListData[0].class_desc
} else {
this.$message.warning('该人员等级不存在!')
this.componentData.laborClassDesc = ''
}
} else {
this.$message.warning(data.msg)
this.componentData.laborClassDesc = ''
}
})
}
},
// ======== ========
/**
* 导出excel

Loading…
Cancel
Save