From f69afc7461e1c2d92a935c0228b77388637de2e4 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期五, 22 十二月 2023 11:25:31 +0800
Subject: [PATCH] 明细单添加编辑接口+编辑产品列表赋值逻辑修改+查看时限制操作的方法逻辑修改+毛利毛利率计算给列表赋值
---
src/views/service/clientServiceOrder/index.vue | 25 +++++++++++++++++--------
1 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/src/views/service/clientServiceOrder/index.vue b/src/views/service/clientServiceOrder/index.vue
index 53a79ca..c8fd71a 100644
--- a/src/views/service/clientServiceOrder/index.vue
+++ b/src/views/service/clientServiceOrder/index.vue
@@ -179,14 +179,23 @@
// 璇锋眰鏁版嵁
async getData() {
this.loading = true
- await getServiceOrderList({
- keyword: this.keyword,
- keywordType: this.keywordType,
- page: this.pagerOptions.currPage,
- pageSize: this.pagerOptions.pageSize,
-
- sourceId:this.addConfig.salesDetailsId
- })
+ console.log(this.addConfig)
+ let params = {}
+ if (this.addConfig.keywordType === "鏈嶅姟鍚堝悓") {
+ params = {
+ serviceContractId: this.addConfig.serviceContractId,
+ page: this.pagerOptions.currPage,
+ pageSize: this.pagerOptions.pageSize
+ }
+ } else {
+ params = {
+ keyword: this.keyword,
+ keywordType: this.keywordType,
+ page: this.pagerOptions.currPage,
+ pageSize: this.pagerOptions.pageSize
+ }
+ }
+ await getServiceOrderList(params)
.then((res) => {
console.log(res)
if (res.code === 200) {
--
Gitblit v1.8.0