| | |
| | | :edit-common-config="editSelectChanceConfig" |
| | | @selClient="selClient" |
| | | /> |
| | | <!-- 新建 收款计划 --> |
| | | <AddCollectionPlan v-if="addCollectionConfig.visible" :edit-common-config="addCollectionConfig" /> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | |
| | | import { getAddSalesDetails, getUpdateSalesDetails } 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" |
| | | export default { |
| | | name: "AddSalesDetailsDialog", |
| | | props: { |
| | |
| | | } |
| | | } |
| | | }, |
| | | components: { CommonFormTableView, SelectClientDialog, SelectChanceDialog }, |
| | | components: { CommonFormTableView, SelectClientDialog, SelectChanceDialog, AddCollectionPlan }, |
| | | computed: { |
| | | clientList() { |
| | | return this.$store.state.getClientName.clientList |
| | |
| | | clientId: this.editCommonConfig.infomation.client_id, |
| | | saleChanceId: this.editCommonConfig.infomation.saleChanceId, |
| | | productId: 1, |
| | | isNoProduct: true |
| | | isNoProduct: true, |
| | | addCollectionConfig: { |
| | | visible: false, |
| | | title: "新建", |
| | | infomation: {} |
| | | }, |
| | | amountTotal: 0 |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | console.log(res) |
| | | this.editConfig.visible = false |
| | | if (res.code === 200) { |
| | | this.$message.success("添加成功") |
| | | this.$parent.getData() |
| | | this.tableData.map((item) => { |
| | | this.amountTotal += item.total |
| | | }) |
| | | let config = { |
| | | amountTotal: this.amountTotal, |
| | | id: res.data.id |
| | | } |
| | | this.$emit("addCollectionPlanClick", config) |
| | | } |
| | | }) |
| | | } else { |