| | |
| | | placeholder="选择日期" |
| | | style="width: 100%" |
| | | :disabled="isView" |
| | | :picker-options="pickerOptionsBefore" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | |
| | | placeholder="选择日期" |
| | | style="width: 100%" |
| | | :disabled="isView" |
| | | :picker-options="pickerOptions" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | |
| | | 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" |
| | |
| | | :product-table-list="productTableList" |
| | | @inputContent="inputContent" |
| | | @addProductClick="addProductClick" |
| | | @getSelectArray="getSelectArray" |
| | | @emptyProductClick="emptyProductClick" |
| | | @clearupProduct="clearupProduct" |
| | | ></CommonFormTableView> |
| | |
| | | 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() { |
| | |
| | | }, |
| | | // 产品新增 |
| | | 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 |
| | | }, |
| | | // 产品清空 |