| | |
| | | <div class="common-select-btn" @click="selClientClick('client')"> |
| | | <i class="el-icon-circle-plus-outline" title="选择"></i> |
| | | </div> |
| | | <div class="common-select-btn" @click="clearupClient('client')"> |
| | | <div |
| | | v-if="editConfig.infomation.client_name && editConfig.infomation.client_name.length > 0" |
| | | class="common-select-btn" |
| | | @click="clearupClient('client')" |
| | | > |
| | | <i class="el-icon-edit-outline" title="清除"></i> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="common-select-btn" @click="selClientClick('chance')"> |
| | | <i class="el-icon-circle-plus-outline"></i> |
| | | </div> |
| | | <div class="common-select-btn" @click="clearupClient('chance')"> |
| | | <div |
| | | v-if="editConfig.infomation.sale_chance_name && editConfig.infomation.sale_chance_name.length > 0" |
| | | class="common-select-btn" |
| | | @click="clearupClient('chance')" |
| | | > |
| | | <i class="el-icon-edit-outline"></i> |
| | | </div> |
| | | </div> |
| | |
| | | :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 { |
| | |
| | | signTime: data.signTime || "", |
| | | wechatOrderStatus: data.wechatOrderStatus || 0, |
| | | logisticCompany: data.logisticCompany || "", |
| | | logisticCost: parseInt(data.logisticCost) || 0, |
| | | logisticCost: data.logisticCost || 0, |
| | | logisticNumber: data.logisticNumber || "" |
| | | } |
| | | let params = {} |
| | |
| | | // 设置允许上传文件格式 |
| | | setFormatClick() {}, |
| | | setTableForm() { |
| | | if (this.editConfig.title === "新建") { |
| | | if (this.editConfig.title === "新建" || this.editConfig.infomation.products.length === 0) { |
| | | this.tableData = [ |
| | | { |
| | | productId: this.productId, |