6fc23e2c by yangwei

登记受理申请信息 -- 业务表单

1 parent c4882636
import request from "@/utils/request";
import SERVER from "./config";
class djtDjSlsq {
// 登记受理申请信息 -- 业务表单
async getDjtDjSlsqById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
// 登记受理申请信息 -- 业务修改
async updateDjtDjSlsq(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/edit",
method: "post",
data,
});
}
//修改登记受理申请信息
async updateDjtDjSlsq(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/updateDjtDjSlsq",
method: "put",
data,
});
}
}
export default new djtDjSlsq();
......@@ -231,7 +231,7 @@
</template>
<script>
// 登记受理申请信息
import business from "@/api/business";
import djtDjSlsq from "@/api/djtDjSlsq";
import ruleMixin from "@/mixins/ruleMixin.js";
export default {
mixins: [ruleMixin],
......@@ -273,7 +273,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getDjtDjSlsqById(this.bsmSjsb);
let { result: res } = await djtDjSlsq.getDjtDjSlsqById(this.bsmSjsb);
this.ruleForm = res;
//this.featchRule()
} catch (error) {
......@@ -283,7 +283,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateDjtDjSlsq(this.ruleForm);
let res = await djtDjSlsq.updateDjtDjSlsq(this.ruleForm);
resolve(res.code);
} catch (error) {
this.$refs.msg.messageShow();
......