Commit d2ccf872 authored by renjintao's avatar renjintao

itemIndexitemIndex

parent 24ad6b62
...@@ -1568,5 +1568,31 @@ export default { ...@@ -1568,5 +1568,31 @@ export default {
unitPrice: '单价', unitPrice: '单价',
originalManufacturer: '原厂家', originalManufacturer: '原厂家',
remark: '备注', remark: '备注',
} },
stock_item:{
creationTime:'创建时间',
creatorUserId:'创建人',
lastModificationTime:'更新时间',
lastModifierUserId:'更新人',
isDeleted:'删除人',
deletionTime:'删除时间',
deleterUserId:'删除人',
name:'名称',
materialType:'类型',
brand:'牌号',
specifications:'规格',
originalManufacturer:'原厂家',
batch:'批次',
unitPrice:'单价',
certificateOfApproval:'合格证',
storeId:'',
storeTitle:'库位',
creator:'',
stockId:'物料库存主键',
total:'入库数量',
remark:'备注',
code:'入库编号',
materialId:'物料id',
materialCode:'物料编码',
}
} }
...@@ -26,4 +26,8 @@ export default { ...@@ -26,4 +26,8 @@ export default {
setminnum(params) { setminnum(params) {
return Api.post(`${resourceUrl}/stock/setminnum`, params); return Api.post(`${resourceUrl}/stock/setminnum`, params);
}, },
indexStockitem: `${resourceUrl}/stockitem/paged`,
pagedStockitem(params) {
return Api.post(`${resourceUrl}/stockitem/paged`, params);
},
} }
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<Button type="primary" @click="add">入库</Button> <Button type="primary" @click="add">入库</Button>
</template> </template>
</DataGrid> </DataGrid>
<Modal v-model="modal" :title="title" width="1200" footer-hide> <Modal v-model="modal" :title="title" width="1200" footer-hide >
<component :is="detail" :eid="curId" @on-close="cancel" @on-ok="ok" /> <component :is="detail" :eid="curId" @on-close="cancel" @on-ok="ok" />
</Modal> </Modal>
</Content> </Content>
...@@ -201,7 +201,7 @@ export default { ...@@ -201,7 +201,7 @@ export default {
view(id) { view(id) {
this.curId = id; this.curId = id;
this.title = "详情"; this.title = "详情";
this.detail = () => import("./detail"); this.detail = () => import("./itemIndex");
this.modal = true; this.modal = true;
}, },
edit(id) { edit(id) {
......
<template>
<div>
<DataGrid :columns="columns" ref="grid" :action="action">
<template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline>
<FormItem prop="keys">
<Input placeholder="请输入关键字名称//入库编号/" v-model="easySearch.keys.value" />
</FormItem>
<FormItem>
<Button type="primary" @click="search">查询</Button>
</FormItem>
</Form>
</template>
</DataGrid>
</div>
</template>
<script>
import Api from "./api";
export default {
name: "list",
head: {
title: "入库明细",
author: "henq",
description: "stock_item 7/13/2020 6:04:18 PM"
},
data() {
return {
action: Api.index,
easySearch: {
keys: { op: "name,storeTitle,code,materialCode", value: null }
},
curId: 0,
columns: [
{
key: "name",
title: this.l("name"),
align: "left",
easy: true,
high: true
},
{
key: "originalManufacturer",
title: this.l("originalManufacturer"),
align: "left",
high: true
},
{ key: "batch", title: this.l("batch"), align: "left", high: true },
{
key: "unitPrice",
title: this.l("unitPrice"),
align: "left",
high: true
},
{
key: "certificateOfApproval",
title: this.l("certificateOfApproval"),
align: "left",
high: true
},
{
key: "storeTitle",
title: this.l("storeTitle"),
align: "left",
easy: true,
high: true
},
{ key: "total", title: this.l("total"), align: "left", high: true },
{ key: "remark", title: this.l("remark"), align: "left", high: true },
{
key: "code",
title: this.l("code"),
align: "left",
easy: true,
high: true
},
{
key: "materialCode",
title: this.l("materialCode"),
align: "left",
easy: true,
high: true
},
{
key: "creationTime",
title: this.l("creationTime"),
align: "left",
high: true
},
{
key: "creatorUserId",
title: this.l("creatorUserId"),
align: "left",
high: true
}
]
};
},
mounted() {
console.log(this);
},
async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典
},
methods: {
ok() {
this.$refs.grid.load();
this.modal = false;
this.curId = 0;
},
search() {
this.$refs.grid.reload(this.easySearch);
},
cancel() {
this.curId = 0;
this.modal = false;
},
l(key) {
let vkey = "stock_item" + "." + key;
return this.$t(vkey) || key;
}
}
};
</script>
<style lang="less">
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment