| | |
| | | getProductInventoryInfo, |
| | | getProductOrderInfo, |
| | | updateStatus, |
| | | createOperation, |
| | | getProjectList, |
| | | getUpdateSalesDetails, |
| | | sendSalesDetailsToApsProject |
| | | sendSalesDetailsToOtherSystem |
| | | } from "@/api/sales/salesDetails" |
| | | import pageMixin from "@/components/makepager/pager/mixin/pageMixin" |
| | | import DetailSpecification from "@/views/sales/salesDetails/DetailSpecification" |
| | |
| | | ...item, |
| | | client_name: item.client.name, |
| | | member_name: item.Member.username, |
| | | source: "CRM同步" |
| | | source: "" |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |
| | |
| | | ...row, |
| | | status: 2 |
| | | } |
| | | await createOperation(params).then((res) => { |
| | | console.log(params,"看看params") |
| | | await sendSalesDetailsToOtherSystem(params).then((res)=>{ |
| | | if (res.code == 200) { |
| | | this.$message.success("确认提交成功") |
| | | this.$message.success("成功推送至aps系统") |
| | | this.getData() |
| | | this.thatRow.status=2 |
| | | sendSalesDetailsToApsProject(this.thatRow).then((res)=>{ |
| | | if(res.code===200){ |
| | | this.$message.success("成功推送至aps系统") |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | |
| | | if(valid){ |
| | | console.log() |
| | | this.projectListShow=false |
| | | getUpdateSalesDetails({ |
| | | id:this.thatRow.id, |
| | | salesDetails:params |
| | | }).then((res) => { |
| | | console.log(res) |
| | | this.editConfig.visible = false |
| | | if (res.code === 200) { |
| | | let params2 = { |
| | | ...this.thatRow, |
| | | status: 2 |
| | | } |
| | | createOperation(params2).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$message.success("提交成功") |
| | | this.getData() |
| | | this.thatRow.status=2 |
| | | sendSalesDetailsToApsProject(this.thatRow).then((res)=>{ |
| | | if(res.code===200){ |
| | | this.$message.success("成功推送至aps系统") |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | console.log(params,"选择项目后的params") |
| | | params.status=2 |
| | | sendSalesDetailsToOtherSystem(params).then((res)=>{ |
| | | if (res.code == 200) { |
| | | this.$message.success("成功推送至aps系统") |
| | | this.getData() |
| | | this.thatRow.status=2 |
| | | } |
| | | }).catch((err)=>{ |
| | | this.$message.error(`编辑失败:${err}`) |
| | | }) |
| | | } |
| | | }) |