|
|
|
@ -55,6 +55,12 @@ |
|
|
|
|
<template slot="htmlSlot" slot-scope="text"> |
|
|
|
|
<div v-html="text"></div> |
|
|
|
|
</template> |
|
|
|
|
<template slot="gw" slot-scope="text, record"> |
|
|
|
|
<a @click="gw(record.stationId)">{{text}}</a> |
|
|
|
|
</template> |
|
|
|
|
<template slot="gd" slot-scope="text, record"> |
|
|
|
|
<a @click="gd(record.productNo)">{{text}}</a> |
|
|
|
|
</template> |
|
|
|
|
<template slot="nodata" slot-scope="text, record"> |
|
|
|
|
<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> |
|
|
|
@ -103,6 +109,8 @@ |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<zy-plan-process-modal ref="modalForm" @ok="modalFormOk"></zy-plan-process-modal> |
|
|
|
|
<station-modal1 ref="modalFormgw"></station-modal1> |
|
|
|
|
<work-order-modal ref="modalFormgd"></work-order-modal> |
|
|
|
|
</a-card> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
@ -113,12 +121,17 @@ |
|
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
|
|
|
|
import ZyPlanProcessModal from './modules/ZyPlanProcessModal' |
|
|
|
|
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' |
|
|
|
|
import StationModal1 from "../team/modules/StationModal1"; |
|
|
|
|
import WorkOrderModal from "../workorder/modules/WorkOrderModal"; |
|
|
|
|
import {deleteAction, getAction} from "@api/manage"; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: 'ZyPlanProcessList', |
|
|
|
|
mixins:[JeecgListMixin, mixinDevice], |
|
|
|
|
components: { |
|
|
|
|
ZyPlanProcessModal |
|
|
|
|
ZyPlanProcessModal, |
|
|
|
|
StationModal1, |
|
|
|
|
WorkOrderModal |
|
|
|
|
}, |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
@ -135,6 +148,17 @@ |
|
|
|
|
return parseInt(index)+1; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title:'工单编号', |
|
|
|
|
align:"center", |
|
|
|
|
dataIndex: 'productNo', |
|
|
|
|
scopedSlots: {customRender: 'gd'} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title:'产品名称', |
|
|
|
|
align:"center", |
|
|
|
|
dataIndex: 'productCode_dictText' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title:'工序名称', |
|
|
|
|
align:"center", |
|
|
|
@ -143,7 +167,8 @@ |
|
|
|
|
{ |
|
|
|
|
title:'工位名称', |
|
|
|
|
align:"center", |
|
|
|
|
dataIndex: 'stationName' |
|
|
|
|
dataIndex: 'stationName', |
|
|
|
|
scopedSlots: {customRender: 'gw'} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title:'工位序号', |
|
|
|
@ -223,6 +248,25 @@ |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
gw(stationId){ |
|
|
|
|
getAction("/team/station/queryById", {id: stationId}).then((res) => { |
|
|
|
|
if (res.success) { |
|
|
|
|
this.$refs.modalFormgw.edit(res.result); |
|
|
|
|
this.$refs.modalFormgw.title="详情"; |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
gd(orderCode){ |
|
|
|
|
getAction("/workOrder/workOrder/queryByOrderCode", {orderCode: orderCode}).then((res) => { |
|
|
|
|
if (res.success) { |
|
|
|
|
this.$refs.modalFormgd.edit(res.result); |
|
|
|
|
this.$refs.modalFormgd.title="详情"; |
|
|
|
|
this.$refs.modalFormgd.disableSubmit = true; |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
initDictConfig(){ |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|