|
|
|
@ -157,8 +157,8 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label=" "> |
|
|
|
<el-button type="primary" @click="searchTable()" >刷新</el-button> |
|
|
|
<!-- <el-button type="primary" @click="changeBomRev()" >变更</el-button>--> |
|
|
|
<!-- <el-button type="primary" @click="newData()" v-if="!ifDisableFlag">新增</el-button>--> |
|
|
|
<el-button type="primary" @click="changeRouteRev()" >变更</el-button> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
@ -330,7 +330,65 @@ |
|
|
|
<cqc ref="cqc"></cqc> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog title="变更工艺路线" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="700px"> |
|
|
|
<el-table |
|
|
|
:data="routeDetailList" |
|
|
|
height="300" |
|
|
|
border |
|
|
|
highlight-current-row |
|
|
|
onclick="" |
|
|
|
@row-click="getRow" |
|
|
|
ref="componentTable" |
|
|
|
style="width:100%"> |
|
|
|
<el-table-column |
|
|
|
prop="partNo" |
|
|
|
header-align="left" |
|
|
|
align="left" |
|
|
|
min-width="80" |
|
|
|
label="物料编码"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="routingType" |
|
|
|
header-align="left" |
|
|
|
align="left" |
|
|
|
min-width="80" |
|
|
|
label="Route类型"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="routingRevision" |
|
|
|
header-align="left" |
|
|
|
align="left" |
|
|
|
min-width="80" |
|
|
|
label="Route版本"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="alternativeNo" |
|
|
|
header-align="left" |
|
|
|
align="left" |
|
|
|
min-width="80" |
|
|
|
label="替代编码"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="alternativeDescription" |
|
|
|
header-align="left" |
|
|
|
align="left" |
|
|
|
min-width="80" |
|
|
|
label="替代名称"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="status" |
|
|
|
header-align="left" |
|
|
|
align="left" |
|
|
|
min-width="60" |
|
|
|
label="状态"> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
|
|
|
|
<el-footer style="height:30px;margin-top:20px;text-align:center"> |
|
|
|
<el-button type="primary" @click="updateBMRouteRev()">确定</el-button> |
|
|
|
<el-button type="primary" @click="modalFlag=false">取消</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -341,6 +399,8 @@ |
|
|
|
searchTechnicalSpecificationTeamStr, |
|
|
|
updateBMRoutingDetail, |
|
|
|
searchBMRoute, |
|
|
|
searchRouteDetail, |
|
|
|
updateBMRouteRev, |
|
|
|
} from "@/api/sampleManagement/technicalSpecificationList.js" |
|
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
|
import { |
|
|
|
@ -734,6 +794,9 @@ |
|
|
|
}, |
|
|
|
], |
|
|
|
currentRow:{}, |
|
|
|
//变更工艺路线 |
|
|
|
modalFlag:false, |
|
|
|
routeDetailList:[], |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted () { |
|
|
|
@ -1148,7 +1211,49 @@ |
|
|
|
break; |
|
|
|
} |
|
|
|
}, |
|
|
|
searchDetailTable(){ |
|
|
|
searchRouteDetail(this.routeData).then(({data}) => { |
|
|
|
this.routeDetailList=data.rows; |
|
|
|
}); |
|
|
|
}, |
|
|
|
changeRouteRev(){ |
|
|
|
this.searchDetailTable() |
|
|
|
this.currentRow=null |
|
|
|
this.modalFlag=true; |
|
|
|
|
|
|
|
}, |
|
|
|
getRow(row){ |
|
|
|
this.currentRow=row |
|
|
|
}, |
|
|
|
updateBMRouteRev(){ |
|
|
|
if(this.currentRow==null){ |
|
|
|
this.$alert('请点击选择Route版本!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return false; |
|
|
|
} |
|
|
|
let inData={ |
|
|
|
site:this.routeData.site, |
|
|
|
codeNo:this.searchData.codeNo, |
|
|
|
routingType:this.currentRow.routingType, |
|
|
|
routingRevision:this.currentRow.routingRevision, |
|
|
|
routeAlternativeNo:this.currentRow.alternativeNo |
|
|
|
} |
|
|
|
this.$confirm("更改工艺路线后,之前填写的工艺信息都将覆盖,是否继续?", '保存提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
}).then(() => { |
|
|
|
updateBMRouteRev(inData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.searchTable(); |
|
|
|
this.modalFlag = false; |
|
|
|
this.$message.success('操作成功') |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg) |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|