|
|
@ -48,6 +48,21 @@ |
|
|
<el-form-item label=" " > |
|
|
<el-form-item label=" " > |
|
|
<el-button @click="search()" style="margin-left: 0px;margin-top: 0px" type="primary">查询</el-button> |
|
|
<el-button @click="search()" style="margin-left: 0px;margin-top: 0px" type="primary">查询</el-button> |
|
|
<el-button @click="addAbnormal()" style="margin-left: 0px;margin-top: 0px" type="primary">新增</el-button> |
|
|
<el-button @click="addAbnormal()" style="margin-left: 0px;margin-top: 0px" type="primary">新增</el-button> |
|
|
|
|
|
<download-excel |
|
|
|
|
|
:fields="exportDataStandard" |
|
|
|
|
|
:data="tableData" |
|
|
|
|
|
type="xlsx" |
|
|
|
|
|
:name="exportName" |
|
|
|
|
|
:header="exportHeader" |
|
|
|
|
|
:footer="exportFooter" |
|
|
|
|
|
:defaultValue="exportDefaultValue" |
|
|
|
|
|
:fetch="createExportData" |
|
|
|
|
|
:before-generate="startDownload" |
|
|
|
|
|
:before-finish="finishDownload" |
|
|
|
|
|
worksheet="导出信息" |
|
|
|
|
|
class="el-button el-button--primary el-button--medium"> |
|
|
|
|
|
{{'导出'}} |
|
|
|
|
|
</download-excel> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-table |
|
|
<el-table |
|
|
@ -76,6 +91,20 @@ |
|
|
width="60" |
|
|
width="60" |
|
|
label="派工单号"> |
|
|
label="派工单号"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="operatorDesc" |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="left" |
|
|
|
|
|
width="60" |
|
|
|
|
|
label="操作员"> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="productionLineDesc" |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="left" |
|
|
|
|
|
width="60" |
|
|
|
|
|
label="生产线"> |
|
|
|
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="feedbackDate" |
|
|
prop="feedbackDate" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
@ -242,6 +271,56 @@ |
|
|
name: 'AbnormalFeedBack', |
|
|
name: 'AbnormalFeedBack', |
|
|
data () { |
|
|
data () { |
|
|
return { |
|
|
return { |
|
|
|
|
|
|
|
|
|
|
|
searchData:{ |
|
|
|
|
|
userId:this.$store.state.user.name, |
|
|
|
|
|
startDate:'', |
|
|
|
|
|
endDate:'', |
|
|
|
|
|
abnormalCode:'', |
|
|
|
|
|
site:'', |
|
|
|
|
|
active:'', |
|
|
|
|
|
}, |
|
|
|
|
|
// 导出 start |
|
|
|
|
|
exportData: [], |
|
|
|
|
|
exportDataStandard: { |
|
|
|
|
|
"工厂编号": "site", |
|
|
|
|
|
"生产订单": "orderNo", |
|
|
|
|
|
"派工单号": "seqNo", |
|
|
|
|
|
"操作员": "operatorDesc", |
|
|
|
|
|
"生产线": "productionLineDesc", |
|
|
|
|
|
"反馈时间": "feedbackDate", |
|
|
|
|
|
"反馈人": "feedbackBy", |
|
|
|
|
|
"状态": "status", |
|
|
|
|
|
"异常原因": "abnormalDesc", |
|
|
|
|
|
"异常描述": "abnormalRemark", |
|
|
|
|
|
"紧急处理方式": "treatmentTemporary", |
|
|
|
|
|
"温度": "temperatureTemporary", |
|
|
|
|
|
"压力": "pressureTemporary", |
|
|
|
|
|
"时间": "timeTemporary", |
|
|
|
|
|
"投料量": "feedingTemporary", |
|
|
|
|
|
"机台": "resourceTemporary", |
|
|
|
|
|
"功率": "efficiencyTemporary", |
|
|
|
|
|
"速度": "speedTemporary", |
|
|
|
|
|
"材料": "materialTemporary", |
|
|
|
|
|
"模具": "mouldTemporary", |
|
|
|
|
|
"工装": "workClothesTemporary", |
|
|
|
|
|
"长久处理方式": "treatment", |
|
|
|
|
|
"温度 ": "temperature", |
|
|
|
|
|
"压力 ": "pressure", |
|
|
|
|
|
"时间 ": "time", |
|
|
|
|
|
"投料量 ": "feeding", |
|
|
|
|
|
"机台 ": "resource", |
|
|
|
|
|
"功率 ": "efficiency", |
|
|
|
|
|
"速度 ": "speed", |
|
|
|
|
|
"材料 ": "material", |
|
|
|
|
|
"模具 ": "mould", |
|
|
|
|
|
"工装 ": "workClothes", |
|
|
|
|
|
}, |
|
|
|
|
|
exportName: "异常反馈清单"+this.getStrDate(), |
|
|
|
|
|
exportHeader: ["异常反馈清单"], |
|
|
|
|
|
exportFooter: [], |
|
|
|
|
|
exportDefaultValue: "", |
|
|
|
|
|
// 导出 end |
|
|
dataListLoading:false, |
|
|
dataListLoading:false, |
|
|
// 导出 end |
|
|
// 导出 end |
|
|
height:200, |
|
|
height:200, |
|
|
@ -257,14 +336,6 @@ |
|
|
abnormalRemark:'', |
|
|
abnormalRemark:'', |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
searchData:{ |
|
|
|
|
|
userId:this.$store.state.user.name, |
|
|
|
|
|
startDate:'', |
|
|
|
|
|
endDate:'', |
|
|
|
|
|
abnormalCode:'', |
|
|
|
|
|
site:'', |
|
|
|
|
|
active:'', |
|
|
|
|
|
}, |
|
|
|
|
|
addModalFlag:false, |
|
|
addModalFlag:false, |
|
|
modalFlag:false, |
|
|
modalFlag:false, |
|
|
disableFlag4:false, |
|
|
disableFlag4:false, |
|
|
@ -476,6 +547,28 @@ |
|
|
}).catch(() => { |
|
|
}).catch(() => { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
createExportData() { |
|
|
|
|
|
|
|
|
|
|
|
return this.tableData; |
|
|
|
|
|
}, |
|
|
|
|
|
startDownload() { |
|
|
|
|
|
// this.exportData = this.dataList |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
finishDownload() { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
getStrDate() { |
|
|
|
|
|
let dd = new Date(); |
|
|
|
|
|
let Y = dd.getFullYear(); |
|
|
|
|
|
let M = (dd.getMonth() + 1) < 10 ? "0" + (dd.getMonth() + 1) : (dd.getMonth() + 1);//获取当前月份的日期,不足10补0 |
|
|
|
|
|
let D = dd.getDate() < 10 ? "0" + dd.getDate() : dd.getDate();//获取当前几号,不足10补0 |
|
|
|
|
|
let H = dd.getHours() < 10 ? "0" + dd.getHours() : dd.getHours(); |
|
|
|
|
|
let MM = dd.getMinutes() < 10 ? "0" + dd.getMinutes() : dd.getMinutes(); |
|
|
|
|
|
let S = dd.getSeconds() < 10 ? "0" + dd.getSeconds() : dd.getSeconds(); |
|
|
|
|
|
return Y + M + D + H + MM + S; |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
this.getAllAbnormalItem(); |
|
|
this.getAllAbnormalItem(); |
|
|
|