| | |
| | | <!-- :detail-enter="true" --> |
| | | <CommonFormTableView |
| | | ref="commonFormTableView" |
| | | :detail-enter="isView?true:false" |
| | | :selectBox="false" |
| | | :show-summary="showSummary" |
| | | pageName="quotation" |
| | | :isOperate="((autoCodeHeadersObj.bjd=='yes'&&editConfig.infomation.quotation_number)||autoCodeHeadersObj.bjd!='yes')?true:false" |
| | |
| | | quotationId: this.editCommonConfig.infomation.quotationId, |
| | | tableData: [], |
| | | isView: this.editCommonConfig.title === "查看", |
| | | selectBox: this.editCommonConfig.title !== "查看", |
| | | thatMember: {} |
| | | } |
| | | }, |
| | |
| | | console.log(res) |
| | | this.quotationList = res.data.list |
| | | if (value === "全部产品") { |
| | | this.quotationList.map((item) => { |
| | | if (item.id === this.editConfig.infomation.quotationId) { |
| | | this.tableData = item.products |
| | | this.tableData.map((item, index) => { |
| | | item.productId = index + 1 |
| | | this.tableData.forEach((key) => { |
| | | if (item.number === key.number) { |
| | | item.amount = key.amount |
| | | item.id = key.id |
| | | } |
| | | }) |
| | | }) |
| | | this.productTableList.tableData = this.tableData |
| | | } |
| | | }) |
| | | // this.quotationList.map((item) => { |
| | | // if (item.id === this.editConfig.infomation.quotationId) { |
| | | |
| | | // this.tableData.map((item, index) => { |
| | | // item.productId = index + 1 |
| | | // this.tableData.forEach((key) => { |
| | | // if (item.number === key.number) { |
| | | // item.amount = key.amount |
| | | // item.id = key.id |
| | | // } |
| | | // }) |
| | | // }) |
| | | |
| | | // } |
| | | // }) |
| | | } |
| | | } |
| | | }) |
| | |
| | | ] |
| | | } else { |
| | | this.tableData = this.editConfig.infomation.products |
| | | this.tableData.map((item, index) => { |
| | | item.productId = index + 1 |
| | | }) |
| | | this.getQuotation(this.editConfig.infomation.saleChanceId, "全部产品") |
| | | } |
| | | // let productData = this.quotationList.products |