|
|
@@ -28,7 +28,7 @@
|
|
|
<el-button type="primary" title="给担负起那设备做生产任务排程" icon="edit" @click="oncjsbpcClick" class="bt">车间设备制程排序</el-button>
|
|
|
</div>
|
|
|
|
|
|
- <el-button type="primary" title="打印生产工单" disabled icon="edit" @click="pd_gdprintonClick" class="bt">工单打印</el-button>
|
|
|
+ <el-button type="primary" title="打印生产工单" icon="edit" @click="pd_gdprintonClick" class="bt">工单打印</el-button>
|
|
|
<el-button type="primary" icon="edit" @click="pd_gxclhconClick" class="bt">工序产量核查</el-button>
|
|
|
<el-button type="primary" icon="edit" @click="pd_lcdlistonClick" class="bt">流程单查询</el-button>
|
|
|
|
|
|
@@ -76,10 +76,10 @@
|
|
|
:cell-class-name="gxztgzzCellClass">
|
|
|
<template v-for="(item, idx) in gxztgzztableColumns">
|
|
|
<el-table-column #default="{ row, column, $index }" align="left" :label="item.label" :width="item.width" >
|
|
|
-<!-- <div v-if="['完工时间'].includes(item.prop)">-->
|
|
|
-<!-- <el-input v-model="row[item.prop]"-->
|
|
|
-<!-- :id="`input${idx}${$index}`" @keyup="gxztgzz_handleKeyDown($event, idx, $index, item.prop)"/>-->
|
|
|
-<!-- </div>-->
|
|
|
+ <!-- <div v-if="['完工时间'].includes(item.prop)">-->
|
|
|
+ <!-- <el-input v-model="row[item.prop]"-->
|
|
|
+ <!-- :id="`input${idx}${$index}`" @keyup="gxztgzz_handleKeyDown($event, idx, $index, item.prop)"/>-->
|
|
|
+ <!-- </div>-->
|
|
|
<div v-if="['完工时间'].includes(item.prop)">
|
|
|
<el-date-picker
|
|
|
v-model="row[item.prop]"
|
|
|
@@ -123,32 +123,32 @@
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="" prop="" style="margin-left: 25px;">
|
|
|
- <el-button type="" icon="edit" disabled @click="oneditpcClick">更新排程</el-button>
|
|
|
+ <el-button type="" icon="edit" disabled @click="oneditpcClick">更新排程</el-button>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
|
|
|
<el-table ref="paichengRef"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- :row-style="{ height: '0px' }"
|
|
|
- :cell-style="{ padding: '0px' }" :header-row-style="{ height: '0px' }"
|
|
|
- :header-cell-style="{ padding: '0px' }"
|
|
|
- style="width: 100%;height: 74vh" border tooltip-effect="dark"
|
|
|
- highlight-current-row="true"
|
|
|
- @row-click="cjpc_tableRowClick"
|
|
|
- :data="paichengData" row-key="ID"
|
|
|
- :cell-class-name="cjzcCellClass"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ :row-style="{ height: '0px' }"
|
|
|
+ :cell-style="{ padding: '0px' }" :header-row-style="{ height: '0px' }"
|
|
|
+ :header-cell-style="{ padding: '0px' }"
|
|
|
+ style="width: 100%;height: 74vh" border tooltip-effect="dark"
|
|
|
+ highlight-current-row="true"
|
|
|
+ @row-click="cjpc_tableRowClick"
|
|
|
+ :data="paichengData" row-key="ID"
|
|
|
+ :cell-class-name="cjzcCellClass"
|
|
|
>
|
|
|
<template v-for="(item, idx) in paichengColumns">
|
|
|
<el-table-column #default="{ row, column, $index }" align="left" :label="item.label" :width="item.width" >
|
|
|
<div v-if="['优先次序', '生产工时', '辅助工时', '班次安排', '排单备注','最早开工时间', '计划开工时间'].includes(item.prop)">
|
|
|
<el-input v-model="row[item.prop]" :clearable="false"
|
|
|
- :id="`input${idx}${$index}`"
|
|
|
- @keyup="handleKeyDown($event, idx, $index, item.prop)"
|
|
|
+ :id="`input${idx}${$index}`"
|
|
|
+ @keyup="handleKeyDown($event, idx, $index, item.prop)"
|
|
|
/>
|
|
|
-<!-- <el-date-picker v-model="row[item.prop]" v-if="['最早开工时间', '计划开工时间'].includes(item.prop)" type="datetime" :clearable="false"-->
|
|
|
-<!-- :id="`input${idx}${$index}`"-->
|
|
|
-<!-- @keyup="handleKeyDown($event, idx, $index , item.prop)"-->
|
|
|
-<!-- />-->
|
|
|
+ <!-- <el-date-picker v-model="row[item.prop]" v-if="['最早开工时间', '计划开工时间'].includes(item.prop)" type="datetime" :clearable="false"-->
|
|
|
+ <!-- :id="`input${idx}${$index}`"-->
|
|
|
+ <!-- @keyup="handleKeyDown($event, idx, $index , item.prop)"-->
|
|
|
+ <!-- />-->
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
{{ row[item.prop] }}
|
|
|
@@ -159,54 +159,6 @@
|
|
|
</div>
|
|
|
|
|
|
</el-dialog>
|
|
|
- <!--工单打印【弹窗】-->
|
|
|
- <el-dialog v-model="print_gdlist" title="生产工单打印" style="width: 700px;height: 400px;">
|
|
|
-
|
|
|
- <div style="border: 1px black solid;width: 600px;">
|
|
|
- <el-row>
|
|
|
- <el-form-item label="工单编号:" prop="currentProcess" class="mab">
|
|
|
- <el-input v-model="print_formData['gdbh']" @keyup.enter="print_ProductValue" placeholder="" />
|
|
|
- </el-form-item>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-form-item label="印件号:" prop="currentProcess" class="mab" label-width="70">
|
|
|
- <el-input v-model="print_formData['yjh']" @keyup.enter="print_ProductValue" placeholder="" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="终止工序号:" prop="currentProcess" class="mab">
|
|
|
- <el-input v-model="print_formData['zzgxh']" @keyup.enter="print_ProductValue" placeholder="" />
|
|
|
- </el-form-item>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-form-item label="印件名称:" prop="currentProcess" class="mab">
|
|
|
- <el-input v-model="print_formData['yjmc']" @keyup.enter="print_ProductValue" placeholder="" />
|
|
|
- </el-form-item>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-form-item label="报表输出到:" prop="currentProcess">
|
|
|
- <el-radio-group v-model="status" style="margin-left: 10px;">
|
|
|
- <el-radio label="显示器">显示器</el-radio>
|
|
|
- <el-radio label="打印机">打印机</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- </el-form-item>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-form-item label="制单:" prop="currentProcess" class="mab" label-width="70">
|
|
|
- <el-input v-model="print_formData['zd']" @keyup.enter="print_ProductValue" placeholder="" />
|
|
|
- </el-form-item>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-form-item label="审核:" prop="currentProcess" class="mab" label-width="70">
|
|
|
- <el-input v-model="print_formData['sh']" @keyup.enter="print_ProductValue" placeholder="" />
|
|
|
- </el-form-item>
|
|
|
- </el-row>
|
|
|
- </div>
|
|
|
- <div class="dialog-footer" style="text-align: right; margin-top: 40px;">
|
|
|
- <el-button @click="print_handleCancel">取消</el-button>
|
|
|
- <el-button type="primary" @click="print_handleConfirm">确认</el-button>
|
|
|
- </div>
|
|
|
-
|
|
|
- </el-dialog>
|
|
|
-
|
|
|
|
|
|
<!--工序产量核查【弹窗】-->
|
|
|
<el-dialog v-model="pd_gxclhclist" title="工序产量核查" style="width: 100%;height: 100%;margin: 0px;padding: 0px">
|
|
|
@@ -449,6 +401,8 @@
|
|
|
|
|
|
</layout>
|
|
|
</layout>
|
|
|
+
|
|
|
+ <PrintPage ref="printPageRef" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -505,8 +459,12 @@ import {
|
|
|
getOrderProcessLeft,
|
|
|
getOrderProcessRight
|
|
|
} from "@/api/yunyin/yunying";
|
|
|
+
|
|
|
+import PrintPage from './components/print.vue'
|
|
|
defineOptions({name: 'Company'})
|
|
|
|
|
|
+const printPageRef = ref()
|
|
|
+
|
|
|
// =========== 左侧树侧形结构 ===========
|
|
|
const sctreeData = ref([
|
|
|
{
|
|
|
@@ -522,76 +480,76 @@ const sctreeData = ref([
|
|
|
//上方表格
|
|
|
const tableFields = ref({
|
|
|
"计划中": [
|
|
|
- { title:'获取状态', prop: 'statusColumn', width: 80, align:'center'},
|
|
|
- { title:'生产分类', prop: '生产分类', width: 80, align:'left', },
|
|
|
- { title: '工单编号', prop: '工单编号', width: 80, align:'center', },
|
|
|
- { title: '产品代号', prop: '产品代号', width: 90, align:'center', },
|
|
|
- { title: '产品名称', prop: '产品名称', width: 280, align:'left', },
|
|
|
- { title: '接单日期', prop: '接单日期', width: 110, align:'left', },
|
|
|
- { title: '交货日期', prop: '交货日期', width: 110, align:'left', },
|
|
|
- { title: '订单数量', prop: '订单数量', width: 80, align:'left', },
|
|
|
- { title: '计量单位', prop: '计量单位', width: 80, align:'center', },
|
|
|
- { title: '客户名称', prop: '客户名称', width: 200, align:'left', },
|
|
|
- { title: '客户编号', prop: '客户编号', width: 80, align:'center', },
|
|
|
- { title: '备注', prop: '备注', width: 230, align:'left', },
|
|
|
- { title: '客户料号', prop: '客户料号', width: 120, align:'left', },
|
|
|
- { title: '创建用户', prop: '创建用户', width: 110, align:'left', },
|
|
|
- { title: '创建时间', prop: '创建时间', width: 110, align:'left', },
|
|
|
- { title: '修改时间', prop: '修改时间', width: 110, align:'left', },
|
|
|
- { title: 'UNIQID', prop: 'UNIQID', width: 80 , align:'left', },
|
|
|
- { title: '投料率', prop: '投料率', width: 100, align:'left', },
|
|
|
- { title: '销售订单号', prop: '销售订单号', width: 120, align:'left', },
|
|
|
- ],
|
|
|
+ { title:'获取状态', prop: 'statusColumn', width: 80, align:'center'},
|
|
|
+ { title:'生产分类', prop: '生产分类', width: 80, align:'left', },
|
|
|
+ { title: '工单编号', prop: '工单编号', width: 80, align:'center', },
|
|
|
+ { title: '产品代号', prop: '产品代号', width: 90, align:'center', },
|
|
|
+ { title: '产品名称', prop: '产品名称', width: 280, align:'left', },
|
|
|
+ { title: '接单日期', prop: '接单日期', width: 110, align:'left', },
|
|
|
+ { title: '交货日期', prop: '交货日期', width: 110, align:'left', },
|
|
|
+ { title: '订单数量', prop: '订单数量', width: 80, align:'left', },
|
|
|
+ { title: '计量单位', prop: '计量单位', width: 80, align:'center', },
|
|
|
+ { title: '客户名称', prop: '客户名称', width: 200, align:'left', },
|
|
|
+ { title: '客户编号', prop: '客户编号', width: 80, align:'center', },
|
|
|
+ { title: '备注', prop: '备注', width: 230, align:'left', },
|
|
|
+ { title: '客户料号', prop: '客户料号', width: 120, align:'left', },
|
|
|
+ { title: '创建用户', prop: '创建用户', width: 110, align:'left', },
|
|
|
+ { title: '创建时间', prop: '创建时间', width: 110, align:'left', },
|
|
|
+ { title: '修改时间', prop: '修改时间', width: 110, align:'left', },
|
|
|
+ { title: 'UNIQID', prop: 'UNIQID', width: 80 , align:'left', },
|
|
|
+ { title: '投料率', prop: '投料率', width: 100, align:'left', },
|
|
|
+ { title: '销售订单号', prop: '销售订单号', width: 120, align:'left', },
|
|
|
+ ],
|
|
|
"排程中": [
|
|
|
- // { title: '最早开工时间', prop: '最早开工时间', width: 120, align:'left', },
|
|
|
- { title: '工单编号', prop: '工单编号', width: 80, align:'left', },
|
|
|
- { title: '产品代号', prop: '产品代号', width: 90, align:'left', },
|
|
|
- { title: '产品名称', prop: '产品名称', width: 340, align:'left', },
|
|
|
- { title: '接单日期', prop: '接单日期', width: 110, align:'left', },
|
|
|
- { title: '交货日期', prop: '交货日期', width: 110, align:'left', },
|
|
|
- { title: '订单数量', prop: '订单数量', width: 80, align:'left', },
|
|
|
- { title: '计量单位', prop: '计量单位', width: 80, align:'left', },
|
|
|
- { title: '销售订单号', prop: '销售订单号', width: 200, align:'left', },
|
|
|
- // { title: '排程类型', prop: '排程类型', width: 120, align:'left', },
|
|
|
- { title: '客户编号', prop: '客户编号', width: 120, align:'left', },
|
|
|
- { title: '客户名称', prop: '客户名称', width: 230, align:'left', },
|
|
|
- { title: '创建用户', prop: '创建用户', width: 120, align:'left', },
|
|
|
- // { title: 'GDUID', prop: 'GDUID', width: 120, align:'left', },
|
|
|
- { title: 'GYUID', prop: 'GYUID', width: 100, align:'left', },
|
|
|
- ],
|
|
|
+ // { title: '最早开工时间', prop: '最早开工时间', width: 120, align:'left', },
|
|
|
+ { title: '工单编号', prop: '工单编号', width: 80, align:'left', },
|
|
|
+ { title: '产品代号', prop: '产品代号', width: 90, align:'left', },
|
|
|
+ { title: '产品名称', prop: '产品名称', width: 340, align:'left', },
|
|
|
+ { title: '接单日期', prop: '接单日期', width: 110, align:'left', },
|
|
|
+ { title: '交货日期', prop: '交货日期', width: 110, align:'left', },
|
|
|
+ { title: '订单数量', prop: '订单数量', width: 80, align:'left', },
|
|
|
+ { title: '计量单位', prop: '计量单位', width: 80, align:'left', },
|
|
|
+ { title: '销售订单号', prop: '销售订单号', width: 200, align:'left', },
|
|
|
+ // { title: '排程类型', prop: '排程类型', width: 120, align:'left', },
|
|
|
+ { title: '客户编号', prop: '客户编号', width: 120, align:'left', },
|
|
|
+ { title: '客户名称', prop: '客户名称', width: 230, align:'left', },
|
|
|
+ { title: '创建用户', prop: '创建用户', width: 120, align:'left', },
|
|
|
+ // { title: 'GDUID', prop: 'GDUID', width: 120, align:'left', },
|
|
|
+ { title: 'GYUID', prop: 'GYUID', width: 100, align:'left', },
|
|
|
+ ],
|
|
|
"制程中": [
|
|
|
- // { title: '最早开工时间', prop: '最早开工时间', width: 120, align:'left', },
|
|
|
- { title: '工单编号', prop: '工单编号', width: 80, align:'left', },
|
|
|
- { title: '产品代号', prop: '产品代号', width: 90, align:'left', },
|
|
|
- { title: '产品名称', prop: '产品名称', width: 340, align:'left', },
|
|
|
- { title: '接单日期', prop: '接单日期', width: 110, align:'left', },
|
|
|
- { title: '交货日期', prop: '交货日期', width: 110, align:'left', },
|
|
|
- { title: '订单数量', prop: '订单数量', width: 80, align:'left', },
|
|
|
- { title: '计量单位', prop: '计量单位', width: 80, align:'left', },
|
|
|
- { title: '销售订单号', prop: '销售订单号', width: 200, align:'left', },
|
|
|
- // { title: '排程类型', prop: '排程类型', width: 120, align:'left', },
|
|
|
- { title: '客户编号', prop: '客户编号', width: 120, align:'left', },
|
|
|
- { title: '客户名称', prop: '客户名称', width: 120, align:'left', },
|
|
|
- { title: '客户料号', prop: '客户料号', width: 160, align:'left', },
|
|
|
- // { title: 'GDUID', prop: 'GDUID', width: 120, align:'left', },
|
|
|
- { title: 'GYUID', prop: 'GYUID', width: 100, align:'left', },
|
|
|
- ],
|
|
|
+ // { title: '最早开工时间', prop: '最早开工时间', width: 120, align:'left', },
|
|
|
+ { title: '工单编号', prop: '工单编号', width: 80, align:'left', },
|
|
|
+ { title: '产品代号', prop: '产品代号', width: 90, align:'left', },
|
|
|
+ { title: '产品名称', prop: '产品名称', width: 340, align:'left', },
|
|
|
+ { title: '接单日期', prop: '接单日期', width: 110, align:'left', },
|
|
|
+ { title: '交货日期', prop: '交货日期', width: 110, align:'left', },
|
|
|
+ { title: '订单数量', prop: '订单数量', width: 80, align:'left', },
|
|
|
+ { title: '计量单位', prop: '计量单位', width: 80, align:'left', },
|
|
|
+ { title: '销售订单号', prop: '销售订单号', width: 200, align:'left', },
|
|
|
+ // { title: '排程类型', prop: '排程类型', width: 120, align:'left', },
|
|
|
+ { title: '客户编号', prop: '客户编号', width: 120, align:'left', },
|
|
|
+ { title: '客户名称', prop: '客户名称', width: 120, align:'left', },
|
|
|
+ { title: '客户料号', prop: '客户料号', width: 160, align:'left', },
|
|
|
+ // { title: 'GDUID', prop: 'GDUID', width: 120, align:'left', },
|
|
|
+ { title: 'GYUID', prop: 'GYUID', width: 100, align:'left', },
|
|
|
+ ],
|
|
|
"已完工": [
|
|
|
- { title: '工单编号', prop: '工单编号', width: 80, align:'left', },
|
|
|
- { title: '产品代号', prop: '产品代号', width: 110, align:'left', },
|
|
|
- { title: '产品名称', prop: '产品名称', width: 340, align:'left', },
|
|
|
- { title: '接单日期', prop: '接单日期', width: 110, align:'left', },
|
|
|
- { title: '交货日期', prop: '交货日期', width: 110, align:'left', },
|
|
|
- { title: '订单数量', prop: '订单数量', width: 80, align:'left', },
|
|
|
- { title: '计量单位', prop: '计量单位', width: 80, align:'left', },
|
|
|
- { title: '销售订单号', prop: '销售订单号', width: 120, align:'left', },
|
|
|
- { title: '客户编号', prop: '客户编号', width: 80, align:'left', },
|
|
|
- { title: '客户名称', prop: '客户名称', width: 120, align:'left', },
|
|
|
- { title: '客户料号', prop: '客户料号', width: 120, align:'left', },
|
|
|
- // { title: '排程类型', prop: '排程类型', width: 120, align:'left', },
|
|
|
- { title: 'GDUID', prop: 'GDUID', width: 80, align:'left', },
|
|
|
- ]
|
|
|
- })
|
|
|
+ { title: '工单编号', prop: '工单编号', width: 80, align:'left', },
|
|
|
+ { title: '产品代号', prop: '产品代号', width: 110, align:'left', },
|
|
|
+ { title: '产品名称', prop: '产品名称', width: 340, align:'left', },
|
|
|
+ { title: '接单日期', prop: '接单日期', width: 110, align:'left', },
|
|
|
+ { title: '交货日期', prop: '交货日期', width: 110, align:'left', },
|
|
|
+ { title: '订单数量', prop: '订单数量', width: 80, align:'left', },
|
|
|
+ { title: '计量单位', prop: '计量单位', width: 80, align:'left', },
|
|
|
+ { title: '销售订单号', prop: '销售订单号', width: 120, align:'left', },
|
|
|
+ { title: '客户编号', prop: '客户编号', width: 80, align:'left', },
|
|
|
+ { title: '客户名称', prop: '客户名称', width: 120, align:'left', },
|
|
|
+ { title: '客户料号', prop: '客户料号', width: 120, align:'left', },
|
|
|
+ // { title: '排程类型', prop: '排程类型', width: 120, align:'left', },
|
|
|
+ { title: 'GDUID', prop: 'GDUID', width: 80, align:'left', },
|
|
|
+ ]
|
|
|
+})
|
|
|
//排程中、制程中下方表格列表
|
|
|
const bottomTableF = ref({
|
|
|
"排程中": [
|
|
|
@@ -635,7 +593,7 @@ const bottomTableF = ref({
|
|
|
{ title:'排单备注', prop: '排单备注', width: 120, align:'left', },
|
|
|
{ title:'工序完工', prop: '工序完工', width: 160, align:'left', },
|
|
|
{ title:'UNIQID', prop: 'UNIQID', width: 120, align:'left', },
|
|
|
- ],
|
|
|
+ ],
|
|
|
})
|
|
|
//左侧左边栏
|
|
|
const treeData = ref([]);
|
|
|
@@ -835,13 +793,13 @@ const onSubmit = () => {
|
|
|
return false;
|
|
|
}
|
|
|
if(!_machine.value){
|
|
|
- if (currentNode.value === '计划中' || currentNode.value === '已完工') {
|
|
|
- _Project();
|
|
|
- } else if (currentNode.value === '排程中' || currentNode.value === '制程中') {
|
|
|
- _Schedule();
|
|
|
- } else {
|
|
|
- ElMessage({ type: 'warning', message: '查询不到具体条件的工单' });
|
|
|
- }
|
|
|
+ if (currentNode.value === '计划中' || currentNode.value === '已完工') {
|
|
|
+ _Project();
|
|
|
+ } else if (currentNode.value === '排程中' || currentNode.value === '制程中') {
|
|
|
+ _Schedule();
|
|
|
+ } else {
|
|
|
+ ElMessage({ type: 'warning', message: '查询不到具体条件的工单' });
|
|
|
+ }
|
|
|
}else{
|
|
|
_MachineWorkOrderList();
|
|
|
}
|
|
|
@@ -918,20 +876,20 @@ const onztwgClick = async () => {
|
|
|
if(_ZC_gdbh.value == null || _ZC_gdbh.value == ''){
|
|
|
ElMessage({type: 'warning', message: '请勾选制程中工单'})
|
|
|
}else{
|
|
|
- let params = {}
|
|
|
- params.workOrder = _ZC_gdbh.value;
|
|
|
- params.machine = _machine.value;
|
|
|
- params.printCode = _ZC_yjno.value;
|
|
|
- params.processCode = _ZC_gxh.value;
|
|
|
- const ProductionSchedulingAdd_stop = await ProductionSchedulingPause(params);
|
|
|
- if (ProductionSchedulingAdd_stop.code === 0) {
|
|
|
- const pc_zc_table = await MachineWorkOrderList({machine:_machine.value});
|
|
|
- chejianData.value = pc_zc_table.data['排程'];
|
|
|
- chejianfuData.value = pc_zc_table.data['制程'];
|
|
|
- ElMessage({type: 'success',message: '暂停排产 更新成功'});
|
|
|
- } else {
|
|
|
- ElMessage({ type: 'error',message: '更新失败'})
|
|
|
- }
|
|
|
+ let params = {}
|
|
|
+ params.workOrder = _ZC_gdbh.value;
|
|
|
+ params.machine = _machine.value;
|
|
|
+ params.printCode = _ZC_yjno.value;
|
|
|
+ params.processCode = _ZC_gxh.value;
|
|
|
+ const ProductionSchedulingAdd_stop = await ProductionSchedulingPause(params);
|
|
|
+ if (ProductionSchedulingAdd_stop.code === 0) {
|
|
|
+ const pc_zc_table = await MachineWorkOrderList({machine:_machine.value});
|
|
|
+ chejianData.value = pc_zc_table.data['排程'];
|
|
|
+ chejianfuData.value = pc_zc_table.data['制程'];
|
|
|
+ ElMessage({type: 'success',message: '暂停排产 更新成功'});
|
|
|
+ } else {
|
|
|
+ ElMessage({ type: 'error',message: '更新失败'})
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
//工序完工按钮
|
|
|
@@ -986,47 +944,6 @@ const ZP_handleChange = (arr) => {
|
|
|
_ZC_xscn.value = xscn;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-//==============工单打印=============
|
|
|
-const print_gdlist = ref(false);
|
|
|
-const print_formData = ref({
|
|
|
- gdbh: '',
|
|
|
- yjh: '',
|
|
|
- zzgxh: '',
|
|
|
- yjmc: '',
|
|
|
- zd: '',
|
|
|
- sh: '',
|
|
|
- outputType: ''
|
|
|
-});
|
|
|
-//工单打印按钮
|
|
|
-const pd_gdprintonClick = async () => {
|
|
|
- console.log(213)
|
|
|
- // print_formData['gdbh'] = _Gd_gdbh.value;
|
|
|
- print_formData['gdbh'] = '2310777';
|
|
|
- print_gdlist.value = true;
|
|
|
-}
|
|
|
-//工单打印回车
|
|
|
-const print_ProductValue = async () => {
|
|
|
-
|
|
|
-}
|
|
|
-//工单打印确定
|
|
|
-const print_handleConfirm = async () => {
|
|
|
- // print_gdlist.value = false;
|
|
|
-}
|
|
|
-//工单打印取消
|
|
|
-const print_handleCancel = async () => {
|
|
|
- print_gdlist.value = false;
|
|
|
-}
|
|
|
-//调用打印接口
|
|
|
-const _PrintJobOrder = async () => {
|
|
|
- const print_PrintJobOrder = await PrintJobOrder();
|
|
|
- console.log(print_PrintJobOrder)
|
|
|
- print_gdlist.value = false;
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
//=========工序产量核查===========
|
|
|
const pd_gxclhclist = ref(false);
|
|
|
const gxclhc_Data = ref([]);
|
|
|
@@ -1077,9 +994,9 @@ const _getOrderProcessCount = async () => {
|
|
|
const getOrderProcessCount_list = await getOrderProcessCount({order:order});
|
|
|
const concatenatedData = getOrderProcessCount_list.data.map(item => {
|
|
|
// 优化后的代码,使用模板字符串连接字段值并在单个数字前添加零
|
|
|
- const formattedYjno = item.Gy0_yjno.length === 1 ? `0${item.Gy0_yjno}` : item.Gy0_yjno;
|
|
|
- const formattedGxh = item.Gy0_gxh.length === 1 ? `0${item.Gy0_gxh}` : item.Gy0_gxh;
|
|
|
- const concatenatedValue = `${formattedYjno}-${formattedGxh} ${item.Gy0_gxmc}`;
|
|
|
+ const formattedYjno = item.Gy0_yjno.length === 1 ? `0${item.Gy0_yjno}` : item.Gy0_yjno;
|
|
|
+ const formattedGxh = item.Gy0_gxh.length === 1 ? `0${item.Gy0_gxh}` : item.Gy0_gxh;
|
|
|
+ const concatenatedValue = `${formattedYjno}-${formattedGxh} ${item.Gy0_gxmc}`;
|
|
|
return {
|
|
|
...item,
|
|
|
concatenatedData: concatenatedValue, // 使用新属性名
|
|
|
@@ -1368,6 +1285,11 @@ const cjsbpcformData = reactive({
|
|
|
banci: '',
|
|
|
isBanciSelected: false,
|
|
|
});
|
|
|
+
|
|
|
+const pd_gdprintonClick = () => {
|
|
|
+ printPageRef.value.open(_Gd_gdbh.value)
|
|
|
+}
|
|
|
+
|
|
|
//车间设备排程【按钮】
|
|
|
const oncjsbpcClick = () => {
|
|
|
cjsbpcformData['sbdh'] = _machine.value;
|