优化库存数量不能修改

This commit is contained in:
gyq 2024-03-15 09:00:24 +08:00
parent 0998c30b1a
commit 7d9e42ddef
1 changed files with 6 additions and 2 deletions

View File

@ -182,10 +182,10 @@
<el-table-column label="库存数量" prop="stockNumber">
<template slot="header" slot-scope="scope">
<span>库存数量</span>
<i class="icon el-icon-edit" @click="batchNumber('stockNumber')"></i>
<i class="icon el-icon-edit" @click="batchNumber('stockNumber')" v-if="!form.id"></i>
</template>
<template slot-scope="scope">
<el-input-number v-model="scope.row.stockNumber"
<el-input-number v-model="scope.row.stockNumber" :disabled="!!form.id"
controls-position="right"></el-input-number>
</template>
</el-table-column>
@ -423,6 +423,10 @@ export default {
})
this.selectSpecResult = true
}
if (res.typeEnum == 'sku') {
this.createSkuBody()
}
} catch (error) {
console.log(error)
}