| | |
| | | commonInputChange(val, prop, row) { |
| | | console.log(val, prop) |
| | | console.log(row) |
| | | if (prop === "amount") { |
| | | this.tableList.tableData.map((ite) => { |
| | | if (ite.name === row.name) { |
| | | ite.total = row.amount * row.price |
| | | } |
| | | }) |
| | | } |
| | | this.$emit("inputContent", val, prop, row) |
| | | }, |
| | | // 清空 |
| | |
| | | }, |
| | | handleClose() { |
| | | this.editConfig.visible = false |
| | | this.$parent.getData() |
| | | }, |
| | | setTableForm() { |
| | | this.setTableInfomation(this.firstDate) |
| | |
| | | clientId: this.editCommonConfig.infomation.client_id, |
| | | SalesDetailsId: this.editCommonConfig.infomation.SalesDetailsId, |
| | | serviceContractId: this.editCommonConfig.infomation.id, |
| | | tableData: [], |
| | | productId: 1 |
| | | tableData: [] |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.productId = 1 |
| | | this.tableData = [ |
| | | { |
| | | id: 1, |
| | | id: 0, |
| | | Amount: 0, |
| | | IsSale: true, |
| | | MaterialMode: "", |
| | |
| | | </el-row> |
| | | </div> |
| | | <!-- 附件信息 --> |
| | | <!-- <div v-if="isUnflod" class="basic-info-title">附件信息</div> |
| | | <div v-if="isUnflod" class="basic-info-title">附件信息</div> |
| | | <div class="basic-info-view"> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </div> --> |
| | | </div> |
| | | <!-- 展开收起 --> |
| | | <!-- <div v-if="editConfig.title === '新建'" class="unflod-collapse" @click="unflodCollapseClick"> |
| | | <div>{{ unflodCollapseStr }}</div> |
| | |
| | | tableColumn: [ |
| | | { label: "单据编号", prop: "number", min: 120, isCommonClick: true }, |
| | | { label: "负责人", prop: "member_name", min: 90 }, |
| | | // { label: "审批状态", prop: "approvalStatus" }, |
| | | { label: "创建人", prop: "creator", min: 100 }, |
| | | { label: "客户名称", prop: "client_name" }, |
| | | { label: "合同状态", prop: "serviceContractStatus_name", min: 100 }, |
| | | { label: "创建时间", prop: "created_at" } |
| | | ] |
| | | } |
| | |
| | | ...item, |
| | | member_name: item.member.username, |
| | | client_name: item.client.name, |
| | | quotation_number: item.quotation.number |
| | | quotation_number: item.quotation.number, |
| | | serviceContractStatus_name: item.serviceContractStatus.name |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |
| | |
| | | }, |
| | | async getPaymentTypeList() { |
| | | await getPaymentTypeList().then((res) => { |
| | | console.log("支付方式") |
| | | console.log(res.data) |
| | | if (res.data.code === 200) { |
| | | this.paymentTypeListOptions = res.data.data.data |
| | | } |
| | |
| | | </template> |
| | | </TableCommonView> |
| | | <!-- 新建/编辑 --> |
| | | <AddSalesDetailsDialog v-if="editConfig.visible" :edit-common-config="editConfig" /> |
| | | <AddSalesDetailsDialog |
| | | v-if="editConfig.visible" |
| | | :edit-common-config="editConfig" |
| | | @addCollectionPlanClick="addCollectionPlanClick" |
| | | /> |
| | | <!-- 销售明细详情 --> |
| | | <DetailSpecification v-if="specificationDetail.visible" :specification-detail="specificationDetail" /> |
| | | <!-- 客户详情 --> |
| | | <DetailClientManage v-if="clientDeail.visible" :client-manage-detail="clientDeail" /> |
| | | <!-- 新建 收款计划 --> |
| | | <AddCollectionPlan v-if="addCollectionConfig.visible" :edit-common-config="addCollectionConfig" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import { getSalesDetailsList, getDelSalesDetails } from "@/api/sales/salesDetails" |
| | | import pageMixin from "@/components/makepager/pager/mixin/pageMixin" |
| | | import DetailSpecification from "@/views/sales/salesDetails/DetailSpecification" |
| | | import AddCollectionPlan from "@/views/other/payment/collectionPlan/AddCollectionPlan" |
| | | |
| | | export default { |
| | | name: "SalesDetails", |
| | |
| | | components: { |
| | | AddSalesDetailsDialog, |
| | | DetailSpecification, |
| | | DetailClientManage: () => import("@/views/client/client/DetailClientManage") |
| | | DetailClientManage: () => import("@/views/client/client/DetailClientManage"), |
| | | AddCollectionPlan |
| | | }, |
| | | computed: { |
| | | searchCommonHeight() { |
| | |
| | | label: "订单编号" |
| | | }, |
| | | keyword: "", |
| | | keywordType: "" |
| | | keywordType: "", |
| | | addCollectionConfig: { |
| | | visible: false, |
| | | title: "新建", |
| | | infomation: {} |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | console.log(row) |
| | | this.specificationDetail.visible = true |
| | | this.specificationDetail.infomation = { ...row } |
| | | }, |
| | | addCollectionPlanClick(row) { |
| | | this.addCollectionConfig.visible = true |
| | | this.addCollectionConfig.title = "新建" |
| | | this.addCollectionConfig.sourceType = 1 |
| | | this.addCollectionConfig.infomation = { ...row } |
| | | } |
| | | } |
| | | } |
| | |
| | | { label: "可能性(%)", prop: "possibility_name" }, // 可能性 |
| | | { label: "预计成交日期", prop: "expected_time", min: 130 }, // 预计成交日期 |
| | | { label: "预计合同金额", prop: "projected_amount" }, // 预计合同金额 |
| | | { label: "预算绝对值", prop: "capital_budget" }, // 预算绝对值 |
| | | { label: "预算绝对值", prop: "budget" }, // 预算绝对值 |
| | | { label: "销售负责人", prop: "member_name" } // 销售负责人 |
| | | ] |
| | | } |
| | |
| | | show: true, |
| | | total: true, |
| | | sumProp: ["Amount", "Unit", "total"], |
| | | mergeNumber: 3 |
| | | mergeNumber: 2 |
| | | }, |
| | | editSelectClientConfig: { |
| | | editVisible: false, |