添加比稿价界面

This commit is contained in:
wangchengming 2025-08-18 20:00:18 +08:00
parent ace1976df8
commit 06b97dd52b
2 changed files with 244 additions and 3 deletions

View File

@ -0,0 +1,236 @@
<template>
<div class="app-container">
<div class="searchPanel">
<el-form :inline="true" v-show="showSearch" class="searchPanelForm">
<el-form-item label="供应商:">
<el-select v-model="queryParams.supplierId" placeholder="请选择" style="min-width: 30px;" clearable>
<el-option v-for="item in supplierList" :key="item.supplierId" :label="item.supplierName"
:value="item.supplierId" />
</el-select>
</el-form-item>
<el-form-item label="类型:">
<el-select v-model="queryParams.type" placeholder="请选择" style="min-width: 30px;" clearable>
<el-option v-for="item in types" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</el-form-item>
</el-form>
</div>
<el-card class="mt20">
<el-row :gutter="10" class="my_row">
<el-col :span="24">
<el-button type="primary" class="primaryBtn" @click="handleQuery">查询</el-button>
<el-button type="primary" class="primaryBtn" @click="resetQuery">重置</el-button>
</el-col>
</el-row>
<el-table v-if="queryParams.type == 0" v-loading="loading" :data="feedbackList"
height="calc(100vh - 308px)">
<el-table-column label="序号" align="center" width="80">
<template #default="scope">
{{ scope.$index + 1 }}
</template>
</el-table-column>
<el-table-column label="供应商" align="left" prop="content" width="230" />
<el-table-column label="城市" align="center" prop="feedbackUser" width="150" />
<el-table-column label="场站" align="center" prop="feedbackUser" width="150" />
<el-table-column label="媒体位置" align="center" prop="feedbackUser" min-width="260" />
<el-table-column label="频次" align="center" prop="feedbackUser" width="120" />
<el-table-column label="刊例价" align="center" prop="feedbackUser" width="120" />
<el-table-column label="单位" align="center" prop="feedbackUser" width="100" />
<el-table-column label="折扣" align="center" prop="feedbackUser" width="100" />
<el-table-column label="首次制作安装费(元/次)" align="center" prop="feedbackUser" min-width="230" />
<el-table-column label="换画费(RMB)" align="center" prop="feedbackUser" width="150" />
<el-table-column label="操作" width="130" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link type="primary" @click="handleUpdate(scope.row)"
v-hasPermi="['problemFeedback:edit']">修改</el-button>
<el-button link type="primary" @click="handleDelete(scope.row)"
v-hasPermi="['problemFeedback:remove']">删除</el-button>
</template>
</el-table-column>
</el-table>
<el-table v-if="queryParams.type == 1" v-loading="loading" :data="feedbackList"
height="calc(100vh - 308px)">
<el-table-column label="序号" align="center" width="80">
<template #default="scope">
{{ scope.$index + 1 }}
</template>
</el-table-column>
<el-table-column label="供应商" align="left" prop="content" width="230" />
<el-table-column label="城市" align="center" prop="feedbackUser" width="150" />
<el-table-column label="资源描述" align="center" prop="feedbackUser" min-width="260" />
<el-table-column label="刊例价" align="center" prop="feedbackUser" width="120" />
<el-table-column label="单位" align="center" prop="feedbackUser" width="100" />
<el-table-column label="折扣" align="center" prop="feedbackUser" width="100" />
<el-table-column label="首次制作安装费(元/次)" align="center" prop="feedbackUser" min-width="230" />
<el-table-column label="换画费(RMB)" align="center" prop="feedbackUser" width="150" />
<el-table-column label="备注" align="center" prop="feedbackUser" min-width="230" />
<el-table-column label="操作" width="130" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link type="primary" @click="handleUpdate(scope.row)"
v-hasPermi="['problemFeedback:edit']">修改</el-button>
<el-button link type="primary" @click="handleDelete(scope.row)"
v-hasPermi="['problemFeedback:remove']">删除</el-button>
</template>
</el-table-column>
</el-table>
<el-table v-if="queryParams.type == 2" v-loading="loading" :data="feedbackList"
height="calc(100vh - 308px)">
<el-table-column label="序号" align="center" width="80">
<template #default="scope">
{{ scope.$index + 1 }}
</template>
</el-table-column>
<el-table-column label="供应商" align="left" prop="content" width="230" />
<el-table-column label="城市" align="center" prop="feedbackUser" width="150" />
<el-table-column label="媒体名称" align="center" prop="feedbackUser" min-width="150" />
<el-table-column label="频次" align="center" prop="feedbackUser" width="120" />
<el-table-column label="刊例价" align="center" prop="feedbackUser" width="120" />
<el-table-column label="单位" align="center" prop="feedbackUser" width="100" />
<el-table-column label="折扣" align="center" prop="feedbackUser" width="100" />
<el-table-column label="首次制作安装费(元/次)" align="center" prop="feedbackUser" min-width="230" />
<el-table-column label="换画费(RMB)" align="center" prop="feedbackUser" width="150" />
<el-table-column label="操作" width="130" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link type="primary" @click="handleUpdate(scope.row)"
v-hasPermi="['problemFeedback:edit']">修改</el-button>
<el-button link type="primary" @click="handleDelete(scope.row)"
v-hasPermi="['problemFeedback:remove']">删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination :total="total" v-model:page="queryParams.pageIndex" v-model:limit="queryParams.pageSize"
@pagination="getBusProblemFeedbackPage" />
</el-card>
</div>
</template>
<script setup name="Post">
import { onMounted, ref } from 'vue';
import { listBusSupplier } from "@/api/supplier"
import { useBackgroundStore } from '@/store/modules/background'
import otherbg from '@/assets/images/otherbg.png'
const bgStore = useBackgroundStore()
const { proxy } = getCurrentInstance()
const supplierList = ref([])
const types = ref([
{ value: 0, label: '高铁' },
{ value: 1, label: '候车亭' },
{ value: 2, label: '门禁道闸' },
])
const feedbackList = ref([])
const open = ref(false)
const loading = ref(true)
const showSearch = ref(true)
const total = ref(0)
const dateRange = ref([])
const data = reactive({
form: {},
queryParams: {
pageIndex: 1,
pageSize: 10,
supplierId: undefined,
type: 0
},
rules: {
content: [{ required: true, message: "反馈内容不能为空", trigger: "blur" }]
}
})
const { queryParams, form, rules } = toRefs(data)
const getSupplierList = () => {
listBusSupplier({
pageIndex: 1,
pageSize: 10,
}).then(res => {
supplierList.value = res.data
})
}
//
const handleDateChange = (val) => {
dateRange.value = val;
queryParams.value.startDate = val[0]
queryParams.value.endDate = val[1]
};
/** 查询反馈问题列表 */
const getBusProblemFeedbackPage = () => {
loading.value = false
// busProblemFeedbackPage(queryParams.value).then(response => {
// feedbackList.value = response.data.list
// total.value = response.data.total
// loading.value = false
// })
}
/** 搜索按钮操作 */
const handleQuery = () => {
queryParams.value.pageIndex = 1
getBusProblemFeedbackPage()
}
/** 重置按钮操作 */
const resetQuery = () => {
queryParams.value = {
pageIndex: 1,
pageSize: 10,
feedbackUser: undefined,
startDate: undefined,
endDate: undefined
}
handleQuery()
}
//
const handleUpdate = (row) => {
form.value = {
feedbackUser: undefined,
content: undefined
}
getBusProblemFeedback(row.id).then(res => {
form.value = res.data
open.value = true
})
}
const cancel = () => {
open.value = false
form.value = {}
}
const submitForm = () => {
proxy.$refs["feedBackRef"].validate(valid => {
if (valid) {
updateBusProblemFeedback(form.value).then(response => {
proxy.$modal.msgSuccess("修改成功")
getBusProblemFeedbackPage()
open.value = false
form.value = {}
proxy.resetForm("feedBackRef")
})
}
})
}
/** 删除按钮操作 */
const handleDelete = (row) => {
proxy.$modal.confirm('是否确认删除该问题吗?').then(function () {
return deleteBusProblemFeedback(row.id)
}).then(() => {
getBusProblemFeedbackPage()
proxy.$modal.msgSuccess("删除成功")
}).catch(() => { })
}
//
onMounted(() => {
bgStore.setBgImage(otherbg)
getBusProblemFeedbackPage()
getSupplierList()
});
</script>

