| | |
| | | number: "", |
| | | contact: "", |
| | | phone: "", |
| | | signingDate: "", |
| | | signingDate: this.getCurrentDate(), |
| | | deliveryDate: "", |
| | | remark: "", |
| | | wholeDiscountType: null, |
| | |
| | | realTotalPrice: 0 |
| | | } |
| | | }, |
| | | |
| | | // 获取当前日期 |
| | | getCurrentDate() { |
| | | let now = new Date() |
| | | let year = now.getFullYear() |
| | | let month = now.getMonth() + 1 |
| | | let day = now.getDate() |
| | | return year + "-" + month + "-" + day |
| | | }, |
| | | // 编辑 |
| | | btnEdit(row) { |
| | | this.editConfig.detailEnter = false |
| | |
| | | this.editConfig.infomation = { |
| | | productList: res.data.productList, |
| | | supplierName: res.data.purchase.supplier.name, |
| | | ...res.data.purchase |
| | | ...res.data.purchase, |
| | | purchaseTypeId: res.data.purchase.purchaseTypeId == "0" ? "" : res.data.purchase.purchaseTypeId |
| | | } |
| | | } else { |
| | | this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |
| | |
| | | this.editConfig.infomation = { |
| | | productList: res.data.productList, |
| | | supplierName: res.data.purchase.supplier.name, |
| | | ...res.data.purchase |
| | | ...res.data.purchase, |
| | | purchaseTypeId: res.data.purchase.purchaseTypeId == "0" ? "" : res.data.purchase.purchaseTypeId |
| | | } |
| | | } else { |
| | | this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!") |