|
|
|
@ -2672,7 +2672,7 @@ export default { |
|
|
|
sizeChangeHandle3 (val) { |
|
|
|
this.pageSize3 = val |
|
|
|
this.pageIndex3 = 1 |
|
|
|
this.queryComponentPartModal() |
|
|
|
this.queryComponentPartList() |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
@ -2681,7 +2681,7 @@ export default { |
|
|
|
*/ |
|
|
|
currentChangeHandle3 (val) { |
|
|
|
this.pageIndex3 = val |
|
|
|
this.queryComponentPartModal() |
|
|
|
this.queryComponentPartList() |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
@ -3020,10 +3020,10 @@ export default { |
|
|
|
this.$message.warning('请先选择替代!') |
|
|
|
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 = { |
|
|
|
flag: '1', |
|
|
|
site: this.$store.state.user.site, |
|
|
|
@ -3071,10 +3071,10 @@ export default { |
|
|
|
this.$message.warning('请先选择替代!') |
|
|
|
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 = { |
|
|
|
flag: '1', |
|
|
|
site: this.$store.state.user.site, |
|
|
|
@ -3118,10 +3118,10 @@ export default { |
|
|
|
* 子明细编辑模态框 |
|
|
|
*/ |
|
|
|
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 = { |
|
|
|
flag: '2', |
|
|
|
site: row.site, |
|
|
|
@ -3155,10 +3155,10 @@ export default { |
|
|
|
* 副产品编辑模态框 |
|
|
|
*/ |
|
|
|
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 = { |
|
|
|
flag: '2', |
|
|
|
site: row.site, |
|
|
|
@ -3191,10 +3191,10 @@ export default { |
|
|
|
* 副产品成本分配编辑模态框 |
|
|
|
*/ |
|
|
|
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 = { |
|
|
|
site: row.site, |
|
|
|
partNo: row.partNo, |
|
|
|
@ -3585,7 +3585,7 @@ export default { |
|
|
|
this.componentPartData.limit = this.pageSize3 |
|
|
|
this.componentPartData.page = this.pageIndex3 |
|
|
|
// 查询所有物料 |
|
|
|
queryPartList(this.componentPartData).then(({data}) => { |
|
|
|
queryPartListAll(this.componentPartData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.componentPartList = data.page.list |
|
|
|
this.pageIndex3 = data.page.currPage |
|
|
|
@ -3708,10 +3708,10 @@ export default { |
|
|
|
* 删除子物料 |
|
|
|
*/ |
|
|
|
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) { |
|
|
|
this.$message.warning('请选择要删除子物料!') |
|
|
|
return |
|
|
|
@ -3751,10 +3751,10 @@ export default { |
|
|
|
* 删除子物料 |
|
|
|
*/ |
|
|
|
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) { |
|
|
|
this.$message.warning('请选择要删除副产品!') |
|
|
|
return |
|
|
|
|