|
|
@@ -25,6 +25,9 @@
|
|
|
<el-button type="primary" size="mini" style="margin-right: 8px" @click="commitfenban"
|
|
|
v-if="Status <= 0 && authUser.Profile.IsCompanyUser == 1">提交分办
|
|
|
</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-right: 8px" @click="addshow = true"
|
|
|
+ v-if="Status <= 0 && authUser.Profile.IsCompanyUser == 0">提交审核
|
|
|
+ </el-button>
|
|
|
<el-button type="primary" style="margin-left: 8px;" size="mini" @click="addshow =true" v-if="Status == 10 && authUser.Profile.IsCompanyUser == 0">
|
|
|
提交审核</el-button>
|
|
|
<router-link :to="'/oilsupplier/annualaudit/goodsindex'">
|
|
|
@@ -783,11 +786,11 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="专业处室">
|
|
|
- <el-cascader :options="orgtreelist" :props="orgtreeprops" :show-all-levels="false" filterable
|
|
|
- style="width: 100%" v-model="majorDept" placeholder="请选择专业处室" @change="orgtreeChange">
|
|
|
- </el-cascader>
|
|
|
- </el-form-item>
|
|
|
+ <!--<el-form-item label="专业处室">-->
|
|
|
+ <!--<el-cascader :options="orgtreelist" :props="orgtreeprops" :show-all-levels="false" filterable-->
|
|
|
+ <!--style="width: 100%" v-model="majorDept" placeholder="请选择专业处室" @change="orgtreeChange">-->
|
|
|
+ <!--</el-cascader>-->
|
|
|
+ <!--</el-form-item>-->
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="备注">
|
|
|
@@ -799,7 +802,7 @@
|
|
|
</el-form>
|
|
|
<span style="float: right;margin-top:-10px;">
|
|
|
<el-button size="small" @click="addshow = false">取 消</el-button>
|
|
|
- <el-button type="primary" size="small" @click="addAnnualAudit()">确 定</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="addAnnualAudit()" :loading="loading">确 定</el-button>
|
|
|
</span>
|
|
|
<br>
|
|
|
</el-dialog>
|
|
|
@@ -838,7 +841,7 @@
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button size="mini" @click="ComAuditdialogShow = false">取 消</el-button>
|
|
|
- <el-button size="mini" type="primary" @click="SubpEntity">确定</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="SubpEntity" :loading="loading">确定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="变更项查看" :visible.sync="myitemsshow" width="780px">
|
|
|
@@ -1078,6 +1081,13 @@
|
|
|
}
|
|
|
}
|
|
|
return {
|
|
|
+ loading: false,
|
|
|
+ ProfAuditThen: '',
|
|
|
+ shenheForm: {
|
|
|
+ SuccessStatus: 1,
|
|
|
+ AuditorRemark: '',
|
|
|
+ AnnualId: 0
|
|
|
+ },
|
|
|
sizeProject: 10,
|
|
|
currentPageProject: 1,
|
|
|
currentItemCountProject: 0,
|
|
|
@@ -1526,6 +1536,10 @@
|
|
|
this.getsubfile()
|
|
|
},
|
|
|
methods: {
|
|
|
+ fenbanBtn () {
|
|
|
+ this.shenheForm.AnnualId = parseInt(this.annualId)
|
|
|
+ this.addshow = true
|
|
|
+ },
|
|
|
// 资质变更相关
|
|
|
lineheight (list) {
|
|
|
return list * 23 + ''
|
|
|
@@ -1821,7 +1835,9 @@
|
|
|
this.entityForm.SupplierTypeName = this.SupplierTypeCode
|
|
|
this.auditform.FirstAuditName = this.UnitOrg
|
|
|
this.auditform.AnnualId = this.annualId
|
|
|
+ this.loading = true
|
|
|
annualapi.commitauditEntity(this.entityForm, this.auditform, this.$axios).then(res => {
|
|
|
+ this.loading = false
|
|
|
if (res.data.code === 0) {
|
|
|
// 保存成功后,初始化数据,变成修改
|
|
|
this.Status = res.data.item
|
|
|
@@ -1840,6 +1856,7 @@
|
|
|
})
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
+ this.loading = false
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
@@ -2424,27 +2441,14 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.majorDept.length === 0) {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '请选择专业处室!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.userOptions.length === 0) {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '该专业科室未配置接收人!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
this.entityForm.SupplierId = parseInt(this.certId)
|
|
|
this.entityForm.SupplierTypeName = this.SupplierTypeCode
|
|
|
this.auditform.FirstAuditName = this.auditer
|
|
|
this.auditform.SecondAudit = this.fushenauditer
|
|
|
- this.auditform.ThirdAudit = this.majorDept[this.majorDept.length - 1]
|
|
|
this.auditform.AnnualId = this.annualId
|
|
|
+ this.loading = true
|
|
|
annualapi.commitauditEntity(this.entityForm, this.auditform, this.$axios).then(res => {
|
|
|
+ this.loading = false
|
|
|
if (res.data.code === 0) {
|
|
|
// 保存成功后,初始化数据,变成修改
|
|
|
this.Status = res.data.item
|
|
|
@@ -2463,6 +2467,7 @@
|
|
|
})
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
+ this.loading = false
|
|
|
console.error(err)
|
|
|
})
|
|
|
}
|