登记收件信息
Showing
2 changed files
with
27 additions
and
3 deletions
src/api/djfDjSj.js
0 → 100644
1 | import request from "@/utils/request"; | ||
2 | import SERVER from "./config"; | ||
3 | |||
4 | class djfDjSj { | ||
5 | //登记收件信息 | ||
6 | async getDjfDjSjById(bsmSjsb) { | ||
7 | return request({ | ||
8 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSj/detail", | ||
9 | method: "get", | ||
10 | params: { | ||
11 | bsmSjsb: bsmSjsb, | ||
12 | }, | ||
13 | }); | ||
14 | } | ||
15 | //修改登记收件信息 | ||
16 | async updateDjfDjSj(data) { | ||
17 | return request({ | ||
18 | url: SERVER.SERVERAPI + "/rest/reg/DjfDjSj/edit", | ||
19 | method: "post", | ||
20 | data, | ||
21 | }); | ||
22 | } | ||
23 | } | ||
24 | export default new djfDjSj(); |
... | @@ -165,7 +165,7 @@ | ... | @@ -165,7 +165,7 @@ |
165 | </div> | 165 | </div> |
166 | </template> | 166 | </template> |
167 | <script> | 167 | <script> |
168 | import business from '@/api/business' | 168 | import djfDjSj from '@/api/djfDjSj' |
169 | import ruleMixin from '@/mixins/ruleMixin.js' | 169 | import ruleMixin from '@/mixins/ruleMixin.js' |
170 | // 登记收件信息 | 170 | // 登记收件信息 |
171 | export default { | 171 | export default { |
... | @@ -205,7 +205,7 @@ export default { | ... | @@ -205,7 +205,7 @@ export default { |
205 | methods: { | 205 | methods: { |
206 | async featchData () { | 206 | async featchData () { |
207 | try { | 207 | try { |
208 | let { result: res } = await business.getDjfDjSjById(this.bsmSjsb) | 208 | let { result: res } = await djfDjSj.getDjfDjSjById(this.bsmSjsb) |
209 | this.form.receivingInfo = res | 209 | this.form.receivingInfo = res |
210 | //this.featchRule() | 210 | //this.featchRule() |
211 | } catch (error) { | 211 | } catch (error) { |
... | @@ -215,7 +215,7 @@ export default { | ... | @@ -215,7 +215,7 @@ export default { |
215 | handleUpdateForm () { | 215 | handleUpdateForm () { |
216 | return new Promise(async (resolve) => { | 216 | return new Promise(async (resolve) => { |
217 | try { | 217 | try { |
218 | let res = await business.updateDjfDjSj(this.form.receivingInfo) | 218 | let res = await djfDjSj.updateDjfDjSj(this.form.receivingInfo) |
219 | // this.$refs['formList'].resetFields(); | 219 | // this.$refs['formList'].resetFields(); |
220 | resolve(res.code) | 220 | resolve(res.code) |
221 | } catch (error) { | 221 | } catch (error) { | ... | ... |
-
Please register or sign in to post a comment