|
|
|
@ -88,7 +88,7 @@
|
|
|
|
</el-tabs> -->
|
|
|
|
</el-tabs> -->
|
|
|
|
<el-tabs v-if="scope.row.status == 6" model-value="zj">
|
|
|
|
<el-tabs v-if="scope.row.status == 6" model-value="zj">
|
|
|
|
<el-tab-pane :label="t('ProductionPlan.Plan.detailInspectTabLabel')" name="zj">
|
|
|
|
<el-tab-pane :label="t('ProductionPlan.Plan.detailInspectTabLabel')" name="zj">
|
|
|
|
<ZjProductPreList :ticket="scope.row.id"
|
|
|
|
<ZjProductPreList :key="`${scope.row.id}-zj-${zjProductPreListRefreshKey}`" :ticket="scope.row.id"
|
|
|
|
@inspectable-change="(hasPending) => setInspectable(scope.row.id, hasPending)" />
|
|
|
|
@inspectable-change="(hasPending) => setInspectable(scope.row.id, hasPending)" />
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tabs>
|
|
|
|
</el-tabs>
|
|
|
|
@ -100,7 +100,7 @@
|
|
|
|
<BaogongRecordList :key="`${scope.row.id}-${baogongRecordRefreshKey}`" :plan-id="scope.row.id" />
|
|
|
|
<BaogongRecordList :key="`${scope.row.id}-${baogongRecordRefreshKey}`" :plan-id="scope.row.id" />
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane :label="t('ProductionPlan.Plan.detailInspectTabLabel')" name="zj" v-if="scope.row.status == 8">
|
|
|
|
<el-tab-pane :label="t('ProductionPlan.Plan.detailInspectTabLabel')" name="zj" v-if="scope.row.status == 8">
|
|
|
|
<ZjProductPreList :ticket="scope.row.id"
|
|
|
|
<ZjProductPreList :key="`${scope.row.id}-zj-${zjProductPreListRefreshKey}`" :ticket="scope.row.id"
|
|
|
|
@inspectable-change="(hasPending) => setInspectable(scope.row.id, hasPending)" />
|
|
|
|
@inspectable-change="(hasPending) => setInspectable(scope.row.id, hasPending)" />
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tabs>
|
|
|
|
</el-tabs>
|
|
|
|
@ -258,7 +258,7 @@
|
|
|
|
</Dialog>
|
|
|
|
</Dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 检验任务弹窗 -->
|
|
|
|
<!-- 检验任务弹窗 -->
|
|
|
|
<ZjTaskForm ref="zjTaskFormRef" @success="getList" />
|
|
|
|
<ZjTaskForm ref="zjTaskFormRef" @success="handleZjTaskSuccess" />
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
@ -297,6 +297,7 @@ const total = ref(0) // 列表的总页数
|
|
|
|
const tableRef = ref()
|
|
|
|
const tableRef = ref()
|
|
|
|
const inspectableMap = reactive<Record<number, boolean | undefined>>({})
|
|
|
|
const inspectableMap = reactive<Record<number, boolean | undefined>>({})
|
|
|
|
const baogongRecordRefreshKey = ref(0)
|
|
|
|
const baogongRecordRefreshKey = ref(0)
|
|
|
|
|
|
|
|
const zjProductPreListRefreshKey = ref(0)
|
|
|
|
const queryParams = reactive({
|
|
|
|
const queryParams = reactive({
|
|
|
|
pageNo: 1,
|
|
|
|
pageNo: 1,
|
|
|
|
pageSize: 10,
|
|
|
|
pageSize: 10,
|
|
|
|
@ -437,6 +438,11 @@ const handleInspectExpand = (row: PlanVO) => {
|
|
|
|
tableRef.value?.toggleRowExpansion?.(row, true)
|
|
|
|
tableRef.value?.toggleRowExpansion?.(row, true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const handleZjTaskSuccess = async () => {
|
|
|
|
|
|
|
|
zjProductPreListRefreshKey.value += 1
|
|
|
|
|
|
|
|
await getList()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const zjTaskFormRef = ref()
|
|
|
|
const zjTaskFormRef = ref()
|
|
|
|
const openZjTaskForm = (row: PlanVO) => {
|
|
|
|
const openZjTaskForm = (row: PlanVO) => {
|
|
|
|
zjTaskFormRef.value.open('create', undefined, { ticketType: 1, ticket: row.id, ticketName: row.code, productId: row.productId })
|
|
|
|
zjTaskFormRef.value.open('create', undefined, { ticketType: 1, ticket: row.id, ticketName: row.code, productId: row.productId })
|
|
|
|
|