| | |
| | | // 获取最大单据号 |
| | | async getMaxBillNo() { |
| | | try { |
| | | const response = await axios.get(`${this.baseURL}/Web/GetMAXNum`, { |
| | | const response = await axios.get(`${this.$baseUrl}/Web/GetMAXNum`, { |
| | | params: { HBillType: '1251' } |
| | | }) |
| | | if (response.data && response.data.data && response.data.data.length > 0) { |
| | |
| | | // 加载单据数据 |
| | | async loadBillData(linterid) { |
| | | try { |
| | | const response = await axios.get(`${this.baseURL}/Kf_StepFoldInBill/cx`, { |
| | | const response = await axios.get(`${this.$baseUrl}/Kf_StepFoldInBill/cx`, { |
| | | params: { HInterID: linterid } |
| | | }) |
| | | console.log('编辑传入的主id:', linterid) |
| | |
| | | JSON.stringify({ main: this.form, table: this.tableData }) |
| | | console.log('提交的完整数据:', submitData) |
| | | |
| | | const response = await axios.post(`${this.baseURL}/Kf_StepFoldInBill/Kf_StepFoldInBillEdit`, { |
| | | const response = await axios.post(`${this.$baseUrl}/Kf_StepFoldInBill/Kf_StepFoldInBillEdit`, { |
| | | sMainSub: submitData |
| | | }) |
| | | |