入库核心及入库单
This commit is contained in:
parent
4ec5d9cc32
commit
e0c79a6464
@ -35,6 +35,15 @@ export function updateItemrecpt(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 确认物料入库单
|
||||||
|
export function confirmItemrecpt(data) {
|
||||||
|
return request({
|
||||||
|
url: '/mes/wm/itemrecpt/confirm',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
//执行入库
|
//执行入库
|
||||||
export function execute(recptId) {
|
export function execute(recptId) {
|
||||||
return request({
|
return request({
|
||||||
|
@ -124,7 +124,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
v-if="scope.row.status =='PREPARE'"
|
v-if="scope.row.status =='CONFIRMED'"
|
||||||
@click="handleExecute(scope.row)"
|
@click="handleExecute(scope.row)"
|
||||||
v-hasPermi="['mes:wm:itemrecpt:edit']"
|
v-hasPermi="['mes:wm:itemrecpt:edit']"
|
||||||
>执行入库</el-button>
|
>执行入库</el-button>
|
||||||
@ -251,7 +251,8 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="cancel" v-if="optType =='view' || form.status !='PREPARE' ">返回</el-button>
|
<el-button type="primary" @click="cancel" v-if="optType =='view' || form.status !='PREPARE' ">返回</el-button>
|
||||||
<el-button type="primary" @click="submitForm" v-else>确 定</el-button>
|
<el-button type="primary" @click="submitForm" v-if="form.status =='PREPARE' && optType !='view' ">确 定</el-button>
|
||||||
|
<el-button type="success" @click="doconfirm" v-if="form.status =='PREPARE' && optType !='view' && form.recptId !=null">完成</el-button>
|
||||||
<el-button @click="cancel">取 消</el-button>
|
<el-button @click="cancel">取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@ -259,7 +260,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listItemrecpt, getItemrecpt, delItemrecpt, addItemrecpt, updateItemrecpt,execute } from "@/api/mes/wm/itemrecpt";
|
import { listItemrecpt, getItemrecpt, delItemrecpt, addItemrecpt, updateItemrecpt, confirmItemrecpt,execute } from "@/api/mes/wm/itemrecpt";
|
||||||
import {getTreeList} from "@/api/mes/wm/warehouse"
|
import {getTreeList} from "@/api/mes/wm/warehouse"
|
||||||
import {genCode} from "@/api/system/autocode/rule"
|
import {genCode} from "@/api/system/autocode/rule"
|
||||||
import VendorSelect from "@/components/vendorSelect/single.vue";
|
import VendorSelect from "@/components/vendorSelect/single.vue";
|
||||||
@ -462,6 +463,7 @@ export default {
|
|||||||
this.optType = "edit";
|
this.optType = "edit";
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
//执行入库
|
//执行入库
|
||||||
handleExecute(row){
|
handleExecute(row){
|
||||||
const recptIds = row.recptId || this.ids;
|
const recptIds = row.recptId || this.ids;
|
||||||
@ -492,6 +494,14 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
doconfirm(){
|
||||||
|
let that = this;
|
||||||
|
this.$modal.confirm('是否完成入库单编制?【完成后将不能更改】').then(function(){
|
||||||
|
that.form.status = 'CONFIRMED';
|
||||||
|
that.submitForm();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
const recptIds = row.recptId || this.ids;
|
const recptIds = row.recptId || this.ids;
|
||||||
|
@ -250,13 +250,14 @@ export default {
|
|||||||
w.children = JSON.parse(wstr);
|
w.children = JSON.parse(wstr);
|
||||||
|
|
||||||
});
|
});
|
||||||
debugger;
|
|
||||||
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
||||||
this.warehouseOptions = JSON.parse(ostr);
|
this.warehouseOptions = JSON.parse(ostr);
|
||||||
|
debugger;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//选择仓库、库区、库位
|
//选择仓库、库区、库位
|
||||||
handleWarehouseChanged(obj){
|
handleWarehouseChanged(obj){
|
||||||
|
debugger;
|
||||||
if(obj !=null){
|
if(obj !=null){
|
||||||
this.form.warehouseId = obj[0];
|
this.form.warehouseId = obj[0];
|
||||||
this.form.locationId = obj[1];
|
this.form.locationId = obj[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user