|
|
|
@ -75,9 +75,20 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<!-- 查询时间和产品 --> |
|
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 5px;"> |
|
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
|
<el-form-item > |
|
|
|
<el-input v-model="searchData.site" style="width: 85px"></el-input> |
|
|
|
<el-dropdown class="customer-dropdown" @command="handleCommand"> |
|
|
|
<el-button type="primary"> |
|
|
|
主菜单<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
|
</el-button> |
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
<el-dropdown-item class="customer-li" command="0" :disable="menuButton.prdButton" >生产订单</el-dropdown-item> |
|
|
|
<el-dropdown-item class="customer-li" command="1" disabled >关闭</el-dropdown-item> |
|
|
|
<el-dropdown-item class="customer-li" command="1" disabled >打开</el-dropdown-item> |
|
|
|
<el-dropdown-item class="customer-li" command="1" disabled >暂停</el-dropdown-item> |
|
|
|
<el-dropdown-item class="customer-li" command="1" disabled >重新开工</el-dropdown-item> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<!-- 工单主表信息 --> |
|
|
|
@ -969,6 +980,9 @@ export default { |
|
|
|
fixed: false |
|
|
|
} |
|
|
|
], |
|
|
|
menuButton:{ |
|
|
|
prdButton:true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
components: { |
|
|
|
@ -981,11 +995,29 @@ export default { |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.height = window.innerHeight - 225; |
|
|
|
this.height = window.innerHeight - 235; |
|
|
|
}) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
/*区分不同的菜单 调用不同的方法 调用不同的方法*/ |
|
|
|
handleCommand(val){ |
|
|
|
if (JSON.stringify(this.currentRow) == '{}') { |
|
|
|
this.menuButton.prdButton = false |
|
|
|
} |
|
|
|
//区分是哪一个方法调用 |
|
|
|
if('0' == val){ |
|
|
|
if (JSON.stringify(this.currentRow) == '{}') { |
|
|
|
this.$message.error('请先选择派工单!'); |
|
|
|
return false; |
|
|
|
} |
|
|
|
this.$router.push('/shopOrder-shopOrder/shopOrder',this.currentRow.orderNo) |
|
|
|
} |
|
|
|
if('1' == val){ |
|
|
|
//调用提示的方法 |
|
|
|
this.warnReScheduleConfirm(); |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
// FQC 报工 |
|
|
|
fqcReportModal(){ |
|
|
|
//首先判断是否选择好派工单 |
|
|
|
@ -1298,6 +1330,10 @@ div.customer-el-card-blue { |
|
|
|
.customer-css .el-button--medium { |
|
|
|
padding: 5px 5px; |
|
|
|
} |
|
|
|
|
|
|
|
/*添加主菜单和明细菜单的样式*/ |
|
|
|
.customer-css .customer-dropdown .el-button--primary{ |
|
|
|
padding: 2px; |
|
|
|
font-size: 12px; |
|
|
|
} |
|
|
|
/*控制上下间距*/ |
|
|
|
</style> |