From 504e00da9a9898ac419e97f93fc66cc7c7c6f620 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期三, 28 二月 2024 14:30:25 +0800 Subject: [PATCH] 服务合同-去掉产品为空的判断增加保存时去掉未选择产品的对象 --- src/views/sales/contractManage/index.vue | 19 ++++++++----------- 1 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/views/sales/contractManage/index.vue b/src/views/sales/contractManage/index.vue index 64821f8..75bafd9 100644 --- a/src/views/sales/contractManage/index.vue +++ b/src/views/sales/contractManage/index.vue @@ -7,7 +7,7 @@ :show-download="false" :amount-view="false" :show-action-btn="false" - placeholder="璇疯緭鍏ュ崟鎹紪鍙�" + placeholder="璇疯緭鍏ュ悎鍚屽悕绉版垨鍗曟嵁缂栧彿" @searchClick="onFilterSearch" > <template slot="leftButton"> @@ -102,18 +102,15 @@ }, selValueList: [], search_map: {}, - searchSel: { - value: "number", - label: "鍗曟嵁缂栧彿" - }, tableColumn: [ - { label: "鍗曟嵁缂栧彿", prop: "number", min: 120, isCommonClick: true, default: true }, + { label: "鍚堝悓鍚嶇О", prop: "contractName", min: 120, isCommonClick: true, default: true }, { label: "璐熻矗浜�", prop: "member_name", min: 90 }, { label: "瀹㈡埛鍚嶇О", prop: "client_name" }, { label: "鍚堝悓鐘舵��", prop: "serviceContractStatus_name", min: 100 }, { label: "鍒涘缓鏃堕棿", prop: "created_at" } ], - showCol: ["鍗曟嵁缂栧彿", "璐熻矗浜�", "瀹㈡埛鍚嶇О", "鍚堝悓鐘舵��", "鍒涘缓鏃堕棿"] + showCol: ["鍚堝悓鍚嶇О", "璐熻矗浜�", "瀹㈡埛鍚嶇О", "鍚堝悓鐘舵��", "鍒涘缓鏃堕棿"], + keyword:'' } }, created() { @@ -160,7 +157,7 @@ async getData() { this.loading = true await getContractList({ - search_map: this.search_map, + keyword:this.keyword, page: this.pagerOptions.currPage, pageSize: this.pagerOptions.pageSize }) @@ -195,7 +192,7 @@ }, // 鎼滅储 onFilterSearch(searchText) { - this.search_map.number = searchText ?? "" + this.keyword=searchText this.pagerOptions.currPage = 1 this.getData() }, @@ -221,7 +218,7 @@ type: "warning" }) .then(() => { - getDelContract({ ids: [id] }).then((response) => { + getDelContract(id).then((response) => { if (response.code === 200) { this.$message.success("鍒犻櫎鎴愬姛") this.getData() @@ -245,7 +242,7 @@ }, // 鍚堝悓绠$悊璇︽儏 selCommonClick(row) { - console.log(row) + console.log(row,"鍚堝悓璇︽儏") this.contractDetail.visible = true this.contractDetail.infomation = { ...row } } -- Gitblit v1.8.0