|
|
@@ -25,12 +25,10 @@
|
|
|
<el-form-item label="企业名称">
|
|
|
<el-input size="mini" clearable v-model="searchForm.SupplierName" placeholder="请输入企业名称"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="状态" style="width: 150px">
|
|
|
- <el-select size="mini" v-model="searchForm.Status" placeholder="请选择" style="width: 100px" clearable>
|
|
|
+ <el-form-item label="状态" style="width: 200px">
|
|
|
+ <el-select size="mini" v-model="searchForm.Status" placeholder="请选择" style="width: 150px" clearable>
|
|
|
<el-option label="全部" value="" key="01"></el-option>
|
|
|
- <el-option label="已保存" value="0" key="02"></el-option>
|
|
|
- <el-option label="评价中" value="1" key="03"></el-option>
|
|
|
- <el-option label="已完成" value="8" key="04"></el-option>
|
|
|
+ <el-option v-for="(item, index) in auditOptions" :key="index" :label="item.label" :value="item.value" style="width: 100%"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="年度">
|
|
|
@@ -218,7 +216,7 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- :selectDeptBoolean="false"-->
|
|
|
- <submit-popup ref="submitpopup" :eveId="eveIdList" @refreshPage="initDatas"></submit-popup>
|
|
|
+ <submit-popup ref="submitpopup" :eveId="eveIdList" :formData="formData" @refreshPage="initDatas"></submit-popup>
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -244,43 +242,43 @@ export default {
|
|
|
switch (index) {
|
|
|
case 0:
|
|
|
return '已保存'
|
|
|
- break;
|
|
|
+ break
|
|
|
case 1:
|
|
|
return '待初审'
|
|
|
- break;
|
|
|
+ break
|
|
|
case 2:
|
|
|
return '待复审'
|
|
|
- break;
|
|
|
+ break
|
|
|
case 3:
|
|
|
return '专业科室接收'
|
|
|
- break;
|
|
|
+ break
|
|
|
case 4:
|
|
|
return '待专业处室审核'
|
|
|
- break;
|
|
|
+ break
|
|
|
case 7:
|
|
|
return '待企管法规处审批'
|
|
|
- break;
|
|
|
+ break
|
|
|
case 8:
|
|
|
return '已完成'
|
|
|
- break;
|
|
|
+ break
|
|
|
case -1:
|
|
|
return '初审未通过'
|
|
|
- break;
|
|
|
+ break
|
|
|
case -2:
|
|
|
return '复审未通过'
|
|
|
- break;
|
|
|
+ break
|
|
|
case -3:
|
|
|
return '专业处室未通过'
|
|
|
- break;
|
|
|
+ break
|
|
|
case -4:
|
|
|
return '专业处室审核未通过'
|
|
|
- break;
|
|
|
+ break
|
|
|
case -9:
|
|
|
return '企管法规处审批未通过'
|
|
|
- break;
|
|
|
+ break
|
|
|
default:
|
|
|
return '--'
|
|
|
- break;
|
|
|
+ break
|
|
|
}
|
|
|
} else if (index === 'OpenDate' || index === 'EndDate' || index === 'PlanFinishDate' || index === 'SubmitDate') {
|
|
|
let timeString = this.timeStyle(item)
|
|
|
@@ -297,6 +295,39 @@ export default {
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
+ auditOptions: [
|
|
|
+ {
|
|
|
+ value: 0,
|
|
|
+ label: '已保存'
|
|
|
+ }, {
|
|
|
+ value: 1,
|
|
|
+ label: '待初审'
|
|
|
+ }, {
|
|
|
+ value: 2,
|
|
|
+ label: '待复审'
|
|
|
+ }, {
|
|
|
+ value: 3,
|
|
|
+ label: '待专业处室分办'
|
|
|
+ }, {
|
|
|
+ value: 4,
|
|
|
+ label: '待专业处室审核'
|
|
|
+ }, {
|
|
|
+ value: 7,
|
|
|
+ label: '待企管法规处审批'
|
|
|
+ }, {
|
|
|
+ value: 8,
|
|
|
+ label: '已完成'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ formData: {
|
|
|
+ Status: ''
|
|
|
+ },
|
|
|
+ dailyReviewBatchCode: '',
|
|
|
+ firstBatchPerm: false,
|
|
|
+ secondBatchPerm: false,
|
|
|
+ busSepBatchPerm: false,
|
|
|
+ busAuditBatchPerm: false,
|
|
|
+ profRegBatchPerm: false,
|
|
|
yearList: [],
|
|
|
delAuditProf: false, // 企管法规处的权限
|
|
|
tableLoading: false, // table表格
|
|
|
@@ -464,6 +495,7 @@ export default {
|
|
|
},
|
|
|
created () {
|
|
|
this.getYearList()
|
|
|
+ this.getBatchAuditPerm()
|
|
|
// 查询条件初始值备份
|
|
|
Object.assign(this.searchFormReset, this.searchForm)
|
|
|
// 查询列表
|
|
|
@@ -485,6 +517,22 @@ export default {
|
|
|
let nowYear = now.getFullYear()
|
|
|
this.yearList = [nowYear, nowYear - 1]
|
|
|
},
|
|
|
+ getBatchAuditPerm () {
|
|
|
+ permissionApi.getBatchAuditPermission(this.$axios).then(res => {
|
|
|
+ if (res.status === 200) {
|
|
|
+ this.firstBatchPerm = res.data[0]
|
|
|
+ this.secondBatchPerm = res.data[1]
|
|
|
+ this.busSepBatchPerm = res.data[2]
|
|
|
+ this.busAuditBatchPerm = res.data[3]
|
|
|
+ this.profRegBatchPerm = res.data[4]
|
|
|
+ if (this.firstBatchPerm || this.secondBatchPerm || this.busSepBatchPerm || this.busAuditBatchPerm || this.profRegBatchPerm) {
|
|
|
+ this.userSelectBoolean = true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
timeStyle (item) {
|
|
|
if (item === '0001-01-01T00:00:00Z' || item === '') {
|
|
|
return '--'
|
|
|
@@ -498,11 +546,19 @@ export default {
|
|
|
e.map((item, index) => {
|
|
|
list.push(item.Id)
|
|
|
})
|
|
|
- this.eveIdList = list
|
|
|
+ this.eveIdList = String(list)
|
|
|
},
|
|
|
// 筛选
|
|
|
selectableFun (row, index) {
|
|
|
- if (row.Status == 4) {
|
|
|
+ if (row.Status == 1 && this.firstBatchPerm) {
|
|
|
+ return true
|
|
|
+ } else if (row.Status == 2 && this.secondBatchPerm) {
|
|
|
+ return true
|
|
|
+ } else if (row.Status == 3 && this.busSepBatchPerm) {
|
|
|
+ return true
|
|
|
+ } else if (row.Status == 4 && this.busAuditBatchPerm) {
|
|
|
+ return true
|
|
|
+ } else if (row.Status == 7 && this.profRegBatchPerm) {
|
|
|
return true
|
|
|
} else {
|
|
|
return false
|
|
|
@@ -515,7 +571,13 @@ export default {
|
|
|
// 一键处理确定
|
|
|
onSelectAllButtonTrue () {
|
|
|
if (this.eveIdList != 0 && this.eveIdList != undefined) {
|
|
|
- this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
|
|
|
+ if (this.busSepBatchPerm) {
|
|
|
+ this.formData.Status = '3'
|
|
|
+ this.$refs.submitpopup.auditOrgChange()
|
|
|
+ this.$refs.submitpopup.dialogBusinessOfficeSeparateBatchAuditVisible = true
|
|
|
+ } else {
|
|
|
+ this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
|
|
|
+ }
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
@@ -530,19 +592,19 @@ export default {
|
|
|
// 状态判断
|
|
|
statusFun () {
|
|
|
// 一键处理权限
|
|
|
- let data = {
|
|
|
- percode: 'oil_contract.Review.Batch'
|
|
|
- }
|
|
|
- permissionApi.permissionIsauth(data, this.$axios).then(res => {
|
|
|
- console.log('一键处理权限权限', res.data)
|
|
|
- if (res.data.code == 0) {
|
|
|
- if (res.data.message == '有权限') {
|
|
|
- this.userSelectBoolean = true
|
|
|
- }
|
|
|
- }
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
+ // let data = {
|
|
|
+ // percode: 'oil_contract.Review.Batch'
|
|
|
+ // }
|
|
|
+ // permissionApi.permissionIsauth(data, this.$axios).then(res => {
|
|
|
+ // console.log('一键处理权限权限', res.data)
|
|
|
+ // if (res.data.code == 0) {
|
|
|
+ // if (res.data.message == '有权限') {
|
|
|
+ // this.userSelectBoolean = true
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }).catch(err => {
|
|
|
+ // console.error(err)
|
|
|
+ // })
|
|
|
let data1 = {
|
|
|
percode: 'oil_contract.Review.Delete'
|
|
|
}
|
|
|
@@ -582,7 +644,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
initDatas () {
|
|
|
- this.tableLoading = true;
|
|
|
+ this.tableLoading = true
|
|
|
// 分页及列表条件
|
|
|
let params = {
|
|
|
_currentPage: this.currentPage,
|