View File

@ -125,7 +125,7 @@
<el-button type="primary" class="primaryBtn" @click="handleOpenAddForm">新增</el-button>
<el-button type="primary" class="primaryBtn" @click="handleImport">导入</el-button>
<el-button type="primary" class="primaryBtn" @click="handleExport">导出</el-button>
<el-button type="primary" class="primaryBtn">比稿价管理</el-button>
<el-button type="primary" class="primaryBtn" @click="handleGoPitchPrice">比稿价管理</el-button>
</el-col>
</el-row>
@ -235,6 +235,7 @@
<script setup name="Post">
import { getToken } from "@/utils/auth"
import { onMounted, ref } from 'vue';
import { useRouter } from 'vue-router'
import { Search } from '@element-plus/icons-vue'
import optionIcon from '@/assets/images/optionIcon.png'
import optionIconHover from '@/assets/images/optionIconHover.png'
@ -250,7 +251,7 @@ import supplierLogs from "./supplierLogs.vue";
const bgStore = useBackgroundStore()
const { proxy } = getCurrentInstance()
const { invoice_type, media_ownership, personnel_size, main_media_types, media_quality, history_cooperation, supplier_level, supplier_cooperation_degree, main_business, business_department } = proxy.useDict("invoice_type", "media_ownership", "personnel_size", "main_media_types", "media_quality", "history_cooperation", "supplier_level", "supplier_cooperation_degree", "main_business", "business_department")
const router = useRouter()
const showForm = ref(false)
const supplierFormRef = ref(null)
const showDetail = ref(false)
@ -419,6 +420,10 @@ const handleLogs = (row) => {
// supplierLogsRef.value.initForm('', row)
})
}
// 稿
const handleGoPitchPrice = () => {
router.push('/pitchPrice')
}
//
const handleOpenDetail = (_supplierId) => {
showDetail.value = true