diff --git a/src/views/mes/plan/index.vue b/src/views/mes/plan/index.vue
index 5d8909a5..d2df198a 100644
--- a/src/views/mes/plan/index.vue
+++ b/src/views/mes/plan/index.vue
@@ -97,9 +97,9 @@
-
+
-
+
setInspectable(scope.row.id, hasPending)" />
@@ -188,17 +188,19 @@
{{ t('ProductionPlan.Plan.actionStartLabel') }}
+ @click="openBaogongForm(scope.row.code, scope.row.id)"
+ v-if="scope.row.status === 2 || scope.row.status === 8">
{{ t('ProductionPlan.Plan.actionBaogongLabel') }}
+ v-hasPermi="['mes:plan:update']" v-if="scope.row.status === 2 || scope.row.status === 8">
{{ t('ProductionPlan.Plan.actionPauseLabel') }}
+ v-hasPermi="['mes:plan:update']"
+ v-if="scope.row.status === 2 || scope.row.status === 3 || scope.row.status === 8">
{{ t('ProductionPlan.Plan.actionFinishLabel') }}
-
+
@@ -269,6 +271,7 @@ const list = ref([]) // 列表的数据
const total = ref(0) // 列表的总页数
const tableRef = ref()
const inspectableMap = reactive>({})
+const baogongRecordRefreshKey = ref(0)
const queryParams = reactive({
pageNo: 1,
pageSize: 10,
@@ -396,6 +399,10 @@ const baogongFormRef = ref()
const openBaogongForm = (planCode: string, planId: number) => {
baogongFormRef.value.open(planCode, planId)
}
+const handleBaogongSuccess = async () => {
+ baogongRecordRefreshKey.value += 1
+ await getList()
+}
const handleInspectExpand = (row: PlanVO) => {
tableRef.value?.toggleRowExpansion?.(row, true)