Browse Source

2024-10-30

物料件和库存件的IFS属性接口
master
fengyuan_yang 1 year ago
parent
commit
e731ecf731
  1. 62
      src/views/modules/part/bomManagement.vue
  2. 21
      src/views/modules/part/partCatalogInformation.vue
  3. 12
      src/views/modules/part/partInformation.vue
  4. 24
      src/views/modules/part/routingManagement.vue

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

@ -2672,7 +2672,7 @@ export default {
sizeChangeHandle3 (val) { sizeChangeHandle3 (val) {
this.pageSize3 = val this.pageSize3 = val
this.pageIndex3 = 1 this.pageIndex3 = 1
this.queryComponentPartModal()
this.queryComponentPartList()
}, },
/** /**
@ -2681,7 +2681,7 @@ export default {
*/ */
currentChangeHandle3 (val) { currentChangeHandle3 (val) {
this.pageIndex3 = val this.pageIndex3 = val
this.queryComponentPartModal()
this.queryComponentPartList()
}, },
/** /**
@ -3020,10 +3020,10 @@ export default {
this.$message.warning('请先选择替代!') this.$message.warning('请先选择替代!')
return return
} }
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
this.componentData = { this.componentData = {
flag: '1', flag: '1',
site: this.$store.state.user.site, site: this.$store.state.user.site,
@ -3071,10 +3071,10 @@ export default {
this.$message.warning('请先选择替代!') this.$message.warning('请先选择替代!')
return return
} }
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
this.componentData = { this.componentData = {
flag: '1', flag: '1',
site: this.$store.state.user.site, site: this.$store.state.user.site,
@ -3118,10 +3118,10 @@ export default {
* 子明细编辑模态框 * 子明细编辑模态框
*/ */
updateComponentModal (row) { updateComponentModal (row) {
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
this.componentData = { this.componentData = {
flag: '2', flag: '2',
site: row.site, site: row.site,
@ -3155,10 +3155,10 @@ export default {
* 副产品编辑模态框 * 副产品编辑模态框
*/ */
updateByProductModal (row) { updateByProductModal (row) {
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
this.componentData = { this.componentData = {
flag: '2', flag: '2',
site: row.site, site: row.site,
@ -3191,10 +3191,10 @@ export default {
* 副产品成本分配编辑模态框 * 副产品成本分配编辑模态框
*/ */
updateManufStructCostDistribModal (row) { updateManufStructCostDistribModal (row) {
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
this.manufStructCostDistribData = { this.manufStructCostDistribData = {
site: row.site, site: row.site,
partNo: row.partNo, partNo: row.partNo,
@ -3585,7 +3585,7 @@ export default {
this.componentPartData.limit = this.pageSize3 this.componentPartData.limit = this.pageSize3
this.componentPartData.page = this.pageIndex3 this.componentPartData.page = this.pageIndex3
// //
queryPartList(this.componentPartData).then(({data}) => {
queryPartListAll(this.componentPartData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.componentPartList = data.page.list this.componentPartList = data.page.list
this.pageIndex3 = data.page.currPage this.pageIndex3 = data.page.currPage
@ -3708,10 +3708,10 @@ export default {
* 删除子物料 * 删除子物料
*/ */
deleteComponentPart () { deleteComponentPart () {
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
if (this.checkedDetail.length === 0) { if (this.checkedDetail.length === 0) {
this.$message.warning('请选择要删除子物料!') this.$message.warning('请选择要删除子物料!')
return return
@ -3751,10 +3751,10 @@ export default {
* 删除子物料 * 删除子物料
*/ */
deleteByProduct () { deleteByProduct () {
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
if (this.checkedByProduct.length === 0) { if (this.checkedByProduct.length === 0) {
this.$message.warning('请选择要删除副产品!') this.$message.warning('请选择要删除副产品!')
return return

21
src/views/modules/part/partCatalogInformation.vue

@ -524,7 +524,7 @@
itemDesc: '', itemDesc: '',
textValue: '', textValue: '',
numValue: '', numValue: '',
recordType: 'IP'
recordType: 'MP'
}, },
// ======== ======== // ======== ========
dataList: [], dataList: [],
@ -1185,9 +1185,16 @@
if (data && data.code === 0) { if (data && data.code === 0) {
this.getMasterPartItem() this.getMasterPartItem()
this.attributeDialog = true this.attributeDialog = true
this.$message.success(data.msg)
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {}
})
} else { } else {
this.$message.warning(data.msg)
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
} }
this.loading = false this.loading = false
}).catch((error) => { }).catch((error) => {
@ -1212,7 +1219,7 @@
site: this.$store.state.user.site, site: this.$store.state.user.site,
partNo: this.partCurrentRow.partNo, partNo: this.partCurrentRow.partNo,
codeNo: this.partCurrentRow.codeNo, codeNo: this.partCurrentRow.codeNo,
recordType: 'IP'
recordType: 'MP'
} }
getItemLists(tempData).then(({data}) => { getItemLists(tempData).then(({data}) => {
this.itemList1 = data.rows.row1 this.itemList1 = data.rows.row1
@ -1245,7 +1252,7 @@
partNo: this.partCurrentRow.partNo, partNo: this.partCurrentRow.partNo,
codeNo: this.partCurrentRow.codeNo, codeNo: this.partCurrentRow.codeNo,
codeDesc: this.partCurrentRow.codeDesc, codeDesc: this.partCurrentRow.codeDesc,
recordType: 'IP',
recordType: 'MP',
itemList: this.itemSelections1 itemList: this.itemSelections1
} }
addMasterPartItem(inData).then(({data}) => { addMasterPartItem(inData).then(({data}) => {
@ -1276,7 +1283,7 @@
partNo: this.partCurrentRow.partNo, partNo: this.partCurrentRow.partNo,
codeNo: this.partCurrentRow.codeNo, codeNo: this.partCurrentRow.codeNo,
codeDesc: this.partCurrentRow.codeDesc, codeDesc: this.partCurrentRow.codeDesc,
recordType: 'IP',
recordType: 'MP',
itemList: this.itemSelections2 itemList: this.itemSelections2
} }
deleteMasterPartItem(inData).then(({data}) => { deleteMasterPartItem(inData).then(({data}) => {
@ -1398,7 +1405,7 @@
site: this.$store.state.user.site, site: this.$store.state.user.site,
partNo: this.partCurrentRow.partNo, partNo: this.partCurrentRow.partNo,
codeNo: this.partCurrentRow.codeNo, codeNo: this.partCurrentRow.codeNo,
recordType: 'IP'
recordType: 'MP'
} }
getMasterPartItem(tempData).then(({data}) => { getMasterPartItem(tempData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {

12
src/views/modules/part/partInformation.vue

@ -4607,10 +4607,6 @@
// this.$message.warning('') // this.$message.warning('')
// return // return
// } // }
if (this.modalData.flag === '3' && (this.modalData.planningMethod == null || this.modalData.planningMethod === '')) {
this.$message.warning('请选择计划方法!')
return
}
if (this.modalData.flag === '1') { if (this.modalData.flag === '1') {
this.saveLoading = true this.saveLoading = true
partInformationSave(this.modalData).then(({data}) => { partInformationSave(this.modalData).then(({data}) => {
@ -4641,6 +4637,14 @@
this.$message.warning('IFS物料编码不能等于PLM物料编码!') this.$message.warning('IFS物料编码不能等于PLM物料编码!')
return return
} }
if (this.modalData.planningMethod == null || this.modalData.planningMethod === '') {
this.$message.warning('请选择计划方法!')
return
}
if (this.modalData.productGroupId3 == null || this.modalData.productGroupId3 === '') {
this.$message.warning('请选择会计组!')
return
}
this.saveLoading = true this.saveLoading = true
this.modalData.bomAlternativeList = this.bomAlternativeSelections this.modalData.bomAlternativeList = this.bomAlternativeSelections
this.modalData.routingAlternativeList = this.routingAlternativeSelections this.modalData.routingAlternativeList = this.routingAlternativeSelections

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

@ -3035,10 +3035,10 @@ export default {
this.$message.warning('请先选择替代!') this.$message.warning('请先选择替代!')
return return
} }
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
this.componentData = { this.componentData = {
flag: '1', flag: '1',
site: this.$store.state.user.site, site: this.$store.state.user.site,
@ -3090,10 +3090,10 @@ export default {
* 编辑模态框 * 编辑模态框
*/ */
updateComponentModal (row) { updateComponentModal (row) {
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
this.componentData = { this.componentData = {
flag: '2', flag: '2',
site: row.site, site: row.site,
@ -3486,10 +3486,10 @@ export default {
* 删除子物料 * 删除子物料
*/ */
deleteComponentPart () { deleteComponentPart () {
if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
this.$message.warning('不可编辑的替代状态!')
return
}
// if (this.detailData.status != null && this.detailData.status !== '' && this.detailData.status !== 'Tentative') {
// this.$message.warning('!')
// return
// }
if (this.checkedDetail.length === 0) { if (this.checkedDetail.length === 0) {
this.$message.warning('请选择要删除子物料!') this.$message.warning('请选择要删除子物料!')
return return

Loading…
Cancel
Save