e07531d0 by 任超

面状定着物

1 parent aef89b62
......@@ -945,23 +945,5 @@ class business {
data
})
}
// 面状定着物
async getKtfQtMzdzwById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
// 面状定着物-修改
async updateKtfQtMzdzw (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/edit',
method: 'post',
data
})
}
}
export default new business()
......
import request from '@/utils/request'
import SERVER from './config'
class ktfQtMzdzw {
// 面状定着物
async getKtfQtMzdzwById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
// 面状定着物-修改
async updateKtfQtMzdzw (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/edit',
method: 'post',
data
})
}
}
export default new ktfQtMzdzw()
\ No newline at end of file
......@@ -134,7 +134,7 @@
</template>
<script>
// 面状定着物
import business from '@/api/business'
import ktfQtMzdzw from '@/api/ktfQtMzdzw'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -166,7 +166,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getKtfQtMzdzwById(this.bsmSjsb)
let { result: res } = await ktfQtMzdzw.getKtfQtMzdzwById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -176,7 +176,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateKtfQtMzdzw(this.ruleForm)
let res = await ktfQtMzdzw.updateKtfQtMzdzw(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......