Commit 24b7b827 authored by 何远江's avatar 何远江

优化打样申请

parent c79bc466
......@@ -216,6 +216,7 @@
import ItemBomSelect from "@/components/itemBomSelect/single.vue";
export default {
components: { ItemBomSelect },
inject: ['mode'],
data() {
return {
/**弹窗状态 */
......@@ -239,6 +240,9 @@ export default {
itemRemark: "",
},
};
},
created() {
},
methods: {
/**多选 */
......
<template>
<div class="form-page">
<PageTitle>
打样申请单
<template slot="buttons">
{{ pageTitle }}
<template slot="buttons" v-if="mode == 'apply'">
<el-button size="mini" @click="resetForm">重置</el-button>
<el-button size="mini" type="primary">提交</el-button>
<el-button size="mini" type="primary" @click="saveForm">提交</el-button>
</template>
</PageTitle>
......@@ -163,6 +163,11 @@ import ItemSelect from "@/components/itemSelect/single.vue";
export default {
components: { ProogingBom, ProogingProcess, ItemSelect },
dicts: [],
provide() {
return {
mode: this.mode,
};
},
data() {
return {
// 表单参数
......@@ -190,6 +195,17 @@ export default {
scrollHeight() {
return "calc(100vh - 73px - 83px)";
},
mode() {
return this.$route.path.split("/").at(-1);
},
pageTitle() {
const titles = {
edit: "打样单修改",
info: "打样单查看",
apply: "打样单申请",
};
return titles[this.mode];
},
},
created() {},
methods: {
......@@ -199,6 +215,16 @@ export default {
this.form.itemName = row.itemName;
}
},
/**提交 */
saveForm() {
const bomData = this.$refs.ProogingBomRef.getComData()
const processData = this.$refs.ProogingProcess.getComData()
const params = {
...this.form,
bomList: bomData,
processList: processData
}
},
/**重置表单 */
resetForm() {
this.form = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment