|
@@ -101,7 +101,7 @@
|
|
|
<template slot="dot" slot-scope="{ row }">
|
|
|
<el-select v-if="row.dotedittype && row.whether=='1'" v-model="row.dot" allow-create filterable default-first-option >
|
|
|
<el-option v-for="(item, index) in picihaolist" :key="index" :label="item.dot"
|
|
|
- :value="item.id"></el-option>
|
|
|
+ :value="item.dot"></el-option>
|
|
|
</el-select>
|
|
|
<span v-else>{{ row.dot }}</span>
|
|
|
</template>
|
|
@@ -128,7 +128,7 @@
|
|
|
</span>
|
|
|
</template> -->
|
|
|
<template slot-scope="{type,size,row,index,disabled}" slot="menu">
|
|
|
- <el-button v-if="row.mingxibaocun" :size="size" :disabled="disabled || isAdd" :type="type"
|
|
|
+ <el-button v-if="mingxibaocun" :size="size" :disabled="disabled || isAdd" :type="type"
|
|
|
:icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'" @click="hangeditBtn(row, index)">编辑
|
|
|
</el-button>
|
|
|
<el-button v-else :size="size" :disabled="disabled || isAdd" :type="type"
|
|
@@ -290,7 +290,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
// 编辑还是保存
|
|
|
- // mingxibaocun:true,
|
|
|
+ mingxibaocun:true,
|
|
|
// 批次号请求到的数据
|
|
|
picihaolist:[],
|
|
|
// 添加轮胎弹窗
|
|
@@ -1386,14 +1386,14 @@ export default {
|
|
|
row.goodsNumtype = true
|
|
|
row.pricetype = true
|
|
|
// 编辑和保存状态切换
|
|
|
- row.mingxibaocun = false
|
|
|
+ this.mingxibaocun = false
|
|
|
},
|
|
|
// 保存按钮
|
|
|
hangbaocun(row) {
|
|
|
row.dotedittype = false
|
|
|
row.goodsNumtype = false
|
|
|
row.pricetype = false
|
|
|
- row.mingxibaocun = true
|
|
|
+ this.mingxibaocun = true
|
|
|
},
|
|
|
// 批次号获取数据
|
|
|
picihaolistfun(goodsId){
|