Browse Source

组件开发

master
rui_li 4 years ago
parent
commit
eb4f953201
  1. 336
      src/views/modules/yieldReport/com_defect_roll.vue
  2. 382
      src/views/modules/yieldReport/com_finish_roll.vue
  3. 152
      src/views/modules/yieldReport/com_merge_roll.vue
  4. 317
      src/views/modules/yieldReport/com_produce_down.vue
  5. 115
      src/views/modules/yieldReport/com_produce_material.vue
  6. 252
      src/views/modules/yieldReport/com_produce_report_normal.vue
  7. 148
      src/views/modules/yieldReport/com_produce_tool.vue
  8. 168
      src/views/modules/yieldReport/com_separate_roll.vue
  9. 158
      src/views/modules/yieldReport/com_start_produce.vue
  10. 145
      src/views/modules/yieldReport/com_start_tuning.vue
  11. 8
      src/views/modules/yieldReport/com_switch_operator.vue
  12. 135
      src/views/modules/yieldReport/com_switch_roll.vue

336
src/views/modules/yieldReport/com_defect_roll.vue

@ -0,0 +1,336 @@
<template>
<div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="630px" style="height: 680px;" class="customer-dialog">
<el-container>
<el-container style="height: 140px;">
<el-form :inline="true" label-position="top" label-width="80px">
<!-- 不良代码 和日期 -->
<el-row>
<el-col :span="6">
<el-form-item :label="'不良代码:'">
<el-input v-model="scheduleData.seqNo" style="width: 120px"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="'不良数量:'">
<el-input v-model="scheduleData.seqNo" style="width: 120px"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="'检验日期:'">
<el-date-picker v-model="scheduleData.reportDate"
style="width: 120px" format="yyyy-MM-dd"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="18">
<el-form-item :label="'不良原因:'">
<el-input v-model="scheduleData.seqNo" style="width: 495px"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-container>
<el-container style="margin-left: 60px;">
<el-form :inline="true" label-position="top" label-width="80px">
<!-- 不良代码 和日期 -->
<el-row>
<el-col :span="6">
<el-form-item style="margin-top: 10px;">
<el-button type="primary"
style="margin-left: -10px; margin-bottom: 5px;">
列表</el-button>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<el-form-item style="margin-top: 15px;">
<el-button type="primary"
style="margin-left: -10px; margin-bottom: 5px;">
插入</el-button>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<el-form-item style="margin-top: 15px;">
<el-button type="primary" @click="closeDialog"
style="margin-left: -10px; margin-bottom: 5px;">
关闭</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-container>
</el-container>
<!-- 不良记录 -->
<el-container>
<fieldset class="customer-fieldset" style="margin-top: -35px; margin-bottom: 15px;">
<legend>不良记录</legend>
<el-container style="width: 580px;">
<el-table
height="250"
:data="sfdcDefectList"
border
v-loading="dataListLoading"
style="width: 100%; margin-top: -5px;">
<el-table-column
v-for="(item,index) in columnDefectArray" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed"
:width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
</el-table>
</el-container>
</fieldset>
</el-container>
</el-dialog>
</div>
</template>
<script>
export default {
name: "com_defect_roll",
data() {
return {
titleCon: '报告不良',
sfdcTimeList: [],
scheduleData: {
site: this.$store.state.user.site,
userName: this.$store.state.user.name,
seqNo: '',
orderNo: '',
partNo: '',
rollNo: '',
partDesc: '',
reportDate: this.dayjs(new Date()).format('YYYY-MM-DD'),
reportedFlag: 'N',
qtyRequiredOriginal: 0,
scheduledDate: '',
shiftNo: '',
preItemDesc: '',
nextItemDesc: '',
nextItemNo: 0,
currentRollFlag: false
},
currentRollOps: {
site: this.$store.state.user.site,
seqNo: '',
rollNo: '',
finishedFlag: '',
},
operatorData: {
site: this.$store.state.user.site,
username: this.$store.state.user.name,
operatorId: '',
operatorName: '',
status: '',
seqNo: '',
showFlag: false
},
sfdcDefectList: [],
columnDefectArray: [
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5305DefectHistSeqNo',
tableId: "5305Material",
tableName: "不良卷",
columnProp: "histSeqNo",
headerAlign: "center",
align: "center",
columnLabel: "序号",
columnWidth: 60,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5305DefectDefectCode',
tableId: "5305Defect",
tableName: "不良卷",
columnProp: "defectCode",
headerAlign: "center",
align: "center",
columnLabel: "不良代码",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5305DefectDefectCode',
tableId: "5305Defect",
tableName: "不良卷",
columnProp: "defectDesc",
headerAlign: "center",
align: "center",
columnLabel: "不良描述",
columnWidth: 160,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5305DefectDefectQty',
tableId: "5305Defect",
tableName: "不良卷",
columnProp: "defectQty",
headerAlign: "center",
align: "center",
columnLabel: "不良数量",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5305DefectReportedDate',
tableId: "5305Defect",
tableName: "不良卷",
columnProp: "reportedDate",
headerAlign: "center",
align: "center",
columnLabel: "报告日期",
columnWidth: 125,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5305DefectReportedBy',
tableId: "5305Defect",
tableName: "不良卷",
columnProp: "reportedBy",
headerAlign: "center",
align: "center",
columnLabel: "报告人",
columnWidth: 75,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5305DefectRemark',
tableId: "5305Defect",
tableName: "不良卷",
columnProp: "remark",
headerAlign: "center",
align: "center",
columnLabel: "备注",
columnWidth: 160,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
}
],
buttonTags:{
createRollFlag: true,
switchRollFlag: true,
separatorRollFlag: true,
finishRollFlag: true,
mergeRollFlag: true,
tuningFlag: true,
produceFlag: true,
defectFlag: true,
toolFlag: true,
materialFlag: true,
downTimeFlag: true
},
dataListLoading: false,
}
},
methods: {
/*关闭modal*/
closeDialog(){
this.$emit('update:visible', false);
},
init(seqNo, operatorData) {
//
this.scheduleData.seqNo = seqNo;
//
this.operatorData = JSON.parse(JSON.stringify(operatorData));
// this.currentRollOps.seqNo = seqNo;
// this.currentRollOps.rollNo = rollNo;
//
//this.refreshPageData();
},
},
created() {
// this.factoryList()
// this.getLanguageList()
}
}
</script>
<style scoped lang="scss">
</style>

382
src/views/modules/yieldReport/com_finish_roll.vue

