Browse Source

2024-10-28

RFQ优化(BOM子件和Routing加工中心不分BU)
java8
fengyuan_yang 1 year ago
parent
commit
2042cc4c65
  1. 27
      src/views/modules/part/routingManagement.vue

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

@ -657,8 +657,17 @@
<el-table <el-table
:height="350" :height="350"
:data="standardOperationList" :data="standardOperationList"
ref="standardOperationTable"
@row-click="standardOperationClickRow"
@selection-change="selectionStandardOperation"
border border
style="width: 100%;"> style="width: 100%;">
<el-table-column
type="selection"
header-align="center"
align="center"
width="50">
</el-table-column>
<el-table-column <el-table-column
v-for="(item,index) in standardOperationColumnList" :key="index" v-for="(item,index) in standardOperationColumnList" :key="index"
:sortable="item.columnSortable" :sortable="item.columnSortable"
@ -986,6 +995,7 @@ export default {
alternativeList: [], alternativeList: [],
copyPartList: [], copyPartList: [],
standardOperationList: [], standardOperationList: [],
standardOperationSelections: [],
// ======== ======== // ======== ========
columnList: [ columnList: [
{ {
@ -2481,6 +2491,7 @@ export default {
// this.$message.warning('!') // this.$message.warning('!')
// return // return
// } // }
this.standardOperationSelections = []
getStandardOperations(this.modalData).then(({data}) => { getStandardOperations(this.modalData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.standardOperationList = data.rows this.standardOperationList = data.rows
@ -2495,8 +2506,8 @@ export default {
// Routing // Routing
saveStandardOperation () { saveStandardOperation () {
if (this.standardOperationList.length === 0) {
this.$message.warning('请维护商品组的标准工序!')
if (this.standardOperationSelections.length === 0) {
this.$message.warning('请选择标准工序!')
return return
} }
this.$confirm("是否确认更改替代下的工序?", "提示", { this.$confirm("是否确认更改替代下的工序?", "提示", {
@ -2511,7 +2522,7 @@ export default {
routingRevision: this.detailData.routingRevision, routingRevision: this.detailData.routingRevision,
routingType: this.detailData.routingType, routingType: this.detailData.routingType,
alternativeNo: this.detailData.alternativeNo, alternativeNo: this.detailData.alternativeNo,
informationList: this.standardOperationList
informationList: this.standardOperationSelections
} }
saveStandardOperation(tempData).then(({data}) => { saveStandardOperation(tempData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
@ -3616,6 +3627,16 @@ export default {
this.componentData.laborClassDesc = '' this.componentData.laborClassDesc = ''
}, },
//
standardOperationClickRow (row) {
this.$refs.standardOperationTable.toggleRowSelection(row)
},
//
selectionStandardOperation (val) {
this.standardOperationSelections = val
},
// ======== ======== // ======== ========
/** /**
* 导出excel * 导出excel

Loading…
Cancel
Save