add:添加原材料库存变动
This commit is contained in:
@@ -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 => {
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user