Commit ffbf80c2 authored by zhengke's avatar zhengke

修改

parent f6380281
......@@ -336,4 +336,17 @@ export function SetApplyModifyPrice(data) {
data
})
}
/**
* 报价单修改价格
*/
export function saveCourseOfferPrice(data) {
return request({
url: "/CourseOffer/SetCourseOfferPrice",
method: 'post',
data
})
}
\ No newline at end of file
......@@ -88,6 +88,6 @@
opacity: 0.7;
}
/* 控制下拉长度 */
.q-menu{
/* .q-menu{
max-height: 29vh;
}
\ No newline at end of file
} */
\ No newline at end of file
......@@ -3,57 +3,55 @@
<q-card-section class="row items-center q-pb-none">
<div class="text-h6">报价单修改价格</div>
<q-space />
<q-btn icon="close" flat round dense v-close-popup />
<!-- <q-btn icon="close" flat round dense v-close-popup /> -->
</q-card-section>
<div class="text-subtitle2 text-weight-bold q-mb-md">
<span>客户信息</span>
<div class="text-subtitle2 text-weight-bold q-mb-md" style="margin:20px 0 0 15px;">
<span style="font-size:15px;">客户信息</span>
</div>
<q-card-section style="max-height:75vh;" class="scroll">
<div class="row">
<div class="row q-price-info">
<div class="col q-mr-md">
报价单名称:{{model.Name}}
报价单名称: {{model.Name}}
</div>
<div class="col">
客户来源:{{model.CustomerSourceName}}
客户来源: {{model.CustomerSourceName}}
</div>
</div>
<div class="row">
<div class="row q-price-info">
<div class="col q-mr-md">
客户类型:{{model.CustomerTypeName}}
客户类型: {{model.CustomerTypeName}}
</div>
<div class="col">
报名人数: {{model.JoinNum}}
</div>
</div>
<div class="row">
<div class="row q-price-info">
<div class="col q-mr-md">
客户姓名:{{model.CustomerName}}
</div>
<div class="col">
客户电话:{{model.CustomerTel}}
</div>
</div>
<div class="row">
<div class="row q-price-info">
<div class="col q-mr-md">
报价有效期:{{model.EffectiveEnd}}
</div>
<div class="col">
销售人员:{{model.CreateByName}}
</div>
</div>
<div class="text-subtitle2 text-weight-bold q-mb-md">
<span>申请信息</span>
<span style="font-size:15px;">申请信息</span>
</div>
<div class="row">
<div class="col q-mr-md">
申请原因:{{model.ApplyReason}}
<div class="col q-mr-md" style="display:flex;">
<div style="flex-shrink:0">申请原因:</div>
<div style="max-height:150px;overflow-y:auto;">{{model.ApplyReason}}</div>
</div>
</div>
<div class="text-subtitle2 text-weight-bold q-mb-md">
<span>课程信息</span>
<div class="text-subtitle2 text-weight-bold q-mb-md" style="margin-top:20px">
<span style="font-size:15px;">课程信息</span>
</div>
<div class="q-mt-md">
<q-table :pagination="pageInfo" no-data-label="暂无相关数据" flat
......@@ -68,8 +66,9 @@
</template>
<template v-slot:body-cell-DiscountPrice="props">
<q-td :props="props">
<span style="width:80px;">{{props.row.DiscountPrice.toFixed(2)}}</span>&nbsp;
<i class="iconfont icon-edit" @click.stop="getClassItem(props.row)" title="点击修改价格" style="cursor:pointer;color:blue;font-size: 13px;">修改价格
<span style="display:inline-block;width:65px;">{{props.row.DiscountPrice.toFixed(2)}}</span>&nbsp;
<i class="iconfont icon-edit" @click.stop="getClassItem(props.row)" title="点击修改价格" style="cursor:pointer;color:blue;font-size: 14px;">
<span style="font-size:13px;margin-left:3px;">修改价格</span>
<q-popup-proxy>
<q-banner v-if="isShowEdit">
<div class="calenderDialog" style="width:300px;">
......@@ -117,7 +116,7 @@
<script>
import {
queryCourseOfferInfo,
saveCourseOffer
saveCourseOfferPrice
} from "../../api/course/index";
export default {
......@@ -238,6 +237,7 @@
OfferDetails: [],
JoinNum: tempObj.JoinNum,
ApplyReason: tempObj.ApplyReason,
CreateByName: tempObj.CreateByName
};
if (tempObj.OfferDetails && tempObj.OfferDetails.length > 0) {
this.model.OfferDetails = tempObj.OfferDetails;
......@@ -249,10 +249,11 @@
},
//修改报价单价格
saveOfferPrice() {
saveCourseOffer(this.model).then(r => {
saveCourseOfferPrice(this.model).then(r => {
this.$q.notify({
icon: "iconfont icon-chenggong",
color: "positive",
// color: "positive",
color:'accent',
timeout: 2000,
message: "修改价格成功!",
position: "top",
......@@ -268,4 +269,8 @@
</script>
<style></style>
<style>
.q-price-info{
margin-bottom:20px;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment