提交 4bd7a6bd authored 作者: zax's avatar zax

新增问题修改

上级 ea46ed0f
...@@ -185,7 +185,7 @@ ...@@ -185,7 +185,7 @@
label="型号" label="型号"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.model" placeholder="请输入"></el-input> <el-input type="text" v-model="scope.row.model" placeholder="请输入"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -209,7 +209,7 @@ ...@@ -209,7 +209,7 @@
label="计划数量" label="计划数量"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.expect" placeholder="请输入"></el-input> <el-input type="text" v-model="scope.row.expect" placeholder="请输入"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -372,6 +372,11 @@ export default { ...@@ -372,6 +372,11 @@ export default {
unit() { unit() {
this.$server.getTechFindAll().then(res => { // 请求技术路线 this.$server.getTechFindAll().then(res => { // 请求技术路线
this.techList = res.data.data; this.techList = res.data.data;
this.techList.map(item => {
item.producies.map(val => {
val.expect = '1'; // 默认预计数量
})
})
}).catch(err => { }).catch(err => {
this.$message.error('数据请求失败!'); this.$message.error('数据请求失败!');
}) })
...@@ -548,8 +553,8 @@ export default { ...@@ -548,8 +553,8 @@ export default {
this.techList.map(item => { // 技术路线查询产品信息 this.techList.map(item => { // 技术路线查询产品信息
if (item.name === this.techVal && item.producies) { if (item.name === this.techVal && item.producies) {
this.productData = item.producies; this.productData = item.producies;
console.log(this.productData)
this.productData.map(val => { this.productData.map(val => {
val.expect = 1; // 默认技术数量
val.form = this.formVal[val.form]; // 产品类型转换 val.form = this.formVal[val.form]; // 产品类型转换
}) })
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论