Commit f6380281 authored by 黄奎's avatar 黄奎

页面修改

parent 57efa883
...@@ -128,9 +128,9 @@ ...@@ -128,9 +128,9 @@
label="客户名称" @clear="resetSearch" maxlength="20" /> label="客户名称" @clear="resetSearch" maxlength="20" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select filled stack-label use-input option-value="Id" clearable @input="resetSearch" <q-select filled stack-label use-input input-debounce="0" option-value="Id" clearable @input="resetSearch"
option-label="EmployeeName" v-model="msg.CreateBy" :options="EmployeeList" label="员工" :dense="false" option-label="EmployeeName" v-model="msg.CreateBy" :options="EmployeeList" label="员工" :dense="false"
emit-value map-options @filter="filterFn"> emit-value map-options @filter="filterFn" >
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <q-item>
<q-item-section class="text-grey"> <q-item-section class="text-grey">
......
...@@ -119,6 +119,14 @@ ...@@ -119,6 +119,14 @@
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.Name" label="报价单名称" <q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.Name" label="报价单名称"
@clear="resetSearch" maxlength="20" /> @clear="resetSearch" maxlength="20" />
</div> </div>
<div class="col-3">
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.SerialNum" label="流水号"
@clear="resetSearch" maxlength="20" />
</div>
<div class="col-3">
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.CustomerName"
label="客户名称" @clear="resetSearch" maxlength="20" />
</div>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
...@@ -149,13 +157,16 @@ ...@@ -149,13 +157,16 @@
<q-item-label>详情</q-item-label> <q-item-label>详情</q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item>
<q-item clickable v-close-popup v-if="props.row.CustomerStatus==1||props.row.CustomerStatus==2" <q-item clickable v-close-popup
v-if="props.row.CustomerStatus==1||props.row.CustomerStatus==2||props.row.CustomerStatus==6"
@click="offerTransOrder(props.row)"> @click="offerTransOrder(props.row)">
<q-item-section> <q-item-section>
<q-item-label>转订单</q-item-label> <q-item-label>转订单</q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item>
<q-item clickable v-close-popup @click="applyUpdatePrice(props.row)"> <q-item clickable v-close-popup
v-if="props.row.CustomerStatus==1||props.row.CustomerStatus==2||props.row.CustomerStatus==6"
@click="applyUpdatePrice(props.row)">
<q-item-section> <q-item-section>
<q-item-label>申请改价</q-item-label> <q-item-label>申请改价</q-item-label>
</q-item-section> </q-item-section>
...@@ -171,24 +182,24 @@ ...@@ -171,24 +182,24 @@
</template> </template>
</q-table> </q-table>
</div> </div>
<!-- 新增修改报价单 -->
<q-dialog v-model="showForm" persistent> <q-dialog v-model="showForm" persistent>
<quotation-form :obj="offerObj" @save="refreshPage()"></quotation-form> <quotation-form :obj="offerObj" @save="refreshPage()"></quotation-form>
</q-dialog> </q-dialog>
<!-- 报价单转订单 -->
<q-dialog v-model="showOrderForm" persistent> <q-dialog v-model="showOrderForm" persistent>
<offertransorder-form :obj="offerObj" @save="refreshPage()"></offertransorder-form> <offertransorder-form :obj="offerObj" @save="refreshPage()"></offertransorder-form>
</q-dialog> </q-dialog>
<!-- 查看报价单 --> <!-- 查看报价单 -->
<viewquotation-form v-if="isShowviewQuo" :rId="rId" :isShowCancle="0" @close="closeQuota"> <viewquotation-form v-if="isShowviewQuo" :rId="rId" :isShowCancle="0" @close="closeQuota">
</viewquotation-form> </viewquotation-form>
<!-- 申请改价 -->
<q-dialog v-model="isShowUpPrice" persistent> <q-dialog v-model="isShowUpPrice" persistent>
<q-card style="width: 500px;max-width:500px;" class="CLM-Form"> <q-card style="width: 500px;max-width:500px;" class="CLM-Form">
<q-card-section> <q-card-section>
<div class="text-h6">申请改价</div> <div class="text-h6">申请改价</div>
</q-card-section> </q-card-section>
<q-card-section class="q-pt-none scroll" style="max-height: 70vh"> <q-card-section class="q-pt-none scroll" style="max-height: 70vh">
<div class="row wrap"> <div class="row wrap">
<div class="col-12"> <div class="col-12">
<q-input v-model="uppriceMsg.ApplyReason" filled type="textarea" placeholder="改价原因" /> <q-input v-model="uppriceMsg.ApplyReason" filled type="textarea" placeholder="改价原因" />
...@@ -219,7 +230,7 @@ ...@@ -219,7 +230,7 @@
export default { export default {
meta: { meta: {
title: "报价单" title: "我的报价单"
}, },
components: { components: {
quotationForm, quotationForm,
...@@ -237,7 +248,9 @@ ...@@ -237,7 +248,9 @@
rowsPerPage: 10, rowsPerPage: 10,
Name: "", Name: "",
IsGetDetails: 1, IsGetDetails: 1,
CreateBy: 0 CreateBy: 0,
SerialNum: "", //流水号
CustomerName: "", //客户名称
}, },
pageCount: 0, pageCount: 0,
showForm: false, //是否显示报价单弹窗 showForm: false, //是否显示报价单弹窗
...@@ -326,9 +339,9 @@ ...@@ -326,9 +339,9 @@
isShowviewQuo: false, isShowviewQuo: false,
rId: 0, rId: 0,
isShowUpPrice: false, isShowUpPrice: false,
uppriceMsg:{ uppriceMsg: {
Id:0, Id: 0,
ApplyReason:'' ApplyReason: ''
} }
} }
}, },
...@@ -345,8 +358,8 @@ ...@@ -345,8 +358,8 @@
this.isShowUpPrice = true; this.isShowUpPrice = true;
}, },
//提交改价原因 //提交改价原因
saveUpprice(){ saveUpprice() {
if(this.uppriceMsg.ApplyReason==''){ if (this.uppriceMsg.ApplyReason == '') {
this.$q.notify({ this.$q.notify({
type: 'negative', type: 'negative',
position: "top", position: "top",
...@@ -355,9 +368,9 @@ ...@@ -355,9 +368,9 @@
return; return;
} }
SetApplyModifyPrice(this.uppriceMsg).then(res => { SetApplyModifyPrice(this.uppriceMsg).then(res => {
this.isShowUpPrice=false; this.isShowUpPrice = false;
this.uppriceMsg.ApplyReason=''; this.uppriceMsg.ApplyReason = '';
this.$q.notify({ this.$q.notify({
icon: 'iconfont icon-chenggong', icon: 'iconfont icon-chenggong',
color: 'accent', color: 'accent',
timeout: 2000, timeout: 2000,
......
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