|
|
@@ -11,6 +11,7 @@
|
|
|
<i class="icon icon-table2"></i> 编辑
|
|
|
</span>
|
|
|
<span style="float: right;">
|
|
|
+ <el-button type="primary" size="mini" @click="AuditEntity">提交审批</el-button>
|
|
|
<router-link :to="'/oilsupplier/supplierappend/techlist'">
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
|
</router-link>
|
|
|
@@ -118,6 +119,7 @@
|
|
|
} from 'vuex'
|
|
|
import api from '@/api/oilsupplier/supplierappendsub'
|
|
|
import api2 from '@/api/oilsupplier/supplierappend'
|
|
|
+ import apiCert from '@/api/oilsupplier/suppliercert'
|
|
|
|
|
|
export default {
|
|
|
computed: {
|
|
|
@@ -345,7 +347,25 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+ //提交审批
|
|
|
+ AuditEntity() {
|
|
|
+ apiCert.auditEntityappend(this.Id, this.$axios).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ //保存成功后,初始化数据,变成修改
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ });
|
|
|
+ },
|
|
|
//保存增项信息
|
|
|
saveEntity() {
|
|
|
let _this = this
|