|
|
|
@ -499,6 +499,7 @@ export default { |
|
|
|
{ required: true, message: '请输入人工成本-生产', trigger: ['blur','change'] }, |
|
|
|
], |
|
|
|
}, |
|
|
|
changeLoading:false, |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
@ -644,7 +645,9 @@ export default { |
|
|
|
treeId: this.$refs.tree.getCurrentNode().id, |
|
|
|
createBy: this.$store.state.user.name, |
|
|
|
} |
|
|
|
this.changeLoading = true; |
|
|
|
changeQuoteDetailRoutingChange(params).then(({data})=>{ |
|
|
|
this.changeLoading = false; |
|
|
|
if (data && data.code === 0){ |
|
|
|
this.$message.success(data.msg); |
|
|
|
this.versionVisible = false; |
|
|
|
@ -653,6 +656,7 @@ export default { |
|
|
|
this.$message.warning(data.msg); |
|
|
|
} |
|
|
|
}).catch((error)=>{ |
|
|
|
this.changeLoading = false; |
|
|
|
this.$message.error(error) |
|
|
|
}) |
|
|
|
}, |
|
|
|
@ -779,14 +783,14 @@ export default { |
|
|
|
</el-container> |
|
|
|
|
|
|
|
<el-dialog title="切换版本" :visible.sync="versionVisible" width="1000px" v-drag :close-on-click-modal="false" append-to-body> |
|
|
|
<el-table :data="versionList" :row-style="versionRowStyle" ref="routingVersionTable" style="margin-top: 8px" border :height="240" @row-click="versionRowClick"> |
|
|
|
<el-table v-loading="changeLoading" :data="versionList" :row-style="versionRowStyle" ref="routingVersionTable" style="margin-top: 8px" border :height="240" @row-click="versionRowClick"> |
|
|
|
<el-table-column label="物料编码" prop="partNo" header-align="center" align="center" show-overflow-tooltip min-width="140"/> |
|
|
|
<el-table-column label="物料描述" prop="partDesc" header-align="center" align="left" show-overflow-tooltip min-width="200"/> |
|
|
|
<el-table-column label="版本" prop="routingRevision" header-align="center" align="center" show-overflow-tooltip min-width="60"/> |
|
|
|
<el-table-column label="类型" prop="routingType" header-align="center" align="center" show-overflow-tooltip min-width="100"/> |
|
|
|
</el-table> |
|
|
|
|
|
|
|
<el-table :data="alternativeList" :row-style="alternativeRowStyle" ref="routingAlternativeTable" border :height="240" style="margin-top: 8px"> |
|
|
|
<el-table v-loading="changeLoading" :data="alternativeList" :row-style="alternativeRowStyle" ref="routingAlternativeTable" border :height="240" style="margin-top: 8px"> |
|
|
|
<el-table-column label="物料编码" prop="partNo" header-align="center" align="center" show-overflow-tooltip min-width="140"/> |
|
|
|
<el-table-column label="物料描述" prop="partDesc" header-align="center" align="left" show-overflow-tooltip min-width="200"/> |
|
|
|
<el-table-column label="版本" prop="routingRevision" header-align="center" align="center" show-overflow-tooltip min-width="60"/> |
|
|
|
|