326c83e4 by yangwei

户信息- 业务表单

1 parent a47a8fd6
import request from "@/utils/request";
import SERVER from "./config";
class kttFwH {
// 户信息- 业务表单
async getKttFwHById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/KttFwH/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
// 户信息-业务-修改
async updateKttFwH(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/KttFwH/edit",
method: "post",
data,
});
}
}
export default new kttFwH();
......@@ -451,7 +451,7 @@
</template>
<script>
// 户信息
import business from "@/api/business";
import kttFwH from "@/api/kttFwH";
import ruleMixin from "@/mixins/ruleMixin.js";
export default {
mixins: [ruleMixin],
......@@ -510,7 +510,7 @@ export default {
methods: {
async featchData() {
try {
let { result: res } = await business.getKttFwHById(this.bsmSjsb);
let { result: res } = await kttFwH.getKttFwHById(this.bsmSjsb);
this.ruleForm = res;
//this.featchRule()
} catch (error) {
......@@ -520,7 +520,7 @@ export default {
handleUpdateForm() {
return new Promise(async (resolve, reject) => {
try {
let res = await business.updateKttFwH(this.ruleForm);
let res = await kttFwH.updateKttFwH(this.ruleForm);
// this.$refs['formList'].resetFields();
resolve(res.code);
} catch (error) {
......