From d4f4c52402b91cb8e17c1845da71c5e39662fde0 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期三, 03 一月 2024 15:28:06 +0800 Subject: [PATCH] 销售报价单列表页增加统计内容及接口联调、添加报价单天天客户名称及对应限制功能 --- src/views/sales/salesDetails/AddSalesDetailsDialog.vue | 57 +++++++++++++++++++++++++++++++++++++++++---------------- 1 files changed, 41 insertions(+), 16 deletions(-) diff --git a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue index a6efeb0..3933f47 100644 --- a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue +++ b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue @@ -208,6 +208,7 @@ placeholder="閫夋嫨鏃ユ湡" style="width: 100%" :disabled="isView" + :picker-options="pickerOptionsBefore" > </el-date-picker> </el-form-item> @@ -235,6 +236,7 @@ placeholder="閫夋嫨鏃ユ湡" style="width: 100%" :disabled="isView" + :picker-options="pickerOptions" > </el-date-picker> </el-form-item> @@ -407,6 +409,7 @@ ref="commonFormTableView" :detail-enter="isView?true:false" :selectBox="false" + :addTypeIdMultiple="true" :show-summary="showSummary" pageName="quotation" :isOperate="((autoCodeHeadersObj.Bjd=='yes'&&editConfig.infomation.quotation_number)||autoCodeHeadersObj.Bjd!='yes')?true:false" @@ -414,6 +417,7 @@ :product-table-list="productTableList" @inputContent="inputContent" @addProductClick="addProductClick" + @getSelectArray="getSelectArray" @emptyProductClick="emptyProductClick" @clearupProduct="clearupProduct" ></CommonFormTableView> @@ -599,7 +603,17 @@ quotationId: this.editCommonConfig.infomation.quotationId, tableData: [], isView: this.editCommonConfig.title === "鏌ョ湅", - thatMember: {} + thatMember: {}, + pickerOptions: { + disabledDate(time) { + return time.getTime() < Date.now() - 8.64e7; + }, + }, + pickerOptionsBefore:{ + disabledDate(time) { + return time.getTime() > Date.now(); + }, + } } }, created() { @@ -995,21 +1009,32 @@ }, // 浜у搧鏂板 addProductClick() { - this.productId++ - this.tableData.push({ - productId: this.productId, - id: 0, - amount: 0, - desc: "", - name: "", - number: "", - price: 0, - cost:'', - profit:'', - margin:'', - total: 0, - unit: "" - }) + // this.productId++ + // this.tableData.push({ + // productId: this.productId, + // id: 0, + // amount: 0, + // desc: "", + // name: "", + // number: "", + // price: 0, + // cost:'', + // profit:'', + // margin:'', + // total: 0, + // unit: "" + // }) + // this.showSummary.show = true + }, + // 鏂板鏂瑰紡淇敼 + getSelectArray(val){ + if(val.length>0){ + val.map((item, index) => { + item.productId = this.tableData.length + index+1 + }) + } + this.tableData=this.tableData.concat(val); + this.productTableList.tableData=this.tableData this.showSummary.show = true }, // 浜у搧娓呯┖ -- Gitblit v1.8.0