@ -1,9 +1,10 @@
<template>
<div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="830px" class="customer-dialog">
<el-form :inline="true" label-position="top" style="height: 480px;"
width="940px" style="height: 680px;" class="customer-dialog">
<el-form :inline="true" label-position="top" style="height: 495px;"
label-width="80px">
<!-- 菜单信息 -->
<el-row>
<el-col :span="24">
<el-form-item :label="'当前时间'">
@ -18,33 +19,192 @@
<el-button type="primary" :disabled="buttonTags.createRollFlag" style="margin-left: 10px; margin-bottom: 5px;">
列表</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" :disabled="buttonTags.switchRollFlag" style="margin-left: 10px; margin-bottom: 5px;">
<el-form-item class="customer-button">
<el-button type="primary" style="margin-left: 10px; margin-bottom: 5px;">
刷新</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" :disabled="buttonTags.separatorRollFlag" style="margin-left: 10px; margin-bottom: 5px;">
<el-form-item class="customer-button">
<el-button type="primary" style="margin-left: 10px; margin-bottom: 5px;">
结束卷</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" :disabled="buttonTags.separatorRollFlag" style="margin-left: 10px; margin-bottom: 5px;">
<el-form-item class="customer-button">
<el-button type="primary" @click="closeDialog" style="margin-left: 10px; margin-bottom: 5px;">
关闭</el-button>
</el-form-item>
<el-form-item label="订单号:">
<el-input v-model="scheduleData.orderNo" readonly style="width: 130px;" ></el-input>
</el-col>
</el-row>
<!-- 卷数量统计 班次信息 -->
<el-form>
<fieldset class="customer-fieldset" style="width: 505px;">
<legend>卷数量统计</legend>
<el-form-item class="customer-item">
<el-checkbox disabled="disabled" style="margin-top: 28px;" true-label="Y" false-label="N"
v-model="scheduleData.reportedFlag">是否报告产量</el-checkbox>
</el-form-item>
<el-form-item class="customer-item" label="良品总数量:">
<el-input v-model="scheduleData.orderNo" readonly style="width: 80px;" ></el-input>
</el-form-item>
<el-form-item label="物料编码:">
<el-input v-model="scheduleData.partNo" readonly style="width: 130px;"></el-input>
<el-form-item class="customer-item" label="总不良品数量:">
<el-input v-model="scheduleData.partNo" readonly style="width: 80px;"></el-input>
</el-form-item>
<el-form-item label="物料名称/规则:" >
<el-input v-model="scheduleData.partDesc" readonly style="width: 200px;"></el-input>
<el-form-item class="customer-item" label="总数量" >
<el-input v-model="scheduleData.partDesc" readonly style="width: 80px;"></el-input>
</el-form-item>
<el-form-item label="派工单号:">
<el-form-item class="customer-item" label="其他卷数量:">
<el-input v-model="scheduleData.seqNo" readonly style="width: 80px;"></el-input>
</el-form-item>
</el-col>
</el-row>
</fieldset>
<!-- 操作员信息和班次信息 -->
<fieldset class="customer-fieldset"
style="margin-left: 510px; margin-top: -70px; ;width: 390px;">
<legend>人员排程班次信息</legend>
<el-form-item class="customer-item" label="操作员:">
<el-input v-model="scheduleData.orderNo" readonly style="width: 80px;" ></el-input>
</el-form-item>
<el-form-item class="customer-item" label="操作员姓名:">
<el-input v-model="scheduleData.partNo" readonly style="width: 80px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="排产日期:">
<el-input v-model="scheduleData.scheduledDate" readonly style="width: 80px;" ></el-input>
</el-form-item>
<el-form-item class="customer-item" label="班次:">
<el-input v-model="scheduleData.partNo" readonly style="width: 80px;"></el-input>
</el-form-item>
</fieldset>
</el-form>
<!-- 卷生产时间统计产量报告 -->
<el-form>
<fieldset class="customer-fieldset" style="width: 320px;">
<legend>卷生产时间统计</legend>
<!-- 调机时间 -->
<el-row style="margin-top: 10px;">
<el-col :span="24">
<el-form-item class="customer-item" label="总调机时间:">
<el-input v-model="scheduleData.orderNo" readonly style="width: 80px;" ></el-input>
</el-form-item>
<el-form-item class="customer-item" label="总调机过程停机时间:">
<el-input v-model="scheduleData.partNo" readonly style="width: 100px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="净调机时间:" >
<el-input v-model="scheduleData.partDesc" readonly style="width: 80px;"></el-input>
</el-form-item>
</el-col>
</el-row>
<!-- 生产时间 -->
<el-row style="margin-top: 15px;">
<el-col :span="24">
<el-form-item class="customer-item" label="总生产时间">
<el-input v-model="scheduleData.seqNo" readonly style="width: 80px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="总生产过程停机时间:">
<el-input v-model="scheduleData.partNo" readonly style="width: 100px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="净生产时间:" >
<el-input v-model="scheduleData.partDesc" readonly style="width: 80px;"></el-input>
</el-form-item>
</el-col>
</el-row>
<!-- 制造时间 -->
<el-row style="margin-top: 15px;">
<el-col :span="24">
<el-form-item class="customer-item" label="总制造时间:">
<el-input v-model="scheduleData.seqNo" readonly style="width: 80px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="总制造过程停机时间:">
<el-input v-model="scheduleData.partNo" readonly style="width: 100px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="净制造时间:" >
<el-input v-model="scheduleData.partDesc" readonly style="width: 80px;"></el-input>
</el-form-item>
</el-col>
</el-row>
</fieldset>
<!-- 产量报告 -->
<fieldset class="customer-fieldset"
style="margin-left: 325px; margin-top: -177.8px; width: 575px;">
<legend>产量报告</legend>
<!-- 开工时间 -->
<el-row style="margin-top: 10px;">
<el-col :span="24">
<el-form-item class="customer-item" label="开工时间">
<el-input v-model="scheduleData.reportTime" readonly style="width: 130px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="完工时间">
<el-input v-model="scheduleData.reportTime" readonly style="width: 130px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="生产时间" >
<el-input v-model="scheduleData.partDesc" readonly style="width: 80px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="调机时间" >
<el-input v-model="scheduleData.partDesc" readonly style="width: 80px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="制造时间" >
<el-input v-model="scheduleData.partDesc" readonly style="width: 80px;"></el-input>
</el-form-item>
</el-col>
</el-row>
<!-- 合格数量 -->
<el-row style="margin-top: 15px;">
<el-col :span="24">
<el-form-item class="customer-item" label="合格数量">
<el-input v-model="scheduleData.seqNo" readonly style="width: 130px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="不合格数量">
<el-input v-model="scheduleData.partNo" readonly style="width: 130px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="报告数量" >
<el-input v-model="scheduleData.partDesc" readonly style="width: 80px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="调机停机">
<el-input v-model="scheduleData.partNo" readonly style="width: 80px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="生产调机" >
<el-input v-model="scheduleData.partDesc" readonly style="width: 80px;"></el-input>
</el-form-item>
</el-col>
</el-row>
<!-- 备注 -->
<el-row style="margin-top: 15px;">
<el-col :span="24">
<el-form-item class="customer-item" label="remark">
<el-input v-model="scheduleData.seqNo" readonly style="width: 430px;"></el-input>
</el-form-item>
<el-form-item class="customer-item" label="停机时间">
<el-input v-model="scheduleData.partNo" readonly style="width: 80px;"></el-input>
</el-form-item>
</el-col>
</el-row>
</fieldset>
</el-form>
<!-- 主材料 -->
<el-form>
<fieldset class="customer-fieldset" style="width: 830px;">
<legend>主材料</legend>
<el-table
height="160"
:data="sfdcMaterialList"
border
v-loading="dataListLoading"
style="width: 100%; margin-top: -5px;">
<el-table-column
v-for="(item,index) in columnMaterialArray" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed"
:width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
</el-table>
</fieldset>
</el-form>
</el-form>
@ -68,7 +228,7 @@ export default {
rollNo: '',
partDesc: '',
reportTime: this.dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'),
planFinishTime: '',
reportedFlag: 'N',
qtyRequiredOriginal: 0,
scheduledDate: '',
shiftNo: '',
@ -92,6 +252,171 @@ export default {
seqNo: '',
showFlag: false
},
sfdcMaterialList: [],
columnMaterialArray: [
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5303MaterialReportDate',
tableId: "5303Material",
tableName: "派工单材料",
columnProp: "reportDate",
headerAlign: "center",
align: "center",
columnLabel: "报告时间",
columnWidth: 125,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5303MaterialReportedBy',
tableId: "5303Material",
tableName: "派工单材料",
columnProp: "reportedBy",
headerAlign: "center",
align: "center",
columnLabel: "报告人",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5303MaterialRmRollNo',
tableId: "5303Material",
tableName: "派工单材料",
columnProp: "rmRollNo",
headerAlign: "center",
align: "center",
columnLabel: "材料卷号",
columnWidth: 100,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5303MaterialPartNo',
tableId: "5303Material",
tableName: "派工单材料",
columnProp: "partNo",
headerAlign: "center",
align: "center",
columnLabel: "零部件编码",
columnWidth: 100,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5303MaterialStartDate',
tableId: "5303Material",
tableName: "派工单材料",
columnProp: "startDate",
headerAlign: "center",
align: "center",
columnLabel: "开始使用时间",
columnWidth: 125,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5303MaterialTransQty',
tableId: "5303Material",
tableName: "派工单材料",
columnProp: "transQty",
headerAlign: "center",
align: "center",
columnLabel: "数量",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5303MaterialNetIssueQty',
tableId: "5303Material",
tableName: "派工单材料",
columnProp: "netIssueQty",
headerAlign: "center",
align: "center",
columnLabel: "本卷耗用数量",
columnWidth: 100,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5303MaterialKeyRMFlag',
tableId: "5303Material",
tableName: "派工单材料",
columnProp: "keyRMFlag",
headerAlign: "center",
align: "center",
columnLabel: "是否主材",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5303MaterialSAPBOMItemNo',
tableId: "5303Material",
tableName: "派工单材料",
columnProp: "sAPBOMItemNo",
headerAlign: "center",
align: "center",
columnLabel: "SAP BOM序号",
columnWidth: 100,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
}
],
buttonTags:{
createRollFlag: true,
switchRollFlag: true,
@ -110,6 +435,10 @@ export default {
},
methods: {
/*关闭modal*/
closeDialog(){
this.$emit('update:visible', false);
},
@ -147,8 +476,21 @@ export default {
<style scoped lang="scss">
/*调节页面button和input的上下间距*/
.customer-css .customer-button{
margin-top: 20px;
margin-top: 25px;
}
/*调节fieldset下的样式*/
.customer-fieldset .customer-item{
margin-top: -15px;
}
/*fieldset下table的样式*/
.customer-fieldset /deep/ .el-table__header th.is-leaf{
line-height: 16px;
}
/deep/ .customer-tab .el-tabs__content{
padding: 0px !important;
}
</style>

152
src/views/modules/yieldReport/com_merge_roll.vue

@ -0,0 +1,152 @@
<template>
<div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="360px" style="height: 680px;" class="customer-dialog">
<el-form :inline="true" label-position="top" style="height: 130px;"
label-width="80px">
<!-- 当前卷 -->
<el-row>
<el-col :span="8">
<el-form-item class="customer-item" label="当前卷号:">
<el-input v-model="scheduleData.orderNo" readonly style="width: 80px;" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item class="customer-item" label="当前卷数量:">
<el-input v-model="scheduleData.partNo" readonly style="width: 80px;"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item class="customer-item" label="">
</el-form-item>
</el-col>
</el-row>
<!-- 新卷 -->
<el-row>
<el-col :span="8">
<el-form-item class="customer-item" label="新卷卷号:">
<el-input v-model="scheduleData.seqNo" readonly style="width: 80px;"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item class="customer-item" label="新卷数量:">
<el-input v-model="scheduleData.orderNo" readonly style="width: 80px;" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item class="customer-item" label="总数量:">
<el-input v-model="scheduleData.partNo" readonly style="width: 80px;"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click=""> </el-button>
<el-button type="primary" @click="closeDialog">关闭</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
export default {
name: "com_merge_roll",
data() {
return {
titleCon: '合并卷',
sfdcTimeList: [],
scheduleData: {
site: this.$store.state.user.site,
userName: this.$store.state.user.name,
seqNo: '',
orderNo: '',
partNo: '',
rollNo: '',
partDesc: '',
reportTime: this.dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'),
reportedFlag: 'N',
qtyRequiredOriginal: 0,
scheduledDate: '',
shiftNo: '',
preItemDesc: '',
nextItemDesc: '',
nextItemNo: 0,
currentRollFlag: false
},
currentRollOps: {
site: this.$store.state.user.site,
seqNo: '',
rollNo: '',
finishedFlag: '',
},
operatorData: {
site: this.$store.state.user.site,
username: this.$store.state.user.name,
operatorId: '',
operatorName: '',
status: '',
seqNo: '',
showFlag: false
},
dataListLoading: false,
}
},
methods: {
/*关闭modal*/
closeDialog(){
this.$emit('update:visible', false);
},
init(seqNo, operatorData) {
//
this.scheduleData.seqNo = seqNo;
//
this.operatorData = JSON.parse(JSON.stringify(operatorData));
// this.currentRollOps.seqNo = seqNo;
// this.currentRollOps.rollNo = rollNo;
//
//this.refreshPageData();
},
},
created() {
// this.factoryList()
// this.getLanguageList()
}
}
</script>
<style scoped lang="scss">
/*调节页面button和input的上下间距*/
.customer-css .customer-button{
margin-top: 25px;
}
/*调节fieldset下的样式*/
.customer-fieldset .customer-item{
margin-top: -15px;
}
/*fieldset下table的样式*/
.customer-fieldset /deep/ .el-table__header th.is-leaf{
line-height: 16px;
}
/deep/ .customer-tab .el-tabs__content{
padding: 0px !important;
}
</style>

317
src/views/modules/yieldReport/com_produce_down.vue

@ -0,0 +1,317 @@
<template>
<div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="450px" style="height: 680px;" class="customer-dialog">
<el-container>
<el-container style="height: 120px;">
<el-form :inline="true" label-position="top" label-width="80px">
<!-- 停机时间和时长 -->
<el-row style="margin-top: -10px;">
<el-col :span="8" >
<el-form-item :label="'开始时间:'">
<el-date-picker style="width: 100px;"
v-model="scheduleData.reportDate"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
placeholder="">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="8" style="margin-top: 40px;">
<el-form-item :label="''">
<el-form-item :label="''">
<el-time-picker style="width: 80px;"
v-model="scheduleData.reportTime"
format="HH:mm:ss"
value-format="HH:mm:ss"
placeholder="">
</el-time-picker>
</el-form-item>
</el-form-item>
</el-col>
<el-col :span="8" >
<el-form-item :label="'时长:'">
<el-input v-model="scheduleData.seqNo" style="width: 120px"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item :label="'停机代码:'">
<el-input v-model="scheduleData.seqNo" style="width: 100px"></el-input>
</el-form-item>
</el-col>
<el-col :span="16">
<el-form-item :label="'停机描述:'">
<el-input v-model="scheduleData.seqNo" style="width: 180px"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-container>
<el-container style="margin-left: 50px;">
<el-form :inline="true" label-position="top" label-width="80px">
<!-- 不良代码 和日期 -->
<el-row>
<el-col>
<el-form-item style="margin-top: 10px;">
<el-button type="primary"
style="margin-left: -10px; margin-bottom: 5px;">
列表</el-button>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col>
<el-form-item style="margin-top: 15px;">
<el-button type="primary"
style="margin-left: -10px; margin-bottom: 5px;">
插入</el-button>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col>
<el-form-item style="margin-top: 15px;">
<el-button type="primary" @click="closeDialog"
style="margin-left: -10px; margin-bottom: 5px;">
关闭</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-container>
</el-container>
</el-dialog>
</div>
</template>
<script>
export default {
name: "com_defect_roll",
data() {
return {
titleCon: '报告停机',
sfdcTimeList: [],
scheduleData: {
site: this.$store.state.user.site,
userName: this.$store.state.user.name,
seqNo: '',
orderNo: '',
partNo: '',
rollNo: '',
partDesc: '',
reportDate: this.dayjs(new Date()).format('YYYY-MM-DD'),
reportTime: this.dayjs(new Date()).format('HH:mm:ss'),
reportedFlag: 'N',
qtyRequiredOriginal: 0,
scheduledDate: '',
shiftNo: '',
preItemDesc: '',
nextItemDesc: '',
nextItemNo: 0,
currentRollFlag: false
},
currentRollOps: {
site: this.$store.state.user.site,
seqNo: '',
rollNo: '',
finishedFlag: '',
},
operatorData: {
site: this.$store.state.user.site,
username: this.$store.state.user.name,
operatorId: '',
operatorName: '',
status: '',
seqNo: '',
showFlag: false
},
sfdcDefectList: [],
columnDefectArray: [
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5305DefectHistSeqNo',
tableId: "5305Material",
tableName: "不良卷",
columnProp: "histSeqNo",
headerAlign: "center",
align: "center",
columnLabel: "序号",
columnWidth: 60,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5305DefectDefectCode',
tableId: "5305Defect",
tableName: "不良卷",
columnProp: "defectCode",
headerAlign: "center",
align: "center",
columnLabel: "不良代码",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5305DefectDefectCode',
tableId: "5305Defect",
tableName: "不良卷",
columnProp: "defectDesc",
headerAlign: "center",
align: "center",
columnLabel: "不良描述",
columnWidth: 160,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5305DefectDefectQty',
tableId: "5305Defect",
tableName: "不良卷",
columnProp: "defectQty",
headerAlign: "center",
align: "center",
columnLabel: "不良数量",
columnWidth: 80,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5305DefectReportedDate',
tableId: "5305Defect",
tableName: "不良卷",
columnProp: "reportedDate",
headerAlign: "center",
align: "center",
columnLabel: "报告日期",
columnWidth: 125,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5305DefectReportedBy',
tableId: "5305Defect",
tableName: "不良卷",
columnProp: "reportedBy",
headerAlign: "center",
align: "center",
columnLabel: "报告人",
columnWidth: 75,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: 5303,
serialNumber: '5305DefectRemark',
tableId: "5305Defect",
tableName: "不良卷",
columnProp: "remark",
headerAlign: "center",
align: "center",
columnLabel: "备注",
columnWidth: 160,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
}
],
buttonTags:{
createRollFlag: true,
switchRollFlag: true,
separatorRollFlag: true,
finishRollFlag: true,
mergeRollFlag: true,
tuningFlag: true,
produceFlag: true,
defectFlag: true,
toolFlag: true,
materialFlag: true,
downTimeFlag: true
},
dataListLoading: false,
}
},
methods: {
/*关闭modal*/
closeDialog(){
this.$emit('update:visible', false);
},
init(seqNo, operatorData) {
//
this.scheduleData.seqNo = seqNo;
//
this.operatorData = JSON.parse(JSON.stringify(operatorData));
// this.currentRollOps.seqNo = seqNo;
// this.currentRollOps.rollNo = rollNo;
//
//this.refreshPageData();
},
},
created() {
// this.factoryList()
// this.getLanguageList()
}
}
</script>
<style scoped lang="scss">
</style>

115
src/views/modules/yieldReport/com_produce_material.vue

@ -0,0 +1,115 @@
<template>
<div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="225px" style="height: 680px;" class="customer-dialog">
<el-container style="height: 125px;">
<el-form :inline="true" label-position="top" label-width="80px">
<!-- 材料卷号和BOM序号 -->
<el-row>
<el-col :span="16">
<el-form-item :label="'材料卷号:'">
<el-input v-model="scheduleData.seqNo" style="width: 120px"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="16">
<el-form-item :label="'BOM 序号:'">
<el-input v-model="scheduleData.seqNo" style="width: 120px"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-container>
<span slot="footer" class="dialog-footer">
<el-button type="primary">列表</el-button>
<el-button type="primary"> </el-button>
<el-button type="primary" @click="closeDialog">关闭</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
export default {
name: "com_defect_roll",
data() {
return {
titleCon: '材料',
sfdcTimeList: [],
scheduleData: {
site: this.$store.state.user.site,
userName: this.$store.state.user.name,
seqNo: '',
orderNo: '',
partNo: '',
rollNo: '',
partDesc: '',
reportedFlag: 'N',
qtyRequiredOriginal: 0,
scheduledDate: '',
shiftNo: '',
preItemDesc: '',
nextItemDesc: '',
nextItemNo: 0,
currentRollFlag: false
},
currentRollOps: {
site: this.$store.state.user.site,
seqNo: '',
rollNo: '',
finishedFlag: '',
},
operatorData: {
site: this.$store.state.user.site,
username: this.$store.state.user.name,
operatorId: '',
operatorName: '',
status: '',
seqNo: '',
showFlag: false
},
dataListLoading: false,
}
},
methods: {
/*关闭modal*/
closeDialog(){
this.$emit('update:visible', false);
},
init(seqNo, operatorData) {
//
this.scheduleData.seqNo = seqNo;
//
this.operatorData = JSON.parse(JSON.stringify(operatorData));
// this.currentRollOps.seqNo = seqNo;
// this.currentRollOps.rollNo = rollNo;
//
//this.refreshPageData();
},
},
created() {
// this.factoryList()
// this.getLanguageList()
}
}
</script>
<style scoped lang="scss">
</style>

252
src/views/modules/yieldReport/com_produce_report_normal.vue

@ -63,11 +63,11 @@
创建新卷</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" :disabled="buttonTags.switchRollFlag" style="margin-left: 10px; margin-bottom: 5px;">
<el-button type="primary" @click="switchRollModal" :disabled="buttonTags.switchRollFlag" style="margin-left: 10px; margin-bottom: 5px;">
切换卷</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" :disabled="buttonTags.separatorRollFlag" style="margin-left: 10px; margin-bottom: 5px;">
<el-button type="primary" @click="separateRollModal" :disabled="buttonTags.separateRollFlag" style="margin-left: 10px; margin-bottom: 5px;">
创建分卷</el-button>
</el-form-item>
<el-form-item>
@ -76,7 +76,8 @@
结束卷</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" :disabled="buttonTags.mergeRollFlag" style="margin-left: 10px; margin-bottom: 5px;">
<el-button type="primary" :disabled="buttonTags.mergeRollFlag"
@click="mergeRollModal" style="margin-left: 10px; margin-bottom: 5px;">
合并卷</el-button>
</el-form-item>
</el-form>
@ -297,11 +298,11 @@
切换用户</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" :disabled="buttonTags.tuningFlag" style="margin-left: 10px; margin-bottom: 5px;">
<el-button type="primary" @click="startTuningModal" :disabled="buttonTags.tuningFlag" style="margin-left: 10px; margin-bottom: 5px;">
开始调机</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" :disabled="buttonTags.produceFlag" style="margin-left: 10px; margin-bottom: 5px;">
<el-button type="primary" @click="startProduceModal" :disabled="buttonTags.produceFlag" style="margin-left: 10px; margin-bottom: 5px;">
开始生产</el-button>
</el-form-item>
</el-form>
@ -311,7 +312,7 @@
<legend class="customer-legend">不良</legend>
<el-form>
<el-form-item>
<el-button type="primary" :disabled="buttonTags.defectFlag" style="margin-left: 50px; margin-top: 10px;">
<el-button @click="defectRollModal" type="primary" :disabled="buttonTags.defectFlag" style="margin-left: 50px; margin-top: 10px;">
报告不良</el-button>
</el-form-item>
</el-form>
@ -322,11 +323,13 @@
<legend class="customer-legend">扫描</legend>
<el-form>
<el-form-item>
<el-button type="primary" :disabled="buttonTags.toolFlag" style="margin-left: 30px; margin-top: 20px;">
<el-button type="primary" @click="produceToolModal"
:disabled="buttonTags.produceToolFlag" style="margin-left: 30px; margin-top: 20px;">
刀模板</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" :disabled="buttonTags.materialFlag" style="margin-left: 10px; margin-top: 20px;">
<el-button type="primary" @click="produceMaterialModal"
:disabled="buttonTags.materialFlag" style="margin-left: 10px; margin-top: 20px;">
材料</el-button>
</el-form-item>
</el-form>
@ -337,7 +340,8 @@
<legend class="customer-legend">停机</legend>
<el-form>
<el-form-item>
<el-button type="primary" :disabled="buttonTags.downTimeFlag" style="margin-left: 30px; margin-top: 10px;">
<el-button type="primary" @click="produceDownModal"
:disabled="buttonTags.downTimeFlag" style="margin-left: 30px; margin-top: 10px;">
报告其他停机</el-button>
</el-form-item>
</el-form>
@ -352,11 +356,65 @@
</comSwitchOperator>
<!-- 开始生产组件 -->
<comSwitchRoll ref="comSwitchRoll" :close-on-click-modal="false"
:visible.sync="showSwitchFlag">
</comSwitchRoll>
<!-- 创建分卷的操作 -->
<comSeparateRoll ref="comSeparateRoll" :close-on-click-modal="false"
:visible.sync="showSeparateFlag">
</comSeparateRoll>
<!-- 结束卷的modal -->
<comFinishRoll ref="comFinishRoll" :close-on-click-modal="false"
:visible.sync="showFinishFlag" >
</comFinishRoll>
<!-- 合并卷组件 -->
<comMergeRoll ref="comMergeRoll" :close-on-click-modal="false"
:visible.sync="showMergeFlag">
</comMergeRoll>
<!-- 开始调机组件 -->
<comStartTuning ref="comStartTuning" :close-on-click-modal="false"
:visible.sync="showTuningFlag">
</comStartTuning>
<!-- 开始生产组件 -->
<comStartProduce ref="comStartProduce" :close-on-click-modal="false"
:visible.sync="showProduceFlag">
</comStartProduce>
<!-- 报告不良组件 -->
<comDefectRoll ref="comDefectRoll" :close-on-click-modal="false"
:visible.sync="showDefectFlag">
</comDefectRoll>
<!-- 生产过程的工具组件 -->
<comProduceTool ref="comProduceTool" :close-on-click-modal="false"
:visible.sync="showToolFlag">
</comProduceTool>
<!-- 生产过程的材料组件 -->
<comProduceMaterial ref="comProduceMaterial" :close-on-click-modal="false"
:visible.sync="showMaterialFlag">
</comProduceMaterial>
<!-- 生产过程的停机组件 -->
<comProduceDown ref="comProduceDown" :close-on-click-modal="false"
:visible.sync="showDownFlag">
</comProduceDown>
</div>
</template>
@ -376,14 +434,32 @@ import {
} from "@/api/yieldReport/produce_report_normal.js";
/*引入组件*/
import comSwitchOperator from "./com_switch_operator";/*切换操作员*/
import comSwitchRoll from "./com_switch_roll";/*切换卷操作*/
import comSeparateRoll from "./com_separate_roll";
import comFinishRoll from "./com_finish_roll";/*结束卷数的组件*/
import comMergeRoll from "./com_merge_roll";/*合并卷的组件*/
import comStartTuning from "./com_start_tuning";/*开始调机组件*/
import comStartProduce from "./com_start_produce";/*开始生产组件*/
import comDefectRoll from "./com_defect_roll";/*报告不良品卷*/
import comProduceTool from "./com_produce_tool";/*生产过程的工具组件*/
import comProduceMaterial from "./com_produce_material";/*生产过程的材料组件*/
import comProduceDown from "./com_produce_down";/*生产过程的停机组件*/
export default {
name: "com_produce_report_normal",
data() {
return {
titleCon:'',
showOperatorFlag: false,
showSwitchFlag: false,
showSeparateFlag: false,
showFinishFlag: false,
showMergeFlag: false,
showTuningFlag: false,
showProduceFlag: false,
showDefectFlag: false,
showToolFlag: false,
showMaterialFlag: false,
showDownFlag: false,
activeTable: 'sfdc_time',
sfdcTimeList: [],
orderToolList: [],
@ -2569,23 +2645,32 @@ export default {
},
buttonTags:{
createRollFlag: true,
switchRollFlag: true,
separatorRollFlag: true,
switchRollFlag: false,
separateRollFlag: false,
finishRollFlag: false,
mergeRollFlag: true,
tuningFlag: true,
produceFlag: true,
defectFlag: true,
toolFlag: true,
materialFlag: true,
downTimeFlag: true
mergeRollFlag: false,
tuningFlag: false,
produceFlag: false,
defectFlag: false,
produceToolFlag: false,
materialFlag: false,
downTimeFlag: false
},
dataListLoading: false,
}
},
components: {
comSwitchOperator,/*切换用户的组件*/
comSwitchRoll,/*切换卷操作*/
comSeparateRoll,/*創建分卷组件*/
comFinishRoll,/*结束卷的组件*/
comMergeRoll,/*合并卷组件*/
comStartTuning,/*开始调机组件*/
comStartProduce,/*开始生产组件*/
comDefectRoll,/*报告不良品*/
comProduceTool,/*生产过程的工具组件*/
comProduceMaterial,/*生产过程的材料组件*/
comProduceDown,/*生产过程的停机组件*/
},
methods: {
//
@ -2703,21 +2788,6 @@ export default {
}
},
//modal
switchOperatorModal() {
//
if (JSON.stringify(this.currentRow) == '{}') {
this.$message.error('请先选择派工单!');
return false;
}
//
this.showOperatorFlag = true;
this.$nextTick(() => {
this.$refs.comSwitchOperator.init();
});
},
init(seqNo, operatorData) {
this.scheduleData.seqNo = seqNo;
this.currentRollOps.seqNo = seqNo;
@ -2771,6 +2841,42 @@ export default {
+ this.scheduleData.resourceDesc + ' (' + this.operatorData.operatorName+ ')';
},
//modal
switchOperatorModal() {
//
if (JSON.stringify(this.currentRow) == '{}') {
this.$message.error('请先选择派工单!');
return false;
}
//
this.showOperatorFlag = true;
this.$nextTick(() => {
this.$refs.comSwitchOperator.init();
});
},
/*切换卷操作*/
switchRollModal(){
//1.
//checkProduceButton('switchRollFlag');
//
this.$nextTick(() => {
this.showSwitchFlag = true;
this.$refs.comSwitchRoll.init(this.scheduleData.seqNo, this.operatorData)
});
},
/*创建分卷的modal调用*/
separateRollModal(){
//1.
//checkProduceButton('separateRollFlag');
//
this.$nextTick(() => {
this.showSeparateFlag = true;
this.$refs.comSeparateRoll.init(this.scheduleData.seqNo, this.operatorData)
});
},
/*结束卷操作*/
finishRollModal(){
//1.
@ -2779,10 +2885,90 @@ export default {
this.$nextTick(() => {
this.showFinishFlag = true;
this.$refs.comFinishRoll.init(this.scheduleData.seqNo, this.operatorData)
});
},
/*合并卷modal*/
mergeRollModal(){
//1.
//checkProduceButton('mergeRollFlag');
//
this.$nextTick(() => {
this.showMergeFlag = true;
this.$refs.comMergeRoll.init(this.scheduleData.seqNo, this.operatorData)
// this.$refs.com_finish_roll.init(this.scheduleData.seqNo, this.currentRollOps.rollNo);
});
},
/*开始调机modal*/
startTuningModal(){
//1.
//checkProduceButton('startTuningFlag');
//
this.$nextTick(() => {
this.showTuningFlag = true;
this.$refs.comStartTuning.init(this.scheduleData.seqNo, this.operatorData)
// this.$refs.com_finish_roll.init(this.scheduleData.seqNo, this.currentRollOps.rollNo);
});
},
/*开始调机modal*/
startProduceModal(){
//1.
//checkProduceButton('startProduceFlag');
//
this.$nextTick(() => {
this.showProduceFlag = true;
this.$refs.comStartProduce.init(this.scheduleData.seqNo, this.operatorData)
// this.$refs.com_finish_roll.init(this.scheduleData.seqNo, this.currentRollOps.rollNo);
});
},
/*报告不良modal*/
defectRollModal(){
//1.
//checkProduceButton('defectRollFlag');
//
this.$nextTick(() => {
this.showDefectFlag = true;
this.$refs.comDefectRoll.init(this.scheduleData.seqNo, this.operatorData)
});
},
/*生产过程的工具组件*/
produceToolModal(){
//1.
//checkProduceButton('produceToolFlag');
//
this.$nextTick(() => {
this.showToolFlag = true;
this.$refs.comProduceTool.init(this.scheduleData.seqNo, this.operatorData)
});
},
/*生产过程的工具组件*/
produceMaterialModal(){
//1.
//checkProduceButton('produceMaterialFlag');
//
this.$nextTick(() => {
this.showMaterialFlag = true;
this.$refs.comProduceMaterial.init(this.scheduleData.seqNo, this.operatorData)
});
},
/*生产过程的停机组件*/
produceDownModal(){
//1.
//checkProduceButton('produceDownFlag');
//
this.$nextTick(() => {
this.showDownFlag = true;
this.$refs.comProduceDown.init(this.scheduleData.seqNo, this.operatorData)
});
},
},
created() {
// this.factoryList()

148
src/views/modules/yieldReport/com_produce_tool.vue

@ -0,0 +1,148 @@
<template>
<div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="325px" style="height: 680px;" class="customer-dialog">
<el-container style="height: 225px;">
<el-form :inline="true" label-position="top" label-width="80px">
<!-- 扫描工具实例编码 -->
<el-row>
<el-col :span="12">
<el-form-item :label="'工具实例编号:'">
<el-input v-model="scheduleData.seqNo" style="width: 120px"></el-input>
</el-form-item>
</el-col>
</el-row>
<!-- 换刀模 -->
<el-container>
<fieldset class="customer-fieldset" style="width: 280px;">
<legend>换刀模</legend>
<el-row>
<el-col :span="16">
<el-form-item class="customer-item">
<el-checkbox disabled="disabled" true-label="Y" false-label="N"
v-model="scheduleData.reportedFlag">换刀模</el-checkbox>
</el-form-item>
</el-col>
</el-row>
<!-- 原工具信息 -->
<el-row>
<el-col :span="12">
<el-form-item class="customer-item" label="原工具实例编码:">
<el-input v-model="scheduleData.orderNo" readonly style="width: 100px;" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item class="customer-item" label="本卷生产数量:">
<el-input v-model="scheduleData.orderNo" readonly style="width: 100px;" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item class="customer-item" label="之前卷以生产数量:">
<el-input v-model="scheduleData.orderNo" readonly style="width: 100px;" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item class="customer-item" label="累计生产数量:">
<el-input v-model="scheduleData.orderNo" readonly style="width: 100px;" ></el-input>
</el-form-item>
</el-col>
</el-row>
</fieldset>
</el-container>
</el-form>
</el-container>
<span slot="footer" class="dialog-footer">
<el-button type="primary">列表</el-button>
<el-button type="primary"> </el-button>
<el-button type="primary" @click="closeDialog">关闭</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
export default {
name: "com_defect_roll",
data() {
return {
titleCon: '刀模板',
sfdcTimeList: [],
scheduleData: {
site: this.$store.state.user.site,
userName: this.$store.state.user.name,
seqNo: '',
orderNo: '',
partNo: '',
rollNo: '',
partDesc: '',
reportedFlag: 'N',
qtyRequiredOriginal: 0,
scheduledDate: '',
shiftNo: '',
preItemDesc: '',
nextItemDesc: '',
nextItemNo: 0,
currentRollFlag: false
},
currentRollOps: {
site: this.$store.state.user.site,
seqNo: '',
rollNo: '',
finishedFlag: '',
},
operatorData: {
site: this.$store.state.user.site,
username: this.$store.state.user.name,
operatorId: '',
operatorName: '',
status: '',
seqNo: '',
showFlag: false
},
dataListLoading: false,
}
},
methods: {
/*关闭modal*/
closeDialog(){
this.$emit('update:visible', false);
},
init(seqNo, operatorData) {
//
this.scheduleData.seqNo = seqNo;
//
this.operatorData = JSON.parse(JSON.stringify(operatorData));
// this.currentRollOps.seqNo = seqNo;
// this.currentRollOps.rollNo = rollNo;
//
//this.refreshPageData();
},
},
created() {
// this.factoryList()
// this.getLanguageList()
}
}
</script>
<style scoped lang="scss">
</style>

168
src/views/modules/yieldReport/com_separate_roll.vue

@ -0,0 +1,168 @@
<template>
<div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="360px" style="height: 680px;" class="customer-dialog">
<el-form :inline="true" label-position="top" style="height: 100px;"
label-width="80px">
<!-- 时间 -->
<el-row style="margin-top: -10px;">
<el-col :span="8" >
<el-form-item :label="'当前时间:'">
<el-date-picker style="width: 100px;"
v-model="scheduleData.reportDate"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
placeholder="">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="8" style="margin-top: 40px;">
<el-form-item :label="''">
<el-form-item :label="''">
<el-time-picker style="width: 80px;"
v-model="scheduleData.reportTime"
format="HH:mm:ss"
value-format="HH:mm:ss"
placeholder="">
</el-time-picker>
</el-form-item>
</el-form-item>
</el-col>
</el-row>
<!-- 半成品卷卷号 -->
<el-row>
<el-col :span="12" style="margin-top: -15px;">
<el-form-item :label="'良品数量:'">
<el-input v-model="scheduleData.orderNo" style="width: 120px;" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12" style="margin-top: -15px;">
<el-form-item :label="'卷数:'">
<el-input v-model="scheduleData.orderNo" style="width: 120px;" ></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click=""> </el-button>
<el-button type="primary" @click="closeDialog">关闭</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
export default {
name: "com_separate_roll",
data() {
return {
titleCon: '创建分卷',
sfdcTimeList: [],
scheduleData: {
site: this.$store.state.user.site,
userName: this.$store.state.user.name,
seqNo: '',
orderNo: '',
partNo: '',
rollNo: '',
partDesc: '',
reportDate: this.dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'),
reportTime: this.dayjs(new Date()).format('HH:mm:ss'),
reportedFlag: 'N',
qtyRequiredOriginal: 0,
scheduledDate: '',
shiftNo: '',
preItemDesc: '',
nextItemDesc: '',
nextItemNo: 0,
currentRollFlag: false
},
currentRollOps: {
site: this.$store.state.user.site,
seqNo: '',
rollNo: '',
finishedFlag: '',
},
operatorData: {
site: this.$store.state.user.site,
username: this.$store.state.user.name,
operatorId: '',
operatorName: '',
status: '',
seqNo: '',
showFlag: false
},
buttonTags:{
createRollFlag: true,
switchRollFlag: true,
separatorRollFlag: true,
finishRollFlag: true,
mergeRollFlag: true,
tuningFlag: true,
produceFlag: true,
defectFlag: true,
toolFlag: true,
materialFlag: true,
downTimeFlag: true
},
dataListLoading: false,
}
},
methods: {
/*关闭modal*/
closeDialog(){
this.$emit('update:visible', false);
},
init(seqNo, operatorData) {
//
this.scheduleData.seqNo = seqNo;
//
this.operatorData = JSON.parse(JSON.stringify(operatorData));
// this.currentRollOps.seqNo = seqNo;
// this.currentRollOps.rollNo = rollNo;
//
//this.refreshPageData();
},
},
created() {
// this.factoryList()
// this.getLanguageList()
}
}
</script>
<style scoped lang="scss">
/*调节页面button和input的上下间距*/
.customer-css .customer-button{
margin-top: 25px;
}
/*调节fieldset下的样式*/
.customer-fieldset .customer-item{
margin-top: -15px;
}
/*fieldset下table的样式*/
.customer-fieldset /deep/ .el-table__header th.is-leaf{
line-height: 16px;
}
/deep/ .customer-tab .el-tabs__content{
padding: 0px !important;
}
</style>

158
src/views/modules/yieldReport/com_start_produce.vue

@ -0,0 +1,158 @@
<template>
<div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="300px" style="height: 680px;" class="customer-dialog">
<el-form :inline="true" label-position="top" style="height: 60px;"
label-width="80px">
<!-- 时间 -->
<el-row style="margin-top: -10px;">
<el-col :span="10" >
<el-form-item :label="'当前时间:'">
<el-date-picker style="width: 100px;"
v-model="scheduleData.reportDate"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
placeholder="">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="8" style="margin-top: 40px;">
<el-form-item :label="''">
<el-form-item :label="''">
<el-time-picker style="width: 80px;"
v-model="scheduleData.reportTime"
format="HH:mm:ss"
value-format="HH:mm:ss"
placeholder="">
</el-time-picker>
</el-form-item>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click=""> </el-button>
<el-button type="primary" @click="closeDialog">关闭</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
export default {
name: "com_merge_roll",
data() {
return {
titleCon: '开始生产',
sfdcTimeList: [],
scheduleData: {
site: this.$store.state.user.site,
userName: this.$store.state.user.name,
seqNo: '',
orderNo: '',
partNo: '',
rollNo: '',
partDesc: '',
reportDate: this.dayjs(new Date()).format('YYYY-MM-DD'),
reportTime: this.dayjs(new Date()).format('HH:mm:ss'),
reportedFlag: 'N',
qtyRequiredOriginal: 0,
scheduledDate: '',
shiftNo: '',
preItemDesc: '',
nextItemDesc: '',
nextItemNo: 0,
currentRollFlag: false
},
currentRollOps: {
site: this.$store.state.user.site,
seqNo: '',
rollNo: '',
finishedFlag: '',
},
operatorData: {
site: this.$store.state.user.site,
username: this.$store.state.user.name,
operatorId: '',
operatorName: '',
status: '',
seqNo: '',
showFlag: false
},
buttonTags:{
createRollFlag: true,
switchRollFlag: true,
separatorRollFlag: true,
finishRollFlag: true,
mergeRollFlag: true,
tuningFlag: true,
produceFlag: true,
defectFlag: true,
toolFlag: true,
materialFlag: true,
downTimeFlag: true
},
dataListLoading: false,
}
},
methods: {
/*关闭modal*/
closeDialog(){
this.$emit('update:visible', false);
},
init(seqNo, operatorData) {
//
this.scheduleData.seqNo = seqNo;
//
this.operatorData = JSON.parse(JSON.stringify(operatorData));
//
this.titleCon = '开始生产操作 \
派工单号:'+seqNo;
// this.currentRollOps.seqNo = seqNo;
// this.currentRollOps.rollNo = rollNo;
//
//this.refreshPageData();
},
},
created() {
// this.factoryList()
// this.getLanguageList()
}
}
</script>
<style scoped lang="scss">
/*调节页面button和input的上下间距*/
.customer-css .customer-button{
margin-top: 25px;
}
/*调节fieldset下的样式*/
.customer-fieldset .customer-item{
margin-top: -15px;
}
/*fieldset下table的样式*/
.customer-fieldset /deep/ .el-table__header th.is-leaf{
line-height: 16px;
}
/deep/ .customer-tab .el-tabs__content{
padding: 0px !important;
}
</style>

145
src/views/modules/yieldReport/com_start_tuning.vue

@ -0,0 +1,145 @@
<template>
<div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="300px" style="height: 680px;" class="customer-dialog">
<el-form :inline="true" label-position="top" style="height: 60px;"
label-width="80px">
<!-- 时间 -->
<el-row style="margin-top: -10px;">
<el-col :span="10" >
<el-form-item :label="'当前时间:'">
<el-date-picker style="width: 100px;"
v-model="scheduleData.reportDate"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
placeholder="">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="8" style="margin-top: 40px;">
<el-form-item :label="''">
<el-form-item :label="''">
<el-time-picker style="width: 80px;"
v-model="scheduleData.reportTime"
format="HH:mm:ss"
value-format="HH:mm:ss"
placeholder="">
</el-time-picker>
</el-form-item>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click=""> </el-button>
<el-button type="primary" @click="closeDialog">关闭</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
export default {
name: "com_merge_roll",
data() {
return {
titleCon: '开始调机',
sfdcTimeList: [],
scheduleData: {
site: this.$store.state.user.site,
userName: this.$store.state.user.name,
seqNo: '',
orderNo: '',
partNo: '',
rollNo: '',
partDesc: '',
reportDate: this.dayjs(new Date()).format('YYYY-MM-DD'),
reportTime: this.dayjs(new Date()).format('HH:mm:ss'),
reportedFlag: 'N',
qtyRequiredOriginal: 0,
scheduledDate: '',
shiftNo: '',
preItemDesc: '',
nextItemDesc: '',
nextItemNo: 0,
currentRollFlag: false
},
currentRollOps: {
site: this.$store.state.user.site,
seqNo: '',
rollNo: '',
finishedFlag: '',
},
operatorData: {
site: this.$store.state.user.site,
username: this.$store.state.user.name,
operatorId: '',
operatorName: '',
status: '',
seqNo: '',
showFlag: false
},
dataListLoading: false,
}
},
methods: {
/*关闭modal*/
closeDialog(){
this.$emit('update:visible', false);
},
init(seqNo, operatorData) {
//
this.scheduleData.seqNo = seqNo;
//
this.operatorData = JSON.parse(JSON.stringify(operatorData));
//
this.titleCon = '开始调机操作 \
派工单号:'+seqNo;
// this.currentRollOps.seqNo = seqNo;
// this.currentRollOps.rollNo = rollNo;
//
//this.refreshPageData();
},
},
created() {
// this.factoryList()
// this.getLanguageList()
}
}
</script>
<style scoped lang="scss">
/*调节页面button和input的上下间距*/
.customer-css .customer-button{
margin-top: 25px;
}
/*调节fieldset下的样式*/
.customer-fieldset .customer-item{
margin-top: -15px;
}
/*fieldset下table的样式*/
.customer-fieldset /deep/ .el-table__header th.is-leaf{
line-height: 16px;
}
/deep/ .customer-tab .el-tabs__content{
padding: 0px !important;
}
</style>

8
src/views/modules/yieldReport/com_switch_operator.vue

@ -20,7 +20,7 @@
<el-button type="primary" @click="saveOperatorData()">保存</el-button>
</el-form-item>
<el-form-item label="" style="margin-top: 15px; margin-bottom: 5px;">
<el-button type="primary" @click="visibleFlag = false">关闭</el-button>
<el-button type="primary" @click="closeDialog">关闭</el-button>
</el-form-item>
</el-form>
@ -48,6 +48,12 @@ export default {
}
},
methods: {
/*关闭modal*/
closeDialog(){
this.$emit('update:visible', false);
},
//
init() {
this.visibleFlag = true;

135
src/views/modules/yieldReport/com_switch_roll.vue

@ -0,0 +1,135 @@
<template>
<div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="240px" style="height: 680px;" class="customer-dialog">
<el-form :inline="true" label-position="top" style="height: 60px;"
label-width="80px">
<!-- 半成品卷卷号 -->
<el-row style="">
<el-col :span="24">
<el-form-item :label="'半成品卷卷号:'">
<el-input v-model="scheduleData.orderNo" style="width: 120px;" ></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click=""> </el-button>
<el-button type="primary" @click="closeDialog">关闭</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
export default {
name: "com_merge_roll",
data() {
return {
titleCon: '切换卷',
sfdcTimeList: [],
scheduleData: {
site: this.$store.state.user.site,
userName: this.$store.state.user.name,
seqNo: '',
orderNo: '',
partNo: '',
rollNo: '',
partDesc: '',
reportTime: this.dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'),
reportedFlag: 'N',
qtyRequiredOriginal: 0,
scheduledDate: '',
shiftNo: '',
preItemDesc: '',
nextItemDesc: '',
nextItemNo: 0,
currentRollFlag: false
},
currentRollOps: {
site: this.$store.state.user.site,
seqNo: '',
rollNo: '',
finishedFlag: '',
},
operatorData: {
site: this.$store.state.user.site,
username: this.$store.state.user.name,
operatorId: '',
operatorName: '',
status: '',
seqNo: '',
showFlag: false
},
buttonTags:{
createRollFlag: true,
switchRollFlag: true,
separatorRollFlag: true,
finishRollFlag: true,
mergeRollFlag: true,
tuningFlag: true,
produceFlag: true,
defectFlag: true,
toolFlag: true,
materialFlag: true,
downTimeFlag: true
},
dataListLoading: false,
}
},
methods: {
/*关闭modal*/
closeDialog(){
this.$emit('update:visible', false);
},
init(seqNo, operatorData) {
//
this.scheduleData.seqNo = seqNo;
//
this.operatorData = JSON.parse(JSON.stringify(operatorData));
// this.currentRollOps.seqNo = seqNo;
// this.currentRollOps.rollNo = rollNo;
//
//this.refreshPageData();
},
},
created() {
// this.factoryList()
// this.getLanguageList()
}
}
</script>
<style scoped lang="scss">
/*调节页面button和input的上下间距*/
.customer-css .customer-button{
margin-top: 25px;
}
/*调节fieldset下的样式*/
.customer-fieldset .customer-item{
margin-top: -15px;
}
/*fieldset下table的样式*/
.customer-fieldset /deep/ .el-table__header th.is-leaf{
line-height: 16px;
}
/deep/ .customer-tab .el-tabs__content{
padding: 0px !important;
}
</style>
Loading…
Cancel
Save