Forráskód Böngészése

分成增加查删接口

Yannay 2 hónap óta
szülő
commit
243164c4d4

+ 22 - 60
pages/commissionForm/index.vue

@@ -1,79 +1,39 @@
1 1
 <template>
2 2
   <view class="commission-form-page">
3
-    <u-navbar
4
-      placeholder
5
-      :autoBack="true"
6
-      :title="pageTitle"
7
-      @rightClick="submitForm"
8
-    >
3
+    <u-navbar placeholder :autoBack="true" :title="pageTitle" @rightClick="submitForm">
9 4
       <view class="u-nav-slot" slot="right"> 保存 </view>
10 5
     </u-navbar>
11 6
 
12 7
     <!-- 表单内容 -->
13 8
     <view class="follow_form_wrap">
14
-      <u--form
15
-          labelPosition="left"
16
-          labelWidth="130"
17
-          :model="commissionForm"
18
-          :rules="rules"
19
-          ref="commissionFormRef"
20
-          class="form_wrap"
21
-          :errorType="'toast'"
22
-        >
9
+      <u--form labelPosition="left" labelWidth="130" :model="commissionForm" :rules="rules" ref="commissionFormRef"
10
+        class="form_wrap" :errorType="'toast'">
23 11
         <u-form-item label="账户类型" prop="accountType" borderBottom :required="true">
24
-          <ld-select
25
-            :list="accountTypeOptions"
26
-            label-key="label"
27
-            value-key="value"
28
-            placeholder="请选择账户类型"
29
-            v-model="commissionForm.accountType"
30
-            :border="false"
31
-          ></ld-select>
12
+          <ld-select :list="accountTypeOptions" label-key="label" value-key="value" placeholder="请选择账户类型"
13
+            v-model="commissionForm.accountType" :border="false"></ld-select>
32 14
           <u-icon slot="right" name="arrow-right"></u-icon>
33 15
         </u-form-item>
34 16
 
35 17
         <u-form-item label="分成人" prop="userName" borderBottom :required="true" @click="handleShowCommissionUser">
36
-          <u--input
37
-            v-model="commissionForm.userName"
38
-            disabled style='pointer-events: none !important'
39
-            disabledColor="#ffffff"
40
-            placeholder="点击选择"
41
-            border="none"
42
-          ></u--input>
18
+          <u--input v-model="commissionForm.userName" disabled style='pointer-events: none !important'
19
+            disabledColor="#ffffff" placeholder="点击选择" border="none"></u--input>
43 20
           <u-icon slot="right" name="arrow-right"></u-icon>
44 21
         </u-form-item>
45 22
 
46 23
         <u-form-item label="分成比例(%)" prop="commissionRate" borderBottom :required="true">
47
-          <u--input
48
-            v-model.number="commissionForm.commissionRate"
49
-            type="number"
50
-            placeholder="请输入分成比例(0-100)"
51
-            border="none"
52
-            @blur="validateCommissionRate"
53
-          ></u--input>
24
+          <u--input v-model.number="commissionForm.commissionRate" type="number" placeholder="请输入分成比例(0-100)"
25
+            border="none" @blur="validateCommissionRate"></u--input>
54 26
         </u-form-item>
55 27
 
56 28
         <u-form-item label="是否归属公司业绩" prop="isCompanyPerformance" borderBottom :required="true">
57
-          <ld-select
58
-            :list="companyPerformanceOptions"
59
-            label-key="label"
60
-            value-key="value"
61
-            placeholder="请选择是否归属公司业绩"
62
-            v-model="commissionForm.isCompanyPerformance"
63
-            :border="false"
64
-          ></ld-select>
29
+          <ld-select :list="companyPerformanceOptions" label-key="label" value-key="value" placeholder="请选择是否归属公司业绩"
30
+            v-model="commissionForm.isCompanyPerformance" :border="false"></ld-select>
65 31
           <u-icon slot="right" name="arrow-right"></u-icon>
66 32
         </u-form-item>
67 33
 
68 34
         <u-form-item label="关联收单信息" prop="receiptFormId" borderBottom :required="true">
69
-          <ld-select
70
-            :list="receiptList"
71
-            label-key="item"
72
-            value-key="id"
73
-            placeholder="请选择收单信息"
74
-            v-model="commissionForm.receiptFormId"
75
-            :border="false"
76
-          ></ld-select>
35
+          <ld-select :list="receiptList" label-key="item" value-key="id" placeholder="请选择收单信息"
36
+            v-model="commissionForm.receiptFormId" :border="false"></ld-select>
77 37
           <u-icon slot="right" name="arrow-right"></u-icon>
78 38
         </u-form-item>
79 39
       </u--form>
@@ -81,8 +41,9 @@
81 41
 
82 42
     <!-- 分成人选择器 -->
83 43
     <ba-tree-picker :selectParent="false" v-if="commissionUserList.length > 0" ref="commissionUser" :multiple='false'
84
-      @select-change="commissionUserSelectChange" border title="分成人" :localdata="commissionUserList" valueKey="id" textKey="label"
85
-      childrenKey="children" :selectedValues="commissionForm.userId" :personNames="commissionForm.userName" />
44
+      @select-change="commissionUserSelectChange" border title="分成人" :localdata="commissionUserList" valueKey="id"
45
+      textKey="label" childrenKey="children" :selectedValues="commissionForm.userId"
46
+      :personNames="commissionForm.userName" />
86 47
   </view>
87 48
 </template>
88 49
 
