6c388184 by yangwei

登记缮证信息

1 parent 5ae2d962
import request from "@/utils/request";
import SERVER from "./config";
class djfDjSz {
//登记缮证信息
async getDjfDjSzById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjSz/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
//修改登记缮证信息
async updateDjfDjSz(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjSz/edit",
method: "post",
data,
});
}
}
export default new djfDjSz();
......@@ -116,7 +116,7 @@
</div>
</template>
<script>
import business from '@/api/business'
import djfDjSz from '@/api/djfDjSz'
import ruleMixin from '@/mixins/ruleMixin.js'
// 缮证信息
export default {
......@@ -151,7 +151,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getDjfDjSzById(this.bsmSjsb)
let { result: res } = await djfDjSz.getDjfDjSzById(this.bsmSjsb)
this.certificateInfo.ruleForm = res;
//this.featchRule()
} catch (error) {
......@@ -161,7 +161,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateDjfDjSz(this.certificateInfo.ruleForm)
let res = await djfDjSz.updateDjfDjSz(this.certificateInfo.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......