| | |
| | | <script> |
| | | import CommonFormTableView from "@/components/makepager/CommonFormTableView" |
| | | import { getAllData } from "@/api/client/client" |
| | | import { getAddSalesDetails, getUpdateSalesDetails,getProjectList,sendSalesDetailsToApsProject } from "@/api/sales/salesDetails" |
| | | import { getAddSalesDetails, getUpdateSalesDetails,getProjectList} from "@/api/sales/salesDetails" |
| | | import SelectClientDialog from "@/views/other/commonDialog/SelectClientDialog" |
| | | import SelectChanceDialog from "@/views/other/commonDialog/SelectChanceDialog" |
| | | import AddCollectionPlan from "@/views/other/payment/collectionPlan/AddCollectionPlan" |
| | |
| | | } else { |
| | | const params = this.saveParams() |
| | | if (this.editConfig.title === "新建") { |
| | | if(params.projectId!==0){ |
| | | sendSalesDetailsToApsProject({...params,member:this.thatMember}).then((res)=>{ |
| | | if(res.code===200){ |
| | | this.$message.success("成功推送至aps系统") |
| | | } |
| | | }) |
| | | } |
| | | getAddSalesDetails(params).then((res) => { |
| | | console.log(res) |
| | | this.editConfig.visible = false |
| | |
| | | quotationId: this.quotationId, |
| | | deliverType: data.deliverType || 0, |
| | | status: 1, |
| | | projectId:data.projectId||0 |
| | | projectId:data.projectId||'' |
| | | } |
| | | let params = {} |
| | | if (this.editConfig.title === "新建") { |