订单审核 点击项目编号 进入详情页

pull/3/head
qiuhongwu 9 months ago
parent 178ef2fbb9
commit 993c1fe8aa

@ -110,7 +110,9 @@
</el-select>
</el-form-item>
<el-form-item>
<el-button @click="handleQuery" type="primary"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
<el-button @click="handleQuery" type="primary"
><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button
>
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
</el-form-item>
</el-form>
@ -118,9 +120,21 @@
<!-- 列表 -->
<ContentWrap>
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true" class="hl-table">
<el-table
v-loading="loading"
:data="list"
:stripe="true"
:show-overflow-tooltip="true"
class="hl-table"
>
<el-table-column fixed label="序号" type="index" width="100" />
<el-table-column fixed label="项目编号" align="center" prop="code" width="240"/>
<el-table-column fixed label="项目编号" align="center" prop="code" width="240">
<template #default="scope">
<el-button type="text" @click="openDetail('detail', scope.row.id)">{{
scope.row.code
}}</el-button></template
>
</el-table-column>
<el-table-column
fixed
label="订单日期"
@ -162,7 +176,11 @@
</el-table-column>
<el-table-column label="起止日期" align="center" prop="projectStartTime" width="260">
<template #default="scope">
{{formatDate(scope.row.projectStartTime,'YYYY-MM-DD') + '~' + formatDate(scope.row.projectEndTime, 'YYYY-MM-DD')}}
{{
formatDate(scope.row.projectStartTime, 'YYYY-MM-DD') +
'~' +
formatDate(scope.row.projectEndTime, 'YYYY-MM-DD')
}}
</template>
</el-table-column>
<el-table-column label="是否已变更" align="center" prop="hasAlter" width="150">
@ -170,12 +188,24 @@
<dict-tag :type="DICT_TYPE.HELI_COMMON_IS_OR_NOT" :value="scope.row.hasAlter" />
</template>
</el-table-column>
<el-table-column label="单据状态" align="center" prop="orderStatus" fixed="right" width="120">
<el-table-column
label="单据状态"
align="center"
prop="orderStatus"
fixed="right"
width="120"
>
<template #default="scope">
<dict-tag :type="DICT_TYPE.HELI_PROJECT_ORDER_STATUS" :value="scope.row.orderStatus" />
</template>
</el-table-column>
<el-table-column label="发货状态" align="center" prop="deliveryStatus" fixed="right" width="120">
<el-table-column
label="发货状态"
align="center"
prop="deliveryStatus"
fixed="right"
width="120"
>
<template #default="scope">
<dict-tag :type="DICT_TYPE.HELI_DELIVERY_STATUS" :value="scope.row.deliveryStatus" />
</template>
@ -190,11 +220,7 @@
>
去审核
</el-button>
<el-button
link
type="primary"
@click="openDetail('detail', scope.row.id)"
>
<el-button link type="primary" @click="openDetail('detail', scope.row.id)">
查看详情
</el-button>
</template>
@ -208,7 +234,6 @@
@pagination="getList"
/>
</ContentWrap>
</el-card>
</template>
@ -222,7 +247,7 @@ defineOptions({ name: 'ProjectOrderAudit' })
const message = useMessage() //
const { t } = useI18n() //
const router = useRouter();
const router = useRouter()
const loading = ref(true) //
const list = ref([]) //
@ -262,7 +287,7 @@ const queryParams = reactive({
snapshotId: undefined,
snapshotCode: undefined,
orderTime: [],
snapshotOrderTime: [],
snapshotOrderTime: []
})
const queryFormRef = ref() //
const exportLoading = ref(false) //
@ -333,8 +358,8 @@ const handleExport = async () => {
const handleCommand = async (command, id) => {
switch (command) {
case 'detail':
openDetail('detail', id);
break;
openDetail('detail', id)
break
}
}

Loading…
Cancel
Save