a47a8fd6 by yangwei

登记归档信息-业务表单

1 parent f9c95669
import request from "@/utils/request";
import SERVER from "./config";
class djfDjGd {
// 登记归档信息-业务表单
async getDjfDjGdById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjGd/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
// 登记归档信息-业务-修改
async updateDjfDjGd(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjGd/edit",
method: "put",
data,
});
}
}
export default new djfDjGd();
......@@ -144,7 +144,7 @@
</div>
</template>
<script>
import business from '@/api/business'
import djfDjGd from '@/api/djfDjGd'
import ruleMixin from '@/mixins/ruleMixin.js'
// 登记归档信息
export default {
......@@ -180,7 +180,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getDjfDjGdById(this.bsmSjsb)
let { result: res } = await djfDjGd.getDjfDjGdById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -190,7 +190,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateDjfDjGd(this.ruleForm)
let res = await djfDjGd.updateDjfDjGd(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......