|
|
@ -17,12 +17,12 @@ |
|
|
|
<el-card class="box-card"> |
|
|
|
<div class="item"> |
|
|
|
<span class="item_text">条码:</span> |
|
|
|
<el-input v-model="locationForm.barCode" :disabled="disabledCode" placeholder="" class="item_inputs" clearable /> |
|
|
|
<el-button type="primary" size="small" @click="createBarCode" :disabled="disabledCode">随机</el-button> |
|
|
|
<el-input v-model="locationForm.barCode" placeholder="" class="item_inputs" clearable /> |
|
|
|
<!-- <el-button type="primary" size="small" @click="createBarCode" :disabled="disabledCode">随机</el-button>--> |
|
|
|
</div> |
|
|
|
<div class="item"> |
|
|
|
<span class="item_text">商品名:</span> |
|
|
|
<el-input v-model="locationForm.name" :disabled="disabledCode" placeholder="" class="item_input" clearable /> |
|
|
|
<el-input v-model="locationForm.name" placeholder="" class="item_input" clearable /> |
|
|
|
</div> |
|
|
|
<div class="item"> |
|
|
|
<span class="item_text">别名:</span> |
|
|
@ -108,15 +108,16 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
showEdit(row) { |
|
|
|
console.log(row); |
|
|
|
this.viewTitle = "【修改】产品信息"; |
|
|
|
this.disabledCode=true |
|
|
|
this.locationForm=row |
|
|
|
}, |
|
|
|
async updataProduct () { |
|
|
|
this.locationForm = { |
|
|
|
name: "", |
|
|
|
anotherName: "", |
|
|
|
} |
|
|
|
// this.locationForm = { |
|
|
|
// name: "", |
|
|
|
// anotherName: "", |
|
|
|
// } |
|
|
|
const { data: result } = await this.$http.put('/product/updataProduct', this.locationForm) |
|
|
|
if (result.status !== 200) return this.$message.error('更新数据失败') |
|
|
|
this.$message.success('更新成功') |
|
|
|