add:添加原材料库存变动

This commit is contained in:
zhangzhiqiang
2023-09-18 13:50:00 +08:00
parent 4f2e8b3e2f
commit 36723c513b
4 changed files with 64 additions and 21 deletions

View File

@@ -114,12 +114,7 @@
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="可用数量">
<el-input v-model="ivtForm.canuse_qty" style="width: 200px;" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="冻结数量">
<el-form-item label="库存数数量">
<el-input v-model="ivtForm.ivt_qty" style="width: 200px;" />
</el-form-item>
</el-col>
@@ -127,7 +122,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="closeView">取消</el-button>
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
<el-button :loading="crud.cu === 2" type="primary" @click="updateIvt">确认</el-button>
</div>
</el-dialog>
<!--表格渲染-->
@@ -218,12 +213,16 @@ export default {
updateMaterial(row){
this.dialogVisible = true
this.ivtForm = row
// ProductIvt.edit(row).then(res => {
// this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
// this.crud.toQuery()
// }).catch(err => {
// console.log(err.response.data.message)
// })
this.ivtForm.old_qty = row.canuse_qty
},
updateIvt(){
ProductIvt.edit(this.ivtForm).then(res => {
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.toQuery()
this.closeView()
}).catch(err => {
})
}
}
}