commit 20221024
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
export const ip = 'http://localhost:8051'
|
export const ip = 'http://localhost:8051'
|
||||||
|
// export const ip = 'http://124.220.15.242:8154' // AP
|
||||||
// export const ip = 'http://124.220.15.242:8153' // 福田
|
// export const ip = 'http://124.220.15.242:8153' // 福田
|
||||||
|
|
||||||
|
|||||||
@@ -189,11 +189,11 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
stationNumber: [],
|
stationNumber: [],
|
||||||
stationNumberValue: 'OP1005',
|
stationNumberValue: '',
|
||||||
stationName: '扫描上线工位',
|
stationName: '',
|
||||||
andonArr: [],
|
andonArr: [],
|
||||||
andonValue: 1,
|
andonValue: '',
|
||||||
andonLabel: '物料ANDON',
|
andonLabel: '',
|
||||||
worksheet: [],
|
worksheet: [],
|
||||||
itemFile: [],
|
itemFile: [],
|
||||||
unSpecification: [],
|
unSpecification: [],
|
||||||
|
|||||||
@@ -85,12 +85,12 @@ export default {
|
|||||||
fileName1: '',
|
fileName1: '',
|
||||||
tableData: [], // 总数据数组
|
tableData: [], // 总数据数组
|
||||||
stationNumber: [],
|
stationNumber: [],
|
||||||
stationNumberValue: 'OP1005',
|
stationNumberValue: '',
|
||||||
stationName: '扫描上线工位',
|
stationName: '',
|
||||||
moduleDescription: [],
|
moduleDescription: [],
|
||||||
moduleDescriptionValue: '',
|
moduleDescriptionValue: '',
|
||||||
engineTypeValue: 'SGM-5P',
|
engineTypeValue: '',
|
||||||
engineTypeValue1: '1',
|
engineTypeValue1: '',
|
||||||
engineTypeName: '',
|
engineTypeName: '',
|
||||||
engineType: [],
|
engineType: [],
|
||||||
isDisableValue: 0,
|
isDisableValue: 0,
|
||||||
@@ -131,7 +131,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.searchTable()
|
// this.searchTable()
|
||||||
this.getStationNumber()
|
this.getStationNumber()
|
||||||
this.getEndStation()
|
this.getEndStation()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -71,11 +71,11 @@ export default {
|
|||||||
upload: url,
|
upload: url,
|
||||||
tableData: [], // 总数据数组
|
tableData: [], // 总数据数组
|
||||||
stationNumber: [],
|
stationNumber: [],
|
||||||
stationNumberValue: 'OP1005',
|
stationNumberValue: '',
|
||||||
stationName: '扫描上线工位',
|
stationName: '',
|
||||||
moduleDescription: [],
|
moduleDescription: [],
|
||||||
moduleDescriptionValue: '',
|
moduleDescriptionValue: '',
|
||||||
engineTypeValue: 'SGM-5P',
|
engineTypeValue: '',
|
||||||
engineTypeValue1: '',
|
engineTypeValue1: '',
|
||||||
engineTypeName: '',
|
engineTypeName: '',
|
||||||
engineType: [],
|
engineType: [],
|
||||||
@@ -108,7 +108,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.searchTable()
|
// this.searchTable()
|
||||||
this.getStationNumber()
|
this.getStationNumber()
|
||||||
this.getEndStation()
|
this.getEndStation()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -28,17 +28,20 @@
|
|||||||
:value="item.value"
|
:value="item.value"
|
||||||
size="mini"/>
|
size="mini"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<span style="margin-left: 10px">精确追溯码:</span>
|
<span style="margin-left: 10px">批次条码:</span>
|
||||||
<el-select v-model="traceabilityCode" placeholder="请选择精确追溯码" filterable clearable size="small" style="width: 200px">
|
<el-input v-model="traceabilityCode" placeholder="请输入批次条码" clearable size="small" style="width: 200px; margin-left: 13px"/>
|
||||||
<el-option
|
<!-- <span style="margin-left: 10px">精确追溯码:</span>-->
|
||||||
v-for="item in traceabilityCodeArr"
|
<!-- <el-input v-model="traceabilityCode" placeholder="请输入精确追溯码" clearable size="small" style="width: 200px"/>-->
|
||||||
:key="item.ID"
|
<!-- <el-select v-model="traceabilityCode" placeholder="请选择精确追溯码" filterable clearable size="small" style="width: 200px">-->
|
||||||
:label="item.label"
|
<!-- <el-option-->
|
||||||
:value="item.value"
|
<!-- v-for="item in traceabilityCodeArr"-->
|
||||||
size="mini"/>
|
<!-- :key="item.ID"-->
|
||||||
</el-select>
|
<!-- :label="item.label"-->
|
||||||
|
<!-- :value="item.value"-->
|
||||||
|
<!-- size="mini"/>-->
|
||||||
|
<!-- </el-select>-->
|
||||||
<span style="margin-left: 10px">总成编号:</span>
|
<span style="margin-left: 10px">总成编号:</span>
|
||||||
<el-select v-model="assemblyNumberValue" placeholder="请选择总成编号" filterable clearable size="small" style="width: 200px; margin-left: 13px">
|
<el-select v-model="assemblyNumberValue" placeholder="请选择总成编号" filterable clearable size="small" style="width: 200px;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in assemblyNumber"
|
v-for="item in assemblyNumber"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@@ -81,15 +84,14 @@
|
|||||||
start-placeholder="开始日期"
|
start-placeholder="开始日期"
|
||||||
end-placeholder="结束日期"
|
end-placeholder="结束日期"
|
||||||
@change="getOrderNumber();getTraceabilityCode();getBatchBarcode();getAssemblyNumber()"/>
|
@change="getOrderNumber();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-select v-model="batchBarcodeValue" placeholder="请选择批次条码" clearable filterable size="small" style="width: 200px; margin-left: 13px">
|
<!-- <el-option-->
|
||||||
<el-option
|
<!-- v-for="item in batchBarcode"-->
|
||||||
v-for="item in batchBarcode"
|
<!-- :key="item.value"-->
|
||||||
:key="item.value"
|
<!-- :label="item.label"-->
|
||||||
:label="item.label"
|
<!-- :value="item.value"-->
|
||||||
:value="item.value"
|
<!-- size="mini"/>-->
|
||||||
size="mini"/>
|
<!-- </el-select>-->
|
||||||
</el-select>
|
|
||||||
<span style="margin-left: 10px">是否合格:</span>
|
<span style="margin-left: 10px">是否合格:</span>
|
||||||
<el-select v-model="isQualifiedValue" placeholder="请选择是否合格" clearable size="small" style="width: 200px; margin-left: 13px">
|
<el-select v-model="isQualifiedValue" placeholder="请选择是否合格" clearable size="small" style="width: 200px; margin-left: 13px">
|
||||||
<el-option
|
<el-option
|
||||||
@@ -110,7 +112,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin: 10px 0 0 89%">
|
<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>
|
<el-button type="info" size="small" icon="el-icon-download" @click="exportExcel()">Excel</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
@@ -249,7 +251,7 @@ export default {
|
|||||||
value: 2
|
value: 2
|
||||||
}
|
}
|
||||||
], // 是否合格
|
], // 是否合格
|
||||||
isQualifiedValue: '', // 是否合格
|
isQualifiedValue: 2, // 是否合格
|
||||||
dateTime: '', // 时间
|
dateTime: '', // 时间
|
||||||
loading: false, // 时间
|
loading: false, // 时间
|
||||||
tableData: [], // 时间
|
tableData: [], // 时间
|
||||||
@@ -294,7 +296,6 @@ export default {
|
|||||||
var param = []
|
var param = []
|
||||||
var Data = this.CreateData('11', 'MES_计划BOM_工位与名称_查询', param)
|
var Data = this.CreateData('11', 'MES_计划BOM_工位与名称_查询', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.stationNumberValue = response.data[0].工位号 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.stationNumber.push({
|
this.stationNumber.push({
|
||||||
label: response.data[i].工位号,
|
label: response.data[i].工位号,
|
||||||
@@ -312,7 +313,6 @@ export default {
|
|||||||
var param = []
|
var param = []
|
||||||
var Data = this.CreateData('11', 'MES_基本变量_机型代码_查询 ', param)
|
var Data = this.CreateData('11', 'MES_基本变量_机型代码_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.engineTypeValue = response.data[0].发动机型号 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.engineType.push({
|
this.engineType.push({
|
||||||
label: response.data[i].发动机型号,
|
label: response.data[i].发动机型号,
|
||||||
@@ -338,7 +338,6 @@ export default {
|
|||||||
param[2] = ['合格标志', isQualifiedValue]
|
param[2] = ['合格标志', isQualifiedValue]
|
||||||
var Data = this.CreateData('11', '测量数据合格索引_订单号_查询 ', param)
|
var Data = this.CreateData('11', '测量数据合格索引_订单号_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.orderNumberValue = response.data[0].订单号 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.orderNumber.push({
|
this.orderNumber.push({
|
||||||
label: response.data[i].订单号,
|
label: response.data[i].订单号,
|
||||||
@@ -365,7 +364,6 @@ export default {
|
|||||||
param[6] = ['分线总线', 1]
|
param[6] = ['分线总线', 1]
|
||||||
var Data = this.CreateData('11', '初始化二维码_查询 ', param)
|
var Data = this.CreateData('11', '初始化二维码_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.traceabilityCode = response.data[0].物料条码 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.traceabilityCodeArr.push({
|
this.traceabilityCodeArr.push({
|
||||||
label: response.data[i].物料条码,
|
label: response.data[i].物料条码,
|
||||||
@@ -392,7 +390,6 @@ export default {
|
|||||||
param[6] = ['分线总线', 1]
|
param[6] = ['分线总线', 1]
|
||||||
var Data = this.CreateData('11', '测量数据合格索引_发动机号_发动机型号_查询 ', param)
|
var Data = this.CreateData('11', '测量数据合格索引_发动机号_发动机型号_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.assemblyNumberValue = response.data[0].发动机号 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.assemblyNumber.push({
|
this.assemblyNumber.push({
|
||||||
label: response.data[i].发动机号,
|
label: response.data[i].发动机号,
|
||||||
@@ -411,7 +408,6 @@ export default {
|
|||||||
param[2] = ['工位号', this.stationNumberValue]
|
param[2] = ['工位号', this.stationNumberValue]
|
||||||
var Data = this.CreateData('11', '物料数据_视图_物料条码批次号_查询 ', param)
|
var Data = this.CreateData('11', '物料数据_视图_物料条码批次号_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.batchBarcodeValue = response.data[0].物料条码 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.batchBarcode.push({
|
this.batchBarcode.push({
|
||||||
label: response.data[i].物料条码,
|
label: response.data[i].物料条码,
|
||||||
@@ -426,7 +422,6 @@ export default {
|
|||||||
param[0] = ['工位号', this.stationNumberValue]
|
param[0] = ['工位号', this.stationNumberValue]
|
||||||
var Data = this.CreateData('11', '质量数据查询_测量位置 ', param)
|
var Data = this.CreateData('11', '质量数据查询_测量位置 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.measuringPositionValue = response.data[0].测量位置 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.measuringPosition.push({
|
this.measuringPosition.push({
|
||||||
label: response.data[i].测量位置,
|
label: response.data[i].测量位置,
|
||||||
@@ -444,7 +439,6 @@ export default {
|
|||||||
param[1] = ['测量位置', this.measuringPositionValue]
|
param[1] = ['测量位置', this.measuringPositionValue]
|
||||||
var Data = this.CreateData('11', '质量数据查询_测量项目 ', param)
|
var Data = this.CreateData('11', '质量数据查询_测量项目 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.measuringProjectValue = response.data[0].测量项目 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.measuringProject.push({
|
this.measuringProject.push({
|
||||||
label: response.data[i].测量项目,
|
label: response.data[i].测量项目,
|
||||||
|
|||||||
@@ -224,7 +224,6 @@ export default {
|
|||||||
var param = []
|
var param = []
|
||||||
var Data = this.CreateData('11', 'MES_计划BOM_工位与名称_查询', param)
|
var Data = this.CreateData('11', 'MES_计划BOM_工位与名称_查询', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.stationNumberValue = response.data[0].工位号 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.stationNumber.push({
|
this.stationNumber.push({
|
||||||
label: response.data[i].工位号,
|
label: response.data[i].工位号,
|
||||||
@@ -239,7 +238,6 @@ export default {
|
|||||||
var param = []
|
var param = []
|
||||||
var Data = this.CreateData('11', 'MES_计划BOM_工位与名称_查询', param)
|
var Data = this.CreateData('11', 'MES_计划BOM_工位与名称_查询', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
this.stationNumberValueN = response.data[0].工位号
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.stationNumberN.push({
|
this.stationNumberN.push({
|
||||||
label: response.data[i].工位号,
|
label: response.data[i].工位号,
|
||||||
@@ -258,7 +256,6 @@ export default {
|
|||||||
// param[1] = ['结束时间', this.dateTime[1]]
|
// param[1] = ['结束时间', this.dateTime[1]]
|
||||||
var Data = this.CreateData('11', '测量数据发动机在线状态_订单号_查询 ', param)
|
var Data = this.CreateData('11', '测量数据发动机在线状态_订单号_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.orderNumberValue = response.data[0].订单号 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.orderNumber.push({
|
this.orderNumber.push({
|
||||||
label: response.data[i].订单号,
|
label: response.data[i].订单号,
|
||||||
@@ -280,7 +277,6 @@ export default {
|
|||||||
param[3] = ['订单号', this.orderNumberValue]
|
param[3] = ['订单号', this.orderNumberValue]
|
||||||
var Data = this.CreateData('11', '测量数据发动机在线状态_发动机号_查询 ', param)
|
var Data = this.CreateData('11', '测量数据发动机在线状态_发动机号_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.assemblyNumberValue = response.data[0].发动机号 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.assemblyNumber.push({
|
this.assemblyNumber.push({
|
||||||
label: response.data[i].发动机号,
|
label: response.data[i].发动机号,
|
||||||
|
|||||||
@@ -29,14 +29,16 @@
|
|||||||
size="mini"/>
|
size="mini"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<span style="margin-left: 10px">精确追溯码:</span>
|
<span style="margin-left: 10px">精确追溯码:</span>
|
||||||
<el-select v-model="traceabilityCode" placeholder="请选择精确追溯码" filterable clearable size="small" style="width: 200px">
|
<el-input v-model="traceabilityCode" placeholder="请输入精确追溯码" clearable size="small" style="width: 200px;"/>
|
||||||
<el-option
|
<!-- <span style="margin-left: 10px">精确追溯码:</span>-->
|
||||||
v-for="item in traceabilityCodeArr"
|
<!-- <el-select v-model="traceabilityCode" placeholder="请选择精确追溯码" filterable clearable size="small" style="width: 200px">-->
|
||||||
:key="item.ID"
|
<!-- <el-option-->
|
||||||
:label="item.label"
|
<!-- v-for="item in traceabilityCodeArr"-->
|
||||||
:value="item.value"
|
<!-- :key="item.ID"-->
|
||||||
size="mini"/>
|
<!-- :label="item.label"-->
|
||||||
</el-select>
|
<!-- :value="item.value"-->
|
||||||
|
<!-- size="mini"/>-->
|
||||||
|
<!-- </el-select>-->
|
||||||
<span style="margin-left: 10px">分总成编号:</span>
|
<span style="margin-left: 10px">分总成编号:</span>
|
||||||
<el-select v-model="assemblyNumberValue" placeholder="请选择总成编号" filterable clearable size="small" style="width: 200px">
|
<el-select v-model="assemblyNumberValue" placeholder="请选择总成编号" filterable clearable size="small" style="width: 200px">
|
||||||
<el-option
|
<el-option
|
||||||
@@ -71,17 +73,19 @@
|
|||||||
end-placeholder="结束日期"
|
end-placeholder="结束日期"
|
||||||
@change="getTraceabilityCode();getBatchBarcode();getAssemblyNumber()"/>
|
@change="getTraceabilityCode();getBatchBarcode();getAssemblyNumber()"/>
|
||||||
<span style="margin-left: 10px">批次条码:</span>
|
<span style="margin-left: 10px">批次条码:</span>
|
||||||
<el-select v-model="batchBarcodeValue" placeholder="请选择批次条码" clearable filterable size="small" style="width: 200px;margin-left: 13px">
|
<el-input v-model="batchBarcodeValue" placeholder="请输入批次条码" clearable size="small" style="width: 200px; margin-left: 13px"/>
|
||||||
<el-option
|
<!-- <span style="margin-left: 10px">批次条码:</span>-->
|
||||||
v-for="item in batchBarcode"
|
<!-- <el-select v-model="batchBarcodeValue" placeholder="请选择批次条码" clearable filterable size="small" style="width: 200px;margin-left: 13px">-->
|
||||||
:key="item.value"
|
<!-- <el-option-->
|
||||||
:label="item.label"
|
<!-- v-for="item in batchBarcode"-->
|
||||||
:value="item.value"
|
<!-- :key="item.value"-->
|
||||||
size="mini"/>
|
<!-- :label="item.label"-->
|
||||||
</el-select>
|
<!-- :value="item.value"-->
|
||||||
|
<!-- size="mini"/>-->
|
||||||
|
<!-- </el-select>-->
|
||||||
</div>
|
</div>
|
||||||
<div style="margin: 10px 0 0 89%">
|
<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>
|
<el-button type="info" size="small" icon="el-icon-download" @click="exportExcel()">Excel</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
@@ -262,9 +266,6 @@ export default {
|
|||||||
var param = []
|
var param = []
|
||||||
var Data = this.CreateData('11', 'MES_计划BOM_工位与名称_查询', param)
|
var Data = this.CreateData('11', 'MES_计划BOM_工位与名称_查询', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) {
|
|
||||||
this.stationNumberValue = response.data[0].工位号
|
|
||||||
}
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.stationNumber.push({
|
this.stationNumber.push({
|
||||||
label: response.data[i].工位号,
|
label: response.data[i].工位号,
|
||||||
@@ -281,9 +282,6 @@ export default {
|
|||||||
var param = []
|
var param = []
|
||||||
var Data = this.CreateData('11', 'MES_基本变量_机型代码_查询 ', param)
|
var Data = this.CreateData('11', 'MES_基本变量_机型代码_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) {
|
|
||||||
this.engineTypeValue = response.data[0].发动机型号
|
|
||||||
}
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.engineType.push({
|
this.engineType.push({
|
||||||
label: response.data[i].发动机型号,
|
label: response.data[i].发动机型号,
|
||||||
@@ -300,7 +298,6 @@ export default {
|
|||||||
param[1] = ['工位号', this.stationNumberValue]
|
param[1] = ['工位号', this.stationNumberValue]
|
||||||
var Data = this.CreateData('11', '电子看板装配零件_零件名称_初始化查询 ', param)
|
var Data = this.CreateData('11', '电子看板装配零件_零件名称_初始化查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.partNameValue = response.data[0].零件名称 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.partName.push({
|
this.partName.push({
|
||||||
label: response.data[i].零件名称,
|
label: response.data[i].零件名称,
|
||||||
@@ -317,10 +314,8 @@ export default {
|
|||||||
this.engineTypeValue ? engineTypeValue_check = 1 : engineTypeValue_check = 0
|
this.engineTypeValue ? engineTypeValue_check = 1 : engineTypeValue_check = 0
|
||||||
this.stationNumberValue ? stationNumberValue_check = 1 : stationNumberValue_check = 0
|
this.stationNumberValue ? stationNumberValue_check = 1 : stationNumberValue_check = 0
|
||||||
var param = []
|
var param = []
|
||||||
param[0] = ['开始时间', this.dateTime[0] + ' ' + '00:00']
|
param[0] = ['开始时间', this.dateTime[0]]
|
||||||
param[1] = ['结束时间', this.dateTime[1] + ' ' + '23:59']
|
param[1] = ['结束时间', this.dateTime[1]]
|
||||||
// param[0] = ['开始时间', this.dateTime[0]]
|
|
||||||
// param[1] = ['结束时间', this.dateTime[1]]
|
|
||||||
param[2] = ['发动机型号_ischeck', engineTypeValue_check]
|
param[2] = ['发动机型号_ischeck', engineTypeValue_check]
|
||||||
param[3] = ['发动机型号', this.engineTypeValue]
|
param[3] = ['发动机型号', this.engineTypeValue]
|
||||||
param[4] = ['工位号_ischeck', stationNumberValue_check]
|
param[4] = ['工位号_ischeck', stationNumberValue_check]
|
||||||
@@ -328,7 +323,6 @@ export default {
|
|||||||
param[6] = ['分线总线', 2]
|
param[6] = ['分线总线', 2]
|
||||||
var Data = this.CreateData('11', '初始化二维码_查询 ', param)
|
var Data = this.CreateData('11', '初始化二维码_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.traceabilityCode = response.data[0].物料条码 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.traceabilityCodeArr.push({
|
this.traceabilityCodeArr.push({
|
||||||
label: response.data[i].物料条码,
|
label: response.data[i].物料条码,
|
||||||
@@ -353,9 +347,6 @@ export default {
|
|||||||
param[6] = ['分线总线', 2]
|
param[6] = ['分线总线', 2]
|
||||||
var Data = this.CreateData('11', '测量数据合格索引_发动机号_发动机型号_查询 ', param)
|
var Data = this.CreateData('11', '测量数据合格索引_发动机号_发动机型号_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) {
|
|
||||||
this.assemblyNumberValue = response.data[0].发动机号
|
|
||||||
}
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.assemblyNumber.push({
|
this.assemblyNumber.push({
|
||||||
label: response.data[i].发动机号,
|
label: response.data[i].发动机号,
|
||||||
@@ -367,15 +358,12 @@ export default {
|
|||||||
getBatchBarcode() {
|
getBatchBarcode() {
|
||||||
this.batchBarcode = []
|
this.batchBarcode = []
|
||||||
var param = []
|
var param = []
|
||||||
param[0] = ['开始时间', this.dateTime[0] + ' ' + '00:00']
|
param[0] = ['开始时间', this.dateTime[0]]
|
||||||
param[1] = ['结束时间', this.dateTime[1] + ' ' + '23:59']
|
param[1] = ['结束时间', this.dateTime[1]]
|
||||||
// param[0] = ['开始时间', this.dateTime[0]]
|
|
||||||
// param[1] = ['结束时间', this.dateTime[1]]
|
|
||||||
param[2] = ['工位号', this.stationNumberValue]
|
param[2] = ['工位号', this.stationNumberValue]
|
||||||
console.log(param, 'param')
|
console.log(param, 'param')
|
||||||
var Data = this.CreateData('11', '物料数据分线_视图_物料条码批次号_查询 ', param)
|
var Data = this.CreateData('11', '物料数据分线_视图_物料条码批次号_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.batchBarcodeValue = response.data[0].物料条码 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.batchBarcode.push({
|
this.batchBarcode.push({
|
||||||
label: response.data[i].物料条码,
|
label: response.data[i].物料条码,
|
||||||
@@ -391,7 +379,6 @@ export default {
|
|||||||
param[1] = ['测量位置', this.measuringPositionValue]
|
param[1] = ['测量位置', this.measuringPositionValue]
|
||||||
var Data = this.CreateData('11', '质量数据查询_测量项目 ', param)
|
var Data = this.CreateData('11', '质量数据查询_测量项目 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
this.measuringProjectValue = response.data[0].测量项目
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.measuringProject.push({
|
this.measuringProject.push({
|
||||||
label: response.data[i].测量项目,
|
label: response.data[i].测量项目,
|
||||||
@@ -410,10 +397,8 @@ export default {
|
|||||||
this.traceabilityCode ? traceabilityCode_check = 1 : (traceabilityCode_check = 0, this.traceabilityCode = '')
|
this.traceabilityCode ? traceabilityCode_check = 1 : (traceabilityCode_check = 0, this.traceabilityCode = '')
|
||||||
this.batchBarcodeValue ? batchBarcodeValue_check = 1 : (batchBarcodeValue_check = 0, this.batchBarcodeValue = '')
|
this.batchBarcodeValue ? batchBarcodeValue_check = 1 : (batchBarcodeValue_check = 0, this.batchBarcodeValue = '')
|
||||||
var param = []
|
var param = []
|
||||||
param[0] = ['开始时间', this.dateTime[0] + ' ' + '00:00']
|
param[0] = ['开始时间', this.dateTime[0]]
|
||||||
param[1] = ['结束时间', this.dateTime[1] + ' ' + '23:59']
|
param[1] = ['结束时间', this.dateTime[1]]
|
||||||
// param[0] = ['开始时间', this.dateTime[0]]
|
|
||||||
// param[1] = ['结束时间', this.dateTime[1]]
|
|
||||||
param[2] = ['发动机型号_ischeck', engineTypeValue_check]
|
param[2] = ['发动机型号_ischeck', engineTypeValue_check]
|
||||||
param[3] = ['发动机型号', this.engineTypeValue]
|
param[3] = ['发动机型号', this.engineTypeValue]
|
||||||
param[4] = ['发动机号_ischeck', assemblyNumberValue_check]
|
param[4] = ['发动机号_ischeck', assemblyNumberValue_check]
|
||||||
@@ -450,10 +435,8 @@ export default {
|
|||||||
this.traceabilityCode ? traceabilityCode_check = 1 : (traceabilityCode_check = 0, this.traceabilityCode = '')
|
this.traceabilityCode ? traceabilityCode_check = 1 : (traceabilityCode_check = 0, this.traceabilityCode = '')
|
||||||
this.batchBarcodeValue ? batchBarcodeValue_check = 1 : (batchBarcodeValue_check = 0, this.batchBarcodeValue = '')
|
this.batchBarcodeValue ? batchBarcodeValue_check = 1 : (batchBarcodeValue_check = 0, this.batchBarcodeValue = '')
|
||||||
var param = []
|
var param = []
|
||||||
param[0] = ['开始时间', this.dateTime[0] + ' ' + '00:00']
|
param[0] = ['开始时间', this.dateTime[0]]
|
||||||
param[1] = ['结束时间', this.dateTime[1] + ' ' + '23:59']
|
param[1] = ['结束时间', this.dateTime[1]]
|
||||||
// param[0] = ['开始时间', this.dateTime[0]]
|
|
||||||
// param[1] = ['结束时间', this.dateTime[1]]
|
|
||||||
param[2] = ['发动机型号_ischeck', engineTypeValue_check]
|
param[2] = ['发动机型号_ischeck', engineTypeValue_check]
|
||||||
param[3] = ['发动机型号', this.engineTypeValue]
|
param[3] = ['发动机型号', this.engineTypeValue]
|
||||||
param[4] = ['发动机号_ischeck', assemblyNumberValue_check]
|
param[4] = ['发动机号_ischeck', assemblyNumberValue_check]
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
filterable
|
filterable
|
||||||
clearable
|
clearable
|
||||||
size="small"
|
size="small"
|
||||||
style="width: 200px"
|
style="width: 200px; margin-left: 13px"
|
||||||
@change="getMeasuringPosition();getTraceabilityCode();getBatchBarcode();getAssemblyNumber()">
|
@change="getPartName();getBatchBarcode();getAssemblyNumber();getTraceabilityCode()">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in stationNumber"
|
v-for="item in stationNumber"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
size="mini"/>
|
size="mini"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<span style="margin-left: 10px">机型:</span>
|
<span style="margin-left: 10px">机型:</span>
|
||||||
<el-select v-model="engineTypeValue" placeholder="请选择机型" filterable clearable size="small" style="width: 240px" @change="getAssemblyNumber()">
|
<el-select v-model="engineTypeValue" placeholder="请选择机型" filterable clearable size="small" style="width: 240px" @change="getPartName();getAssemblyNumber">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in engineType"
|
v-for="item in engineType"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@@ -29,16 +29,18 @@
|
|||||||
size="mini"/>
|
size="mini"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<span style="margin-left: 10px">精确追溯码:</span>
|
<span style="margin-left: 10px">精确追溯码:</span>
|
||||||
<el-select v-model="traceabilityCode" placeholder="请选择精确追溯码" filterable clearable size="small" style="width: 200px">
|
<el-input v-model="traceabilityCode" placeholder="请输入精确追溯码" clearable size="small" style="width: 200px;"/>
|
||||||
<el-option
|
<!-- <span style="margin-left: 10px">精确追溯码:</span>-->
|
||||||
v-for="item in traceabilityCodeArr"
|
<!-- <el-select v-model="traceabilityCode" placeholder="请选择精确追溯码" filterable clearable size="small" style="width: 200px">-->
|
||||||
:key="item.ID"
|
<!-- <el-option-->
|
||||||
:label="item.label"
|
<!-- v-for="item in traceabilityCodeArr"-->
|
||||||
:value="item.value"
|
<!-- :key="item.ID"-->
|
||||||
size="mini"/>
|
<!-- :label="item.label"-->
|
||||||
</el-select>
|
<!-- :value="item.value"-->
|
||||||
<span style="margin-left: 10px">总成编号:</span>
|
<!-- size="mini"/>-->
|
||||||
<el-select v-model="assemblyNumberValue" placeholder="请选择总成编号" filterable clearable size="small" style="width: 200px; margin-left: 13px">
|
<!-- </el-select>-->
|
||||||
|
<span style="margin-left: 10px">分总成编号:</span>
|
||||||
|
<el-select v-model="assemblyNumberValue" placeholder="请选择总成编号" filterable clearable size="small" style="width: 200px">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in assemblyNumber"
|
v-for="item in assemblyNumber"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@@ -46,24 +48,13 @@
|
|||||||
:value="item.value"
|
:value="item.value"
|
||||||
size="mini"/>
|
size="mini"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<!-- <span style="margin-left: 10px">总成编号:</span>-->
|
|
||||||
<!-- <el-input v-model="assemblyNumber" style="width:150px;" placeholder="总成编号" size="small" clearable/>-->
|
|
||||||
<span style="margin-left: 10px">测量位置:</span>
|
|
||||||
<el-select v-model="measuringPositionValue" placeholder="请选择测量位置" filterable clearable size="small" style="width: 200px" @change="getMeasuringProject()">
|
|
||||||
<el-option
|
|
||||||
v-for="item in measuringPosition"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
size="mini"/>
|
|
||||||
</el-select>
|
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 10px">
|
<div style="margin-top: 10px">
|
||||||
<span style="margin-left: 10px">订单号:</span>
|
<span style="margin-left: 10px">零件名称:</span>
|
||||||
<el-select v-model="orderNumberValue" placeholder="请选择订单" clearable filterable size="small" style="width: 200px">
|
<el-select v-model="partNameValue" placeholder="请选择零件名称" filterable clearable size="small" style="width: 200px;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in orderNumber"
|
v-for="item in partName"
|
||||||
:key="item.value"
|
:key="item.ID"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
size="mini"/>
|
size="mini"/>
|
||||||
@@ -80,37 +71,21 @@
|
|||||||
range-separator="~"
|
range-separator="~"
|
||||||
start-placeholder="开始日期"
|
start-placeholder="开始日期"
|
||||||
end-placeholder="结束日期"
|
end-placeholder="结束日期"
|
||||||
@change="getOrderNumber();getTraceabilityCode();getBatchBarcode();getAssemblyNumber()"/>
|
@change="getTraceabilityCode();getBatchBarcode();getAssemblyNumber()"/>
|
||||||
<span style="margin-left: 10px">批次条码:</span>
|
<span style="margin-left: 10px">批次条码:</span>
|
||||||
<el-select v-model="batchBarcodeValue" placeholder="请选择批次条码" clearable filterable size="small" style="width: 200px; margin-left: 13px">
|
<el-input v-model="batchBarcodeValue" placeholder="请输入批次条码" clearable size="small" style="width: 200px; margin-left: 13px"/>
|
||||||
<el-option
|
<!-- <span style="margin-left: 10px">批次条码:</span>-->
|
||||||
v-for="item in batchBarcode"
|
<!-- <el-select v-model="batchBarcodeValue" placeholder="请选择批次条码" clearable filterable size="small" style="width: 200px;margin-left: 13px">-->
|
||||||
:key="item.value"
|
<!-- <el-option-->
|
||||||
:label="item.label"
|
<!-- v-for="item in batchBarcode"-->
|
||||||
:value="item.value"
|
<!-- :key="item.value"-->
|
||||||
size="mini"/>
|
<!-- :label="item.label"-->
|
||||||
</el-select>
|
<!-- :value="item.value"-->
|
||||||
<span style="margin-left: 10px">是否合格:</span>
|
<!-- size="mini"/>-->
|
||||||
<el-select v-model="isQualifiedValue" placeholder="请选择是否合格" clearable size="small" style="width: 200px; margin-left: 13px">
|
<!-- </el-select>-->
|
||||||
<el-option
|
|
||||||
v-for="item in isQualified"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
size="mini"/>
|
|
||||||
</el-select>
|
|
||||||
<span style="margin-left: 10px">测量项目:</span>
|
|
||||||
<el-select v-model="measuringProjectValue" placeholder="请选择测量项目" filterable clearable size="small" style="width: 200px">
|
|
||||||
<el-option
|
|
||||||
v-for="item in measuringProject"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
size="mini"/>
|
|
||||||
</el-select>
|
|
||||||
</div>
|
</div>
|
||||||
<div style="margin: 10px 0 0 89%">
|
<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>
|
<el-button type="info" size="small" icon="el-icon-download" @click="exportExcel()">Excel</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
@@ -140,7 +115,7 @@
|
|||||||
{{ scope.row.发动机型号 }}
|
{{ scope.row.发动机型号 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="总成编号">
|
<el-table-column align="center" label="分总成编号">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.发动机号 }}
|
{{ scope.row.发动机号 }}
|
||||||
</template>
|
</template>
|
||||||
@@ -155,49 +130,44 @@
|
|||||||
{{ scope.row.工序名称 }}
|
{{ scope.row.工序名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="测量位置">
|
<el-table-column align="center" label="零件数量">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.测量位置 }}
|
{{ scope.row.零件数量 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="测量项目">
|
<el-table-column align="center" label="零件名称">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.测量项目 }}
|
{{ scope.row.零件名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="测量值" width="80px">
|
<el-table-column align="center" label="零件图号">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.测量值 }}
|
{{ scope.row.零件图号 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="测量单位" width="80px">
|
<el-table-column align="center" label="物料号">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.测量单位 }}
|
{{ scope.row.物料号 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="理论值" width="80px">
|
<el-table-column align="center" label="生产厂家">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.理论值 }}
|
{{ scope.row.生产厂家 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="值上限" width="80px">
|
<el-table-column align="center" label="物料条码">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.上限值 }}
|
{{ scope.row.物料条码 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="值下限" width="80px">
|
<el-table-column align="center" label="物料条码批次">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.下限值 }}
|
{{ scope.row.物料条码批次 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="生产日期">
|
<el-table-column align="center" label="操作时间">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.生产日期 }}
|
{{ scope.row.操作时间 }}
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column align="center" label="合格标志" width="80px">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.合格标志 }}
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -237,19 +207,21 @@ export default {
|
|||||||
engineType: [], // 机型
|
engineType: [], // 机型
|
||||||
batchBarcode: [], // 批次条码
|
batchBarcode: [], // 批次条码
|
||||||
batchBarcodeValue: '', // 批次条码
|
batchBarcodeValue: '', // 批次条码
|
||||||
|
partName: [], // 零件名称
|
||||||
|
partNameValue: '', // 零件名称
|
||||||
isQualified: [
|
isQualified: [
|
||||||
{
|
{
|
||||||
label: '合格',
|
label: '合格',
|
||||||
value: 1
|
value: 1
|
||||||
}, {
|
}, {
|
||||||
label: '不合格',
|
label: '不合格',
|
||||||
value: 0
|
value: 2
|
||||||
}, {
|
}, {
|
||||||
label: '全部',
|
label: '全部',
|
||||||
value: 2
|
value: 0
|
||||||
}
|
}
|
||||||
], // 是否合格
|
], // 是否合格
|
||||||
isQualifiedValue: 2, // 是否合格
|
isQualifiedValue: 1, // 是否合格
|
||||||
dateTime: '', // 时间
|
dateTime: '', // 时间
|
||||||
loading: false, // 时间
|
loading: false, // 时间
|
||||||
tableData: [], // 时间
|
tableData: [], // 时间
|
||||||
@@ -274,9 +246,9 @@ export default {
|
|||||||
this.getEngineType()
|
this.getEngineType()
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getOrderNumber()
|
|
||||||
this.getTraceabilityCode()
|
this.getTraceabilityCode()
|
||||||
this.getAssemblyNumber()
|
this.getAssemblyNumber()
|
||||||
|
setTimeout(() => { this.getPartName() }, 200)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 表格颜色变化
|
// 表格颜色变化
|
||||||
@@ -294,7 +266,6 @@ export default {
|
|||||||
var param = []
|
var param = []
|
||||||
var Data = this.CreateData('11', 'MES_计划BOM_工位与名称_查询', param)
|
var Data = this.CreateData('11', 'MES_计划BOM_工位与名称_查询', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.stationNumberValue = response.data[0].工位号 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.stationNumber.push({
|
this.stationNumber.push({
|
||||||
label: response.data[i].工位号,
|
label: response.data[i].工位号,
|
||||||
@@ -303,7 +274,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.getBatchBarcode()
|
this.getBatchBarcode()
|
||||||
this.getMeasuringPosition()
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 机型
|
// 机型
|
||||||
@@ -312,7 +282,6 @@ export default {
|
|||||||
var param = []
|
var param = []
|
||||||
var Data = this.CreateData('11', 'MES_基本变量_机型代码_查询 ', param)
|
var Data = this.CreateData('11', 'MES_基本变量_机型代码_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.engineTypeValue = response.data[0].发动机型号 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.engineType.push({
|
this.engineType.push({
|
||||||
label: response.data[i].发动机型号,
|
label: response.data[i].发动机型号,
|
||||||
@@ -321,21 +290,19 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 订单号
|
// 零件名称
|
||||||
getOrderNumber() {
|
getPartName() {
|
||||||
this.orderNumber = []
|
this.partName = []
|
||||||
var param = []
|
var param = []
|
||||||
param[0] = ['开始时间', this.dateTime[0] + ' ' + '00:00']
|
param[0] = ['发动机型号', this.engineTypeValue]
|
||||||
param[1] = ['结束时间', this.dateTime[1] + ' ' + '23:59']
|
param[1] = ['工位号', this.stationNumberValue]
|
||||||
// param[0] = ['开始时间', this.dateTime[0]]
|
var Data = this.CreateData('11', '电子看板装配零件_零件名称_初始化查询 ', param)
|
||||||
// param[1] = ['结束时间', this.dateTime[1]]
|
|
||||||
var Data = this.CreateData('11', '测量数据发动机在线状态_订单号_查询 ', param)
|
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.orderNumberValue = response.data[0].订单号 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.orderNumber.push({
|
this.partName.push({
|
||||||
label: response.data[i].订单号,
|
label: response.data[i].零件名称,
|
||||||
value: response.data[i].订单号
|
value: response.data[i].零件名称,
|
||||||
|
ID: response.data[i].ID
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -358,7 +325,6 @@ export default {
|
|||||||
param[6] = ['分线总线', 2]
|
param[6] = ['分线总线', 2]
|
||||||
var Data = this.CreateData('11', '初始化二维码_查询 ', param)
|
var Data = this.CreateData('11', '初始化二维码_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.traceabilityCode = response.data[0].物料条码 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.traceabilityCodeArr.push({
|
this.traceabilityCodeArr.push({
|
||||||
label: response.data[i].物料条码,
|
label: response.data[i].物料条码,
|
||||||
@@ -385,7 +351,6 @@ export default {
|
|||||||
param[6] = ['分线总线', 2]
|
param[6] = ['分线总线', 2]
|
||||||
var Data = this.CreateData('11', '测量数据合格索引_发动机号_发动机型号_查询 ', param)
|
var Data = this.CreateData('11', '测量数据合格索引_发动机号_发动机型号_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.assemblyNumberValue = response.data[0].发动机号 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.assemblyNumber.push({
|
this.assemblyNumber.push({
|
||||||
label: response.data[i].发动机号,
|
label: response.data[i].发动机号,
|
||||||
@@ -402,34 +367,17 @@ export default {
|
|||||||
// param[0] = ['开始时间', this.dateTime[0]]
|
// param[0] = ['开始时间', this.dateTime[0]]
|
||||||
// param[1] = ['结束时间', this.dateTime[1]]
|
// param[1] = ['结束时间', this.dateTime[1]]
|
||||||
param[2] = ['工位号', this.stationNumberValue]
|
param[2] = ['工位号', this.stationNumberValue]
|
||||||
|
console.log(param, 'param')
|
||||||
var Data = this.CreateData('11', '物料数据分线_视图_物料条码批次号_查询 ', param)
|
var Data = this.CreateData('11', '物料数据分线_视图_物料条码批次号_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.batchBarcodeValue = response.data[0].物料条码批次 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.batchBarcode.push({
|
this.batchBarcode.push({
|
||||||
label: response.data[i].物料条码批次,
|
label: response.data[i].物料条码,
|
||||||
value: response.data[i].物料条码批次
|
value: response.data[i].物料条码
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getMeasuringPosition() {
|
|
||||||
this.measuringPosition = []
|
|
||||||
var param = []
|
|
||||||
param[0] = ['工位号', this.stationNumberValue]
|
|
||||||
var Data = this.CreateData('11', '质量数据查询_测量位置 ', param)
|
|
||||||
this.ExecDatabase(Data).then(response => {
|
|
||||||
if (response.data.length) { this.measuringPositionValue = response.data[0].测量位置 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
|
||||||
this.measuringPosition.push({
|
|
||||||
label: response.data[i].测量位置,
|
|
||||||
value: response.data[i].测量位置
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}).then(() => {
|
|
||||||
this.getMeasuringProject()
|
|
||||||
})
|
|
||||||
},
|
|
||||||
getMeasuringProject() {
|
getMeasuringProject() {
|
||||||
this.measuringProject = []
|
this.measuringProject = []
|
||||||
var param = []
|
var param = []
|
||||||
@@ -437,7 +385,6 @@ export default {
|
|||||||
param[1] = ['测量位置', this.measuringPositionValue]
|
param[1] = ['测量位置', this.measuringPositionValue]
|
||||||
var Data = this.CreateData('11', '质量数据查询_测量项目 ', param)
|
var Data = this.CreateData('11', '质量数据查询_测量项目 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.measuringProjectValue = response.data[0].测量项目 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.measuringProject.push({
|
this.measuringProject.push({
|
||||||
label: response.data[i].测量项目,
|
label: response.data[i].测量项目,
|
||||||
@@ -448,14 +395,13 @@ export default {
|
|||||||
},
|
},
|
||||||
selectDate() {
|
selectDate() {
|
||||||
this.tableData = []
|
this.tableData = []
|
||||||
let engineTypeValue_check, assemblyNumberValue_check, stationNumberValue_check, measuringPositionValue_check, measuringProjectValue_check, traceabilityCode_check, orderNumberValue_check
|
let engineTypeValue_check, assemblyNumberValue_check, stationNumberValue_check, partNameValue_check, traceabilityCode_check, batchBarcodeValue_check
|
||||||
this.engineTypeValue ? engineTypeValue_check = 1 : (engineTypeValue_check = 0, this.engineTypeValue = '')
|
this.engineTypeValue ? engineTypeValue_check = 1 : (engineTypeValue_check = 0, this.engineTypeValue = '')
|
||||||
this.assemblyNumberValue ? assemblyNumberValue_check = 1 : (assemblyNumberValue_check = 0, this.assemblyNumberValue = '')
|
this.assemblyNumberValue ? assemblyNumberValue_check = 1 : (assemblyNumberValue_check = 0, this.assemblyNumberValue = '')
|
||||||
this.stationNumberValue ? stationNumberValue_check = 1 : (stationNumberValue_check = 0, this.stationNumberValue = '')
|
this.stationNumberValue ? stationNumberValue_check = 1 : (stationNumberValue_check = 0, this.stationNumberValue = '')
|
||||||
this.measuringPositionValue ? measuringPositionValue_check = 1 : (measuringPositionValue_check = 0, this.measuringPositionValue = '')
|
this.partNameValue ? partNameValue_check = 1 : (partNameValue_check = 0, this.partNameValue = '')
|
||||||
this.measuringProjectValue ? measuringProjectValue_check = 1 : (measuringProjectValue_check = 0, this.measuringProjectValue = '')
|
|
||||||
this.traceabilityCode ? traceabilityCode_check = 1 : (traceabilityCode_check = 0, this.traceabilityCode = '')
|
this.traceabilityCode ? traceabilityCode_check = 1 : (traceabilityCode_check = 0, this.traceabilityCode = '')
|
||||||
this.orderNumberValue ? orderNumberValue_check = 1 : (orderNumberValue_check = 0, this.orderNumberValue = '')
|
this.batchBarcodeValue ? batchBarcodeValue_check = 1 : (batchBarcodeValue_check = 0, this.batchBarcodeValue = '')
|
||||||
var param = []
|
var param = []
|
||||||
param[0] = ['开始时间', this.dateTime[0] + ' ' + '00:00']
|
param[0] = ['开始时间', this.dateTime[0] + ' ' + '00:00']
|
||||||
param[1] = ['结束时间', this.dateTime[1] + ' ' + '23:59']
|
param[1] = ['结束时间', this.dateTime[1] + ' ' + '23:59']
|
||||||
@@ -467,20 +413,17 @@ export default {
|
|||||||
param[5] = ['发动机号', this.assemblyNumberValue]
|
param[5] = ['发动机号', this.assemblyNumberValue]
|
||||||
param[6] = ['工位号_ischeck', stationNumberValue_check]
|
param[6] = ['工位号_ischeck', stationNumberValue_check]
|
||||||
param[7] = ['工位号', this.stationNumberValue]
|
param[7] = ['工位号', this.stationNumberValue]
|
||||||
param[8] = ['测量位置_ischeck', measuringPositionValue_check]
|
param[8] = ['零件名称_ischeck', partNameValue_check]
|
||||||
param[9] = ['测量位置', this.measuringPositionValue]
|
param[9] = ['零件名称', this.partNameValue]
|
||||||
param[10] = ['测量项目_ischeck', measuringProjectValue_check]
|
param[10] = ['二维码_ischeck', traceabilityCode_check]
|
||||||
param[11] = ['测量项目', this.measuringProjectValue]
|
param[11] = ['二维码', this.traceabilityCode]
|
||||||
param[12] = ['订单号_ischeck', orderNumberValue_check]
|
param[12] = ['物料条码批次_ischeck', batchBarcodeValue_check]
|
||||||
param[13] = ['订单号', this.orderNumberValue]
|
param[13] = ['物料条码批次', this.batchBarcodeValue]
|
||||||
param[14] = ['批次条码_ischeck', traceabilityCode_check]
|
param[14] = ['PageCurrent', this.pageCurrent]
|
||||||
param[15] = ['批次条码', this.traceabilityCode]
|
param[15] = ['PageSize', this.pageSize]
|
||||||
param[16] = ['合格标志', this.isQualifiedValue]
|
param[16] = ['PageCount', '1111', 'int', '1']
|
||||||
param[17] = ['PageCurrent', this.pageCurrent]
|
param[17] = ['ItemCount', '1111', 'int', '1']
|
||||||
param[18] = ['PageSize', this.pageSize]
|
var Data = this.CreateData('11', '物料数据分线_视图_查询', param)
|
||||||
param[19] = ['PageCount', '1111', 'int', '1']
|
|
||||||
param[20] = ['ItemCount', '1111', 'int', '1']
|
|
||||||
var Data = this.CreateData('11', '质量数据_发动机分线质量数据_综合查询', param)
|
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
console.log(response, 66)
|
console.log(response, 66)
|
||||||
if (response.data.result.length !== 0) {
|
if (response.data.result.length !== 0) {
|
||||||
@@ -492,14 +435,13 @@ export default {
|
|||||||
},
|
},
|
||||||
exportExcel() {
|
exportExcel() {
|
||||||
if (this.tableData.length !== 0) {
|
if (this.tableData.length !== 0) {
|
||||||
let engineTypeValue_check, assemblyNumberValue_check, stationNumberValue_check, measuringPositionValue_check, measuringProjectValue_check, traceabilityCode_check, orderNumberValue_check
|
let engineTypeValue_check, assemblyNumberValue_check, stationNumberValue_check, partNameValue_check, traceabilityCode_check, batchBarcodeValue_check
|
||||||
this.engineTypeValue ? engineTypeValue_check = 1 : (engineTypeValue_check = 0, this.engineTypeValue = '')
|
this.engineTypeValue ? engineTypeValue_check = 1 : (engineTypeValue_check = 0, this.engineTypeValue = '')
|
||||||
this.assemblyNumberValue ? assemblyNumberValue_check = 1 : (assemblyNumberValue_check = 0, this.assemblyNumberValue = '')
|
this.assemblyNumberValue ? assemblyNumberValue_check = 1 : (assemblyNumberValue_check = 0, this.assemblyNumberValue = '')
|
||||||
this.stationNumberValue ? stationNumberValue_check = 1 : (stationNumberValue_check = 0, this.stationNumberValue = '')
|
this.stationNumberValue ? stationNumberValue_check = 1 : (stationNumberValue_check = 0, this.stationNumberValue = '')
|
||||||
this.measuringPositionValue ? measuringPositionValue_check = 1 : (measuringPositionValue_check = 0, this.measuringPositionValue = '')
|
this.partNameValue ? partNameValue_check = 1 : (partNameValue_check = 0, this.partNameValue = '')
|
||||||
this.measuringProjectValue ? measuringProjectValue_check = 1 : (measuringProjectValue_check = 0, this.measuringProjectValue = '')
|
|
||||||
this.traceabilityCode ? traceabilityCode_check = 1 : (traceabilityCode_check = 0, this.traceabilityCode = '')
|
this.traceabilityCode ? traceabilityCode_check = 1 : (traceabilityCode_check = 0, this.traceabilityCode = '')
|
||||||
this.orderNumberValue ? orderNumberValue_check = 1 : (orderNumberValue_check = 0, this.orderNumberValue = '')
|
this.batchBarcodeValue ? batchBarcodeValue_check = 1 : (batchBarcodeValue_check = 0, this.batchBarcodeValue = '')
|
||||||
var param = []
|
var param = []
|
||||||
param[0] = ['开始时间', this.dateTime[0] + ' ' + '00:00']
|
param[0] = ['开始时间', this.dateTime[0] + ' ' + '00:00']
|
||||||
param[1] = ['结束时间', this.dateTime[1] + ' ' + '23:59']
|
param[1] = ['结束时间', this.dateTime[1] + ' ' + '23:59']
|
||||||
@@ -511,16 +453,13 @@ export default {
|
|||||||
param[5] = ['发动机号', this.assemblyNumberValue]
|
param[5] = ['发动机号', this.assemblyNumberValue]
|
||||||
param[6] = ['工位号_ischeck', stationNumberValue_check]
|
param[6] = ['工位号_ischeck', stationNumberValue_check]
|
||||||
param[7] = ['工位号', this.stationNumberValue]
|
param[7] = ['工位号', this.stationNumberValue]
|
||||||
param[8] = ['测量位置_ischeck', measuringPositionValue_check]
|
param[8] = ['零件名称_ischeck', partNameValue_check]
|
||||||
param[9] = ['测量位置', this.measuringPositionValue]
|
param[9] = ['零件名称', this.partNameValue]
|
||||||
param[10] = ['测量项目_ischeck', measuringProjectValue_check]
|
param[10] = ['二维码_ischeck', traceabilityCode_check]
|
||||||
param[11] = ['测量项目', this.measuringProjectValue]
|
param[11] = ['二维码', this.traceabilityCode]
|
||||||
param[12] = ['订单号_ischeck', orderNumberValue_check]
|
param[12] = ['物料条码批次_ischeck', batchBarcodeValue_check]
|
||||||
param[13] = ['订单号', this.orderNumberValue]
|
param[13] = ['物料条码批次', this.batchBarcodeValue]
|
||||||
param[14] = ['批次条码_ischeck', traceabilityCode_check]
|
var Data = this.CreateData('2001', '物料数据分线查询_报表新', param)
|
||||||
param[15] = ['批次条码', this.traceabilityCode]
|
|
||||||
param[16] = ['合格标志', this.isQualifiedValue]
|
|
||||||
var Data = this.CreateData('2001', '质量数据分线_导出新', param)
|
|
||||||
this.exportExcel_NPOI(Data)
|
this.exportExcel_NPOI(Data)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('暂无数据')
|
this.$message.warning('暂无数据')
|
||||||
|
|||||||
@@ -22,14 +22,15 @@
|
|||||||
size="mini"/>
|
size="mini"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<span style="margin-left: 10px">精确追溯码:</span>
|
<span style="margin-left: 10px">精确追溯码:</span>
|
||||||
<el-select v-model="traceabilityCode" placeholder="请选择精确追溯码" filterable clearable size="small" style="width: 200px">
|
<el-input v-model="traceabilityCode" placeholder="请输入精确追溯码" clearable size="small" style="width: 200px;"/>
|
||||||
<el-option
|
<!-- <el-select v-model="traceabilityCode" placeholder="请选择精确追溯码" filterable clearable size="small" style="width: 200px">-->
|
||||||
v-for="item in traceabilityCodeArr"
|
<!-- <el-option-->
|
||||||
:key="item.ID"
|
<!-- v-for="item in traceabilityCodeArr"-->
|
||||||
:label="item.label"
|
<!-- :key="item.ID"-->
|
||||||
:value="item.value"
|
<!-- :label="item.label"-->
|
||||||
size="mini"/>
|
<!-- :value="item.value"-->
|
||||||
</el-select>
|
<!-- size="mini"/>-->
|
||||||
|
<!-- </el-select>-->
|
||||||
<span style="margin-left: 10px">总成编号:</span>
|
<span style="margin-left: 10px">总成编号:</span>
|
||||||
<el-select v-model="assemblyNumberValue" placeholder="请选择总成编号" filterable clearable size="small" style="width: 200px">
|
<el-select v-model="assemblyNumberValue" placeholder="请选择总成编号" filterable clearable size="small" style="width: 200px">
|
||||||
<el-option
|
<el-option
|
||||||
@@ -64,17 +65,18 @@
|
|||||||
end-placeholder="结束日期"
|
end-placeholder="结束日期"
|
||||||
@change="getTraceabilityCode();getBatchBarcode();getAssemblyNumber()"/>
|
@change="getTraceabilityCode();getBatchBarcode();getAssemblyNumber()"/>
|
||||||
<span style="margin-left: 10px">批次条码:</span>
|
<span style="margin-left: 10px">批次条码:</span>
|
||||||
<el-select v-model="batchBarcodeValue" placeholder="请选择批次条码" clearable filterable size="small" style="width: 200px;margin-left: 13px">
|
<el-input v-model="batchBarcodeValue" placeholder="请输入批次条码" clearable size="small" style="width: 200px; margin-left: 13px"/>
|
||||||
<el-option
|
<!-- <el-select v-model="batchBarcodeValue" placeholder="请选择批次条码" clearable filterable size="small" style="width: 200px;margin-left: 13px">-->
|
||||||
v-for="item in batchBarcode"
|
<!-- <el-option-->
|
||||||
:key="item.value"
|
<!-- v-for="item in batchBarcode"-->
|
||||||
:label="item.label"
|
<!-- :key="item.value"-->
|
||||||
:value="item.value"
|
<!-- :label="item.label"-->
|
||||||
size="mini"/>
|
<!-- :value="item.value"-->
|
||||||
</el-select>
|
<!-- size="mini"/>-->
|
||||||
|
<!-- </el-select>-->
|
||||||
</div>
|
</div>
|
||||||
<div style="margin: 10px 0 0 89%">
|
<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>
|
<el-button type="info" size="small" icon="el-icon-download" @click="exportExcel()">Excel</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
@@ -255,7 +257,6 @@ export default {
|
|||||||
var param = []
|
var param = []
|
||||||
var Data = this.CreateData('11', 'MES_计划BOM_工位与名称_查询', param)
|
var Data = this.CreateData('11', 'MES_计划BOM_工位与名称_查询', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.stationNumberValue = response.data[0].工位号 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.stationNumber.push({
|
this.stationNumber.push({
|
||||||
label: response.data[i].工位号,
|
label: response.data[i].工位号,
|
||||||
@@ -273,7 +274,6 @@ export default {
|
|||||||
var param = []
|
var param = []
|
||||||
var Data = this.CreateData('11', 'MES_基本变量_机型代码_查询 ', param)
|
var Data = this.CreateData('11', 'MES_基本变量_机型代码_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.engineTypeValue = response.data[0].发动机型号 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.engineType.push({
|
this.engineType.push({
|
||||||
label: response.data[i].发动机型号,
|
label: response.data[i].发动机型号,
|
||||||
@@ -290,7 +290,6 @@ export default {
|
|||||||
param[1] = ['工位号', this.stationNumberValue]
|
param[1] = ['工位号', this.stationNumberValue]
|
||||||
var Data = this.CreateData('11', '电子看板装配零件_零件名称_初始化查询 ', param)
|
var Data = this.CreateData('11', '电子看板装配零件_零件名称_初始化查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.partNameValue = response.data[0].零件名称 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.partName.push({
|
this.partName.push({
|
||||||
label: response.data[i].零件名称,
|
label: response.data[i].零件名称,
|
||||||
@@ -318,7 +317,6 @@ export default {
|
|||||||
param[6] = ['分线总线', 1]
|
param[6] = ['分线总线', 1]
|
||||||
var Data = this.CreateData('11', '初始化二维码_查询 ', param)
|
var Data = this.CreateData('11', '初始化二维码_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) { this.traceabilityCode = response.data[0].物料条码 }
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.traceabilityCodeArr.push({
|
this.traceabilityCodeArr.push({
|
||||||
label: response.data[i].物料条码,
|
label: response.data[i].物料条码,
|
||||||
@@ -345,7 +343,6 @@ export default {
|
|||||||
param[6] = ['分线总线', 1]
|
param[6] = ['分线总线', 1]
|
||||||
var Data = this.CreateData('11', '测量数据合格索引_发动机号_发动机型号_查询 ', param)
|
var Data = this.CreateData('11', '测量数据合格索引_发动机号_发动机型号_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) this.assemblyNumberValue = response.data[0].发动机号
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.assemblyNumber.push({
|
this.assemblyNumber.push({
|
||||||
label: response.data[i].发动机号,
|
label: response.data[i].发动机号,
|
||||||
@@ -364,7 +361,6 @@ export default {
|
|||||||
param[2] = ['工位号', this.stationNumberValue]
|
param[2] = ['工位号', this.stationNumberValue]
|
||||||
var Data = this.CreateData('11', '物料数据_视图_物料条码批次号_查询 ', param)
|
var Data = this.CreateData('11', '物料数据_视图_物料条码批次号_查询 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) this.batchBarcodeValue = response.data[0].物料条码
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.batchBarcode.push({
|
this.batchBarcode.push({
|
||||||
label: response.data[i].物料条码,
|
label: response.data[i].物料条码,
|
||||||
@@ -379,7 +375,6 @@ export default {
|
|||||||
param[0] = ['工位号', this.stationNumberValue]
|
param[0] = ['工位号', this.stationNumberValue]
|
||||||
var Data = this.CreateData('11', '质量数据查询_测量位置 ', param)
|
var Data = this.CreateData('11', '质量数据查询_测量位置 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) this.measuringPositionValue = response.data[0].测量位置
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.measuringPosition.push({
|
this.measuringPosition.push({
|
||||||
label: response.data[i].测量位置,
|
label: response.data[i].测量位置,
|
||||||
@@ -397,7 +392,6 @@ export default {
|
|||||||
param[1] = ['测量位置', this.measuringPositionValue]
|
param[1] = ['测量位置', this.measuringPositionValue]
|
||||||
var Data = this.CreateData('11', '质量数据查询_测量项目 ', param)
|
var Data = this.CreateData('11', '质量数据查询_测量项目 ', param)
|
||||||
this.ExecDatabase(Data).then(response => {
|
this.ExecDatabase(Data).then(response => {
|
||||||
if (response.data.length) this.measuringProjectValue = response.data[0].测量项目
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.measuringProject.push({
|
this.measuringProject.push({
|
||||||
label: response.data[i].测量项目,
|
label: response.data[i].测量项目,
|
||||||
@@ -472,7 +466,7 @@ export default {
|
|||||||
param[11] = ['二维码', this.traceabilityCode]
|
param[11] = ['二维码', this.traceabilityCode]
|
||||||
param[12] = ['物料条码批次_ischeck', batchBarcodeValue_check]
|
param[12] = ['物料条码批次_ischeck', batchBarcodeValue_check]
|
||||||
param[13] = ['物料条码批次', this.batchBarcodeValue]
|
param[13] = ['物料条码批次', this.batchBarcodeValue]
|
||||||
var Data = this.CreateData('2001', '物料数据查询_报表', param)
|
var Data = this.CreateData('2001', '物料数据查询_报表新', param)
|
||||||
this.exportExcel_NPOI(Data)
|
this.exportExcel_NPOI(Data)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('暂无数据')
|
this.$message.warning('暂无数据')
|
||||||
|
|||||||
@@ -369,9 +369,9 @@ export default {
|
|||||||
this.yData[j] = 0
|
this.yData[j] = 0
|
||||||
}
|
}
|
||||||
if (this.xData[j] === response.data[i].工位号) {
|
if (this.xData[j] === response.data[i].工位号) {
|
||||||
if (response.data[i].是否合格 === 'PASS') {
|
if (response.data[i].是否合格 === '0') {
|
||||||
this.number[j]++
|
this.number[j]++
|
||||||
} else if (response.data[i].是否合格 === 'FAIL') {
|
} else if (response.data[i].是否合格 === '1') {
|
||||||
this.yData[j]++
|
this.yData[j]++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,8 @@
|
|||||||
format="yyyy-MM-dd"
|
format="yyyy-MM-dd"
|
||||||
range-separator="~"
|
range-separator="~"
|
||||||
start-placeholder="开始日期"
|
start-placeholder="开始日期"
|
||||||
end-placeholder="结束日期"/>
|
end-placeholder="结束日期"
|
||||||
|
@change="JudgeDateTime"/>
|
||||||
<span style="margin-left: 10px">工位号:</span>
|
<span style="margin-left: 10px">工位号:</span>
|
||||||
<el-select v-model="stationNumberValue" placeholder="请选择工位号" clearable filterable size="small" style="width: 200px; margin-left: 13px">
|
<el-select v-model="stationNumberValue" placeholder="请选择工位号" clearable filterable size="small" style="width: 200px; margin-left: 13px">
|
||||||
<el-option
|
<el-option
|
||||||
@@ -138,6 +139,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.initialization()
|
||||||
|
this.getStationNumber()
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
initialization() {
|
||||||
var year, month, day, audiTime
|
var year, month, day, audiTime
|
||||||
this.date = new Date() // 修改数据date
|
this.date = new Date() // 修改数据date
|
||||||
year = new Date().getFullYear()
|
year = new Date().getFullYear()
|
||||||
@@ -146,11 +154,25 @@ export default {
|
|||||||
audiTime = year + '-' + month + '-' + day
|
audiTime = year + '-' + month + '-' + day
|
||||||
console.log(audiTime, 'audiTime')
|
console.log(audiTime, 'audiTime')
|
||||||
this.dateTime = [audiTime, audiTime]
|
this.dateTime = [audiTime, audiTime]
|
||||||
this.getStationNumber()
|
|
||||||
},
|
},
|
||||||
mounted() {
|
DateDiff(sDate1, sDate2) {
|
||||||
|
// sDate1和sDate2是2022-08-18格式
|
||||||
|
var aDate1, aDate2, oDate1, oDate2, iDays
|
||||||
|
aDate1 = sDate1.split('-')
|
||||||
|
oDate1 = new Date(aDate1[1] + '/' + aDate1[2] + '/' + aDate1[0])
|
||||||
|
aDate2 = sDate2.split('-')
|
||||||
|
oDate2 = new Date(aDate2[1] + '/' + aDate2[2] + '/' + aDate2[0])
|
||||||
|
iDays = parseInt(Math.abs(oDate1 - oDate2) / 1000 / 60 / 60 / 24)
|
||||||
|
return iDays
|
||||||
|
},
|
||||||
|
JudgeDateTime() {
|
||||||
|
var n = this.DateDiff(this.dateTime[0], this.dateTime[1])
|
||||||
|
console.log(n, '时间差')
|
||||||
|
if (n > 31) {
|
||||||
|
this.$message.error('时间范围不得超过31天!')
|
||||||
|
this.initialization()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
|
||||||
// 表格颜色变化
|
// 表格颜色变化
|
||||||
tableRowClassName({ row, rowIndex }) {
|
tableRowClassName({ row, rowIndex }) {
|
||||||
// console.log(row, rowIndex)
|
// console.log(row, rowIndex)
|
||||||
|
|||||||
@@ -14,7 +14,8 @@
|
|||||||
format="yyyy-MM-dd"
|
format="yyyy-MM-dd"
|
||||||
range-separator="~"
|
range-separator="~"
|
||||||
start-placeholder="开始日期"
|
start-placeholder="开始日期"
|
||||||
end-placeholder="结束日期"/>
|
end-placeholder="结束日期"
|
||||||
|
@change="JudgeDateTime"/>
|
||||||
<el-button type="primary" plain size="small" icon="el-icon-search" style="margin-left: 5px" @click="pageSize=12;pageCurrent=1;searchOrder();searchOrder1()">查询</el-button>
|
<el-button type="primary" plain size="small" icon="el-icon-search" style="margin-left: 5px" @click="pageSize=12;pageCurrent=1;searchOrder();searchOrder1()">查询</el-button>
|
||||||
<!-- <el-button type="info" size="small" icon="el-icon-download" @click="exportExcel()">Excel</el-button>-->
|
<!-- <el-button type="info" size="small" icon="el-icon-download" @click="exportExcel()">Excel</el-button>-->
|
||||||
</div>
|
</div>
|
||||||
@@ -99,6 +100,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.initialization()
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
initialization() {
|
||||||
var year, month, day, audiTime
|
var year, month, day, audiTime
|
||||||
this.date = new Date() // 修改数据date
|
this.date = new Date() // 修改数据date
|
||||||
year = new Date().getFullYear()
|
year = new Date().getFullYear()
|
||||||
@@ -108,9 +115,24 @@ export default {
|
|||||||
console.log(audiTime, 'audiTime')
|
console.log(audiTime, 'audiTime')
|
||||||
this.dateTime = [audiTime, audiTime]
|
this.dateTime = [audiTime, audiTime]
|
||||||
},
|
},
|
||||||
mounted() {
|
DateDiff(sDate1, sDate2) {
|
||||||
|
// sDate1和sDate2是2022-08-18格式
|
||||||
|
var aDate1, aDate2, oDate1, oDate2, iDays
|
||||||
|
aDate1 = sDate1.split('-')
|
||||||
|
oDate1 = new Date(aDate1[1] + '/' + aDate1[2] + '/' + aDate1[0])
|
||||||
|
aDate2 = sDate2.split('-')
|
||||||
|
oDate2 = new Date(aDate2[1] + '/' + aDate2[2] + '/' + aDate2[0])
|
||||||
|
iDays = parseInt(Math.abs(oDate1 - oDate2) / 1000 / 60 / 60 / 24)
|
||||||
|
return iDays
|
||||||
|
},
|
||||||
|
JudgeDateTime() {
|
||||||
|
var n = this.DateDiff(this.dateTime[0], this.dateTime[1])
|
||||||
|
console.log(n, '时间差')
|
||||||
|
if (n > 31) {
|
||||||
|
this.$message.error('时间范围不得超过31天!')
|
||||||
|
this.initialization()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
|
||||||
// 表格颜色变化
|
// 表格颜色变化
|
||||||
tableRowClassName({ row, rowIndex }) {
|
tableRowClassName({ row, rowIndex }) {
|
||||||
// console.log(row, rowIndex)
|
// console.log(row, rowIndex)
|
||||||
|
|||||||
@@ -14,7 +14,8 @@
|
|||||||
format="yyyy-MM-dd"
|
format="yyyy-MM-dd"
|
||||||
range-separator="~"
|
range-separator="~"
|
||||||
start-placeholder="开始日期"
|
start-placeholder="开始日期"
|
||||||
end-placeholder="结束日期"/>
|
end-placeholder="结束日期"
|
||||||
|
@change="JudgeDateTime"/>
|
||||||
<span style="margin-left: 10px">工位号:</span>
|
<span style="margin-left: 10px">工位号:</span>
|
||||||
<el-select v-model="stationNumberValue" placeholder="请选择工位号" clearable filterable size="small" style="width: 200px; margin-left: 13px">
|
<el-select v-model="stationNumberValue" placeholder="请选择工位号" clearable filterable size="small" style="width: 200px; margin-left: 13px">
|
||||||
<el-option
|
<el-option
|
||||||
@@ -160,6 +161,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.initialization()
|
||||||
|
this.getStationNumber()
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
initialization() {
|
||||||
var year, month, day, audiTime
|
var year, month, day, audiTime
|
||||||
this.date = new Date() // 修改数据date
|
this.date = new Date() // 修改数据date
|
||||||
year = new Date().getFullYear()
|
year = new Date().getFullYear()
|
||||||
@@ -168,18 +176,23 @@ export default {
|
|||||||
audiTime = year + '-' + month + '-' + day
|
audiTime = year + '-' + month + '-' + day
|
||||||
console.log(audiTime, 'audiTime')
|
console.log(audiTime, 'audiTime')
|
||||||
this.dateTime = [audiTime, audiTime]
|
this.dateTime = [audiTime, audiTime]
|
||||||
this.getStationNumber()
|
|
||||||
},
|
},
|
||||||
mounted() {
|
DateDiff(sDate1, sDate2) {
|
||||||
|
// sDate1和sDate2是2006-12-18格式
|
||||||
|
var aDate1, aDate2, oDate1, oDate2, iDays
|
||||||
|
aDate1 = sDate1.split('-')
|
||||||
|
oDate1 = new Date(aDate1[1] + '/' + aDate1[2] + '/' + aDate1[0])
|
||||||
|
aDate2 = sDate2.split('-')
|
||||||
|
oDate2 = new Date(aDate2[1] + '/' + aDate2[2] + '/' + aDate2[0])
|
||||||
|
iDays = parseInt(Math.abs(oDate1 - oDate2) / 1000 / 60 / 60 / 24)
|
||||||
|
return iDays
|
||||||
},
|
},
|
||||||
methods: {
|
JudgeDateTime() {
|
||||||
// 表格颜色变化
|
var n = this.DateDiff(this.dateTime[0], this.dateTime[1])
|
||||||
tableRowClassName({ row, rowIndex }) {
|
console.log(n, '时间差')
|
||||||
// console.log(row, rowIndex)
|
if (n > 31) {
|
||||||
if (rowIndex % 2 === 0) {
|
this.$message.error('时间范围不得超过31天!')
|
||||||
return 'black'
|
this.initialization()
|
||||||
} else {
|
|
||||||
return 'red'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 工位号
|
// 工位号
|
||||||
@@ -308,6 +321,15 @@ export default {
|
|||||||
this.drawLine()
|
this.drawLine()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 表格颜色变化
|
||||||
|
tableRowClassName({ row, rowIndex }) {
|
||||||
|
// console.log(row, rowIndex)
|
||||||
|
if (rowIndex % 2 === 0) {
|
||||||
|
return 'black'
|
||||||
|
} else {
|
||||||
|
return 'red'
|
||||||
|
}
|
||||||
|
},
|
||||||
// 分页
|
// 分页
|
||||||
handleSizeChange(val) {
|
handleSizeChange(val) {
|
||||||
this.pageCurrent = 1
|
this.pageCurrent = 1
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ export const name4_config = `OP9999`
|
|||||||
|
|
||||||
var url = `http://localhost:8100`
|
var url = `http://localhost:8100`
|
||||||
// var url = `http://124.220.15.242:8104`
|
// var url = `http://124.220.15.242:8104`
|
||||||
|
// var url = `http://124.220.15.242:8110` // AP
|
||||||
|
|
||||||
export const readFile_config = url + `/webpage/file/` // invoice
|
export const readFile_config = url + `/webpage/file/` // invoice
|
||||||
export const readImg_config = url + `/webpage/img/` // delivery/MS/performancebond
|
export const readImg_config = url + `/webpage/img/` // delivery/MS/performancebond
|
||||||
|
|||||||
Reference in New Issue
Block a user