c4882636 by yangwei

登记收件信息

1 parent 11a68a05
import request from "@/utils/request";
import SERVER from "./config";
class djfDjSj {
//登记收件信息
async getDjfDjSjById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjSj/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
//修改登记收件信息
async updateDjfDjSj(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjSj/edit",
method: "post",
data,
});
}
}
export default new djfDjSj();
......@@ -165,7 +165,7 @@
</div>
</template>
<script>
import business from '@/api/business'
import djfDjSj from '@/api/djfDjSj'
import ruleMixin from '@/mixins/ruleMixin.js'
// 登记收件信息
export default {
......@@ -205,7 +205,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getDjfDjSjById(this.bsmSjsb)
let { result: res } = await djfDjSj.getDjfDjSjById(this.bsmSjsb)
this.form.receivingInfo = res
//this.featchRule()
} catch (error) {
......@@ -215,7 +215,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateDjfDjSj(this.form.receivingInfo)
let res = await djfDjSj.updateDjfDjSj(this.form.receivingInfo)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......