| | |
| | | import { logout } from '@/config.js'; |
| | | import { formatMessage } from '@/utils/localeUtils.js'; |
| | | import useTableSearch from '@/utils/tableUtils.jsx'; |
| | | import WorkTaskView from '@/components/order/workTask/index.vue' |
| | | import CompleteTaskView from '@/components/order/completeTask/index.vue' |
| | | const context = getCurrentInstance()?.appContext.config.globalProperties; |
| | | |
| | | const router = useRouter(); |
| | |
| | | orderType$: '', |
| | | orderSettle$: '', |
| | | }); |
| | | const workTaskChild = ref(null) |
| | | const completeTaskChild = ref(null) |
| | | |
| | | const showWidth = ref("60%") |
| | | getColumns(); |
| | |
| | | } |
| | | }) |
| | | |
| | | const openWorkTask = (record) => { |
| | | workTaskChild.value.open = true; |
| | | workTaskChild.value.showWidth = '55%'; |
| | | workTaskChild.value.orderDetlId = record.detlId; |
| | | } |
| | | |
| | | const openCompleteQty = (record) => { |
| | | completeTaskChild.value.open = true; |
| | | completeTaskChild.value.showWidth = '55%'; |
| | | completeTaskChild.value.orderDetlId = record.detlId; |
| | | } |
| | | |
| | | defineExpose({ |
| | | tableData, |
| | | orderId, |
| | |
| | | </div> |
| | | <a-table :data-source="tableData" :defaultExpandAllRows="false" :key="TABLE_KEY" rowKey="id" |
| | | :scroll="{ y: 768 }" :columns="state.columns"> |
| | | <template #bodyCell="{ column, text, record }"> |
| | | <template v-if="column.dataIndex === 'workQty'"> |
| | | <a-button type="link" @click="openWorkTask(record)">{{ text }}</a-button> |
| | | </template> |
| | | |
| | | <template v-if="column.dataIndex === 'qty'"> |
| | | <a-button type="link" @click="openCompleteQty(record)">{{ text }}</a-button> |
| | | </template> |
| | | </template> |
| | | </a-table> |
| | | |
| | | <WorkTaskView ref="workTaskChild" /> |
| | | <CompleteTaskView ref="completeTaskChild" /> |
| | | </a-modal> |
| | | </div> |
| | | </template> |