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