diff --git a/src/api/orderIssure/soIssueNotify.js b/src/api/orderIssure/soIssueNotify.js index a7ca06b..29002a9 100644 --- a/src/api/orderIssure/soIssueNotify.js +++ b/src/api/orderIssure/soIssueNotify.js @@ -36,3 +36,6 @@ export const deleteNotifySOSPlus= data => createAPI(`/orderIssure/issureNotify/d export const updateNotifyStatus= data => createAPI(`/orderIssure/issureNotify/updateNotifyStatus`,'post',data) export const deleteNotifyMaterial= data => createAPI(`/orderIssure/issureNotify/deleteNotifyMaterial`,'post',data) export const saveOtherPart= data => createAPI(`/orderIssure/issureNotify/saveOtherPart`,'post',data) +export const getNoControlPartList= data => createAPI(`/orderIssure/issureNotify/getNoControlPartList`,'post',data) +export const searchOtherPart= data => createAPI(`/orderIssure/issureNotify/searchOtherPart`,'post',data) +export const searchNotifyLog= data => createAPI(`/orderIssure/issureNotify/searchNotifyLog`,'post',data) diff --git a/src/views/modules/orderIssure/soIssueNotify/newSoIssueNotify.vue b/src/views/modules/orderIssure/soIssueNotify/newSoIssueNotify.vue index 5191b81..6f1512e 100644 --- a/src/views/modules/orderIssure/soIssueNotify/newSoIssueNotify.vue +++ b/src/views/modules/orderIssure/soIssueNotify/newSoIssueNotify.vue @@ -9,6 +9,7 @@ 删除申请单 修改BU 非BOM物料 + 不管控物料 @@ -500,7 +501,81 @@ - + + + + + + + + + + + + + + + + + + + + + {{'查询'}} + + + + + + + + + + + + + + + + + row.qtyAvailable){ @@ -1422,6 +1515,8 @@ this.notifyNo = data.row.notifyNo this.notifyData=data.row this.getNotifyNoDetail(); + this.searchOtherPart('非BOM物料') + this.searchOtherPart('不管控物料') }else { this.notifyNo ='' this.notifyData={ @@ -1773,6 +1868,17 @@ this.partModelFlag=true this. searchPartModel() }, + noControlModel(){ + this.partSearch={ + site:this.notifyData.site, + sourceBu:this.notifyData.bu, + partNo:'', + partDesc:'', + spec:'', + } + this.noControlPartModelFlag=true + this. searchNoControlPartModel() + }, searchPartModel(){ getPartList(this.partSearch).then(({data})=>{ if (data.code === 0) { @@ -1780,8 +1886,15 @@ } }) }, + searchNoControlPartModel(){ + getNoControlPartList(this.partSearch).then(({data})=>{ + if (data.code === 0) { + this.partList2=data.rows + } + }) + }, xiadaNotifyModel(){ - if(this.dataList.length==0){ + if(this.dataList.length==0&&this.dataList2.length==0&&this.dataList3.length==0){ this.$alert('没有明细记录无法下达!!', '提示', { confirmButtonText: '确定' }) @@ -1804,6 +1917,7 @@ // } xiadaNotify(this.notifyData).then(({data})=>{ if (data.code === 0) { + this.xiadaModelFlag=false this.getUserNotifyNo() this.$message.success( '操作成功') }else { @@ -1825,9 +1939,18 @@ }).then(() => { saveOtherPart(this.otherPartData).then(({data})=>{ if (data.code === 0) { - this.saveSeqNoModalFlag=false - this.getNotifyNoDetail() - this.itemNo=data.itemNo + this.saveOtherPartModalFlag=false + if(this.otherPartData.issueType==='非BOM物料'){ + this.partModelFlag=false + this.activeName='noBom' + this.searchOtherPart('非BOM物料') + } + if(this.otherPartData.issueType==='不管控物料'){ + this.noControlPartModelFlag=false + this.activeName='noControl' + this.searchOtherPart('不管控物料') + } + this.$message.success( '操作成功') }else { this.$alert(data.msg, '错误', { confirmButtonText: '确定' @@ -1896,6 +2019,23 @@ } }) }, + searchOtherPart(type){ + let inData={ + site:this.notifyData.site, + notifyNo:this.notifyData.notifyNo, + issueType:type + } + searchOtherPart(inData).then(({data}) =>{ + if (data && data.code === 0) { + if(type==='非BOM物料'){ + this.dataList2=data.rows + } + if(type==='不管控物料'){ + this.dataList3=data.rows + } + } + }) + }, // 删除 deleteNotifySOS (row) { this.$confirm(`是否删除这个派工单的申请信息?`, '提示', { diff --git a/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue b/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue index b1adda6..3d67ab8 100644 --- a/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue +++ b/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue @@ -118,6 +118,16 @@ border v-loading="dataListLoading" style="width: 100%; "> + + + - - - @@ -165,6 +164,16 @@ + + + + + + + + + + + + + + + + + + v-for="(item,index) in columnList4" :key="index" + :sortable="item.columnSortable" + :prop="item.columnProp" + :header-align="item.headerAlign" + :show-overflow-tooltip="item.showOverflowTooltip" + :align="item.align" + :fixed="item.fixed==''?false:item.fixed" + :min-width="item.columnWidth" + :label="item.columnLabel"> - + --> { - this.height = (window.innerHeight- 260) / 2 + this.height = (window.innerHeight- 250) / 2 }) }, @@ -1017,6 +1216,16 @@ this.dataList3 = []; } }); + }else if(this.activeName==='change'){ + searchNotifyLog(this.currentRow).then(({data}) => { + //区分请求成功和失败的状况 + if (data && data.code == 0) { + this.dataList5 = data.rows + + } else { + this.dataList5 = []; + } + }); }else { searchSumNotifyMaterialList(this.currentRow).then(({data}) => { //区分请求成功和失败的状况