@@ -151,10 +112,10 @@ export default {
151 112
     this.commissionForm.sendFormId = options.sendFormId;
152 113
     this.commissionForm.clueId = options.clueId;
153 114
     this.commissionForm.id = options.id;
154
-    
115
+
155 116
     // 获取分成人列表
156 117
     this.getCommissionUserList();
157
-    
118
+
158 119
     this.fetchReceiptList().then(() => {
159 120
       if (options.id) {
160 121
         this.initForm(options.id);
@@ -202,7 +163,7 @@ export default {
202 163
     validateCommissionRate() {
203 164
       const { commissionRate } = this.commissionForm;
204 165
       if (!commissionRate && commissionRate !== 0) return;
205
-      
166
+
206 167
       const rate = Number(commissionRate);
207 168
       if (rate < 0) {
208 169
         uni.$u.toast("分成比例不能小于0");
@@ -231,12 +192,12 @@ export default {
231 192
         if (this.commissionForm.id) {
232 193
           // 修改
233 194
           await uni.$u.api.clueCommissionUpdate(this.commissionForm);
234
-		  uni.$emit('addCommissionSuccess');
195
+          uni.$emit('addCommissionSuccess');
235 196
           uni.$u.toast("修改成功");
236 197
         } else {
237 198
           // 新增
238 199
           await uni.$u.api.clueCommissionAdd(this.commissionForm);
239
-		  uni.$emit('addCommissionSuccess');
200
+          uni.$emit('addCommissionSuccess');
240 201
           uni.$u.toast("新增成功");
241 202
         }
242 203
 
@@ -258,5 +219,6 @@ export default {
258 219
 .commission-form-page {
259 220
   background-color: #fff;
260 221
 }
222
+
261 223
 @import "@/static/follow/index.scss";
262 224
 </style>

+ 133 - 133
pages/order/components/commission/myCommission.vue

@@ -26,158 +26,158 @@
26 26
 </template>
27 27
 
28 28
 <script>
29
-	import pullUpRefresh from "@/utils/pullUpRefresh";
30
-	import filterQuery from "./filterQuery.vue";
31
-	import commissionItem from "./commissionItem.vue";
32
-	import dayjs from "dayjs";
33
-	export default {
34
-		mixins: [pullUpRefresh],
35
-		components: {
36
-			filterQuery,
37
-			commissionItem
29
+import pullUpRefresh from "@/utils/pullUpRefresh";
30
+import filterQuery from "./filterQuery.vue";
31
+import commissionItem from "./commissionItem.vue";
32
+import dayjs from "dayjs";
33
+export default {
34
+	mixins: [pullUpRefresh],
35
+	components: {
36
+		filterQuery,
37
+		commissionItem
38
+	},
39
+	props: {
40
+		type: {
41
+			type: String,
42
+			default: '2'
38 43
 		},
39
-		props: {
40
-			type: {
41
-				type: String,
42
-				default: '2'
44
+		showStats: {
45
+			type: Boolean,
46
+			default: true
47
+		}
48
+	},
49
+	data() {
50
+		return {
51
+			queryParams: {
52
+				receiptDateEnd: dayjs().format("YYYY-MM-DD"),
53
+				receiptDateStart: dayjs().startOf('month').format("YYYY-MM-DD"),
54
+				item: undefined,
55
+				phone: undefined,
56
+				receiptUserId: undefined,
57
+				pageNum: 1,
58
+				pageSize: 10,
43 59
 			},
44
-			showStats: {
45
-				type: Boolean,
46
-				default: true
47
-			}
60
+
61
+			mapHeight: "0px"
62
+		}
63
+	},
64
+	methods: {
65
+		handleKeyword() {
66
+			this.resetData();
48 67
 		},
49
-		data() {
50
-			return {
51
-				queryParams: {
52
-					receiptDateEnd: dayjs().format("YYYY-MM-DD"),
53
-					receiptDateStart: dayjs().startOf('month').format("YYYY-MM-DD"),
54
-					item: undefined,
55
-					phone: undefined,
56
-					receiptUserId: undefined,
57
-					pageNum: 1,
58
-					pageSize: 10,
59
-				},
60
-
61
-				mapHeight: "0px"
62
-			}
68
+		handleKeywordClear() {
69
+			// 组件有bug 清空后的值还是存在
70
+			this.queryParams.phone = "";
71
+			this.resetData();
63 72
 		},
64
-		methods: {
65
-			handleKeyword() {
66
-				this.resetData();
67
-			},
68
-			handleKeywordClear() {
69
-				// 组件有bug 清空后的值还是存在
70
-				this.queryParams.phone = "";
71
-				this.resetData();
72
-			},
73
-			handleshowFilter() {
74
-				this.$refs.filter.show();
75
-			},
76
-			async getList() {
77
-				const {
78
-					pageNum,
79
-					pageSize,
80
-				} = this.queryParams;
81
-				this.queryParams.type = this.type;
82
-				// 调用分成接口
83
-				const {
84
-					rows,
85
-					total
86
-				} = await uni.$u.api.selectCommissionList({
87
-					pageSize,
88
-					pageNum,
89
-				}, this.queryParams);
90
-				return rows;
91
-			},
92
-			handleOnReachBottom() {
93
-				this.handleReachBottom();
94
-			}
73
+		handleshowFilter() {
74
+			this.$refs.filter.show();
95 75
 		},
96
-		mounted() {
97
-			this.resetData();
98
-			uni.getSystemInfo({
99
-				success: (e) => {
100
-					const {
101
-						windowTop,
102
-						windowBottom,
103
-						windowHeight
104
-					} = e;
105
-					this.mapHeight = (windowHeight - 70) + 'px';
106
-				}
107
-			});
76
+		async getList() {
77
+			const {
78
+				pageNum,
79
+				pageSize,
80
+			} = this.queryParams;
81
+			this.queryParams.type = this.type;
82
+			// 调用分成接口
83
+			const {
84
+				rows,
85
+				total
86
+			} = await uni.$u.api.selectCommissionList({
87
+				pageSize,
88
+				pageNum,
89
+			}, this.queryParams);
90
+			return rows;
91
+		},
92
+		handleOnReachBottom() {
93
+			this.handleReachBottom();
108 94
 		}
95
+	},
96
+	mounted() {
97
+		this.resetData();
98
+		uni.getSystemInfo({
99
+			success: (e) => {
100
+				const {
101
+					windowTop,
102
+					windowBottom,
103
+					windowHeight
104
+				} = e;
105
+				this.mapHeight = (windowHeight - 70) + 'px';
106
+			}
107
+		});
109 108
 	}
109
+}
110 110
 </script>
111 111
 
112 112
 <style lang="scss" scoped>
113
-	.my_commission_wrap {
114
-		.queryParams_wrap {
115
-			display: flex;
116
-			background: #fff;
117
-			padding: 14px 0;
118
-
119
-
120
-			.query,
121
-			.search {
122
-				display: flex;
123
-				align-items: center;
124
-				justify-content: center;
125
-				font-size: 16px;
126
-				font-weight: 700;
127
-				color: #202020;
128
-			}
113
+.my_commission_wrap {
114
+	.queryParams_wrap {
115
+		display: flex;
116
+		background: #fff;
117
+		padding: 14px 0;
129 118
 
130
-			.query {
131
-				flex: 1;
132
-			}
133 119
 
134
-			.search {
135
-				flex: 2;
136
-				padding-left: 20px;
137
-			}
120
+		.query,
121
+		.search {
122
+			display: flex;
123
+			align-items: center;
124
+			justify-content: center;
125
+			font-size: 16px;
126
+			font-weight: 700;
127
+			color: #202020;
138 128
 		}
139
-	}
140 129
 
141
-	.stats_info_wrap {
142
-		margin-bottom: 30px;
143
-	}
130
+		.query {
131
+			flex: 1;
132
+		}
144 133
 
145
-	.stats_info_top {
146
-		display: flex;
147
-		margin-bottom: 20px;
148
-
149
-		.info_item {
150
-			box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
151
-			width: 23%;
152
-			margin-right: 2.6%;
153
-			height: 120px;
154
-			padding: 15px;
155
-			background: #fff;
156
-			border-radius: 15px;
157
-
158
-			&:last-child {
159
-				margin-right: 0;
160
-			}
134
+		.search {
135
+			flex: 2;
136
+			padding-left: 20px;
137
+		}
138
+	}
139
+}
140
+
141
+.stats_info_wrap {
142
+	margin-bottom: 30px;
143
+}
144
+
145
+.stats_info_top {
146
+	display: flex;
147
+	margin-bottom: 20px;
148
+
149
+	.info_item {
150
+		box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
151
+		width: 23%;
152
+		margin-right: 2.6%;
153
+		height: 120px;
154
+		padding: 15px;
155
+		background: #fff;
156
+		border-radius: 15px;
157
+
158
+		&:last-child {
159
+			margin-right: 0;
160
+		}
161 161
 
162
-			.info_title {
163
-				font-size: 14px;
164
-				color: #6b7280;
165
-				margin-bottom: 15px;
166
-			}
162
+		.info_title {
163
+			font-size: 14px;
164
+			color: #6b7280;
165
+			margin-bottom: 15px;
166
+		}
167 167
 
168
-			.info_value {
169
-				font-size: 24px;
170
-				font-weight: bold;
171
-				color: #202020;
172
-			}
168
+		.info_value {
169
+			font-size: 24px;
170
+			font-weight: bold;
171
+			color: #202020;
173 172
 		}
174 173
 	}
174
+}
175 175
 
176
-	.commission_item_wrap {
177
-		padding: 20px 20px;
178
-	}
176
+.commission_item_wrap {
177
+	padding: 20px 20px;
178
+}
179 179
 
180
-	.empty_wrap {
181
-		margin-top: 100px;
182
-	}
180
+.empty_wrap {
181
+	margin-top: 100px;
182
+}
183 183
 </style>

+ 69 - 68
pages/orderDetail/tabs/commissionFormList/commissionFormList.vue

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
 	<view class="commission-form-list">
3
-		
3
+
4 4
 
5 5
 		<!-- 分成信息卡片列表 -->
6 6
 		<view v-if="loading" class="loading_wrap">
@@ -10,37 +10,38 @@
10 10
 			<u-empty text="暂无分成数据"></u-empty>
11 11
 		</view>
12 12
 		<view v-else class="card_list">
13
-			<commission-item v-for="(row) in commissionList" :key="row.id" :item="row" :type="'2'" @click.native="handleEdit(row)"></commission-item>
13
+			<commission-item v-for="(row) in commissionList" :key="row.id" :item="row" :type="'2'"
14
+				@click.native="handleEdit(row)"></commission-item>
14 15
 		</view>
15 16
 	</view>
16 17
 </template>
17 18
 
18 19
 <script>
19
-	import commissionItem from "@/pages/order/components/commission/commissionItem.vue";
20
+import commissionItem from "@/pages/order/components/commission/commissionItem.vue";
20 21
 
21
-	export default {
22
-		name: 'CommissionFormList',
23
-		components: {
24
-			commissionItem
25
-		},
26
-		props: {
27
-			sendFormId: {
28
-				type: [Number, String],
29
-				required: true
30
-			},
31
-			clueId: {
32
-				type: [Number, String],
33
-				required: true
34
-			}
22
+export default {
23
+	name: 'CommissionFormList',
24
+	components: {
25
+		commissionItem
26
+	},
27
+	props: {
28
+		sendFormId: {
29
+			type: [Number, String],
30
+			required: true
35 31
 		},
36
-		data() {
37
-			return {
38
-				commissionList: [],
39
-				loading: false
40
-			}
41
-		},
42
-		methods: {
43
-			async getList() {
32
+		clueId: {
33
+			type: [Number, String],
34
+			required: true
35
+		}
36
+	},
37
+	data() {
38
+		return {
39
+			commissionList: [],
40
+			loading: false
41
+		}
42
+	},
43
+	methods: {
44
+		async getList() {
44 45
 			this.loading = true
45 46
 			try {
46 47
 				const data = {
@@ -61,58 +62,58 @@
61 62
 				url: `/pages/commissionForm/index?sendFormId=${this.sendFormId}&clueId=${this.clueId}&id=${row.id}`
62 63
 			})
63 64
 		},
64
-			handleDelete(id) {
65
-				uni.showModal({
66
-					title: '警告',
67
-					content: '确定要删除这条分成记录吗?删除后将无法恢复!',
68
-					confirmButtonText: '确定删除',
69
-					cancelButtonText: '取消',
70
-					success: (res) => {
71
-						if (res.confirm) {
72
-							this.deleteRow(id)
73
-						}
65
+		handleDelete(id) {
66
+			uni.showModal({
67
+				title: '警告',
68
+				content: '确定要删除这条分成记录吗?删除后将无法恢复!',
69
+				confirmButtonText: '确定删除',
70
+				cancelButtonText: '取消',
71
+				success: (res) => {
72
+					if (res.confirm) {
73
+						this.deleteRow(id)
74 74
 					}
75
-				})
76
-			},
77
-			async deleteRow(id) {
78
-				try {
79
-					await uni.$u.api.clueCommissionForm.remove([id])
80
-					uni.$u.toast('删除成功')
81
-					this.getList()
82
-				} catch (error) {
83
-					uni.$u.toast('删除失败,请稍后重试')
84 75
 				}
85
-			},
86
-			// 外部调用获取列表
87
-			getListByExternal() {
76
+			})
77
+		},
78
+		async deleteRow(id) {
79
+			try {
80
+				await uni.$u.api.clueCommissionForm.remove([id])
81
+				uni.$u.toast('删除成功')
88 82
 				this.getList()
83
+			} catch (error) {
84
+				uni.$u.toast('删除失败,请稍后重试')
89 85
 			}
90 86
 		},
91
-		created() {
87
+		// 外部调用获取列表
88
+		getListByExternal() {
89
+			this.getList()
90
+		}
91
+	},
92
+	created() {
93
+		this.getList();
94
+		uni.$on('addCommissionSuccess', () => {
92 95
 			this.getList();
93
-			uni.$on('addCommissionSuccess',()=>{
94
-				this.getList();
95
-			});
96
-		},
97
-		beforeDestroy(){
98
-			uni.$off('addCommissionSuccess');  
99
-		},
100
-	}
96
+		});
97
+	},
98
+	beforeDestroy() {
99
+		uni.$off('addCommissionSuccess');
100
+	},
101
+}
101 102
 </script>
102 103
 
103 104
 <style lang="scss" scoped>
104
-	.commission-form-list {
105
-		padding: 20px 20px 20px;
106
-		background: #f5f6f8;
107
-	}
105
+.commission-form-list {
106
+	padding: 20px 20px 20px;
107
+	background: #f5f6f8;
108
+}
108 109
 
109
-	.commission-header {
110
-		margin-bottom: 16px;
111
-	}
110
+.commission-header {
111
+	margin-bottom: 16px;
112
+}
112 113
 
113
-	.loading_wrap,
114
-	.empty_wrap {
115
-		padding: 40px 20px;
116
-		text-align: center;
117
-	}
114
+.loading_wrap,
115
+.empty_wrap {
116
+	padding: 40px 20px;
117
+	text-align: center;
118
+}
118 119
 </style>

+ 80 - 2
pages/orderDetailNew/components/orderDetailNewView.vue

@@ -12,7 +12,8 @@
12 12
                 @handleConfirmPay="handleConfirmPay" ref="pageThreeComp" :orderId="orderId" />
13 13
         </view>
14 14
         <view class="page-item" v-show="activeIndex === 3">
15
-            <pageFour @handleNextClick="handleNextClick" :orderDetail="detail" />
15
+            <pageFour @confirmInterStore="confirmInterStore" @handleNextClick="handleNextClick" :orderDetail="detail"
16
+                :receiptList="receiptList" />
16 17
         </view>
17 18
 
18 19
         <ul class="page">
@@ -59,10 +60,21 @@ export default {
59 60
                 formFour: {},
60 61
             },
61 62
             pageThreeForm: {},
62
-            fileIds: ''
63
+            fileIds: '',
64
+            //收件信息page4
65
+            receiptList: [],
63 66
         }
64 67
     },
65 68
     name: 'OrderDetailNewView',
69
+    watch: {
70
+        orderId: {
71
+            handler(newVal) {
72
+                if (newVal) {
73
+                    this.fetchReceiptList();
74
+                }
75
+            }, immediate: true
76
+        }
77
+    },
66 78
     methods: {
67 79
         handleNextClick({ nowPage, form }) {
68 80
             this.activeIndex++
@@ -154,6 +166,72 @@ export default {
154 166
                 uni.$u.toast(`支付失败:${response.msg}`)
155 167
             }
156 168
         },
169
+        //确认入库
170
+        confirmInterStore({ warehouseInfo, profitSharingList }) {
171
+            console.log(warehouseInfo, profitSharingList)
172
+            const paramsInterStore = {
173
+                "searchValue": this.detail.searchValue,
174
+                "createBy": this.detail.createBy,
175
+                "createTime": this.detail.createTime,
176
+                "updateBy": this.detail.updateBy,
177
+                "updateTime": this.detail.updateTime,
178
+                // "remark": ,    //发单备注,先不传
179
+                "params": this.detail.params,     //看接口文档
180
+                "id": this.detail.receiptId,
181
+                "sendFormId": this.orderId, //接单中心的id,就是接单中心列表的id(发单id)
182
+                "clueId": this.detail.clueId,
183
+                "item": warehouseInfo.item || '',
184
+                "brand": this.detail.brand,
185
+                // "needCheckCode": 1,   //先不传
186
+                "code": warehouseInfo.codeStorage || '',         //先不传
187
+                // "paymentAmount": null, //支付总额page3 先不传
188
+                "phone": this.detail.phone,
189
+                "tableFee": warehouseInfo.watchPrice || '',//page3支付总额
190
+                "benefitFee": warehouseInfo.benefitFee || '',     //好处费page4加上
191
+                "freight": warehouseInfo.freight || '',         //运费page4加上
192
+                "checkCodeFee": warehouseInfo.checkCodeFee || '',  //查码费
193
+                // "totalCost": "60230.00",   // 成本合计 =   运费 + 好处费 + 查码费 + 表款(支付总额) + 维修费。
194
+                "sellingPrice": this.topInfo.price.replace(/,/g, ''),   //实际价格(售价)顶上tab里面的第三栏
195
+                // "performance": "29772.00",  //sellingPrice - totalCost
196
+                "receiptRemark": warehouseInfo.remarks,//"收单之后还需再跟进", 先不传
197
+                "repairAmount": warehouseInfo.repairAmount || '', //维修总金额 ,先不传
198
+                "grossPerformance": warehouseInfo.grossPerformance || '',   //毛利 performance*splitRatio
199
+                "expressOrderNo": warehouseInfo.expressOrderNo || '',   //快递单号+后续加上一个键加上图url
200
+                "fileIds": this.fileIds,  //传第三部里面排序完成之后的id的数组,参考编辑收单里面的附件传的方法
201
+                "model": this.detail.model,
202
+                // "splitRatio": "25",   //分成比例,先不传
203
+                "customerServiceName": "1", //默认传1,判断入库的类型,回收类入库,销售类入库,维保类入库,第四步传,增加选项下拉
204
+                "deptId": this.detail.deptId,
205
+                "category": this.detail.category,
206
+                "delFlag": this.detail.delFlag,
207
+                "idCard": this.pageThreeForm.idNumber,
208
+                "paymentMethod": '小葫芦线上支付',     //支付方式,如果是app里面默认传‘小葫芦线上支付’
209
+                "bankCardNumber": this.pageThreeForm.bankAccount,
210
+                "bankName": this.pageThreeForm.bankName,
211
+                "customName": this.pageThreeForm.customName,
212
+            }
213
+            //调用接口保存物流消息
214
+            if (this.detail.receiptId) {
215
+                this.updateData(paramsInterStore);
216
+            } else {
217
+                this.saveData(paramsInterStore);
218
+            }
219
+
220
+
221
+
222
+
223
+        },
224
+        // 获取收单列表
225
+        async fetchReceiptList() {
226
+            try {
227
+                const res = await uni.$u.api.clueReceiptFormListByOrderId(this.orderId);
228
+                console.log('这里是收件列表', res)
229
+                this.receiptList = res.data || [];
230
+            } catch (error) {
231
+                console.error("获取收单列表失败:", error);
232
+                uni.$u.toast("获取收单列表失败");
233
+            }
234
+        },
157 235
     },
158 236
 
159 237
 }

+ 280 - 95
pages/orderDetailNew/components/pageFour.vue

@@ -2,7 +2,7 @@
2 2
     <view class="page-container">
3 3
         <!-- 入库信息卡片 -->
4 4
         <view class="card_wrap">
5
-            <u--form labelPosition="top" :model="warehouseInfo" :rules="rules" ref="form" class="address-section">
5
+            <u--form labelPosition="top" :model="warehouseInfo" ref="form" class="address-section">
6 6
                 <view class="address-header">
7 7
                     <u-icon name="car-fill" size="36rpx" color="#108cff" class="location-icon"></u-icon>
8 8
                     <text class="address-title">入库信息</text>
@@ -10,13 +10,13 @@
10 10
                 <!-- 编码和快递单号同一行 -->
11 11
                 <u-row class="info-row" justify="space-between">
12 12
                     <u-col span="4.5">
13
-                        <u-form-item label="编码" prop="accountHolder">
14
-                            <u--input v-model="warehouseInfo.accountHolder" placeholder="请输入编码" class="info-input" />
13
+                        <u-form-item label="编码" prop="codeStorage">
14
+                            <u--input v-model="warehouseInfo.codeStorage" placeholder="请输入编码" class="info-input" />
15 15
                         </u-form-item>
16 16
                     </u-col>
17 17
                     <u-col span="4.5">
18
-                        <u-form-item label="快递单号" prop="bankName">
19
-                            <u--input v-model="warehouseInfo.bankName" placeholder="请输入快递单号" class="info-input" />
18
+                        <u-form-item label="快递单号" prop="expressOrderNo">
19
+                            <u--input v-model="warehouseInfo.expressOrderNo" placeholder="请输入快递单号" class="info-input" />
20 20
                         </u-form-item>
21 21
                     </u-col>
22 22
                     <u-col span="2">
@@ -51,7 +51,22 @@
51 51
                     </u-col>
52 52
                     <u-col span="5.8">
53 53
                         <u-form-item label="表款">
54
-                            <u--input v-model="warehouseInfo.tableFee" placeholder="请输入表款" class="info-input"
54
+                            <u--input v-model="warehouseInfo.watchPrice" placeholder="请输入表款" class="info-input"
55
+                                type="number" />
56
+                        </u-form-item>
57
+                    </u-col>
58
+                </u-row>
59
+
60
+                <u-row class="info-row" justify="space-between">
61
+                    <u-col span="5.8">
62
+                        <u-form-item label="好处费">
63
+                            <u--input v-model="warehouseInfo.benefitFee" placeholder="请输入好处费" class="info-input"
64
+                                type="number" />
65
+                        </u-form-item>
66
+                    </u-col>
67
+                    <u-col span="5.8">
68
+                        <u-form-item label="运费">
69
+                            <u--input v-model="warehouseInfo.freight" placeholder="请输入运费" class="info-input"
55 70
                                 type="number" />
56 71
                         </u-form-item>
57 72
                     </u-col>
@@ -121,10 +136,10 @@
121 136
                     <u-row v-for="(item, index) in profitSharingList" :key="item.id" class="split-table-row">
122 137
                         <u-col span="2">
123 138
                             <view class="table-cell">
124
-                                <select v-model="item.association" class="custom-select">
139
+                                <select v-model="item.deptId" class="custom-select" @change="onAssociationChange(item)">
125 140
                                     <option value="">无</option>
126
-                                    <option v-for="option in associationOptions" :key="option" :value="option">
127
-                                        {{ option }}
141
+                                    <option v-for="option in associationOptions" :key="option.id" :value="option.id">
142
+                                        {{ option.label }}
128 143
                                     </option>
129 144
                                 </select>
130 145
                             </view>
@@ -134,31 +149,31 @@
134 149
                                 <view
135 150
                                     :class="['account-type', item.accountType === 'frontend' ? 'frontend' : 'backend']"
136 151
                                     @click="toggleAccountType(item)" style="cursor: pointer;">
137
-                                    {{ item.accountType === 'frontend' ? '前' : '后' }}
152
+                                    {{ item.accountType == '1' ? '前' : '后' }}
138 153
                                 </view>
139 154
                             </view>
140 155
                         </u-col>
141 156
                         <u-col span="2">
142 157
                             <view class="table-cell">
143
-                                <select v-model="item.person" class="custom-select">
158
+                                <select v-model="item.userId" class="custom-select">
144 159
                                     <option value="">无</option>
145
-                                    <option v-for="person in personOptions" :key="person" :value="person">
146
-                                        {{ person }}
160
+                                    <option v-for="person in item.personOptions" :key="person.id" :value="person.id">
161
+                                        {{ person.label }}
147 162
                                     </option>
148 163
                                 </select>
149 164
                             </view>
150 165
                         </u-col>
151 166
                         <u-col span="2">
152 167
                             <view class="table-cell">
153
-                                <u--input v-model="item.percentage" type="number" class="percentage-input"
168
+                                <u--input v-model="item.commissionRate" type="number" class="percentage-input"
154 169
                                     @input="handlePercentageInput(item)" min="0" max="100" precision="0" />
155 170
                             </view>
156 171
                         </u-col>
157 172
                         <u-col span="2">
158 173
                             <view class="table-cell">
159 174
                                 <view class="radio-wrapper" @click="toggleBelongToCompany(item)">
160
-                                    <view :class="['radio-circle', item.belongToCompany ? 'active' : '']">
161
-                                        <u-icon v-if="item.belongToCompany" name="checkmark" size="20rpx"
175
+                                    <view :class="['radio-circle', item.isCompanyPerformance == '1' ? 'active' : '']">
176
+                                        <u-icon v-if="item.isCompanyPerformance == '1'" name="checkmark" size="20rpx"
162 177
                                             color="#fff"></u-icon>
163 178
                                     </view>
164 179
                                 </view>
@@ -166,8 +181,7 @@
166 181
                         </u-col>
167 182
                         <u-col span="2" class="action-column">
168 183
                             <view class="table-cell">
169
-                                <u-button type="error" plain shape="circle" size="mini" @click="deleteSplit(index)"
170
-                                    :disabled="profitSharingList.length <= 1">
184
+                                <u-button type="error" plain shape="circle" size="mini" @click="deleteRow(item.id)">
171 185
                                     <u-icon name="trash" size="20rpx" color="#ff6b6b"></u-icon>
172 186
                                 </u-button>
173 187
                             </view>
@@ -193,66 +207,151 @@ export default {
193 207
         orderDetail: {
194 208
             type: Object,
195 209
             default: () => { },
210
+        },
211
+        receiptList: {
212
+            type: Array,
213
+            default: () => { },
214
+        },
215
+    },
216
+
217
+    watch: {
218
+        receiptList: {
219
+            handler(newVal) {
220
+                if (newVal) {
221
+                    // "searchValue": null,
222
+                    // "createBy": "12234",
223
+                    // "createTime": "2025-12-25 13:39:25",
224
+                    // "updateBy": "12234",
225
+                    // "updateTime": "2025-12-27 09:33:05",
226
+                    // "remark": null,
227
+                    // "params": {},
228
+                    // "id": "4347",
229
+                    // "sendFormId": "5464",
230
+                    // "clueId": "1973381744953516033",
231
+                    // "item": "测试发单-VV",               //收单物品
232
+                    // "brand": "LV",
233
+                    // "needCheckCode": 1,
234
+                    // "code": "111",
235
+                    // "paymentAmount": 99.00,
236
+                    // "phone": "18692257000",
237
+                    // "tableFee": 999999.00,
238
+                    // "benefitFee": 666.00,            //好处费
239
+                    // "freight": 666666.00,             //运费
240
+                    // "checkCodeFee": 666.00,           //查码费
241
+                    // "totalCost": null,
242
+                    // "sellingPrice": 125000.00,
243
+                    // "performance": null,
244
+                    // "receiptRemark": null,
245
+                    // "repairAmount": 666.00,           //维修金额
246
+                    // "grossPerformance": 666.00,       //毛业绩
247
+                    // "expressOrderNo": "666",         //快递单号
248
+                    // "fileIds": "",
249
+                    // "model": "lvvvv",
250
+                    // "splitRatio": null,
251
+                    // "customerServiceName": "1",
252
+                    // "deptId": "373",
253
+                    // "category": "2",
254
+                    // "delFlag": null,
255
+                    // "idCard": "444",
256
+                    // "paymentMethod": null,
257
+                    // "bankCardNumber": "333",
258
+                    // "bankName": "222",
259
+                    // "customName": "111"
260
+                    const data = newVal[0]
261
+                    this.warehouseInfo = {
262
+                        codeStorage: data.code,//编码
263
+                        expressOrderNo: data.expressOrderNo || '',//快递单号
264
+                        // uploadedImage: '',//物流图片
265
+                        item: data.item || '',//收单物品
266
+                        checkCodeFee: data.checkCodeFee || '',//查码费
267
+                        watchPrice: data.tableFee || '',//表款
268
+                        benefitFee: data.benefitFee || '',//好处费
269
+                        freight: data.freight || '',//运费
270
+                        repairAmount: data.repairAmount || '',//维修金额
271
+                        grossPerformance: data.grossPerformance || '',//毛业绩
272
+                        remarks: data.receiptRemark || '',//收单备注
273
+                    }
274
+                    this.getList()
275
+                }
276
+            },
196 277
         }
197 278
     },
198 279
     data() {
199 280
         return {
200 281
             // 入库信息相关的数据
201 282
             warehouseInfo: {
202
-                accountHolder: '',
203
-                bankName: '',
204
-                item: '',
205
-                checkCodeFee: '',
206
-                tableFee: '',
207
-                repairAmount: '',
208
-                grossPerformance: '',
209
-                remarks: '',
210
-                uploadedImage: ''
283
+                codeStorage: '',//编码
284
+                expressOrderNo: '',//快递单号
285
+                uploadedImage: '',//物流图片
286
+                item: '',//收单物品
287
+                checkCodeFee: '',//查码费
288
+                watchPrice: '',//表款
289
+                benefitFee: '',//好处费
290
+                freight: '',//运费
291
+                repairAmount: '',//维修金额
292
+                grossPerformance: '',//毛业绩
293
+                remarks: '',//收单备注
211 294
             },
212 295
             // 分成信息相关的数据
213 296
             profitSharingList: [
214 297
                 {
215
-                    id: Date.now() + '_1', // 唯一ID
216
-                    association: '', // 关联
217
-                    accountType: 'frontend', // 账户类型:frontend(前端)/backend(后端)
218
-                    person: '', // 分成人
219
-                    percentage: 100, // 分成比例
220
-                    belongToCompany: false // 归属公司
298
+                    searchValue: null,
299
+                    createBy: null,
300
+                    createTime: "2025-12-27 13:20:35",
301
+                    updateBy: null,
302
+                    updateTime: null,
303
+                    remark: null,
304
+                    params: {},
305
+                    id: "2004784451068899330",
306
+                    sendFormId: "5464",
307
+                    deptId: "",
308
+                    accountType: "1",
309
+                    userId: "",
310
+                    userName: "小石",
311
+                    commissionRate: 100.00,
312
+                    delFlag: null,
313
+                    clueId: null,
314
+                    receiptFormId: null,
315
+                    isCompanyPerformance: "2",
316
+                    orgName: "运营部",
317
+                    type: null,
318
+                    item: "测试发单-VV",
319
+                    phone: "18692257000",
320
+                    receiptNickName: "开发账号",
321
+                    commissionAmount: null,
322
+                    grossAmount: null,
323
+                    tableFee: "0",
324
+                    benefitFee: "0",
325
+                    freight: "0",
326
+                    checkCodeFee: "0",
327
+                    totalCost: "0",
328
+                    sellingPrice: "0",
329
+                    receiptDate: "2025-12-27 13:19:25",
330
+                    receiptItem: null,
331
+                    category: "首饰",
332
+                    brand: null,
333
+                    code: null,
334
+                    paymentMethod: null,
335
+                    customerServiceName: "其他",
336
+                    identificationName: null,
337
+                    identification: null,
338
+                    nickName: null,
339
+                    personOptions: []
221 340
                 }
222 341
             ],
223 342
             // 关联选项列表
224
-            associationOptions: ['选项1', '选项2', '选项3'],
343
+            associationOptions: [],
225 344
             // 分成人选项列表
226
-            personOptions: ['人员A', '人员B', '人员C'],
345
+            personOptions: [],
227 346
             // 表单验证规则
228
-            rules: {
229
-                accountHolder: {
230
-                    type: 'string',
231
-                    required: true,
232
-                    message: '请输入编码',
233
-                    trigger: []
234
-                },
235
-                bankName: {
236
-                    type: 'string',
237
-                    required: true,
238
-                    message: '请输入快递单号',
239
-                    trigger: []
240
-                },
241
-                item: {
242
-                    type: 'string',
243
-                    required: true,
244
-                    message: '请输入收单物品',
245
-                    trigger: []
246
-                },
247
-                uploadedImage: {
248
-                    type: 'string',
249
-                    required: true,
250
-                    message: '请上传物流图片',
251
-                    trigger: []
252
-                }
253
-            }
347
+
254 348
         };
255 349
     },
350
+    mounted() {
351
+        // 获取分成人名单
352
+        this.getCommissionUserList();
353
+    },
354
+
256 355
     methods: {
257 356
         // 选择图片
258 357
         selectImage() {
@@ -276,22 +375,14 @@ export default {
276 375
                 association: '',
277 376
                 accountType: 'frontend',
278 377
                 person: '',
378
+                personOptions: [],
279 379
                 percentage: 0,
280 380
                 belongToCompany: false
281 381
             });
282 382
             // 重新计算所有行的比例
283 383
             this.recalculatePercentage();
284 384
         },
285
-        // 删除分成行
286
-        deleteSplit(index) {
287
-            if (this.profitSharingList.length <= 1) {
288
-                return; // 至少保留一行
289
-            }
290
-            // 删除对应行
291
-            this.profitSharingList.splice(index, 1);
292
-            // 重新计算所有行的比例
293
-            this.recalculatePercentage();
294
-        },
385
+
295 386
         // 重新计算分成比例
296 387
         recalculatePercentage() {
297 388
             // 分别计算前端和后端的行数
@@ -341,32 +432,37 @@ export default {
341 432
         toggleBelongToCompany(item) {
342 433
             item.belongToCompany = !item.belongToCompany;
343 434
         },
435
+        // 关联选择变化时,更新分成人选项
436
+        onAssociationChange(item) {
437
+            if (item.deptId) {
438
+                const selectedOption = this.associationOptions.find(opt => opt.id === item.deptId);
439
+                item.personOptions = selectedOption ? selectedOption.children || [] : [];
440
+                item.userId = '';
441
+            } else {
442
+                item.personOptions = [];
443
+                item.userId = '';
444
+            }
445
+        },
344 446
         // 确认入库方法
345 447
         confirmWarehouseEntry() {
346 448
             // 表单校验
347
-            this.$refs.form.validate().then(() => {
348
-                // 表单验证通过后,进行分成信息的自定义验证
349
-                if (this.validateProfitSharing()) {
350
-                    console.log(this.warehouseInfo, this.profitSharingList);
351
-
352
-                    this.$emit('handleNextClick', {
353
-                        nowPage: 'formFour',
354
-                        form: {
355
-                            ...this.warehouseInfo,
356
-                            ...this.profitSharingList
357
-                        },
358
-                    })
359
-                }
360
-            }).catch(() => {
361
-                // 表单验证失败,不执行后续操作
362
-            });
449
+
450
+            if (this.validateProfitSharing()) {
451
+
452
+                this.$emit('confirmInterStore', {
453
+                    warehouseInfo: this.warehouseInfo,
454
+                })
455
+
456
+                this.addShare()
457
+
458
+            }
459
+
363 460
         },
364 461
         // 分成信息校验方法
365 462
         validateProfitSharing() {
366
-            // 校验分成信息
367 463
             for (let i = 0; i < this.profitSharingList.length; i++) {
368 464
                 const item = this.profitSharingList[i];
369
-                if (!item.person.trim()) {
465
+                if (!item.userId || !item.userId.trim()) {
370 466
                     uni.showToast({
371 467
                         title: `第${i + 1}行请选择分成人`,
372 468
                         icon: 'none'
@@ -374,7 +470,7 @@ export default {
374 470
                     return false;
375 471
                 }
376 472
 
377
-                if (item.percentage <= 0 || item.percentage > 100) {
473
+                if (item.commissionRate <= 0 || item.commissionRate > 100) {
378 474
                     uni.showToast({
379 475
                         title: `第${i + 1}行分成比例必须在1-100之间`,
380 476
                         icon: 'none'
@@ -385,8 +481,8 @@ export default {
385 481
 
386 482
             // 校验前端分成比例总和必须是100%
387 483
             const frontendTotal = this.profitSharingList
388
-                .filter(item => item.accountType === 'frontend')
389
-                .reduce((sum, item) => sum + Number(item.percentage), 0);
484
+                .filter(item => item.accountType === '1')
485
+                .reduce((sum, item) => sum + Number(item.commissionRate), 0);
390 486
             if (frontendTotal !== 100) {
391 487
                 uni.showToast({
392 488
                     title: '前端分成比例总和必须为100%',
@@ -397,8 +493,8 @@ export default {
397 493
 
398 494
             // 校验后端分成比例总和必须是100%
399 495
             const backendTotal = this.profitSharingList
400
-                .filter(item => item.accountType === 'backend')
401
-                .reduce((sum, item) => sum + Number(item.percentage), 0);
496
+                .filter(item => item.accountType === '2')
497
+                .reduce((sum, item) => sum + Number(item.commissionRate), 0);
402 498
             if (backendTotal !== 100) {
403 499
                 uni.showToast({
404 500
                     title: '后端分成比例总和必须为100%',
@@ -408,7 +504,96 @@ export default {
408 504
             }
409 505
 
410 506
             return true;
411
-        }
507
+        },
508
+        // 获取分成人名单
509
+        async getCommissionUserList() {
510
+            const commissionUserList = await uni.$u.api.getCustomerManagerAllList()
511
+            console.log(commissionUserList.data[0].children, '分成人名单')
512
+            this.associationOptions = commissionUserList.data[0].children
513
+            if (this.profitSharingList.length > 0) {
514
+                this.profitSharingList = this.profitSharingList.map(item => ({
515
+                    ...item,
516
+                    personOptions: item.deptId ? this.getPersonOptionsByDeptId(item.deptId) : []
517
+                }));
518
+            }
519
+        },
520
+
521
+        //初始化分成比例
522
+        async getList() {
523
+            const { rows, total } = await uni.$u.api.selectCommissionList({
524
+                pageSize: 9999,
525
+                pageNum: 1,
526
+            }, { sendFormId: this.receiptList[0].sendFormId, });
527
+            this.profitSharingList = rows.map(item => {
528
+                let personOptions = [];
529
+                if (item.deptId) {
530
+                    if (this.associationOptions.length > 0) {
531
+                        personOptions = this.getPersonOptionsByDeptId(item.deptId);
532
+                    } else {
533
+                        personOptions = [];
534
+                    }
535
+                }
536
+                return {
537
+                    ...item,
538
+                    personOptions
539
+                };
540
+            });
541
+            if (this.associationOptions.length === 0) {
542
+                await this.getCommissionUserList();
543
+            }
544
+            console.log('这里是分成比例', this.profitSharingList, '总数是', total);
545
+        },
546
+
547
+        getPersonOptionsByDeptId(deptId) {
548
+            const selectedOption = this.associationOptions.find(opt => opt.id === deptId);
549
+            return selectedOption ? selectedOption.children || [] : [];
550
+        },
551
+
552
+
553
+        //添加分成比例
554
+        async addProfitSharingList(data) {
555
+            await uni.$u.api.clueCommissionAdd(data);
556
+        },
557
+        addShare() {
558
+            console.log('开始上传')
559
+            // 遍历分成比例列表
560
+            this.profitSharingList.forEach(item => {
561
+                console.log(item, 'item')
562
+                // 调用添加分成比例接口
563
+                this.addProfitSharingList({
564
+                    // 账户类型:1(前端)/2(后端)
565
+                    accountType: item.accountType === 'frontend' ? 1 : 2,
566
+                    // 线索ID
567
+                    clueId: this.receiptList[0].clueId,
568
+                    // 分成比例 数字
569
+                    commissionRate: item.percentage,
570
+                    // 主键ID  ???
571
+                    // id: item.id,
572
+                    // 是否归属公司 是1,否2
573
+                    isCompanyPerformance: item.belongToCompany ? 1 : 2,
574
+                    // 收据表单ID
575
+                    // receiptFormId: this.receiptList[0].id,
576
+                    // 发送表单ID
577
+                    sendFormId: this.receiptList[0].sendFormId,
578
+                    // 用户ID
579
+                    userId: item.person,
580
+                    // 需要根据userId去关联选项列表中找
581
+                    userName: item.personOptions.find(opt => opt.id == item.person)?.label || '',
582
+                });
583
+            });
584
+        },
585
+        //删除分成
586
+        async deleteRow(id) {
587
+            console.log(id, 'id')
588
+            try {
589
+                await uni.$u.api.deleteClueCommissionForm(id)
590
+                uni.$u.toast('删除成功')
591
+                this.getList()
592
+            } catch (error) {
593
+                uni.$u.toast('删除失败,请稍后重试', error)
594
+            }
595
+        },
596
+
412 597
     }
413 598
 };
414 599
 </script>

+ 1 - 1
pages/orderDetailNew/components/pageThree.vue

@@ -159,7 +159,7 @@ export default {
159 159
                     this.paymentInfo.bankName = newVal.bankName || ''
160 160
                     this.paymentInfo.bankAccount = newVal.bankCardNumber || ''
161 161
                     this.paymentInfo.idNumber = newVal.idCard || ''
162
-
162
+                    this.paymentAmount = newVal.tableFee || '0.00'
163 163
                     this.getList('2', '3');
164 164
                 }
165 165
             },

+ 1 - 1
pages/pagereceivecenter/pagereceivecenter.vue

@@ -17,7 +17,7 @@ export default {
17 17
     },
18 18
     onLoad() {
19 19
         //初始调用
20
-        // this.getOrderList();
20
+        this.getOrderList();
21 21
         uni.navigateTo({
22 22
             url: `/pages/orderDetailNew/index?orderId=5464&item=测试发单&type=undefined&clueId=1973381744953516033`,
23 23
         })

+ 106 - 102
utils/api.js

@@ -7,113 +7,117 @@ import config from '../uni_modules/uview-ui/libs/config/config.js';
7 7
 
8 8
 const install = (Vue, vm) => {
9 9
 	vm.$u.api = {
10
-		login : (params = {})=> http.post('/auth/login', params),  // 登录
11
-		getInfo : (params = {})=> http.get('/system/user/getInfo',{params}), // 获取用户数据
12
-		sysMessageReceive : (params = {})=>http.get('/message/sysMessageReceive/list?' + qs.stringify(params)), // 消息接受列表
13
-		getAppMessageList : (params = {})=>http.get('/message/sysMessageReceive/getAppMessageList?' + qs.stringify(params)), // 消息列表接口
14
-		getDicts : (dictType)=>http.get('/system/dict/data/type/' + dictType), // 获取字典
15
-		getPhoneFileterResult : (data = {})=>http.post('/collect/all/casePhoneFilter/getPhoneFileterResult',data), // 滤号
16
-		listDetpUser : (data = {})=>http.post('/system/user/getDeptCustomer',data), // 查询部门人员列表
17
-		getDeptCustomerByOrg : (data = {})=>http.post('/system/user/getDeptCustomerByOrg',data,{ params : data }), // 查询部门人员列表
18
-		getDeptOwner : (data = {})=>http.post('/system/user/getDeptOwner',data), // 查询部门人员列表
19
-		listByOrgDataScope : (params = {})=>http.get('/system/user/listByOrgDataScope',{params}), // 查询部门人员列表
20
-		logout : ()=>http.delete("/auth/logout?systemCode=system_debt"), // 退出登录
21
-		getUserProfile : (params = {})=>http.get('/system/user/profile?' + qs.stringify(params)), // 查询用户个人信息
22
-		uploadAvatar : (url)=> http.upload('/system/user/profile/avatar',{filePath: url,name : "avatarfile",timeout: 1000 * 60 * 10,custom : { loadingText : "上传中" }}),
23
-		updateUserProfile : (data = {})=>http.put("/system/user/profile",data), // 更新个人信息
24
-		getCofDeptBank : (params = {})=>http.get("/system/cofDeptBank/getCofDeptBank",params), // 查询机构配置
25
-		getOutEquipmentByMacAddr : (mac,config)=>http.get("system/caseOutEquipment/" + mac,config), // 根据mac地址获取外访设备状态可能为空
26
-		addCaseOutEquipment : (data = {})=>http.post("system/caseOutEquipment",data), // 申请mac地址授权
27
-		checkOutEquipment : (params = {},config)=>http.get("/system/caseOutEquipment/checkOutEquipment",{params,...config}), // 检测外访设备是否有申请通过记录
28
-		concatRecord : (files,params = {})=>http.upload('/fileVisit/concatRecord',{files, params , name: 'files', timeout: 1000 * 60 * 10, custom : { loadingText : "上传中" }}), // 合并录音并上传
29
-		uploadFile : (url,params = {})=> http.upload('/file/aliossUpload',{filePath: url,params ,name : "file",timeout: 1000 * 60 * 10,custom : { loadingText : "上传中" }}), // 上传文件
30
-		watermarkUpload : (url,params = {})=> http.upload('/fileVisit/watermarkUpload',{filePath: url, params, name : "file",timeout: 1000 * 60 * 10,custom : { loadingText : "上传中" }}), // 上传文件
31
-		getOutPolyline : (params = {})=>http.get("/system/caseOutPolyline/getOutPolyline",{ params , custom : { loading: false } }), // 请求外访轨迹列表
32
-		addOutPolyline : (data = {})=>http.post("/system/caseOutPolyline/addOutPolyline",data,{ custom : { loading: false } }), // 添加外访轨迹
33
-		updateUserPwd : (params = {})=>http.put("/system/user/profile/updatePwd?" + qs.stringify(params)), // 更新用户密码
34
-		getSysVersion : (params = {},config = {})=>http.get("/system/sysVersion/getSysVersion",{params,...config, timeout: 2000}), // 版本更新
35
-		getBankDebtRule : (params = {},config = {})=>http.get('/system/bankInfo/getBankDebtRule',{params,...config}), // 获取委托方催收规则
36
-		getBankContent : (params = {},config = {})=>http.get('/system/bankInfo/getBankContent',{params,...config}), // 催收状态 
37
-		getCofCallOutBindByUserId : (params = {},config = {})=>http.get('/system/cofCallOutBind/getCofCallOutBindByUserId',{params,...config}), // 获取分机号
38
-		getCofShortcuts : (params = {},config = {})=>http.get('/system/cofShortcuts/list',{params,...config}), // 获取键盘速填
39
-		getCofInfo : (params,config = {})=>http.get('/system/user/getCofInfo',{params,...config}), // 获取权限
40
-		extensionNumberState : (params,config = {})=>http.get("http://8.134.50.217:10085/cc/extensionNumberState",{params , custom : { loading: false }}), // 获取来电关联案件
41
-		getSm4En : (str,config = {})=>http.get(store.state.user.path + '/caseMainInfo/getSm4En',{ params : {str} , custom : { loading: false }}), // sm4加密
42
-		setAPPLoginLimit : (params,config = {})=>http.get('/system/user/setAPPLoginLimit',{ params , custom : { loading: false }}), // 设置设备码访问失败次数
43
-		getAPPLoginLimit : (params,config = {})=>http.get('/system/user/getAPPLoginLimit',{ params , custom : { loading: false } , timeout: 1000 }), // 获取设备码访问失败次数
44
-		getExtensionStatus : (params,config = {})=>http.get('/sip/JcSip/getExtensionStatus',{ params , custom : { loading: false }}), // 获取分机的状态
45
-		setEffectiveCallerIdNumber : (params,config = {})=>http.get('/sip/JcSip/setEffectiveCallerIdNumber',{ params , custom : { loading: false }}), // 固话设置号码
46
-		getExtensionByUserId : (params,config = {})=>http.get('/sip/exten/getExtensionByUserId',{ params , custom : { loading: false }}), // 通过用户id获取分机
47
-		getLineByIds : (params,config = {})=>http.get('/sip/line/getLineByIds',{ params , custom : { loading: false }}), // 根据线路获取线路
48
-		getCodeImg : (params,config = {})=>http.get('/code',{ params , custom : { loading: false },timeout: 1500}), // 获取验证码(主要用于判断配置是否正确)
49
-		getAppSystemList : (params = {},config = {})=>http.get('/system/sysVersion/getAppSystemList',{ params , custom : { loading: false },timeout: 1500}), // 获取app的系统列表
50
-		changeOnlineStatus : (data,config = {})=>http.put('/system/user/changeStatus',data), // 用户状态修改
51
-		statisticsCaseState : (data,config = {})=>http.post(store.state.user.path + '/clueFixedFields/statisticsCaseState',data), // 统计线索阶段
52
-		statisticsAddClueCount : (data,config = {})=>http.post(store.state.user.path + '/clueMainInfo/statisticsAddClueCount',data), // 统计添加阶段
53
-		getClueMainInfoList : (params = {},data = {})=> http.post(store.state.user.path + '/clueMainInfo/getClueMainInfoList?' + qs.stringify(params),data), // 线索列表
54
-		getUserByUserIds : (params)=>http.get('/system/user/getUserByUserIds',{params}), //
55
-		getClueTagGroupVoList : (params = {})=>http.get(store.state.user.path + "/clueTagGroup/getClueTagGroupVoList",{ params }), // 获取线索标签;
56
-		getClueMainInfoVoById : (params = {},config = {})=>http.get(store.state.user.path + "/clueMainInfo/getClueMainInfoVoById",{ params , custom : { loading: false },timeout: 1500}), // 获取线索详情;
57
-		updateClueFixedFieldsClueState:(data,config = {})=>http.post(store.state.user.path + '/clueFixedFields/updateClueFixedFieldsClueState',data),
58
-		updateClueFixedFieldsAllTags:(data,config = {})=>http.post(store.state.user.path + '/clueFixedFields/updateClueFixedFieldsAllTags',data),
59
-		getClueMainInfoById:(params = {},config = {})=>http.get(store.state.user.path + '/clueMainInfo/getClueMainInfoById',{params,...config}),
60
-		getClueAdInfoByClueId:(params = {},config = {})=>http.get(store.state.user.path + '/clueAdInfo/getClueAdInfoByClueId',{params,...config}),
61
-		getClueFollowList:(params = {},config = {})=>http.get(store.state.user.path + '/clueFollow/getClueFollowList',{params,...config}),
62
-		deleteClueFollow:(data,config = {})=>http.post(store.state.user.path + '/clueFollow/deleteClueFollow',data),
63
-		updateClueFixedFieldsClueOwner:(data,config={})=>http.post(store.state.user.path + '/clueFixedFields/updateClueFixedFieldsClueOwner',data),
64
-		addClueFollow:(data,config={})=>http.post(store.state.user.path + '/clueFollow/addClueFollow',data),
65
-		getDictCascadeData:(params,config={})=>http.get(store.state.user.path + '/dictCascadeData/list',{params,...config}),
66
-		selectAllDeptList:(params,config={})=>http.get('/system/dept/selectAllDeptList',{ params,...config }),
67
-		getIdByName:(params,config={})=>http.get(store.state.user.path + "/clueMainInfo/getIdByName",{ params,...config }),
68
-		addClueMainInfo : (data,config = {})=>http.post(store.state.user.path + '/clueMainInfo/addClueMainInfo',data),
69
-		saveLog:(data,config={})=>http.post("/system/access/saveLog",data,{ custom : { loading: false } }),
70
-		saveClueFile:(data,config={})=>http.post(store.state.user.path + '/clueFile/saveClueFile',data),
71
-		updateClueMainInfo:(data,config={})=>http.post(store.state.user.path + '/clueMainInfo/updateClueMainInfo',data),
72
-		selectPromotionStats:(data,config={})=>http.post(store.state.user.path + '/promotionStats/selectPromotionStats',data),
73
-		firstLogin : (data)=> http.post('/system/user/firstLogin',data),
74
-		shiYuWxLoginGetInfo : (params)=> http.get('/auth/shiYuWxLoginGetInfo',{params, custom : { noAuth: true }}),
75
-		deleteClueFile : (data)=> http.delete(store.state.user.path + '/clueFile/deleteClueFile',data),
76
-		getCallClueFileByClueId : (params)=> http.get(store.state.user.path + '/clueFile/getCallClueFileByClueId',{params, custom : { noAuth: true }}),
77
-		getClueSendFormCountByClueId : (params = {},config = {})=>http.get(store.state.user.path + '/clueSendForm/getClueSendFormCountByClueId',{ params }),
10
+		login: (params = {}) => http.post('/auth/login', params),  // 登录
11
+		getInfo: (params = {}) => http.get('/system/user/getInfo', { params }), // 获取用户数据
12
+		sysMessageReceive: (params = {}) => http.get('/message/sysMessageReceive/list?' + qs.stringify(params)), // 消息接受列表
13
+		getAppMessageList: (params = {}) => http.get('/message/sysMessageReceive/getAppMessageList?' + qs.stringify(params)), // 消息列表接口
14
+		getDicts: (dictType) => http.get('/system/dict/data/type/' + dictType), // 获取字典
15
+		getPhoneFileterResult: (data = {}) => http.post('/collect/all/casePhoneFilter/getPhoneFileterResult', data), // 滤号
16
+		listDetpUser: (data = {}) => http.post('/system/user/getDeptCustomer', data), // 查询部门人员列表
17
+		getDeptCustomerByOrg: (data = {}) => http.post('/system/user/getDeptCustomerByOrg', data, { params: data }), // 查询部门人员列表
18
+		getDeptOwner: (data = {}) => http.post('/system/user/getDeptOwner', data), // 查询部门人员列表
19
+		listByOrgDataScope: (params = {}) => http.get('/system/user/listByOrgDataScope', { params }), // 查询部门人员列表
20
+		logout: () => http.delete("/auth/logout?systemCode=system_debt"), // 退出登录
21
+		getUserProfile: (params = {}) => http.get('/system/user/profile?' + qs.stringify(params)), // 查询用户个人信息
22
+		uploadAvatar: (url) => http.upload('/system/user/profile/avatar', { filePath: url, name: "avatarfile", timeout: 1000 * 60 * 10, custom: { loadingText: "上传中" } }),
23
+		updateUserProfile: (data = {}) => http.put("/system/user/profile", data), // 更新个人信息
24
+		getCofDeptBank: (params = {}) => http.get("/system/cofDeptBank/getCofDeptBank", params), // 查询机构配置
25
+		getOutEquipmentByMacAddr: (mac, config) => http.get("system/caseOutEquipment/" + mac, config), // 根据mac地址获取外访设备状态可能为空
26
+		addCaseOutEquipment: (data = {}) => http.post("system/caseOutEquipment", data), // 申请mac地址授权
27
+		checkOutEquipment: (params = {}, config) => http.get("/system/caseOutEquipment/checkOutEquipment", { params, ...config }), // 检测外访设备是否有申请通过记录
28
+		concatRecord: (files, params = {}) => http.upload('/fileVisit/concatRecord', { files, params, name: 'files', timeout: 1000 * 60 * 10, custom: { loadingText: "上传中" } }), // 合并录音并上传
29
+		uploadFile: (url, params = {}) => http.upload('/file/aliossUpload', { filePath: url, params, name: "file", timeout: 1000 * 60 * 10, custom: { loadingText: "上传中" } }), // 上传文件
30
+		watermarkUpload: (url, params = {}) => http.upload('/fileVisit/watermarkUpload', { filePath: url, params, name: "file", timeout: 1000 * 60 * 10, custom: { loadingText: "上传中" } }), // 上传文件
31
+		getOutPolyline: (params = {}) => http.get("/system/caseOutPolyline/getOutPolyline", { params, custom: { loading: false } }), // 请求外访轨迹列表
32
+		addOutPolyline: (data = {}) => http.post("/system/caseOutPolyline/addOutPolyline", data, { custom: { loading: false } }), // 添加外访轨迹
33
+		updateUserPwd: (params = {}) => http.put("/system/user/profile/updatePwd?" + qs.stringify(params)), // 更新用户密码
34
+		getSysVersion: (params = {}, config = {}) => http.get("/system/sysVersion/getSysVersion", { params, ...config, timeout: 2000 }), // 版本更新
35
+		getBankDebtRule: (params = {}, config = {}) => http.get('/system/bankInfo/getBankDebtRule', { params, ...config }), // 获取委托方催收规则
36
+		getBankContent: (params = {}, config = {}) => http.get('/system/bankInfo/getBankContent', { params, ...config }), // 催收状态 
37
+		getCofCallOutBindByUserId: (params = {}, config = {}) => http.get('/system/cofCallOutBind/getCofCallOutBindByUserId', { params, ...config }), // 获取分机号
38
+		getCofShortcuts: (params = {}, config = {}) => http.get('/system/cofShortcuts/list', { params, ...config }), // 获取键盘速填
39
+		getCofInfo: (params, config = {}) => http.get('/system/user/getCofInfo', { params, ...config }), // 获取权限
40
+		extensionNumberState: (params, config = {}) => http.get("http://8.134.50.217:10085/cc/extensionNumberState", { params, custom: { loading: false } }), // 获取来电关联案件
41
+		getSm4En: (str, config = {}) => http.get(store.state.user.path + '/caseMainInfo/getSm4En', { params: { str }, custom: { loading: false } }), // sm4加密
42
+		setAPPLoginLimit: (params, config = {}) => http.get('/system/user/setAPPLoginLimit', { params, custom: { loading: false } }), // 设置设备码访问失败次数
43
+		getAPPLoginLimit: (params, config = {}) => http.get('/system/user/getAPPLoginLimit', { params, custom: { loading: false }, timeout: 1000 }), // 获取设备码访问失败次数
44
+		getExtensionStatus: (params, config = {}) => http.get('/sip/JcSip/getExtensionStatus', { params, custom: { loading: false } }), // 获取分机的状态
45
+		setEffectiveCallerIdNumber: (params, config = {}) => http.get('/sip/JcSip/setEffectiveCallerIdNumber', { params, custom: { loading: false } }), // 固话设置号码
46
+		getExtensionByUserId: (params, config = {}) => http.get('/sip/exten/getExtensionByUserId', { params, custom: { loading: false } }), // 通过用户id获取分机
47
+		getLineByIds: (params, config = {}) => http.get('/sip/line/getLineByIds', { params, custom: { loading: false } }), // 根据线路获取线路
48
+		getCodeImg: (params, config = {}) => http.get('/code', { params, custom: { loading: false }, timeout: 1500 }), // 获取验证码(主要用于判断配置是否正确)
49
+		getAppSystemList: (params = {}, config = {}) => http.get('/system/sysVersion/getAppSystemList', { params, custom: { loading: false }, timeout: 1500 }), // 获取app的系统列表
50
+		changeOnlineStatus: (data, config = {}) => http.put('/system/user/changeStatus', data), // 用户状态修改
51
+		statisticsCaseState: (data, config = {}) => http.post(store.state.user.path + '/clueFixedFields/statisticsCaseState', data), // 统计线索阶段
52
+		statisticsAddClueCount: (data, config = {}) => http.post(store.state.user.path + '/clueMainInfo/statisticsAddClueCount', data), // 统计添加阶段
53
+		getClueMainInfoList: (params = {}, data = {}) => http.post(store.state.user.path + '/clueMainInfo/getClueMainInfoList?' + qs.stringify(params), data), // 线索列表
54
+		getUserByUserIds: (params) => http.get('/system/user/getUserByUserIds', { params }), //
55
+		getClueTagGroupVoList: (params = {}) => http.get(store.state.user.path + "/clueTagGroup/getClueTagGroupVoList", { params }), // 获取线索标签;
56
+		getClueMainInfoVoById: (params = {}, config = {}) => http.get(store.state.user.path + "/clueMainInfo/getClueMainInfoVoById", { params, custom: { loading: false }, timeout: 1500 }), // 获取线索详情;
57
+		updateClueFixedFieldsClueState: (data, config = {}) => http.post(store.state.user.path + '/clueFixedFields/updateClueFixedFieldsClueState', data),
58
+		updateClueFixedFieldsAllTags: (data, config = {}) => http.post(store.state.user.path + '/clueFixedFields/updateClueFixedFieldsAllTags', data),
59
+		getClueMainInfoById: (params = {}, config = {}) => http.get(store.state.user.path + '/clueMainInfo/getClueMainInfoById', { params, ...config }),
60
+		getClueAdInfoByClueId: (params = {}, config = {}) => http.get(store.state.user.path + '/clueAdInfo/getClueAdInfoByClueId', { params, ...config }),
61
+		getClueFollowList: (params = {}, config = {}) => http.get(store.state.user.path + '/clueFollow/getClueFollowList', { params, ...config }),
62
+		deleteClueFollow: (data, config = {}) => http.post(store.state.user.path + '/clueFollow/deleteClueFollow', data),
63
+		updateClueFixedFieldsClueOwner: (data, config = {}) => http.post(store.state.user.path + '/clueFixedFields/updateClueFixedFieldsClueOwner', data),
64
+		addClueFollow: (data, config = {}) => http.post(store.state.user.path + '/clueFollow/addClueFollow', data),
65
+		getDictCascadeData: (params, config = {}) => http.get(store.state.user.path + '/dictCascadeData/list', { params, ...config }),
66
+		selectAllDeptList: (params, config = {}) => http.get('/system/dept/selectAllDeptList', { params, ...config }),
67
+		getIdByName: (params, config = {}) => http.get(store.state.user.path + "/clueMainInfo/getIdByName", { params, ...config }),
68
+		addClueMainInfo: (data, config = {}) => http.post(store.state.user.path + '/clueMainInfo/addClueMainInfo', data),
69
+		saveLog: (data, config = {}) => http.post("/system/access/saveLog", data, { custom: { loading: false } }),
70
+		saveClueFile: (data, config = {}) => http.post(store.state.user.path + '/clueFile/saveClueFile', data),
71
+		updateClueMainInfo: (data, config = {}) => http.post(store.state.user.path + '/clueMainInfo/updateClueMainInfo', data),
72
+		selectPromotionStats: (data, config = {}) => http.post(store.state.user.path + '/promotionStats/selectPromotionStats', data),
73
+		firstLogin: (data) => http.post('/system/user/firstLogin', data),
74
+		shiYuWxLoginGetInfo: (params) => http.get('/auth/shiYuWxLoginGetInfo', { params, custom: { noAuth: true } }),
75
+		deleteClueFile: (data) => http.delete(store.state.user.path + '/clueFile/deleteClueFile', data),
76
+		getCallClueFileByClueId: (params) => http.get(store.state.user.path + '/clueFile/getCallClueFileByClueId', { params, custom: { noAuth: true } }),
77
+		getClueSendFormCountByClueId: (params = {}, config = {}) => http.get(store.state.user.path + '/clueSendForm/getClueSendFormCountByClueId', { params }),
78 78
 		// 订单相关接口
79
-		selectClueOrderFormList:(params={},data={})=>http.post(store.state.user.path + '/clueSendForm/list?' + qs.stringify(params),data),
80
-		oderForm:(data={})=>http.post(store.state.user.path + '/clueSendForm/oderForm',data),
81
-		updateTags:(data={})=>http.post(store.state.user.path + '/clueSendForm/updateTags',data),
82
-		addOrderFollow:(data={})=>http.post(store.state.user.path + '/orderFollow/addOrderFollow',data),
83
-		getOrderFollowListByOrderId:(params={})=>http.get(store.state.user.path + '/orderFollow/getOrderFollowListByOrderId',{params}),
84
-		deleteOrder:(data={})=>http.post(store.state.user.path + '/clueSendForm/deleteOrder',data),
85
-		updateOrderState:(data={})=>http.post(store.state.user.path + '/clueSendForm/updateOrderState',data),
86
-		updateClueOrderForm:(data={})=>http.post(store.state.user.path + '/clueSendForm/updateClueOrderForm',data),
87
-		
88
-		getOrderFollowListByClueId:(params = {},config = {})=>http.get(store.state.user.path + '/orderFollow/getOrderFollowListByClueId',{ params }),
89
-		getDuplicateOrderFollowListByClueId:(params = {},config = {})=>http.get(store.state.user.path + '/orderFollow/getDuplicateOrderFollowListByClueId',{ params }),
90
-		deleteOrderFollow:(data,config={})=>http.post(store.state.user.path + '/orderFollow/deleteOrderFollow',data),
91
-		getOrderFollowList:(params = {},config = {})=>http.get(store.state.user.path + '/orderFollow/getOrderFollowList',{ params }),
92
-		
93
-		selectCommissionList:(params={},data={})=>http.post(store.state.user.path + '/clueCommissionForm/list?' + qs.stringify(params),data),
94
-		getClueSendFormVoByOrderId:(params = {},config = {})=>http.get(store.state.user.path + '/clueSendForm/getClueSendFormVoByOrderId',{ params }),
79
+		selectClueOrderFormList: (params = {}, data = {}) => http.post(store.state.user.path + '/clueSendForm/list?' + qs.stringify(params), data),
80
+		oderForm: (data = {}) => http.post(store.state.user.path + '/clueSendForm/oderForm', data),
81
+		updateTags: (data = {}) => http.post(store.state.user.path + '/clueSendForm/updateTags', data),
82
+		addOrderFollow: (data = {}) => http.post(store.state.user.path + '/orderFollow/addOrderFollow', data),
83
+		getOrderFollowListByOrderId: (params = {}) => http.get(store.state.user.path + '/orderFollow/getOrderFollowListByOrderId', { params }),
84
+		deleteOrder: (data = {}) => http.post(store.state.user.path + '/clueSendForm/deleteOrder', data),
85
+		updateOrderState: (data = {}) => http.post(store.state.user.path + '/clueSendForm/updateOrderState', data),
86
+		updateClueOrderForm: (data = {}) => http.post(store.state.user.path + '/clueSendForm/updateClueOrderForm', data),
87
+
88
+		getOrderFollowListByClueId: (params = {}, config = {}) => http.get(store.state.user.path + '/orderFollow/getOrderFollowListByClueId', { params }),
89
+		getDuplicateOrderFollowListByClueId: (params = {}, config = {}) => http.get(store.state.user.path + '/orderFollow/getDuplicateOrderFollowListByClueId', { params }),
90
+		deleteOrderFollow: (data, config = {}) => http.post(store.state.user.path + '/orderFollow/deleteOrderFollow', data),
91
+		getOrderFollowList: (params = {}, config = {}) => http.get(store.state.user.path + '/orderFollow/getOrderFollowList', { params }),
92
+
93
+		selectCommissionList: (params = {}, data = {}) => http.post(store.state.user.path + '/clueCommissionForm/list?' + qs.stringify(params), data),
94
+		getClueSendFormVoByOrderId: (params = {}, config = {}) => http.get(store.state.user.path + '/clueSendForm/getClueSendFormVoByOrderId', { params }),
95 95
 		// 跟进记录相关接口
96
-		getDuplicateClueFollowByClueId:(params,config={})=>http.get(store.state.user.path + '/clueFollow/getDuplicateClueFollowByClueId',{params,...config}),
96
+		getDuplicateClueFollowByClueId: (params, config = {}) => http.get(store.state.user.path + '/clueFollow/getDuplicateClueFollowByClueId', { params, ...config }),
97 97
 		// 文件相关接口
98
-		selectClueFileByDto:(data,config={})=>http.post(store.state.user.path + '/clueFile/selectClueFileByDto',data,config),
99
-		updateClueFile:(data,config={})=>http.put(store.state.user.path + '/clueFile/updateClueFile',data),
100
-		addReceiptForm:(data,config={})=>http.post(store.state.user.path + '/clueReceiptForm',data),
101
-		updateReceiptForm:(data,config={})=>http.put(store.state.user.path + '/clueReceiptForm',data),
102
-		listReceiptFormByOrderId:(orderFormId,config={})=>http.get(store.state.user.path + '/clueReceiptForm/listByOrderId/' + orderFormId),
103
-		getReceiptForm:(id,config={})=>http.get(store.state.user.path + '/clueReceiptForm/' + id),
104
-		delReceiptForm:(id,config={})=>http.delete(store.state.user.path + '/clueReceiptForm/' + id),
105
-		saveClueOrderForm:(data={})=>http.post(store.state.user.path + '/clueSendForm/saveClueOrderForm',data),
106
-		clueReceiptFormListByOrderId:(orderId,config={})=>http.get(store.state.user.path + '/clueReceiptForm/listByOrderId/' + orderId),
107
-		clueCommissionAdd: (data={})=>http.post(store.state.user.path + '/clueCommissionForm',data),
108
-		clueCommissionUpdate: (data={})=>http.put(store.state.user.path + '/clueCommissionForm',data),
109
-		clueCommissionById: (id,config={})=>http.get(store.state.user.path + '/clueCommissionForm/' + id),
110
-		clueCommissionRemove: (ids,config={})=>http.post(store.state.user.path + '/clueCommissionForm/remove',ids),
111
-		getCustomerManagerAllList: ()=>http.post('/system/user/getCustomerManagerAllList'),
112
-		getClueSendFormVoByOrderId: (params)=>http.get(store.state.user.path + '/clueSendForm/getClueSendFormVoByOrderId?' + qs.stringify(params)),
113
-		statisticsSendStatus : (data,config = {})=>http.post(store.state.user.path + '/clueSendForm/statisticsSendStatus',data), // 统计线索阶段
98
+		selectClueFileByDto: (data, config = {}) => http.post(store.state.user.path + '/clueFile/selectClueFileByDto', data, config),
99
+		updateClueFile: (data, config = {}) => http.put(store.state.user.path + '/clueFile/updateClueFile', data),
100
+		addReceiptForm: (data, config = {}) => http.post(store.state.user.path + '/clueReceiptForm', data),
101
+		updateReceiptForm: (data, config = {}) => http.put(store.state.user.path + '/clueReceiptForm', data),
102
+		listReceiptFormByOrderId: (orderFormId, config = {}) => http.get(store.state.user.path + '/clueReceiptForm/listByOrderId/' + orderFormId),
103
+		getReceiptForm: (id, config = {}) => http.get(store.state.user.path + '/clueReceiptForm/' + id),
104
+		delReceiptForm: (id, config = {}) => http.delete(store.state.user.path + '/clueReceiptForm/' + id),
105
+		saveClueOrderForm: (data = {}) => http.post(store.state.user.path + '/clueSendForm/saveClueOrderForm', data),
106
+		clueReceiptFormListByOrderId: (orderId, config = {}) => http.get(store.state.user.path + '/clueReceiptForm/listByOrderId/' + orderId),
107
+		clueCommissionAdd: (data = {}) => http.post(store.state.user.path + '/clueCommissionForm', data),
108
+		clueCommissionUpdate: (data = {}) => http.put(store.state.user.path + '/clueCommissionForm', data),
109
+		clueCommissionById: (id, config = {}) => http.get(store.state.user.path + '/clueCommissionForm/' + id),
110
+		clueCommissionRemove: (ids, config = {}) => http.post(store.state.user.path + '/clueCommissionForm/remove', ids),
111
+		getCustomerManagerAllList: () => http.post('/system/user/getCustomerManagerAllList'),
112
+		getClueSendFormVoByOrderId: (params) => http.get(store.state.user.path + '/clueSendForm/getClueSendFormVoByOrderId?' + qs.stringify(params)),
113
+		statisticsSendStatus: (data, config = {}) => http.post(store.state.user.path + '/clueSendForm/statisticsSendStatus', data), // 统计线索阶段
114 114
 
115 115
 		// 支付相关接口
116
-		saveOrderFileAndTransfer:(data={})=>http.post(store.state.user.path + '/storeInfo/saveOrderFileAndTransfer',data),
116
+		saveOrderFileAndTransfer: (data = {}) => http.post(store.state.user.path + '/storeInfo/saveOrderFileAndTransfer', data),
117
+
118
+		// 删除订单分成数据
119
+		deleteClueCommissionForm: (id, config = {}) => http.delete(store.state.user.path + '/clueCommissionForm/' + id),
120
+
117 121
 	}
118 122
 }
119 123