add:仓位物料设置
This commit is contained in:
@@ -85,15 +85,6 @@
|
||||
<el-input v-model="materialForm.material_code" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="物料编码" prop="material_code">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="materialForm.material_code" clearable style="width: 370px">
|
||||
<el-button slot="append" icon="el-icon-plus" @click="queryMater(materialForm)" />
|
||||
</el-input>
|
||||
</template>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item v-if="materialForm.is_emptyvehicle==false" label="物料数量">
|
||||
<el-input-number v-model="materialForm.qty" style="width: 200px;" />
|
||||
@@ -103,7 +94,7 @@
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="text" @click="closeView">取消</el-button>
|
||||
<el-button type="primary" @click="setStructMaterial(form)">确认</el-button>
|
||||
<el-button type="primary" @click="setStructMaterial(materialForm)">确认</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!--表单组件-->
|
||||
@@ -317,7 +308,7 @@
|
||||
:data="scope.row"
|
||||
:permission="permission"
|
||||
/>
|
||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="toView(scope.row)">仓位设置</el-button>
|
||||
<el-button v-if="scope.row.stor_id=='15286279952695336962'" size="mini" type="text" icon="el-icon-edit" @click="toView(scope.row)">仓位设置</el-button>
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -492,10 +483,11 @@ export default {
|
||||
form.cascader = val
|
||||
},
|
||||
setStructMaterial(data){
|
||||
console.log(data)
|
||||
crudStructattr.setMaterial(data).then(res => {
|
||||
this.crud.toQuery()
|
||||
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.closeView()
|
||||
crud.refresh()
|
||||
})
|
||||
},
|
||||
setMaterValue(row) {
|
||||
|
||||
Reference in New Issue
Block a user