Commit d5c290c1 authored by 黄奎's avatar 黄奎

页面修改

parent ef03eee8
This diff is collapsed.
...@@ -119,10 +119,18 @@ ...@@ -119,10 +119,18 @@
<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 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 option-value="Id" clearable @input="resetSearch"
option-label="EmployeeName" v-model="msg.CreateBy" :options="EmployeeList" option-label="EmployeeName" v-model="msg.CreateBy" :options="EmployeeList" label="员工" :dense="false"
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">
...@@ -150,8 +158,8 @@ ...@@ -150,8 +158,8 @@
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
<div> <div>
<q-btn flat size="xs" icon="edit" color="accent" v-if="isHavePriceAction" style="font-weight:400" label="改价" <q-btn flat size="xs" icon="edit" color="accent" v-if="isHavePriceAction && props.row.CustomerStatus==5 "
@click="editOrderPrice(props.row)" /> style="font-weight:400" label="改价" @click="editOrderPrice(props.row)" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="详情" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="详情"
@click="gotoDetails(props.row)" /> @click="gotoDetails(props.row)" />
</div> </div>
...@@ -163,27 +171,15 @@ ...@@ -163,27 +171,15 @@
</template> </template>
</q-table> </q-table>
</div> </div>
<q-dialog v-model="showForm" persistent>
<quotation-form :obj="offerObj" @save="refreshPage()"></quotation-form>
</q-dialog>
<q-dialog v-model="showOrderForm" persistent>
<offertransorder-form :obj="offerObj" @save="refreshPage()"></offertransorder-form>
</q-dialog>
<q-dialog v-model="showEditPrice" persistent> <q-dialog v-model="showEditPrice" persistent>
<edittransorder-form :obj="offerObj" @save="refreshPage()"></edittransorder-form> <edittransorder-form :obj="offerObj" @save="refreshPage()"></edittransorder-form>
</q-dialog> </q-dialog>
<!-- 查看报价单 --> <!-- 查看报价单 -->
<viewquotation-form v-if="isShowviewQuo" :rId="rId" :isShowCancle="1" @close="closeQuota"> <viewquotation-form v-if="isShowviewQuo" :rId="rId" :isShowCancle="1" @close="closeQuota">
</viewquotation-form> </viewquotation-form>
</div> </div>
</template> </template>
<script> <script>
import quotationForm from '../../components/sale/quotation-form'
import offertransorderForm from '../../components/sale/offertransorder-form'
import edittransorderForm from '../../components/sale/edittransorder-form' import edittransorderForm from '../../components/sale/edittransorder-form'
import viewquotationForm from '../../components/sale/viewquotation-form' import viewquotationForm from '../../components/sale/viewquotation-form'
...@@ -203,8 +199,6 @@ ...@@ -203,8 +199,6 @@
title: "报价单" title: "报价单"
}, },
components: { components: {
quotationForm,
offertransorderForm,
edittransorderForm, edittransorderForm,
viewquotationForm viewquotationForm
}, },
...@@ -217,13 +211,13 @@ ...@@ -217,13 +211,13 @@
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
rowsPerPage: 10, rowsPerPage: 10,
Name: "", Name: "", //报价单名称
CreateBy:0,
IsGetDetails: 1, IsGetDetails: 1,
CreateBy: 0 CreateBy: "", //所属员工
SerialNum: "", //流水号
CustomerName: "", //客户名称
}, },
pageCount: 0, pageCount: 0,
showForm: false, //是否显示报价单弹窗
offerObj: {}, //报价单信息 offerObj: {}, //报价单信息
columns: [{ columns: [{
name: "SerialNum", name: "SerialNum",
...@@ -309,13 +303,12 @@ ...@@ -309,13 +303,12 @@
field: 'Id' field: 'Id'
} }
], ],
showOrderForm: false, //是否显示转订单表单
commonId: 0, commonId: 0,
showEditPrice: false, //是否显示改价表单 showEditPrice: false, //是否显示改价表单
EmployeeList:[], //员工列表 EmployeeList: [], //员工列表
AllemployeeList: [], //所有员工列表 AllemployeeList: [], //所有员工列表
isShowviewQuo:false, isShowviewQuo: false,
rId:0 rId: 0
} }
}, },
computed: mapState({ computed: mapState({
...@@ -337,8 +330,8 @@ ...@@ -337,8 +330,8 @@
this.getcourseofferpage(); this.getcourseofferpage();
}, },
methods: { methods: {
closeQuota(){ closeQuota() {
this.isShowviewQuo=false; this.isShowviewQuo = false;
}, },
//筛选员工 //筛选员工
filterFn(val, update) { filterFn(val, update) {
...@@ -359,10 +352,10 @@ ...@@ -359,10 +352,10 @@
if (res.Code == 1) { if (res.Code == 1) {
var jsonData = res.Data; var jsonData = res.Data;
if (jsonData && jsonData.length > 0) { if (jsonData && jsonData.length > 0) {
jsonData.unshift({ // jsonData.unshift({
Id: 0, // Id: 0,
EmployeeName: "请选择" // EmployeeName: "请选择"
}); // });
this.AllemployeeList = JSON.parse(JSON.stringify(jsonData)); this.AllemployeeList = JSON.parse(JSON.stringify(jsonData));
this.EmployeeList = JSON.parse(JSON.stringify(jsonData));; this.EmployeeList = JSON.parse(JSON.stringify(jsonData));;
} }
...@@ -380,11 +373,6 @@ ...@@ -380,11 +373,6 @@
} }
}); });
}, },
//报价单转订单
offerTransOrder(item) {
this.offerObj = item;
this.showOrderForm = true;
},
//改价 //改价
editOrderPrice(item) { editOrderPrice(item) {
this.offerObj = item; this.offerObj = item;
...@@ -392,14 +380,14 @@ ...@@ -392,14 +380,14 @@
}, },
//刷新页面 //刷新页面
refreshPage() { refreshPage() {
this.showForm = false;
this.showOrderForm = false; this.showOrderForm = false;
this.showEditPrice = false; this.showEditPrice = false;
this.getcourseofferpage(); this.getcourseofferpage();
}, },
//报价单详情
gotoDetails(item) { gotoDetails(item) {
this.rId=item.Id; this.rId = item.Id;
this.isShowviewQuo=true; this.isShowviewQuo = true;
}, },
//重新查询 //重新查询
resetSearch() { resetSearch() {
...@@ -409,17 +397,23 @@ ...@@ -409,17 +397,23 @@
//翻页 //翻页
changePage(val) { changePage(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getcourseofferpage() this.getcourseofferpage();
}, },
//获取报价单分页列表 //获取报价单分页列表
getcourseofferpage() { getcourseofferpage() {
this.loading = true; this.loading = true;
if (this.msg.CreateBy == "") {
this.msg.CreateBy == 0;
}
queryCourseOfferPage(this.msg).then(res => { queryCourseOfferPage(this.msg).then(res => {
this.loading = false this.loading = false;
this.data = res.Data.PageData; this.data = res.Data.PageData;
this.pageCount = res.Data.PageCount; this.pageCount = res.Data.PageCount;
if (this.msg.CreateBy == 0) {
this.msg.CreateBy == "";
}
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false;
}) })
}, },
} }
......
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