Commit d05ead1f authored by 黄奎's avatar 黄奎

页面修改

parent 716e739b
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
@input="changeDiscountMoney" :rules="[val => !!val || '请选择客户类型']" /> @input="changeDiscountMoney" :rules="[val => !!val || '请选择客户类型']" />
</div> </div>
<div class="col"> <div class="col">
<q-input standout bottom-slots filled v-model="model.JoinNum" ref="JoinNum" label="报名人数" dense mask="#" fill-mask="0" <q-input standout bottom-slots filled v-model="model.JoinNum" ref="JoinNum" label="报名人数" dense mask="#"
reverse-fill-mask :rules="[val => !!val || '请输入报名人数']" @input="changeDiscountMoney"> fill-mask="0" reverse-fill-mask :rules="[val => !!val || '请输入报名人数']" @input="changeDiscountMoney">
<template v-slot:append> <template v-slot:append>
<span style="font-size:14px;"></span> <span style="font-size:14px;"></span>
</template> </template>
...@@ -45,7 +45,8 @@ ...@@ -45,7 +45,8 @@
:rules="[val => !!val || '请输入客户姓名']" /> :rules="[val => !!val || '请输入客户姓名']" />
</div> </div>
<div class="col"> <div class="col">
<q-input standout bottom-slots filled v-model="model.CustomerTel" label="客户电话" dense mask="#" reverse-fill-mask /> <q-input standout bottom-slots filled v-model="model.CustomerTel" label="客户电话" dense mask="#"
reverse-fill-mask />
</div> </div>
</div> </div>
<div class="text-subtitle2 text-weight-bold q-mb-md"> <div class="text-subtitle2 text-weight-bold q-mb-md">
...@@ -113,8 +114,8 @@ ...@@ -113,8 +114,8 @@
<div class="row"> <div class="row">
<div class="col q-mr-md"></div> <div class="col q-mr-md"></div>
<div class="col"> <div class="col">
<q-input standout bottom-slots filled v-model="model.EffectiveEnd" ref="EffectiveEnd" label="报价有效期" dense mask="date" <q-input standout bottom-slots filled v-model="model.EffectiveEnd" ref="EffectiveEnd" label="报价有效期" dense
class="cursor-pointer" readonly :rules="[val => !!val || '请选择有效日期']"> mask="date" class="cursor-pointer" readonly :rules="[val => !!val || '请选择有效日期']">
<template v-slot:append> <template v-slot:append>
<q-icon name="event" class="cursor-pointer"> <q-icon name="event" class="cursor-pointer">
<q-popup-proxy> <q-popup-proxy>
...@@ -264,7 +265,8 @@ ...@@ -264,7 +265,8 @@
CustomerName: tempObj.CustomerName, CustomerName: tempObj.CustomerName,
CustomerTel: tempObj.CustomerTel, CustomerTel: tempObj.CustomerTel,
OfferDetails: [], OfferDetails: [],
JoinNum: tempObj.JoinNum JoinNum: tempObj.JoinNum,
OfferType: tempObj.OfferType, //课程
}; };
if (tempObj.OfferDetails && tempObj.OfferDetails.length > 0) { if (tempObj.OfferDetails && tempObj.OfferDetails.length > 0) {
this.model.OfferDetails = tempObj.OfferDetails; this.model.OfferDetails = tempObj.OfferDetails;
...@@ -276,6 +278,7 @@ ...@@ -276,6 +278,7 @@
this.model = { this.model = {
Id: 0, Id: 0,
Name: "", Name: "",
OfferType: 1, //课程
EffectiveStart: "", EffectiveStart: "",
EffectiveEnd: "", EffectiveEnd: "",
CustomerType: null, CustomerType: null,
......
...@@ -432,10 +432,14 @@ ...@@ -432,10 +432,14 @@
}, },
//显示报价单 //显示报价单
editQuotation(item) { editQuotation(item) {
if (item.OfferType == 1) { if (item) {
this.showForm = true; if (item.OfferType == 1) {
this.showForm = true;
} else {
this.showStudyForm = true;
}
} else { } else {
this.showStudyForm = true; this.showForm = true;
} }
this.offerObj = item; this.offerObj = item;
}, },
......
...@@ -119,7 +119,8 @@ ...@@ -119,7 +119,8 @@
<q-btn color="primary" flat label="获取二维码"></q-btn> <q-btn color="primary" flat label="获取二维码"></q-btn>
</div> </div>
<div class="col-auto"> <div class="col-auto">
<q-btn v-if="model&&model.CustomerStatus&&(model.CustomerStatus==1||model.CustomerStatus==2)" color="dark" label="撤销报价单" @click="setOfferStatus"></q-btn> <q-btn v-if="model&&model.CustomerStatus&&(model.CustomerStatus==1||model.CustomerStatus==2)"
color="dark" label="撤销报价单" @click="setOfferStatus"></q-btn>
</div> </div>
</div> </div>
</div> </div>
...@@ -140,6 +141,9 @@ ...@@ -140,6 +141,9 @@
import print from "print-js"; import print from "print-js";
import html2canvas from "html2canvas"; import html2canvas from "html2canvas";
export default { export default {
meta: {
title: "报价单"
},
data() { data() {
return { return {
icons: [ icons: [
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
} from '../../api/sale/sale'; } from '../../api/sale/sale';
import orderlist from '../../components/sale/orderlist' import orderlist from '../../components/sale/orderlist'
export default { export default {
meta: { meta: {
title: "留学就业订单中心" title: "留学就业订单中心"
}, },
components: { components: {
......
...@@ -311,14 +311,12 @@ export default { ...@@ -311,14 +311,12 @@ export default {
window.open(url); window.open(url);
}, },
//新页面打开页面 //新页面打开页面
Vue.prototype.OpenNewUrl=function(path,queryObj) Vue.prototype.OpenNewUrl = function (path, queryObj) {
{
var newUrl = this.$router.resolve({ var newUrl = this.$router.resolve({
path: path, path: path,
query: queryObj query: queryObj
}); });
window.open(newUrl.href, '_blank'); window.open(newUrl.href, '_blank');
} }
} }
} }
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