界面显示修改

This commit is contained in:
1154079537 2024-04-29 18:02:19 +08:00
parent cf787e136e
commit bdc79e3ca0
6 changed files with 96 additions and 17 deletions

View File

@ -80,3 +80,8 @@ export function merchantAreaListApi(params: any) {
export function streetListApi(params: any) { export function streetListApi(params: any) {
return request.get({ url: '/merchant.merchant/streetList', params }) return request.get({ url: '/merchant.merchant/streetList', params })
} }
// 每日跟进情况
export function todayMerchantApi(params: any) {
return request.post({ url: '/merchant.merchant/todayMerchant', params })
}

View File

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<el-popover placement="bottom" trigger="hover" width="200px"> <el-popover placement="bottom" trigger="hover" width="360px">
<template #reference> <template #reference>
<el-badge <el-badge
:value="newsList.length" :value="newsList.length"
@ -17,11 +17,15 @@
:show-header="false" :show-header="false"
> >
<el-table-column <el-table-column
width="160" width="360"
property="type_name" property="type_name"
label="店铺类型" label="店铺类型"
align="center" align="center"
/> >
<template #default="{ row }">
<span>{{ row.type_name + '分类下商户无交易记录' }}</span>
</template>
</el-table-column>
</el-table> </el-table>
</el-popover> </el-popover>
</div> </div>

View File

@ -40,7 +40,7 @@
min-width="200" min-width="200"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column label="执行时间" prop="time" show-overflow-tooltip /> <el-table-column label="执行时间(当天)" prop="time" ></el-table-column>
<el-table-column label="状态" prop="open" show-overflow-tooltip> <el-table-column label="状态" prop="open" show-overflow-tooltip>
<template #default="{ row }"> <template #default="{ row }">
<el-tag v-if="row.open == 1" type="success">开启</el-tag> <el-tag v-if="row.open == 1" type="success">开启</el-tag>

View File

@ -255,6 +255,7 @@
跟进记录 跟进记录
</router-link> </router-link>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item command="mer_today">今日上新</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</template> </template>
</el-dropdown> </el-dropdown>
@ -389,6 +390,43 @@
</el-form> </el-form>
</Popup> </Popup>
<!-- 每日上新情况详解 -->
<Popup
ref="todayRef"
title="每日上新情况"
:async="true"
width="650px"
@confirm="handleSubmit"
@close="onClose"
confirmButtonText=""
>
<el-form ref="formRef" class="ls-form" :model="todayForm" label-width="110px">
<el-form-item label="商品当日更新" prop="goodsToday">
<el-input v-model="todayForm.goodsToday" readonly />
</el-form-item>
<el-form-item label="当日补贴" prop="incomeTodaySubsides">
<el-input v-model="todayForm.incomeTodaySubsides" readonly />
</el-form-item>
<el-form-item label="商品销售金额" prop="payPriceDay">
<el-input v-model="todayForm.payPriceDay" readonly />
</el-form-item>
<el-form-item label="店铺采购金额" prop="procurePriceDay">
<el-input v-model="todayForm.procurePriceDay" readonly />
</el-form-item>
<el-form-item label="日云仓采购对比" prop="yunBuyRateDay">
<el-input v-model="todayForm.yunBuyRateDay" readonly />
</el-form-item>
<el-form-item label="商户扩展量" prop="daySpread">
<el-input v-model="todayForm.daySpread" readonly />
</el-form-item>
</el-form>
</Popup>
<!-- 督导情况 --> <!-- 督导情况 -->
<Popup <Popup
ref="monitorRef" ref="monitorRef"
@ -586,7 +624,17 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="商户总更新"> <el-form-item label="商品今日上架数">
<el-input
v-model="monitorForm.goodsToday"
placeholder=""
readonly
></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="商品上架数">
<el-input <el-input
v-model="monitorForm.saleGoodsNum" v-model="monitorForm.saleGoodsNum"
placeholder="" placeholder=""
@ -919,6 +967,7 @@ import {
saveConditionApi, saveConditionApi,
recordManApi, recordManApi,
merchantListNoPage, merchantListNoPage,
todayMerchantApi
} from "@/api/merchant"; } from "@/api/merchant";
import { usePaging } from "@/hooks/usePaging"; import { usePaging } from "@/hooks/usePaging";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
@ -932,6 +981,7 @@ import mitt from "@/utils/mitt";
const monitorRef: any = ref(null); // const monitorRef: any = ref(null); //
const formRef: any = ref(null); // const formRef: any = ref(null); //
const viewRef: any = ref(null); // const viewRef: any = ref(null); //
const todayRef: any = ref(null); //
const popupRef = shallowRef<InstanceType<typeof Popup>>(); //dialog const popupRef = shallowRef<InstanceType<typeof Popup>>(); //dialog
const tableRef: any = ref(null); // const tableRef: any = ref(null); //
const emit = defineEmits(["success", "close"]); const emit = defineEmits(["success", "close"]);
@ -973,6 +1023,9 @@ const onDropdownClick = (type: any, item: any) => {
case "mer_record": // case "mer_record": //
onTraceRecord(item); onTraceRecord(item);
break; break;
case "mer_today":
onTodayRecord(item);
break;
} }
}; };
@ -1045,13 +1098,6 @@ const handleSubmit = async () => {
// //
const selectData = ref<any[]>([]); const selectData = ref<any[]>([]);
const onSelectionChange = (val: any[]) => { const onSelectionChange = (val: any[]) => {
// if (val && val.length > 0) {
// val.forEach((item) => {
// if (item.admin_id > 0) {
// tableRef.value?.toggleRowSelection(item, false);
// }
// });
// }
selectData.value = val; selectData.value = val;
}; };
@ -1061,6 +1107,30 @@ const onClose = () => {
tableRef.value?.clearSelection(); tableRef.value?.clearSelection();
}; };
//
const todayForm = reactive({
incomeTodaySubsides:'',//
payPriceDay:'',
procurePriceDay:'',
yunBuyRateDay:'',
daySpread:'',
goodsToday:''
})
//
const onTodayRecord = (item:any)=>{
todayMerchantApi({mer_id:item.mer_id}).then(res=>{
todayForm. incomeTodaySubsides = res.incomeTodaySubsides;
todayForm.payPriceDay= res.payPriceDay;
todayForm.procurePriceDay= res.procurePriceDay;
todayForm.yunBuyRateDay= res.yunBuyRateDay;
todayForm.daySpread= res.daySpread;
todayForm.goodsToday= res.goodsToday;
todayRef.value?.open();
})
}
// //
const onMonitorClose = () => {}; const onMonitorClose = () => {};

View File

@ -8,7 +8,7 @@
@confirm="handleSubmit" @confirm="handleSubmit"
@close="handleClose" @close="handleClose"
> >
<el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules"> <el-form ref="formRef" :model="formData" label-width="100px" :rules="formRules">
<el-form-item label="主题" prop="theme"> <el-form-item label="主题" prop="theme">
<el-input v-model="formData.theme" clearable placeholder="请输入主题" /> <el-input v-model="formData.theme" clearable placeholder="请输入主题" />
</el-form-item> </el-form-item>
@ -59,11 +59,11 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="跟进时间" prop="flow_time"> <el-form-item label="下次跟进时间" prop="flow_time">
<el-date-picker <el-date-picker
v-model="formData.flow_time" v-model="formData.flow_time"
type="date" type="date"
placeholder="请选择跟进时间" placeholder="请选择下次跟进时间"
style="width: 100%" style="width: 100%"
> >
</el-date-picker> </el-date-picker>

View File

@ -100,13 +100,13 @@
<el-table-column label="记录类型" prop="cate_name" show-overflow-tooltip /> <el-table-column label="记录类型" prop="cate_name" show-overflow-tooltip />
<el-table-column label="记录人" prop="admin_info" show-overflow-tooltip /> <el-table-column label="记录人" prop="admin_info" show-overflow-tooltip />
<el-table-column <el-table-column
label="跟进时间" label="下次跟进时间"
prop="flow_time" prop="flow_time"
min-width="160" min-width="160"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
label="创建时间" label="跟进时间"
prop="create_time" prop="create_time"
min-width="160" min-width="160"
show-overflow-tooltip show-overflow-tooltip