优化代码

This commit is contained in:
duan
2024-06-26 11:11:59 +08:00
parent 14bf3f4ac8
commit ac96e0f3e0
4 changed files with 23 additions and 7 deletions

View File

@@ -89,8 +89,8 @@
</el-table-column>
<el-table-column label="进价">
<template v-slot="scope">
<!-- <el-input-number v-model="scope.row.guidePrice" :min="0" controls-position="right"
@change="e => scope.row.totalAmount = e * scope.row.number"></el-input-number> -->
<el-input-number v-model="scope.row.guidePrice" :min="0" controls-position="right"
@change="e => { scope.row.costPrice = e }"></el-input-number>
<div class="tips">成本价{{ scope.row.costPrice }}/{{ scope.row.unitName }}</div>
</template>
</el-table-column>
@@ -178,7 +178,7 @@ export default {
purveyorId: [
{
required: true,
message: ' ',
message: '请选择供应商',
trigger: 'change'
}
],
@@ -202,6 +202,7 @@ export default {
this.tbShopPurveyorGet()
},
methods: {
// 提交
submitHandle() {
this.$refs.queryForm.validate(async valid => {
@@ -209,6 +210,7 @@ export default {
try {
this.queryFormLoading = true
this.queryForm.list = this.tableData.list
console.log(this.queryForm,'调试costPrice')
await tbProductStockOperateOutAndOn(this.queryForm)
this.queryFormLoading = false
this.showResult = true