| | |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | <span v-if="record.workOrderStatus === 'PUBLISHED' || record.workOrderStatus === 'EXECUTING'"> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleRePublish(record)">éåå¸</a> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'PUBLISHED'"> |
| | | <a-divider type="vertical" /> |
| | | <a-popconfirm title="ç¡®å®å¼å§æ§è¡å?" @confirm="() => handleExecute(record.id)"> |
| | | <a>æ§è¡</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'EXECUTING'"> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleWorkReport(record)">æ¥å·¥</a> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'NEW'"> |
| | | <a-divider type="vertical" /> |
| | | <a-popconfirm title="ç¡®å®åå¸å?" @confirm="() => handlePublish(record.id)"> |
| | | <a>åå¸</a> |
| | | </a-popconfirm> |
| | | <a-divider type="vertical" /> |
| | | <span v-if="record.workOrderStatus === 'NEW'"> |
| | | <a-popconfirm title="ç¡®å®åå¸å?" @confirm="() => handlePublish(record.id)"> |
| | | <a>åå¸</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'PUBLISHED' || record.workOrderStatus === 'EXECUTING'"> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleRePublish(record)">éåå¸</a> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'PUBLISHED' && record.completenessCheckFlag === '0'"> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleCompletenessCheck(record)">é½å¥æ§æ£æ¥</a> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'PUBLISHED' && record.equipmentInspectionFlag === '0'"> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleCompletenessCheck(record)">设å¤ç¹æ£</a> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'PUBLISHED' && record.processInspectionFlag === '0'"> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleCompletenessCheck(record)">å·¥èºç¹æ£</a> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'PUBLISHED' && record.completenessCheckFlag === '1' && record.equipmentInspectionFlag === '1' && record.processInspectionFlag === '1'"> |
| | | <a-divider type="vertical" /> |
| | | <a-popconfirm title="ç¡®å®å¼å§æ§è¡å?" @confirm="() => handleExecute(record.id)"> |
| | | <a>æ§è¡</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'EXECUTING'"> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleWorkReport(record)">æ¥å·¥</a> |
| | | </span> |
| | | <a-divider type="vertical" /> |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">æ´å¤ <a-icon type="down" /></a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | </a-menu-item> |
| | | <a-menu-item v-if="record.workOrderStatus === 'NEW'"> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a-menu-item v-if="record.workOrderStatus === 'NEW'"> |
| | | <a-popconfirm title="ç¡®å®å é¤å?" @confirm="() => handleDelete(record.id)"> |
| | | <a>å é¤</a> |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | |
| | | </span> |
| | | </a-table> |
| | |
| | | <mes-production-order-modal ref="MesProductionOrderModal"></mes-production-order-modal> |
| | | <MesMaterialUnloadingList ref="MesMaterialUnloadingList"></MesMaterialUnloadingList> |
| | | <MesMaterialTransferDetailList ref="MesMaterialTransferDetailList"></MesMaterialTransferDetailList> |
| | | <MesProductionWorkOrderScheduleModal ref="MesProductionWorkOrderScheduleModal"></MesProductionWorkOrderScheduleModal> |
| | | <MesProductionWorkOrderScheduleModal ref="MesProductionWorkOrderScheduleModal" @ok="modalFormOk"></MesProductionWorkOrderScheduleModal> |
| | | <MesProductionWorkOrderRepublishModal ref="MesProductionWorkOrderRepublishModal" @ok="modalFormOk"></MesProductionWorkOrderRepublishModal> |
| | | <MesProductionWorkOrderReportModal ref="MesProductionWorkOrderReportModal" @ok="modalFormOk"></MesProductionWorkOrderReportModal> |
| | | <MesProductionWorkOrderCompletenessCheckModal ref="MesProductionWorkOrderCompletenessCheckModal" @ok="modalFormOk"></MesProductionWorkOrderCompletenessCheckModal> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import MesProductionWorkOrderScheduleModal from '@views/mes/modules/MesProductionWorkOrderScheduleModal.vue' |
| | | import MesProductionWorkOrderRepublishModal from '@views/mes/modules/MesProductionWorkOrderRepublishModal.vue' |
| | | import MesProductionWorkOrderReportModal from '@views/mes/modules/MesProductionWorkOrderReportModal.vue' |
| | | import MesProductionWorkOrderCompletenessCheckModal from '@views/mes/modules/MesProductionWorkOrderCompletenessCheckModal.vue' |
| | | |
| | | export default { |
| | | name: 'MesProductionWorkOrderList', |
| | |
| | | MesProductionWorkOrderScheduleModal, |
| | | MesProductionWorkOrderRepublishModal, |
| | | MesProductionWorkOrderReportModal, |
| | | MesProductionWorkOrderCompletenessCheckModal |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | handleWorkReport(record) { |
| | | this.$refs.MesProductionWorkOrderReportModal.add(record) |
| | | }, |
| | | handleCompletenessCheck(record) { |
| | | this.$refs.MesProductionWorkOrderCompletenessCheckModal.check(record) |
| | | }, |
| | | async handleTransferDetail(row){ |
| | | console.log('row---->',row) |
| | | const transferDetailResult = await getAction(this.url.queryTransferDetailBy,{'requestId':row.id}) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="width" |
| | | :visible="visible" |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="false" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap"> |
| | | |
| | | <template slot="checkFlag" slot-scope="text, record"> |
| | | <span v-if="text === '0'" style="color: red">å¦</span> |
| | | <span v-if="text === '1'" style="color: green">æ¯</span> |
| | | </template> |
| | | </a-table> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import { postAction, getAction } from '@api/manage' |
| | | |
| | | export default { |
| | | name: 'MesProductionWorkOrderReportModal', |
| | | data () { |
| | | return { |
| | | title: 'é½å¥æ§æ£æ¥', |
| | | width: 800, |
| | | visible: false, |
| | | loading: false, |
| | | disableSubmit: false, |
| | | model: {}, |
| | | validatorRules: { |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 6 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 18 }, |
| | | }, |
| | | dataSource: [], |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title:'ç©æç¼å·', |
| | | align:"center", |
| | | dataIndex: 'materialNumber' |
| | | }, |
| | | { |
| | | title:'ç©æåç§°', |
| | | align:"center", |
| | | dataIndex: 'materialName' |
| | | }, |
| | | { |
| | | title:'éæ±æ°é', |
| | | align:"center", |
| | | dataIndex: 'requiredQuantity' |
| | | }, |
| | | { |
| | | title:'å®é
æ°é', |
| | | align:"center", |
| | | dataIndex: 'actualQuantity' |
| | | }, |
| | | { |
| | | title:'åºæ¬åä½', |
| | | align:"center", |
| | | dataIndex: 'productionUnit' |
| | | }, |
| | | { |
| | | title:'æ¯å¦é½å¤', |
| | | align:"center", |
| | | dataIndex: 'checkFlag', |
| | | scopedSlots: { customRender: 'checkFlag' } |
| | | }, |
| | | // { |
| | | // title: 'æä½', |
| | | // dataIndex: 'action', |
| | | // align:"center", |
| | | // fixed:"right", |
| | | // width:147, |
| | | // scopedSlots: { customRender: 'action' } |
| | | // } |
| | | ], |
| | | url: { |
| | | report: '/mesworkreporting/mesWorkReporting/add', |
| | | selectReportWorkOrderList: '/mes/productionOrder/selectReportWorkOrderList', |
| | | workOrderCompletenessCheck: '/mesproductionworkorder/mesProductionWorkOrder/workOrderCompletenessCheck', |
| | | add: '/meskittingcompletenesscheck/mesKittingCompletenessCheck/addBatch' |
| | | }, |
| | | workOrderOptions: [] |
| | | } |
| | | }, |
| | | computed: { |
| | | formDisabled(){ |
| | | return this.disabled |
| | | }, |
| | | }, |
| | | methods: { |
| | | check (record) { |
| | | this.loading = true |
| | | getAction(this.url.workOrderCompletenessCheck, {id: record.id}).then(res => { |
| | | if (res.success) { |
| | | res.result.map(item => item.workOrderId = record.id) |
| | | this.dataSource = res.result |
| | | } |
| | | }).finally(() => { |
| | | this.loading = false |
| | | }) |
| | | this.visible = true |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | handleOk () { |
| | | postAction(this.url.add, this.dataSource).then(res => { |
| | | if (res.success) { |
| | | this.$message.success('æ£æ¥ç»æå·²ä¿å') |
| | | this.submitCallback() |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | submitCallback(){ |
| | | this.$emit('ok'); |
| | | this.visible = false; |
| | | }, |
| | | handleCancel () { |
| | | this.close() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | import { postAction, getAction } from '@api/manage' |
| | | |
| | | export default { |
| | | name: 'MesProductionWorkOrderRepublishModal', |
| | | name: 'MesProductionWorkOrderReportModal', |
| | | data () { |
| | | return { |
| | | title: 'æ¥å·¥', |
| | |
| | | sm: { span: 18 }, |
| | | }, |
| | | url: { |
| | | republish: '/mesproductionworkorder/mesProductionWorkOrder/republish', |
| | | report: '/mesworkreporting/mesWorkReporting/add', |
| | | selectReportWorkOrderList: '/mes/productionOrder/selectReportWorkOrderList' |
| | | }, |
| | | workOrderOptions: [] |
| | |
| | | if (valid) { |
| | | this.confirmLoading = true |
| | | let formData = { |
| | | id: this.model.id, |
| | | planQuantity: this.model.planQuantity, |
| | | republishReason: this.model.republishReason |
| | | orderId: this.model.orderId, |
| | | workOrderId: this.model.id, |
| | | factoryId: this.model.factoryId, |
| | | quantity: this.model.quantity |
| | | } |
| | | postAction(this.url.republish, formData).then(res => { |
| | | postAction(this.url.report, formData).then(res => { |
| | | if (res.success) { |
| | | this.$message.success(res.message) |
| | | this.submitCallback() |
| | |
| | | methods: { |
| | | add() { |
| | | this.model = {}; |
| | | this.model.seqLength = 4; |
| | | // this.model.seqLength = 4; |
| | | this.editable = false; |
| | | this.visible = true |
| | | }, |