优化代码
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user