|
@@ -28,23 +28,17 @@
|
|
|
/>
|
|
|
|
|
|
<template v-for="(item, index) in settlementList" :key="index">
|
|
|
- <wd-card>
|
|
|
+ <wd-card :title="'开票日期:' + item.COL_0.value">
|
|
|
<view class="project-body" @click="goDetail(item)">
|
|
|
<view class="body-list" v-for="(field, i) in showListField" :key="i">
|
|
|
<view>{{ field.content }}: {{ item[field.field].value }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<template #footer>
|
|
|
- <wd-button size="small" plain @click="goEdit(item)">编辑</wd-button>
|
|
|
- <wd-button
|
|
|
- style="margin-left: 10px"
|
|
|
- size="small"
|
|
|
- type="error"
|
|
|
- plain
|
|
|
- @click="deleteData(item)"
|
|
|
- >
|
|
|
- 删除
|
|
|
- </wd-button>
|
|
|
+ <!-- 查看详情 -->
|
|
|
+ <wd-button size="small" type="warning" @click="goDetail(item)">查看详情</wd-button>
|
|
|
+ <wd-button size="small" @click="goEdit(item)">编辑</wd-button>
|
|
|
+ <wd-button size="small" type="error" @click="deleteData(item)">删除</wd-button>
|
|
|
</template>
|
|
|
</wd-card>
|
|
|
</template>
|
|
@@ -80,8 +74,9 @@ const menu = ref([
|
|
|
]);
|
|
|
const showListField = ref([
|
|
|
{
|
|
|
- content: '开票日期',
|
|
|
- field: 'COL_0',
|
|
|
+ // 开票金额 7
|
|
|
+ content: '开票金额',
|
|
|
+ field: 'COL_7',
|
|
|
},
|
|
|
{
|
|
|
content: '项目名称',
|
|
@@ -331,6 +326,13 @@ function addData() {
|
|
|
query: { filedsData: '[]', formKey: formKey.value },
|
|
|
});
|
|
|
}
|
|
|
+// goDetail 去往详情页
|
|
|
+function goDetail(item) {
|
|
|
+ router.push({
|
|
|
+ path: 'pages/settlement/detail',
|
|
|
+ query: { filedsData: JSON.stringify(item || '[]'), formKey: formKey.value },
|
|
|
+ });
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
@@ -417,4 +419,9 @@ function addData() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+.settlement-form {
|
|
|
+ :deep .wd-button + .wd-button {
|
|
|
+ margin-left: 20rpx;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|