feat: 完成工艺与质量页面国际化
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
<el-card class="topCard">
|
||||
<div class="topDiv">
|
||||
<div>
|
||||
<span style="margin-left: 10px;margin-right: 1px;letter-spacing: 3px">工位号:</span>
|
||||
<span style="margin-left: 10px;margin-right: 1px;letter-spacing: 3px">{{ $t('materialDataQuery.stationNumberLabel') }}</span>
|
||||
<el-select
|
||||
v-model="stationNumberValue"
|
||||
clearable
|
||||
filterable
|
||||
placeholder="请选择工位号"
|
||||
:placeholder="$t('materialDataQuery.selectStationNumber')"
|
||||
size="small"
|
||||
style="width: 250px">
|
||||
<el-option
|
||||
@@ -18,14 +18,14 @@
|
||||
:value="item.value"
|
||||
size="mini"/>
|
||||
</el-select>
|
||||
<span style="margin-left: 10px;letter-spacing: 3px">订单号:</span>
|
||||
<el-input v-model="orderNumberValue" placeholder="订单号" clearable size="small" style="width: 250px;"/>
|
||||
<span style="margin-left: 10px;">产品型号:</span>
|
||||
<span style="margin-left: 10px;letter-spacing: 3px">{{ $t('materialDataQuery.orderNumberLabel') }}</span>
|
||||
<el-input v-model="orderNumberValue" :placeholder="$t('materialDataQuery.orderNumber')" clearable size="small" style="width: 250px;"/>
|
||||
<span style="margin-left: 10px;">{{ $t('materialDataQuery.productModelLabel') }}</span>
|
||||
<el-select
|
||||
v-model="engineTypeValue"
|
||||
clearable
|
||||
filterable
|
||||
placeholder="请选择产品型号"
|
||||
:placeholder="$t('materialDataQuery.selectProductModel')"
|
||||
size="small"
|
||||
style="width: 250px">
|
||||
<el-option
|
||||
@@ -62,11 +62,11 @@
|
||||
|
||||
</div>
|
||||
<div style="margin-top: 10px">
|
||||
<span style="margin-left: 10px">物料条码:</span>
|
||||
<span style="margin-left: 10px">{{ $t('materialDataQuery.materialBarcodeLabel') }}</span>
|
||||
<el-input
|
||||
v-model="traceabilityCode"
|
||||
clearable
|
||||
placeholder="请输入物料条码"
|
||||
:placeholder="$t('materialDataQuery.enterMaterialBarcode')"
|
||||
size="small"
|
||||
style="width: 250px;"/>
|
||||
<!-- <span style="margin-left: 10px">零件名称:</span>-->
|
||||
@@ -78,16 +78,16 @@
|
||||
<!-- :value="item.value"-->
|
||||
<!-- size="mini"/>-->
|
||||
<!-- </el-select>-->
|
||||
<span style="margin-left: 10px">生产时间:</span>
|
||||
<span style="margin-left: 10px">{{ $t('materialDataQuery.productionTimeLabel') }}</span>
|
||||
<el-date-picker
|
||||
v-model="dateTime"
|
||||
:clearable="false"
|
||||
align="center"
|
||||
end-placeholder="结束日期"
|
||||
:end-placeholder="$t('materialDataQuery.endDate')"
|
||||
format="yyyy-MM-dd"
|
||||
range-separator="~"
|
||||
:range-separator="$t('materialDataQuery.dateRangeSeparator')"
|
||||
size="small"
|
||||
start-placeholder="开始日期"
|
||||
:start-placeholder="$t('materialDataQuery.startDate')"
|
||||
style="width: 250px;"
|
||||
type="daterange"
|
||||
value-format="yyyy-MM-dd"/>
|
||||
@@ -97,7 +97,7 @@
|
||||
size="small"
|
||||
style="margin-left: 5px"
|
||||
type="primary"
|
||||
@click="pageCurrent = 1;selectDate()">查询
|
||||
@click="pageCurrent = 1;selectDate()">{{ $t('materialDataQuery.search') }}
|
||||
</el-button>
|
||||
<el-button icon="el-icon-download" size="small" type="info" @click="exportExcel()">Excel</el-button>
|
||||
<!-- <span style="margin-left: 10px">批次条码:</span>-->
|
||||
@@ -121,29 +121,29 @@
|
||||
class="main"
|
||||
element-loading-background="rgba(0, 0, 0, 0.2)"
|
||||
element-loading-spinner="el-icon-loading"
|
||||
element-loading-text="数据加载中"
|
||||
:element-loading-text="$t('materialDataQuery.loadingData')"
|
||||
height="560px"
|
||||
size="mini"
|
||||
style="width: 100%"
|
||||
tooltip-effect="dark">
|
||||
<!-- <el-table-column :selectable="selectable" type="selection" width="45" align="center"/>-->
|
||||
<el-table-column align="center" label="序号" type="index" width="60"/>
|
||||
<el-table-column align="center" label="订单号" width="120px">
|
||||
<el-table-column align="center" :label="$t('materialDataQuery.sequence')" type="index" width="60"/>
|
||||
<el-table-column align="center" :label="$t('materialDataQuery.orderNumber')" width="120px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.订单号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="工位号" width="100px">
|
||||
<el-table-column align="center" :label="$t('materialDataQuery.stationNumber')" width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.工位号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="产品编号">
|
||||
<el-table-column align="center" :label="$t('materialDataQuery.productNumber')">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.发动机号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="产品型号" width="120px">
|
||||
<el-table-column align="center" :label="$t('materialDataQuery.productModel')" width="120px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.发动机型号 }}
|
||||
</template>
|
||||
@@ -159,17 +159,17 @@
|
||||
<!-- {{ scope.row.零件图号 }}-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column align="center" label="物料号" width="150px">
|
||||
<el-table-column align="center" :label="$t('materialDataQuery.materialNumber')" width="150px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="零件数量" width="100px">
|
||||
<el-table-column align="center" :label="$t('materialDataQuery.partQuantity')" width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="零件名称" min-width="150px">
|
||||
<el-table-column align="center" :label="$t('materialDataQuery.partName')" min-width="150px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件名称 }}
|
||||
</template>
|
||||
@@ -180,7 +180,7 @@
|
||||
<!-- {{ scope.row.生产厂家 }}-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column align="center" min-width="150px" label="物料条码">
|
||||
<el-table-column align="center" min-width="150px" :label="$t('materialDataQuery.materialBarcode')">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料条码 }}
|
||||
</template>
|
||||
@@ -190,7 +190,7 @@
|
||||
<!-- {{ scope.row.物料条码批次 }}-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column align="center" label="操作时间" width="150px">
|
||||
<el-table-column align="center" :label="$t('materialDataQuery.operationTime')" width="150px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.操作时间 }}
|
||||
</template>
|
||||
@@ -502,7 +502,7 @@ export default {
|
||||
var Data = this.CreateData('2001', '物料数据查询_报表新', param)
|
||||
this.exportExcel_NPOI(Data)
|
||||
} else {
|
||||
this.$message.warning('暂无数据')
|
||||
this.$message.warning(this.$t('materialDataQuery.noData'))
|
||||
}
|
||||
},
|
||||
// 分页
|
||||
|
||||
Reference in New Issue
Block a user