| | |
| | | keyFlag?: boolean; |
| | | checkFlag?: boolean; |
| | | backflushFlag?: boolean; |
| | | outputItemId?: number; |
| | | outputItemCode?: string; |
| | | outputItemName?: string; |
| | | remark?: string; |
| | | createTime?: Date; |
| | | } |
| | |
| | | <TaskList |
| | | :color-code="rp.colorCode" |
| | | :disabled="isReadonly" |
| | | :item-id="workOrder.productId" |
| | | :item-id="rp.outputItemId || workOrder.productId" |
| | | :process-id="rp.processId!" |
| | | :route-id="currentRouteId" |
| | | :work-order-id="workOrder.id!" |
| | |
| | | rules: z.boolean().default(true), |
| | | }, |
| | | { |
| | | fieldName: "outputItemId", |
| | | label: "产出产品", |
| | | component: markRaw(MdItemSelect), |
| | | componentProps: { |
| | | placeholder: "留空则默认为工单成品", |
| | | }, |
| | | formItemClass: "col-span-2", |
| | | }, |
| | | { |
| | | fieldName: "prepareTime", |
| | | label: "准备时间(分)", |
| | | component: "InputNumber", |
| | |
| | | props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING }, |
| | | }, |
| | | }, |
| | | { |
| | | field: "outputItemName", |
| | | title: "产出产品", |
| | | width: 140, |
| | | slots: { default: "outputItemName" }, |
| | | }, |
| | | { field: "prepareTime", title: "准备时间(分)", width: 110 }, |
| | | { field: "waitTime", title: "等待时间(分)", width: 110 }, |
| | | { |
| | |
| | | <span>{{ row.colorCode }}</span> |
| | | </div> |
| | | </template> |
| | | <template #outputItemName="{ row }"> |
| | | <span v-if="row.outputItemName">{{ row.outputItemName }}</span> |
| | | <span v-else class="text-gray-400">-</span> |
| | | </template> |
| | | <template #actions="{ row }"> |
| | | <TableAction |
| | | :actions="[ |