commit 20221024
This commit is contained in:
@@ -29,14 +29,16 @@
|
||||
size="mini"/>
|
||||
</el-select>
|
||||
<span style="margin-left: 10px">精确追溯码:</span>
|
||||
<el-select v-model="traceabilityCode" placeholder="请选择精确追溯码" filterable clearable size="small" style="width: 200px">
|
||||
<el-option
|
||||
v-for="item in traceabilityCodeArr"
|
||||
:key="item.ID"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
size="mini"/>
|
||||
</el-select>
|
||||
<el-input v-model="traceabilityCode" placeholder="请输入精确追溯码" clearable size="small" style="width: 200px;"/>
|
||||
<!-- <span style="margin-left: 10px">精确追溯码:</span>-->
|
||||
<!-- <el-select v-model="traceabilityCode" placeholder="请选择精确追溯码" filterable clearable size="small" style="width: 200px">-->
|
||||
<!-- <el-option-->
|
||||
<!-- v-for="item in traceabilityCodeArr"-->
|
||||
<!-- :key="item.ID"-->
|
||||
<!-- :label="item.label"-->
|
||||
<!-- :value="item.value"-->
|
||||
<!-- size="mini"/>-->
|
||||
<!-- </el-select>-->
|
||||
<span style="margin-left: 10px">分总成编号:</span>
|
||||
<el-select v-model="assemblyNumberValue" placeholder="请选择总成编号" filterable clearable size="small" style="width: 200px">
|
||||
<el-option
|
||||
@@ -71,17 +73,19 @@
|
||||
end-placeholder="结束日期"
|
||||
@change="getTraceabilityCode();getBatchBarcode();getAssemblyNumber()"/>
|
||||
<span style="margin-left: 10px">批次条码:</span>
|
||||
<el-select v-model="batchBarcodeValue" placeholder="请选择批次条码" clearable filterable size="small" style="width: 200px;margin-left: 13px">
|
||||
<el-option
|
||||
v-for="item in batchBarcode"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
size="mini"/>
|
||||
</el-select>
|
||||
<el-input v-model="batchBarcodeValue" placeholder="请输入批次条码" clearable size="small" style="width: 200px; margin-left: 13px"/>
|
||||
<!-- <span style="margin-left: 10px">批次条码:</span>-->
|
||||
<!-- <el-select v-model="batchBarcodeValue" placeholder="请选择批次条码" clearable filterable size="small" style="width: 200px;margin-left: 13px">-->
|
||||
<!-- <el-option-->
|
||||
<!-- v-for="item in batchBarcode"-->
|
||||
<!-- :key="item.value"-->
|
||||
<!-- :label="item.label"-->
|
||||
<!-- :value="item.value"-->
|
||||
<!-- size="mini"/>-->
|
||||
<!-- </el-select>-->
|
||||
</div>
|
||||
<div style="margin: 10px 0 0 89%">
|
||||
<el-button type="primary" plain size="small" icon="el-icon-search" style="margin-left: 5px" @click="selectDate()">查询</el-button>
|
||||
<el-button type="primary" plain size="small" icon="el-icon-search" style="margin-left: 5px" @click="pageCurrent = 1,pageSize = 30,selectDate()">查询</el-button>
|
||||
<el-button type="info" size="small" icon="el-icon-download" @click="exportExcel()">Excel</el-button>
|
||||
</div>
|
||||
<el-table
|
||||
@@ -262,9 +266,6 @@ export default {
|
||||
var param = []
|
||||
var Data = this.CreateData('11', 'MES_计划BOM_工位与名称_查询', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
if (response.data.length) {
|
||||
this.stationNumberValue = response.data[0].工位号
|
||||
}
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.stationNumber.push({
|
||||
label: response.data[i].工位号,
|
||||
@@ -281,9 +282,6 @@ export default {
|
||||
var param = []
|
||||
var Data = this.CreateData('11', 'MES_基本变量_机型代码_查询 ', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
if (response.data.length) {
|
||||
this.engineTypeValue = response.data[0].发动机型号
|
||||
}
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.engineType.push({
|
||||
label: response.data[i].发动机型号,
|
||||
@@ -300,7 +298,6 @@ export default {
|
||||
param[1] = ['工位号', this.stationNumberValue]
|
||||
var Data = this.CreateData('11', '电子看板装配零件_零件名称_初始化查询 ', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
if (response.data.length) { this.partNameValue = response.data[0].零件名称 }
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.partName.push({
|
||||
label: response.data[i].零件名称,
|
||||
@@ -317,10 +314,8 @@ export default {
|
||||
this.engineTypeValue ? engineTypeValue_check = 1 : engineTypeValue_check = 0
|
||||
this.stationNumberValue ? stationNumberValue_check = 1 : stationNumberValue_check = 0
|
||||
var param = []
|
||||
param[0] = ['开始时间', this.dateTime[0] + ' ' + '00:00']
|
||||
param[1] = ['结束时间', this.dateTime[1] + ' ' + '23:59']
|
||||
// param[0] = ['开始时间', this.dateTime[0]]
|
||||
// param[1] = ['结束时间', this.dateTime[1]]
|
||||
param[0] = ['开始时间', this.dateTime[0]]
|
||||
param[1] = ['结束时间', this.dateTime[1]]
|
||||
param[2] = ['发动机型号_ischeck', engineTypeValue_check]
|
||||
param[3] = ['发动机型号', this.engineTypeValue]
|
||||
param[4] = ['工位号_ischeck', stationNumberValue_check]
|
||||
@@ -328,7 +323,6 @@ export default {
|
||||
param[6] = ['分线总线', 2]
|
||||
var Data = this.CreateData('11', '初始化二维码_查询 ', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
if (response.data.length) { this.traceabilityCode = response.data[0].物料条码 }
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.traceabilityCodeArr.push({
|
||||
label: response.data[i].物料条码,
|
||||
@@ -353,9 +347,6 @@ export default {
|
||||
param[6] = ['分线总线', 2]
|
||||
var Data = this.CreateData('11', '测量数据合格索引_发动机号_发动机型号_查询 ', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
if (response.data.length) {
|
||||
this.assemblyNumberValue = response.data[0].发动机号
|
||||
}
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.assemblyNumber.push({
|
||||
label: response.data[i].发动机号,
|
||||
@@ -367,15 +358,12 @@ export default {
|
||||
getBatchBarcode() {
|
||||
this.batchBarcode = []
|
||||
var param = []
|
||||
param[0] = ['开始时间', this.dateTime[0] + ' ' + '00:00']
|
||||
param[1] = ['结束时间', this.dateTime[1] + ' ' + '23:59']
|
||||
// param[0] = ['开始时间', this.dateTime[0]]
|
||||
// param[1] = ['结束时间', this.dateTime[1]]
|
||||
param[0] = ['开始时间', this.dateTime[0]]
|
||||
param[1] = ['结束时间', this.dateTime[1]]
|
||||
param[2] = ['工位号', this.stationNumberValue]
|
||||
console.log(param, 'param')
|
||||
var Data = this.CreateData('11', '物料数据分线_视图_物料条码批次号_查询 ', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
if (response.data.length) { this.batchBarcodeValue = response.data[0].物料条码 }
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.batchBarcode.push({
|
||||
label: response.data[i].物料条码,
|
||||
@@ -391,7 +379,6 @@ export default {
|
||||
param[1] = ['测量位置', this.measuringPositionValue]
|
||||
var Data = this.CreateData('11', '质量数据查询_测量项目 ', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
this.measuringProjectValue = response.data[0].测量项目
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.measuringProject.push({
|
||||
label: response.data[i].测量项目,
|
||||
@@ -410,10 +397,8 @@ export default {
|
||||
this.traceabilityCode ? traceabilityCode_check = 1 : (traceabilityCode_check = 0, this.traceabilityCode = '')
|
||||
this.batchBarcodeValue ? batchBarcodeValue_check = 1 : (batchBarcodeValue_check = 0, this.batchBarcodeValue = '')
|
||||
var param = []
|
||||
param[0] = ['开始时间', this.dateTime[0] + ' ' + '00:00']
|
||||
param[1] = ['结束时间', this.dateTime[1] + ' ' + '23:59']
|
||||
// param[0] = ['开始时间', this.dateTime[0]]
|
||||
// param[1] = ['结束时间', this.dateTime[1]]
|
||||
param[0] = ['开始时间', this.dateTime[0]]
|
||||
param[1] = ['结束时间', this.dateTime[1]]
|
||||
param[2] = ['发动机型号_ischeck', engineTypeValue_check]
|
||||
param[3] = ['发动机型号', this.engineTypeValue]
|
||||
param[4] = ['发动机号_ischeck', assemblyNumberValue_check]
|
||||
@@ -450,10 +435,8 @@ export default {
|
||||
this.traceabilityCode ? traceabilityCode_check = 1 : (traceabilityCode_check = 0, this.traceabilityCode = '')
|
||||
this.batchBarcodeValue ? batchBarcodeValue_check = 1 : (batchBarcodeValue_check = 0, this.batchBarcodeValue = '')
|
||||
var param = []
|
||||
param[0] = ['开始时间', this.dateTime[0] + ' ' + '00:00']
|
||||
param[1] = ['结束时间', this.dateTime[1] + ' ' + '23:59']
|
||||
// param[0] = ['开始时间', this.dateTime[0]]
|
||||
// param[1] = ['结束时间', this.dateTime[1]]
|
||||
param[0] = ['开始时间', this.dateTime[0]]
|
||||
param[1] = ['结束时间', this.dateTime[1]]
|
||||
param[2] = ['发动机型号_ischeck', engineTypeValue_check]
|
||||
param[3] = ['发动机型号', this.engineTypeValue]
|
||||
param[4] = ['发动机号_ischeck', assemblyNumberValue_check]
|
||||
|
||||
Reference in New Issue
Block a user