446aae45 by yangwei

登记审核信息

1 parent 6c388184
import request from "@/utils/request";
import SERVER from "./config";
class djfDjSh {
//登记审核信息
async getDjfDjShById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjSh/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
//修改登记审核信息
async updateDjfDjSh(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjSh/edit",
method: "post",
data,
});
}
}
export default new djfDjSh();
......@@ -145,7 +145,7 @@
</div>
</template>
<script>
import business from '@/api/business'
import djfDjSh from '@/api/djfDjSh'
import ruleMixin from '@/mixins/ruleMixin.js'
// 审核信息
export default {
......@@ -209,7 +209,7 @@ export default {
},
async featchData () {
try {
let { result: res } = await business.getDjfDjShById(this.bsmSjsb)
let { result: res } = await djfDjSh.getDjfDjShById(this.bsmSjsb)
this.form.auditInfo = res
//this.featchRule()
} catch (error) {
......@@ -219,7 +219,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateDjfDjSh(this.form.auditInfo)
let res = await djfDjSh.updateDjfDjSh(this.form.auditInfo)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......