Commit a3f9bc47 authored by renjintao's avatar renjintao

workhourManage detail\indx\zh-cn\datagrid...

parent 925dc4cf
This diff is collapsed.
...@@ -2155,5 +2155,19 @@ document_category: { ...@@ -2155,5 +2155,19 @@ document_category: {
template: '模板', template: '模板',
attachment: '附件', attachment: '附件',
type: '模版类型', type: '模版类型',
},
workHour: {
userTitle: '员工姓名',
userCardNo: '员工编号',
totalWorkHour: '工时数量',
planQuantity: '计划数量',
qualified: '合格数量',
action: '操作',
mesCode: '订单编号',
productName: '产品名称',
drawnNumber: '产品图号',
routingDetailSeq: '工序号',
routingDetailName: '工序名称',
workHour: '工时数量',
} }
} }
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="detail"> <div class="detail">
<DataGrid :columns="columns" ref="grid" :data="data" :set="false"> <DataGrid :columns="columns" ref="grid" :data="data" :set="false">
<template slot="easySearch"> <template slot="easySearch">
<p class="pl10">用户姓名:<span class="mr20">{{entity.name}}</span>用户编号:<span class="mr20">{{entity.id}}</span>工时数量:<span class="mr20">{{entity.creatorUserId}}</span>计划数量:<span class="mr20">{{entity.creatorUserId}}</span>合格数量:<span class="mr20">{{entity.creatorUserId}}</span></p> <p class="pl10">{{this.l('userTitle')}}<span class="mr20">{{entity.userTitle}}</span>{{this.l('userTitle')}}<span class="mr20">{{entity.userCardNo}}</span>{{this.l('totalWorkHour')}}<span class="mr20">{{entity.totalWorkHour}}</span>{{this.l('planQuantity')}}<span class="mr20">{{entity.planQuantity}}</span>{{this.l('qualified')}}<span class="mr20">{{entity.qualified}}</span></p>
</template> </template>
</DataGrid> </DataGrid>
</div> </div>
...@@ -30,39 +30,36 @@ export default { ...@@ -30,39 +30,36 @@ export default {
fileUrlPath: "", fileUrlPath: "",
columns: [{ columns: [{
key: "mesCode", key: "mesCode",
title: '订单编号', title: this.l('mesCode'),
align: "left", align: "left",
easy: true,
high: true,
}, },
{ {
key: "productName", key: "productName",
title: '产品名称', title: this.l('productName'),
align: "left", align: "left",
easy: true,
high: true,
}, },
{ {
key: "drawnNumber", key: "drawnNumber",
title: '产品图号', title: this.l('drawnNumber'),
align: "left", align: "left",
easy: true,
high: true,
}, },
{ {
key: "routingDetailSeq", key: "routingDetailSeq",
title: '工序号', title: this.l('routingDetailSeq'),
align: "left", align: "right",
easy: true, width: 100,
high: true,
}, },
{ {
key: "routingDetailName", key: "routingDetailName",
title: '工序名称', title: this.l('routingDetailName'),
align: "left", align: "left",
easy: true, },
high: true, {
} key: "workHour",
title: this.l('workHour'),
align: "right",
},
], ],
data: [], data: [],
}; };
...@@ -100,6 +97,10 @@ export default { ...@@ -100,6 +97,10 @@ export default {
handleClose() { handleClose() {
this.$emit("on-close"); this.$emit("on-close");
}, },
l(key) {
let vkey = "workHour" + "." + key;
return this.$t(vkey) || key;
},
}, },
watch: { watch: {
row(v) { row(v) {
......
<template> <template>
<div class="h100"> <div class="h100">
<DataGrid :columns="columns" ref="grid" :action="action"> <DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch">
<template slot="easySearch"> <template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline> <Form ref="formInline" :model="easySearch" inline>
<FormItem prop="keys"> <FormItem prop="keys">
...@@ -35,6 +35,7 @@ export default { ...@@ -35,6 +35,7 @@ export default {
op: "userTitle,userCardNo", op: "userTitle,userCardNo",
value: null value: null
}, },
sortBy: 'totalWorkHour'
}, },
modal: false, modal: false,
full: false, full: false,
...@@ -50,41 +51,41 @@ export default { ...@@ -50,41 +51,41 @@ export default {
title: "序号", title: "序号",
}, { }, {
key: "userTitle", key: "userTitle",
title: '员工姓名', title: this.l('userTitle'),
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true,
}, },
{ {
key: "userCardNo", key: "userCardNo",
title: '员工编号', title: this.l('userCardNo'),
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true,
}, },
{ {
key: "totalWorkHour", key: "totalWorkHour",
title: '工时数量', title: this.l('totalWorkHour'),
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true,
}, },
{ {
key: "planQuantity", key: "planQuantity",
title: '计划数量', title: this.l('planQuantity'),
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true,
}, },
{ {
key: "qualified", key: "qualified",
title: '合格数量', title: this.l('qualified'),
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true,
}, },
{ {
title: "操作", title: this.l("action"),
key: "action", key: "action",
width: 140, width: 140,
align: "center", align: "center",
...@@ -141,7 +142,7 @@ export default { ...@@ -141,7 +142,7 @@ export default {
this.modal = false; this.modal = false;
}, },
l(key) { l(key) {
let vkey = "import_center" + "." + key; let vkey = "workHour" + "." + key;
return this.$t(vkey) || key; return this.$t(vkey) || key;
}, },
}, },
......
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