From ee63845014b83854ffed9fa04ad7545b7cccae74 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期六, 26 八月 2023 18:21:03 +0800 Subject: [PATCH] 销售负责人接口联调 --- src/views/purchaseManage/purchase/index.vue | 37 +++++++++++++++++++++++++++++-------- 1 files changed, 29 insertions(+), 8 deletions(-) diff --git a/src/views/purchaseManage/purchase/index.vue b/src/views/purchaseManage/purchase/index.vue index 52a58c6..ea06106 100644 --- a/src/views/purchaseManage/purchase/index.vue +++ b/src/views/purchaseManage/purchase/index.vue @@ -23,7 +23,7 @@ <template slot="tableButton"> <el-table-column label="鎿嶄綔" width="120" fixed="right"> <template slot-scope="scope"> - <el-button type="text" size="small" @click="editClick" style="margin-right: 5px" + <el-button type="text" size="small" @click="editClick(scope.row)" style="margin-right: 5px" >缂栬緫</el-button > <el-button @click="submitClick(scope.row)" type="text" size="small">鎻愪氦</el-button> @@ -41,18 +41,22 @@ <!-- <AddSalesLeadDialog v-if="editSalesLeadConfig.visible" :edit-rightContent-config="editSalesLeadConfig" /> --> <!-- 璇︽儏 --> <DetailSupplier v-if="commonDetail.visible" :common-detail="commonDetail" @submitClick="submitClick" /> + <!-- 鏂板缓/缂栬緫 --> + <AddPurchase v-if="editConfig.visible" :edit-common-config="editConfig" /> </div> </template> <script> import pageMixin from "@/components/makepager/pager/mixin/pageMixin" -import { getSalesLeadsList, getDeleteSalesLeads } from "@/api/client/salesLead" +import { + getSalesLeadsList, getDeleteSalesLeads +} from "@/api/purchaseManage/purchase"; import DetailSupplier from "@/views/purchaseManage/purchase/DetailSupplier" - +import AddPurchase from "@/views/purchaseManage/purchase/components/AddPurchase" export default { name: "SupplierManage", props: {}, - components: { DetailSupplier }, + components: { DetailSupplier,AddPurchase }, mixins: [pageMixin], computed: {}, data() { @@ -63,7 +67,13 @@ visible: false, infomation: {} }, - search_map: {} + search_map: {}, + editRow:{}, + editConfig: { + visible: false, + title: "鍒涘缓", + infomation: {} + }, } }, created() { @@ -125,10 +135,21 @@ this.getData() }, // 鏂板缓 - addBtnClick() {}, + addBtnClick() { + // this.editRow = {}; + // this.$refs.add.islook = true; + this.editConfig.visible = true + this.editConfig.title = "鍒涘缓" + this.editConfig.infomation = { } + }, + // 缂栬緫 - editClick(){ - + editClick(row){ + // this.editRow = row; + // this.$refs.add.islook = true; + this.editConfig.visible = true + this.editConfig.title = "缂栬緫" + this.editConfig.infomation = { ...row } }, // 纭鍙戣揣 submitClick() { -- Gitblit v1.8.0