Browse Source

2025-03-07

master
qiezi 10 months ago
parent
commit
d64f0a3320
  1. 10
      src/views/modules/quote/detail/primary/quoteDetailBom.vue
  2. 8
      src/views/modules/quote/detail/primary/quoteDetailRouting.vue

10
src/views/modules/quote/detail/primary/quoteDetailBom.vue

@ -254,7 +254,8 @@ export default {
buNo: '',
site: '',
engChgLevel: null,
}
},
changeLoading:false
}
},
methods: {
@ -397,7 +398,9 @@ export default {
params.buNo = node.buNo
params.site = node.site
}
this.changeLoading = true
changeQuoteDetailBomTree(params).then(({data}) => {
this.changeLoading = false;
if (data && data.code === 0) {
this.$message.success(data.msg);
this.versionVisible = false;
@ -406,6 +409,7 @@ export default {
this.$message.warning(data.msg);
}
}).catch((error) => {
this.changeLoading = false;
this.$message.error(error);
})
}).catch((error) => {})
@ -494,7 +498,7 @@ export default {
<el-dialog title="BOM版本切换" :visible.sync="versionVisible" append-to-body :close-on-click-modal="false" v-drag
width="900px">
<el-table :data="versionList" :row-style="levelRowStyle" @row-click="levelRowClick" ref="versionTable"
<el-table v-loading="changeLoading" :data="versionList" :row-style="levelRowStyle" @row-click="levelRowClick" ref="versionTable"
style="width: 100%" border :height="240">
<el-table-column label="物料编码" prop="partNo" header-align="center" align="center" show-overflow-tooltip
min-width="140"/>
@ -505,7 +509,7 @@ export default {
<el-table-column label="类型" prop="bomType" header-align="center" align="center" show-overflow-tooltip
min-width="100"/>
</el-table>
<el-table :data="alternativeList" :row-style="alternativeRowStyle" ref="versionTable"
<el-table v-loading="changeLoading" :data="alternativeList" :row-style="alternativeRowStyle" ref="versionTable"
style="width: 100%;margin-top: 20px" border :height="240">
<el-table-column label="物料编码" prop="partNo" header-align="center" align="center" show-overflow-tooltip
min-width="140"/>

8
src/views/modules/quote/detail/primary/quoteDetailRouting.vue

@ -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"/>

Loading…
Cancel
Save