From 3c5205d857446563b3f89ae7432d76ba6d945a69 Mon Sep 17 00:00:00 2001 From: Houjie <714924425@qq.com> Date: 星期五, 12 九月 2025 18:17:58 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/mes/modules/MesProductionWorkOrderCheckBeforeExecuteModal.vue | 121 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 121 insertions(+), 0 deletions(-) diff --git a/src/views/mes/modules/MesProductionWorkOrderCheckBeforeExecuteModal.vue b/src/views/mes/modules/MesProductionWorkOrderCheckBeforeExecuteModal.vue new file mode 100644 index 0000000..f54e306 --- /dev/null +++ b/src/views/mes/modules/MesProductionWorkOrderCheckBeforeExecuteModal.vue @@ -0,0 +1,121 @@ +<template> + <j-modal + :title="title" + :width="width" + :visible="visible" + switchFullscreen + @ok="handleOk" + :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" + @cancel="handleCancel" + cancelText="鍏抽棴"> + + <a-divider class="divider-title">榻愬鎬ф鏌�</a-divider> + <a-list> + <a-list-item v-for="(item, index) in unCompletenessCheckList" :key="index"> + <span>鐗╂枡 <strong>{{ item }}</strong> 榻愬鎬ф鏌ヤ笉閫氳繃</span> + </a-list-item> + </a-list> + <a-divider class="divider-title">璁惧鐐规</a-divider> + <a-list> + <a-list-item v-for="(item, index) in unInspectEquipmentList" :key="index"> + <span>璁惧 <strong>{{ item }}</strong> 鏈繘琛岃澶囩偣妫�</span> + </a-list-item> + </a-list> + <a-divider class="divider-title">宸ヨ壓鐐规</a-divider> + <a-list> + <a-list-item v-for="(item, index) in unCheckEquipmentList" :key="index"> + <span>璁惧 <strong>{{ item }}</strong> 鏈繘琛屽伐鑹虹偣妫�</span> + </a-list-item> + </a-list> + </j-modal> +</template> + +<script> +import { postAction, getAction } from '@api/manage' + +export default { + name: 'MesProductionWorkOrderCheckBeforeExecuteModal', + 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 }, + }, + url: { + execute: '/mes/mesProductionWorkOrder/execute' + }, + orderId: null, + unCompletenessCheckList: [], + unInspectEquipmentList: [], + unCheckEquipmentList: [] + } + }, + computed: { + formDisabled(){ + return this.disabled + }, + }, + methods: { + open (id, record) { + this.orderId = id + this.unCompletenessCheckList = record.unCompletenessCheckList + this.unInspectEquipmentList = record.unInspectEquipmentList + this.unCheckEquipmentList = record.unCheckEquipmentList + this.visible = true + }, + close () { + this.$emit('close'); + this.visible = false; + }, + handleOk () { + this.$confirm({ + title: '纭鎿嶄綔', + content: '浠ヤ笂妫�鏌ャ�佺偣妫�椤规湭瀹屾垚锛岀‘璁ょ户缁墽琛屽伐鍗曪紵', + onOk: () => { + getAction(this.url.execute, {id: this.orderId}).then(res => { + if (res.success) { + this.$message.success(res.message) + this.submitCallback() + } else { + this.$message.warning(res.message) + } + }) + }, + onCancel: () => { + } + }) + }, + submitCallback(){ + this.$emit('ok'); + this.unCompletenessCheckList = [] + this.unInspectEquipmentList = [] + this.unCheckEquipmentList = [] + this.visible = false; + }, + handleCancel () { + this.close() + } + } +} +</script> + +<style scoped> + +.divider-title { + font-style: italic; + color: blue; +} + +</style> -- Gitblit v1.9.3