|
|
|
@ -107,6 +107,8 @@ |
|
|
|
<el-dropdown-item class="customer-li" command="8" :disabled="menuButton.canceledCostRollUpFlagButton"> |
|
|
|
取消生产已排料 |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item class="customer-li" command="查看物料库存" |
|
|
|
:disabled="menuButton.partStockFlag">查看物料库存</el-dropdown-item> |
|
|
|
<hr width="95%"/> |
|
|
|
<el-dropdown-item class="customer-li" command="9" :disabled="menuButton.manualFlagButton">刀模已发 |
|
|
|
</el-dropdown-item> |
|
|
|
@ -192,6 +194,11 @@ |
|
|
|
<!-- 换包装 --> |
|
|
|
<changePackaging :close-on-click-modal="false" |
|
|
|
:visible.sync="changePackagingFlag" ref="changePackaging"></changePackaging> |
|
|
|
|
|
|
|
<!-- 物料库存查询 --> |
|
|
|
<comPartStock ref="comPartStock" :close-on-click-modal="false" |
|
|
|
:visible.sync="showPartStockFlag"> |
|
|
|
</comPartStock> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
@ -220,7 +227,9 @@ import fqcSplitRollReport from "./otherReport/fqc_split_roll_report";/*结束派 |
|
|
|
import changePackaging from "./otherReport/change_packaging";/*结束派工的组件*/ |
|
|
|
import createRecheck from './com_create_recheck' |
|
|
|
import Com_split_schedule from "../schedule/com_split_schedule"; |
|
|
|
import comSplitOrderReport from './com_split_order_report';/*分切报工*/ |
|
|
|
import comSplitOrderReport from './com_split_order_report'; |
|
|
|
import comPartStock from "../common/com_part_stock";/*展示物料库存的组件*/ |
|
|
|
/*分切报工*/ |
|
|
|
|
|
|
|
export default { |
|
|
|
data() { |
|
|
|
@ -235,6 +244,7 @@ export default { |
|
|
|
fqcRollShowReportFlag: false, |
|
|
|
showFinishScheduleFlag: false, |
|
|
|
changePackagingFlag: false, |
|
|
|
showPartStockFlag: false, |
|
|
|
searchData: { |
|
|
|
site: this.$store.state.user.site, |
|
|
|
resourceId: '', |
|
|
|
@ -1088,6 +1098,7 @@ export default { |
|
|
|
canceledRepairSOFlagButton: false, |
|
|
|
canceledAllPrdButton: false, |
|
|
|
createRecheckButton: false, |
|
|
|
partStockFlag: true,/*查看物料库存*/ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -1102,6 +1113,7 @@ export default { |
|
|
|
fqcSplitRollReport, /*FQC分卷*/ |
|
|
|
createRecheck,/*创建重检派工单*/ |
|
|
|
changePackaging, /*换包装*/ |
|
|
|
comPartStock,/*展示物料库存的组件*/ |
|
|
|
|
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
@ -1144,6 +1156,7 @@ export default { |
|
|
|
} |
|
|
|
this.menuButton.canceledAllPrdButton = false |
|
|
|
this.menuButton.createRecheckButton = false |
|
|
|
this.menuButton.partStockFlag = false; |
|
|
|
// 判断是否具有该页面权限 |
|
|
|
let menList = JSON.parse(sessionStorage.getItem('dynamicMenuRoutes') || '[]').filter(item => item.path == 'shopOrder-shopOrder/shopOrder') |
|
|
|
if (menList.length > 0) { |
|
|
|
@ -1317,6 +1330,23 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
if('查看物料库存' === val){ |
|
|
|
//判断是否选择好了工单 |
|
|
|
if(this.currentRow == null || this.currentRow == {}){ |
|
|
|
//重置按钮 |
|
|
|
this.menuButton.partStockFlag = true; |
|
|
|
//返回错误 |
|
|
|
this.$message.error('请选择派工单!'); |
|
|
|
return false; |
|
|
|
} |
|
|
|
let tempData = {'site': this.currentRow.site, 'orderNo': this.currentRow.orderNo}; |
|
|
|
//打开组件 需要的数据 展示需要的数据 |
|
|
|
this.$nextTick(() => { |
|
|
|
this.showPartStockFlag = true; |
|
|
|
this.$refs.comPartStock.init(tempData); |
|
|
|
}) |
|
|
|
} |
|
|
|
// 关闭 |
|
|
|
if ('1' == val) { |
|
|
|
//调用提示的方法 |
|
|
|
|