07a8bf43 by yangwei

登记发证信息

1 parent 326c83e4
import request from "@/utils/request";
import SERVER from "./config";
class djfDjFz {
//登记发证信息
async getDjfDjFzDetailById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjFz/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
//修改登记发证信息
async updateDjfDjFz(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjFz/edit",
method: "post",
data,
});
}
}
export default new djfDjFz();
......@@ -184,7 +184,7 @@
</template>
<script>
// 发证信息
import business from '@/api/business'
import djfDjFz from '@/api/djfDjFz'
import ruleMixin from '@/mixins/ruleMixin.js'
import treeSelect from '@/components/treeSelect/index.vue'
export default {
......@@ -226,7 +226,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getDjfDjFzDetailById(this.bsmSjsb)
let { result: res } = await djfDjFz.getDjfDjFzDetailById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -236,7 +236,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve, reject) => {
try {
let res = await business.updateDjfDjFz(this.ruleForm)
let res = await djfDjFz.updateDjfDjFz(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......