From b5acca92bd0794c24310d15c6fba8433d08119c9 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期三, 11 十月 2023 15:27:09 +0800 Subject: [PATCH] feat: 销售机会报价单销售总单销售子单 编辑弹窗调整表单编号位置, 更换适配新的编码组件 --- src/components/makepager/CommonFormTableView.vue | 22 +++++++++++++++++----- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/components/makepager/CommonFormTableView.vue b/src/components/makepager/CommonFormTableView.vue index 00c60c6..80520cc 100644 --- a/src/components/makepager/CommonFormTableView.vue +++ b/src/components/makepager/CommonFormTableView.vue @@ -63,8 +63,12 @@ <div class="common-select-btn" @click="selClientClick(scope.row, item.prop)"> <i class="el-icon-circle-plus-outline" title="閫夋嫨"></i> </div> - <div class="common-select-btn" @click="clearupClient(scope.row)"> - <i class="el-icon-edit-outline" title="娓呴櫎"></i> + <div + v-if="scope.row[item.prop] && scope.row[item.prop].length > 0" + class="common-select-btn" + @click="clearupClient(scope.row)" + > + <i class="el-icon-remove-outline" title="娓呴櫎"></i> </div> </div> </el-form-item> @@ -121,7 +125,7 @@ </el-form-item> <span v-else>{{ scope.row[item.prop] }}</span> </template> - <span v-else>{{ scope.row[item.prop] }}</span> + <span v-else style="text-align: right">{{ scope.row[item.prop] }}</span> </template> </el-table-column> </el-table> @@ -328,6 +332,13 @@ commonInputChange(val, prop, row) { console.log(val, prop) console.log(row) + if (prop === "amount") { + this.tableList.tableData.map((ite) => { + if (ite.name === row.name) { + ite.total = row.amount * row.price + } + }) + } this.$emit("inputContent", val, prop, row) }, // 娓呯┖ @@ -434,7 +445,7 @@ } .el-table__footer-wrapper tbody td.el-table__cell { background-color: #fff; - text-align: right; + // text-align: right; font-weight: bold; } .el-input--suffix .el-input__inner { @@ -445,7 +456,8 @@ padding: 0 5px; } .el-input__inner { - text-align: left; + // text-align: left; + text-align: center !important; } } </style> -- Gitblit v1.8.0