|
|
@ -61,6 +61,15 @@ |
|
|
|
<template slot="gd" slot-scope="text, record"> |
|
|
|
<template slot="gd" slot-scope="text, record"> |
|
|
|
<a @click="gd(record.productNo)">{{text}}</a> |
|
|
|
<a @click="gd(record.productNo)">{{text}}</a> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
<template slot="cp" slot-scope="text, record"> |
|
|
|
|
|
|
|
<a @click="cp(record.productCode)">{{text}}</a> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<template slot="gx" slot-scope="text, record"> |
|
|
|
|
|
|
|
<a @click="gx(record.processId)">{{text}}</a> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<template slot="sb" slot-scope="text, record"> |
|
|
|
|
|
|
|
<a @click="sb(record.machineIds)">{{text}}</a> |
|
|
|
|
|
|
|
</template> |
|
|
|
<template slot="nodata" slot-scope="text, record"> |
|
|
|
<template slot="nodata" slot-scope="text, record"> |
|
|
|
<span v-if="!text" style="font-size: 14px;font-style: italic;">无</span> |
|
|
|
<span v-if="!text" style="font-size: 14px;font-style: italic;">无</span> |
|
|
|
<span v-else style="font-size: 14px;font-style: italic;">{{record.proProcessName}}</span> |
|
|
|
<span v-else style="font-size: 14px;font-style: italic;">{{record.proProcessName}}</span> |
|
|
@ -111,6 +120,9 @@ |
|
|
|
<zy-plan-process-modal ref="modalForm" @ok="modalFormOk"></zy-plan-process-modal> |
|
|
|
<zy-plan-process-modal ref="modalForm" @ok="modalFormOk"></zy-plan-process-modal> |
|
|
|
<station-modal1 ref="modalFormgw"></station-modal1> |
|
|
|
<station-modal1 ref="modalFormgw"></station-modal1> |
|
|
|
<work-order-modal ref="modalFormgd"></work-order-modal> |
|
|
|
<work-order-modal ref="modalFormgd"></work-order-modal> |
|
|
|
|
|
|
|
<zy-product-modal ref="modalFormcp"></zy-product-modal> |
|
|
|
|
|
|
|
<ZyProcessDetail ref="zyProcessDetail"></ZyProcessDetail> |
|
|
|
|
|
|
|
<ZyDeviceDetail ref="ZyDeviceDetail"></ZyDeviceDetail> |
|
|
|
</a-card> |
|
|
|
</a-card> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -124,6 +136,9 @@ |
|
|
|
import StationModal1 from "../team/modules/StationModal1"; |
|
|
|
import StationModal1 from "../team/modules/StationModal1"; |
|
|
|
import WorkOrderModal from "../workorder/modules/WorkOrderModal"; |
|
|
|
import WorkOrderModal from "../workorder/modules/WorkOrderModal"; |
|
|
|
import {deleteAction, getAction} from "@api/manage"; |
|
|
|
import {deleteAction, getAction} from "@api/manage"; |
|
|
|
|
|
|
|
import ZyProductModal from "../zyWorkProduct/modules/ZyProductModal"; |
|
|
|
|
|
|
|
import ZyProcessDetail from "../process/modules/ZyProcessDetail"; |
|
|
|
|
|
|
|
import ZyDeviceDetail from "../device/modules/ZyDeviceDetail"; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'ZyPlanProcessList', |
|
|
|
name: 'ZyPlanProcessList', |
|
|
@ -131,7 +146,10 @@ |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
ZyPlanProcessModal, |
|
|
|
ZyPlanProcessModal, |
|
|
|
StationModal1, |
|
|
|
StationModal1, |
|
|
|
WorkOrderModal |
|
|
|
WorkOrderModal, |
|
|
|
|
|
|
|
ZyProductModal, |
|
|
|
|
|
|
|
ZyProcessDetail, |
|
|
|
|
|
|
|
ZyDeviceDetail |
|
|
|
}, |
|
|
|
}, |
|
|
|
data () { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
return { |
|
|
@ -157,12 +175,14 @@ |
|
|
|
{ |
|
|
|
{ |
|
|
|
title:'产品名称', |
|
|
|
title:'产品名称', |
|
|
|
align:"center", |
|
|
|
align:"center", |
|
|
|
dataIndex: 'productCode_dictText' |
|
|
|
dataIndex: 'productCode_dictText', |
|
|
|
|
|
|
|
scopedSlots: {customRender: 'cp'} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title:'工序名称', |
|
|
|
title:'工序名称', |
|
|
|
align:"center", |
|
|
|
align:"center", |
|
|
|
dataIndex: 'processName' |
|
|
|
dataIndex: 'processName', |
|
|
|
|
|
|
|
scopedSlots: {customRender: 'gx'} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title:'工位名称', |
|
|
|
title:'工位名称', |
|
|
@ -178,7 +198,8 @@ |
|
|
|
{ |
|
|
|
{ |
|
|
|
title:'设备名称', |
|
|
|
title:'设备名称', |
|
|
|
align:"center", |
|
|
|
align:"center", |
|
|
|
dataIndex: 'machineNames' |
|
|
|
dataIndex: 'machineNames', |
|
|
|
|
|
|
|
scopedSlots: {customRender: 'sb'} |
|
|
|
}, |
|
|
|
}, |
|
|
|
/* { |
|
|
|
/* { |
|
|
|
title:'工具名称', |
|
|
|
title:'工具名称', |
|
|
@ -267,6 +288,22 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
cp(productCode){ |
|
|
|
|
|
|
|
getAction("/zyproduct/zyProduct/queryByProductCode", {productCode: productCode}).then((res) => { |
|
|
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
|
|
this.$refs.modalFormcp.edit(res.result); |
|
|
|
|
|
|
|
this.$refs.modalFormcp.title="详情"; |
|
|
|
|
|
|
|
this.$refs.modalFormcp.disableSubmit = true; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
gx(processId){ |
|
|
|
|
|
|
|
this.$refs.zyProcessDetail.showModal(processId); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
sb(machineIds){ |
|
|
|
|
|
|
|
this.$refs.ZyDeviceDetail.showModal(machineIds.split(",")[0]); |
|
|
|
|
|
|
|
}, |
|
|
|
initDictConfig(){ |
|
|
|
initDictConfig(){ |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|