[update] quanixan
This commit is contained in:
@@ -244,11 +244,63 @@
|
||||
<!-- 错误数据提示-->
|
||||
<a-modal
|
||||
:title="$t('operationFailed')"
|
||||
:width="500"
|
||||
:visible="visibleoperationFailed"
|
||||
:width="700"
|
||||
v-model="visibleoperationFailed"
|
||||
:maskClosable="false"
|
||||
:footer="null"
|
||||
>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="24">
|
||||
<div style='font-size: 20px;margin-bottom: 20px;display: flex;justify-content: center' class="box-title-text-index" v-for='(item,key) in NotSelectedRowKeysValue'>
|
||||
<div>NIO编号为{{ item.nioNumber }},状态为{{ item.state }},没有此按钮的操作权限。</div>
|
||||
</div>
|
||||
<!-- 认证工程师-提示-->
|
||||
<div style='font-size: 16px;color: red;display: flex;justify-content: center'>
|
||||
{{ currentPersonRole =='homo'? '认证工程师': (currentPersonRole =='sdt'? '工程接口人': '填写人') }} 数据状态为
|
||||
<!-- 下发收集时-->
|
||||
<span v-if='jurisdiction === "HOMOZFSJ"'>
|
||||
'待发起收集'、'工程接口人退回'或'变更'
|
||||
</span>
|
||||
<!-- 同步上报库-->
|
||||
<span v-if='jurisdiction === "HOMOTBSBK"'>
|
||||
'已提交'或'变更'
|
||||
</span>
|
||||
<!-- 截止时间-->
|
||||
<span v-if='jurisdiction === "HOMOJZSJ"'>
|
||||
'已提交'或'变更'
|
||||
</span>
|
||||
<!-- 分配填写人 -->
|
||||
<span v-if='jurisdiction === "SDTFPTXR"'>
|
||||
'待工程接口人处理'或'填写人退回'
|
||||
</span>
|
||||
<!-- 引用参数-->
|
||||
<span v-if='jurisdiction === "DREYYCS"'>
|
||||
'待填写'或'认证工程师退回'
|
||||
</span>
|
||||
<!-- 退回-->
|
||||
<span v-if='jurisdiction === "homoTH"'>
|
||||
'已提交'
|
||||
</span>
|
||||
<span v-if='jurisdiction === "sdtTH"'>
|
||||
'待工程接口人处理'或'填写人退回'
|
||||
</span>
|
||||
<span v-if='jurisdiction === "dreTH"'>
|
||||
'待填写'或'认证工程师退回'
|
||||
</span>
|
||||
<!-- 强制撤回-->
|
||||
<span v-if='jurisdiction === "homoQZTH"'>
|
||||
'待工程接口人处理'或'填写人退回'
|
||||
</span>
|
||||
<span v-if='jurisdiction === "sdtQZTH"'>
|
||||
'待填写'
|
||||
</span>
|
||||
<span v-if='jurisdiction === "dreQZTH"'>
|
||||
'已提交'
|
||||
</span>
|
||||
时,才有权限操作此按钮。
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<div class="imports-footer">
|
||||
<div class="imports-footer-wrap">
|
||||
<a-button class="imports-btn" type="primary" @click="cancleoperationFailed">{{$t('cancel')}}</a-button>
|
||||
@@ -367,6 +419,7 @@ export default {
|
||||
areaVisibsynchronous: false, // 同步上报库弹框
|
||||
visibleoperationFailed: false, // 数据失败的弹框
|
||||
currentPersonRole: '', // 当前人角色
|
||||
jurisdiction: '',
|
||||
wrapperCol: {
|
||||
xs: { span: 24 },
|
||||
sm: { span: 14 }
|
||||
@@ -449,247 +502,196 @@ export default {
|
||||
// 认证工程师 退回 权限
|
||||
// 仅仅状态为 已提交 可以退回
|
||||
homoJurisdictionReturn() {
|
||||
// 定义开关 0为没有权限 1为有权限
|
||||
let flag = 1
|
||||
if(this.homo) {
|
||||
console.log('认证工程师')
|
||||
// 认证工程师 已提交
|
||||
if(currentPersonRole =='homo') {
|
||||
this.NotSelectedRowKeysValue = []
|
||||
// 定义开关 0为没有权限 1为有权限
|
||||
let flag = 1
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 0
|
||||
flag = 2
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if(item.state !== '已提交') {
|
||||
this.NotSelectedRowKeysValue.push(item)
|
||||
this.jurisdiction = 'homoTH'
|
||||
flag = 0
|
||||
}
|
||||
})
|
||||
if(flag === 1) {
|
||||
flag = 1
|
||||
} else {
|
||||
this.$message.warning(this.$t('certifiedEngineer')+this.$t('and')+this.$t('Statusis')+this.$t('Submitted')+this.$t('toHavePermission'))
|
||||
}
|
||||
}
|
||||
// 工程接口人 退回 权限
|
||||
// 待工程接口人处理 填写人退回
|
||||
}else if(this.sdt && this.dre==0){
|
||||
console.log('仅仅工程接口人')
|
||||
return flag
|
||||
//工程接口人 待工程接口人处理 填写人退回
|
||||
}else if(currentPersonRole =='sdt') {
|
||||
this.NotSelectedRowKeysValue = []
|
||||
// 定义开关 0为没有权限 1为有权限
|
||||
let flag = 1
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 0
|
||||
flag = 2
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if(item.state !== '待工程接口人处理' && item.state !== '填写人退回') {
|
||||
this.NotSelectedRowKeysValue.push(item)
|
||||
this.jurisdiction = 'sdtTH'
|
||||
flag = 0
|
||||
}
|
||||
})
|
||||
if(flag === 1) {
|
||||
flag = 1
|
||||
} else {
|
||||
this.$message.warning(this.$t('engineeringInterfacePerson')+this.$t('and')+this.$t('Statusis')+this.$t('handledInterface')+this.$t('Filledreturn')+this.$t('toHavePermission'))
|
||||
}
|
||||
}
|
||||
} else if(this.dre && this.sdt==0){
|
||||
console.log('仅仅填写人')
|
||||
// 填写人
|
||||
// 待填写 认证工程师退回 状态
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 0
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if(item.state !== '待填写' && item.state !== '认证工程师退回') {
|
||||
flag = 0
|
||||
}
|
||||
})
|
||||
if(flag === 1) {
|
||||
flag = 1
|
||||
} else {
|
||||
this.$message.warning(this.$t('operatethisbutton'))
|
||||
}
|
||||
}
|
||||
} else if(this.dre && this.sdt) {
|
||||
console.log('工程接口人+填写人')
|
||||
// 工程接口人+填写人
|
||||
return flag
|
||||
//填写人 待填写 认证工程师退回
|
||||
}else if(currentPersonRole =='dre') {
|
||||
this.NotSelectedRowKeysValue = []
|
||||
// 定义开关 0为没有权限 1为有权限
|
||||
let flag = 1
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 0
|
||||
flag = 2
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if(item.state !== '待工程接口人处理' && item.state !== '填写人退回' && item.state !== '待填写' && item.state !== '认证工程师退回') {
|
||||
if(item.state !== '待填写' && item.state !== '认证工程师退回') {
|
||||
this.NotSelectedRowKeysValue.push(item)
|
||||
this.jurisdiction = 'dreTH'
|
||||
flag = 0
|
||||
}
|
||||
})
|
||||
if(flag === 1) {
|
||||
flag = 1
|
||||
} else {
|
||||
this.$message.warning(this.$t('Statusis')+this.$t('handledInterface')+this.$t('Filledreturn')+this.$t('completed')+this.$t('ReturnedEngineer')+this.$t('toHavePermission'))
|
||||
}
|
||||
}
|
||||
this.$message.success(this.$t('operatethisbutton'))
|
||||
return flag
|
||||
}
|
||||
return flag
|
||||
},
|
||||
// 认证工程师 批量删除 权限
|
||||
// 仅仅状态为 待发起收集 工程接口人退回 变更 可以批量删除
|
||||
homoJurisdictionBatchdelete() {
|
||||
|
||||
this.NotSelectedRowKeysValue = []
|
||||
// 定义开关 0为没有权限 1为有权限
|
||||
let flag = 1
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 0
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if(item.state !== '待发起收集' && item.state !== '工程接口人退回' && item.state !== '变更') {
|
||||
flag = 0
|
||||
}
|
||||
})
|
||||
if(flag === 1) {
|
||||
flag = 1
|
||||
} else {
|
||||
this.$message.warning(this.$t('Statusis')+this.$t('CollectionInitiated')+this.$t('ReturnedPerson')+this.$t('alteration')+this.$t('toHavePermission'))
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 2
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if(item.state !== '待发起收集' && item.state !== '工程接口人退回' && item.state !== '变更') {
|
||||
this.NotSelectedRowKeysValue.push(item)
|
||||
flag = 0
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
return flag
|
||||
},
|
||||
// 认证工程师 同步上报库 权限
|
||||
// 仅仅状态为 已提交 变更 可以同步上报库
|
||||
homoJurisdictionSynchronousLibrary() {
|
||||
// 定义开关 0为没有权限 1为有权限
|
||||
this.NotSelectedRowKeysValue = []
|
||||
let flag = 1
|
||||
if(this.homo) {
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 0
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if(item.state !== '已提交' && item.state !== '变更') {
|
||||
flag = 0
|
||||
}
|
||||
})
|
||||
if(flag === 1) {
|
||||
flag = 1
|
||||
} else {
|
||||
this.$message.warning(this.$t('operatethisbutton'))
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 2
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if(item.state !== '已提交' && item.state !== '变更') {
|
||||
this.NotSelectedRowKeysValue.push(item)
|
||||
flag = 0
|
||||
}
|
||||
}
|
||||
}else {
|
||||
this.$message.warning(this.$t('operatethisbutton'))
|
||||
})
|
||||
}
|
||||
return flag
|
||||
},
|
||||
// 填写人 截至时间 权限
|
||||
// 仅仅状态为 可以截至时间
|
||||
// todo 此状态为错误的
|
||||
dreTaskCutOffTimeLibrary() {
|
||||
// 定义开关 0为没有权限 1为有权限
|
||||
this.NotSelectedRowKeysValue = []
|
||||
let flag = 1
|
||||
if(this.dre) {
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 0
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if(item.state !== '') {
|
||||
flag = 0
|
||||
}
|
||||
})
|
||||
if(flag === 1) {
|
||||
flag = 1
|
||||
} else {
|
||||
this.$message.warning(this.$t('operatethisbutton'))
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 2
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if(item.state !== '已提交' && item.state !== '变更') {
|
||||
this.NotSelectedRowKeysValue.push(item)
|
||||
flag = 0
|
||||
}
|
||||
}
|
||||
}else {
|
||||
this.$message.warning(this.$t('operatethisbutton'))
|
||||
})
|
||||
}
|
||||
return flag
|
||||
},
|
||||
// 认证工程师 强制撤回 权限
|
||||
// 仅仅状态为 待工程接口人处理 填写人退回 可以强制撤回
|
||||
homoJurisdictionCompulsoryWithdrawal() {
|
||||
// 定义开关 0为没有权限 1为有权限
|
||||
let flag = 1
|
||||
if(this.homo && this.sdt == 0) {
|
||||
// 仅为认证工程师
|
||||
// 认证工程师 已提交
|
||||
if(currentPersonRole =='homo') {
|
||||
this.NotSelectedRowKeysValue = []
|
||||
// 定义开关 0为没有权限 1为有权限
|
||||
let flag = 1
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 0
|
||||
this.$message.success(this.$t('selectLeastOne'))
|
||||
flag = 2
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if(item.state !== '待工程接口人处理' && item.state !== '填写人退回') {
|
||||
this.NotSelectedRowKeysValue.push(item)
|
||||
this.jurisdiction = 'homoQZTH'
|
||||
flag = 0
|
||||
}
|
||||
})
|
||||
if(flag === 1) {
|
||||
flag = 1
|
||||
} else {
|
||||
this.$message.warning(this.$t('certifiedEngineer')+this.$t('Statusis')+this.$t('handledInterface')+this.$t('Filledreturn')+this.$t('toHavePermission'))
|
||||
}
|
||||
}
|
||||
// 工程接口人 强制撤回 权限
|
||||
// 仅仅状态为 待填写 可以强制撤回
|
||||
}else if(this.sdt && this.homo == 0){
|
||||
// 仅为工程接口人
|
||||
return flag
|
||||
// 工程接口人 强制撤回 权限
|
||||
// 仅仅状态为 待填写 可以强制撤回
|
||||
}else if(currentPersonRole =='sdt') {
|
||||
this.NotSelectedRowKeysValue = []
|
||||
// 定义开关 0为没有权限 1为有权限
|
||||
let flag = 1
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 0
|
||||
flag = 2
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if(item.state !== '待填写') {
|
||||
this.NotSelectedRowKeysValue.push(item)
|
||||
this.jurisdiction = 'sdtQZTH'
|
||||
flag = 0
|
||||
}
|
||||
})
|
||||
if(flag === 1) {
|
||||
flag = 1
|
||||
} else {
|
||||
this.$message.warning(this.$t('engineeringInterfacePerson')+this.$t('and')+this.$t('Statusis')+this.$t('completed')+this.$t('toHavePermission'))
|
||||
}
|
||||
}
|
||||
} else if(this.sdt && this.homo ) {
|
||||
// 认证工程师和工程接口人
|
||||
return flag
|
||||
//填写人 已提交
|
||||
}else if(currentPersonRole =='dre') {
|
||||
this.NotSelectedRowKeysValue = []
|
||||
// 定义开关 0为没有权限 1为有权限
|
||||
let flag = 1
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 0
|
||||
this.$message.success(this.$t('selectLeastOne'))
|
||||
flag = 2
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if(item.state !== '待工程接口人处理' && item.state !== '填写人退回' && item.state !== '待填写') {
|
||||
if(item.state !== '已提交') {
|
||||
this.NotSelectedRowKeysValue.push(item)
|
||||
this.jurisdiction = 'dreQZTH'
|
||||
flag = 0
|
||||
}
|
||||
})
|
||||
if(flag === 1) {
|
||||
flag = 1
|
||||
} else {
|
||||
this.$message.warning(this.$t('certifiedEngineer')+this.$t('Statusis')+this.$t('handledInterface')+this.$t('Filledreturn')+this.$t('engineeringInterfacePerson')+this.$t('completed')+this.$t('toHavePermission'))
|
||||
}
|
||||
}
|
||||
} else {
|
||||
flag = 0
|
||||
this.$message.warning(this.$t('operatethisbutton'))
|
||||
return flag
|
||||
}
|
||||
return flag
|
||||
},
|
||||
// 工程接口人 分配填写人 权限
|
||||
// 仅仅状态为 待工程接口人处理 填写人退回 可以分配填写人
|
||||
sdtJurisdictionAssigned() {
|
||||
// 定义开关 0为没有权限 1为有权限
|
||||
this.NotSelectedRowKeysValue = []
|
||||
let flag = 1
|
||||
if(this.sdt) {
|
||||
if (this.selectedRowKeysValue.length == 0) {
|
||||
flag = 0
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if (item.state !== '待工程接口人处理' && item.state !== '填写人退回') {
|
||||
flag = 0
|
||||
}
|
||||
})
|
||||
if (flag === 1) {
|
||||
flag = 1
|
||||
} else {
|
||||
this.$message.warning(this.$t('operatethisbutton'))
|
||||
}
|
||||
}
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 2
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.$message.success(this.$t('operatethisbutton'))
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if(item.state !== '待工程接口人处理' && item.state !== '填写人退回') {
|
||||
this.NotSelectedRowKeysValue.push(item)
|
||||
flag = 0
|
||||
}
|
||||
})
|
||||
}
|
||||
return flag
|
||||
},
|
||||
@@ -697,58 +699,44 @@ export default {
|
||||
// 仅仅状态为 待填写 认证工程师退回 可以提交
|
||||
dreJurisdictionSubmit() {
|
||||
// 定义开关 0为没有权限 1为有权限
|
||||
this.NotSelectedRowKeysValue = []
|
||||
let flag = 1
|
||||
if(this.dre) {
|
||||
if (this.selectedRowKeysValue.length == 0) {
|
||||
flag = 0
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if (item.state !== '待填写' && item.state !== '认证工程师退回') {
|
||||
flag = 0
|
||||
}
|
||||
})
|
||||
if (flag === 1) {
|
||||
flag = 1
|
||||
} else {
|
||||
this.$message.warning(this.$t('operatethisbutton'))
|
||||
}
|
||||
}
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 2
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.$message.success(this.$t('operatethisbutton'))
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if(item.state !== '待填写' && item.state !== '认证工程师退回') {
|
||||
this.NotSelectedRowKeysValue.push(item)
|
||||
flag = 0
|
||||
}
|
||||
})
|
||||
}
|
||||
return flag
|
||||
},
|
||||
// 填写人 引用参数 权限
|
||||
// 仅仅状态为 待填写 认证工程师退回 可以引用参数
|
||||
dreJurisdictionreferenceParameter() {
|
||||
// 定义开关 0为没有权限 1为有权限
|
||||
this.NotSelectedRowKeysValue = []
|
||||
let flag = 1
|
||||
if(this.dre) {
|
||||
if (this.selectedRowKeysValue.length == 0) {
|
||||
flag = 0
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if (item.state !== '待填写' && item.state !== '认证工程师退回') {
|
||||
flag = 0
|
||||
}
|
||||
})
|
||||
if (flag === 1) {
|
||||
flag = 1
|
||||
} else {
|
||||
this.$message.warning(this.$t('operatethisbutton'))
|
||||
}
|
||||
}
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 2
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.$message.success(this.$t('operatethisbutton'))
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if(item.state !== '待填写' && item.state !== '认证工程师退回') {
|
||||
this.NotSelectedRowKeysValue.push(item)
|
||||
flag = 0
|
||||
}
|
||||
})
|
||||
}
|
||||
return flag
|
||||
},
|
||||
LoginUserType(val) {
|
||||
console.log(val)
|
||||
this.RoleType = []
|
||||
this.currentPersonRole = val.length > 1 ? val[0].value : ''
|
||||
if(this.currentPersonRole == '') {
|
||||
this.currentPersonRole = val.length > 1 ? val[0].value : ''
|
||||
}
|
||||
this.RoleType = val
|
||||
this.formInlineRoleSwitching.roleSwitchingCode = this.currentPersonRole
|
||||
this.formInlineRoleSwitching = {...this.formInlineRoleSwitching}
|
||||
@@ -764,15 +752,11 @@ export default {
|
||||
},
|
||||
// 冻结配置
|
||||
freezeConfiguration() {
|
||||
if(this.homo) {
|
||||
// 认证工程师 任意状态 都有此权限
|
||||
this.areaVisibleFreeze = true
|
||||
this.Dateline = {}
|
||||
// 获取冻结配置数据
|
||||
this.getFreeze()
|
||||
} else {
|
||||
this.$message.warning(this.$t('operatethisbutton'))
|
||||
}
|
||||
},
|
||||
// 冻结配置提交
|
||||
handleSubmitFreeze() {
|
||||
@@ -851,7 +835,7 @@ export default {
|
||||
this.distributionAndCollection()
|
||||
} else if(homodistributionAndCollection == 0){
|
||||
this.visibleoperationFailed = true
|
||||
console.log(this.NotSelectedRowKeysValue,'!===')
|
||||
this.jurisdiction = 'HOMOZFSJ'
|
||||
}
|
||||
},
|
||||
// 下发收集---请求接口
|
||||
@@ -895,8 +879,11 @@ export default {
|
||||
// 同步上报库 权限
|
||||
handleSynchronousReportLibraryJurisdiction() {
|
||||
let homoJurisdictionSynchronousLibrary = this.homoJurisdictionSynchronousLibrary()
|
||||
if(homoJurisdictionSynchronousLibrary) {
|
||||
if(homoJurisdictionSynchronousLibrary == 1) {
|
||||
this.handleSynchronousReportLibrary()
|
||||
} else if(homoJurisdictionSynchronousLibrary == 0) {
|
||||
this.visibleoperationFailed = true
|
||||
this.jurisdiction = 'HOMOTBSBK'
|
||||
}
|
||||
},
|
||||
// 同步上报库
|
||||
@@ -910,54 +897,56 @@ export default {
|
||||
},
|
||||
// 提交
|
||||
handleSubmit() {
|
||||
// 先判断提交权限
|
||||
if(this.dre) {
|
||||
// 填写人 权限
|
||||
let dreJurisdictionSubmit = this.dreJurisdictionSubmit()
|
||||
if(dreJurisdictionSubmit) {
|
||||
// 提交数据
|
||||
let postDate = []
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
let postDateobj = {}
|
||||
Object.keys(item).forEach((itemIn, index) => {
|
||||
if(itemIn !== 'sdt') {
|
||||
if(item[itemIn] instanceof Object) {
|
||||
postDateobj[itemIn] = item[itemIn]
|
||||
item[itemIn].list.forEach((item,index) => {
|
||||
if(item.type == 'pull_more'){
|
||||
item.dataValue = item.dataValue.join(',')
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
postDateobj.id = item.id
|
||||
postDate.push(postDateobj)
|
||||
})
|
||||
let configDataList = { configDataList: postDate }
|
||||
if(this.selectedRowKeys.length == 0) {
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
}else {
|
||||
postAction(this.url.add, configDataList).then((res) => {
|
||||
if (res.success) {
|
||||
this.GetgetTableList()
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
} else {
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
}
|
||||
if(dreJurisdictionSubmit == 1) {
|
||||
this.ishandleSubmit()
|
||||
} else if(dreJurisdictionSubmit == 0) {
|
||||
this.visibleoperationFailed = true
|
||||
this.jurisdiction = 'DREYYCS'
|
||||
}
|
||||
} else {
|
||||
// 认证工程师 工程接口人 任意状态 都无此权限
|
||||
this.$message.warning(this.$t('operatethisbutton'))
|
||||
},
|
||||
// 提交数据
|
||||
ishandleSubmit() {
|
||||
let postDate = []
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
let postDateobj = {}
|
||||
Object.keys(item).forEach((itemIn, index) => {
|
||||
if(itemIn !== 'sdt') {
|
||||
if(item[itemIn] instanceof Object) {
|
||||
postDateobj[itemIn] = item[itemIn]
|
||||
item[itemIn].list.forEach((item,index) => {
|
||||
if(item.type == 'pull_more'){
|
||||
item.dataValue = item.dataValue.join(',')
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
postDateobj.id = item.id
|
||||
postDate.push(postDateobj)
|
||||
})
|
||||
let configDataList = { configDataList: postDate }
|
||||
if(this.selectedRowKeys.length == 0) {
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
}else {
|
||||
postAction(this.url.add, configDataList).then((res) => {
|
||||
if (res.success) {
|
||||
this.GetgetTableList()
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
} else {
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
returnDataJurisdiction() {
|
||||
// 退回的状态权限
|
||||
let homoJurisdictionReturn = this.homoJurisdictionReturn()
|
||||
if (homoJurisdictionReturn) {
|
||||
if (homoJurisdictionReturn == 1) {
|
||||
this.returnData()
|
||||
} else if(homoJurisdictionReturn == 0) {
|
||||
this.visibleoperationFailed = true
|
||||
}
|
||||
},
|
||||
// 退回
|
||||
@@ -999,10 +988,13 @@ export default {
|
||||
console.log(error);
|
||||
});
|
||||
},
|
||||
// 强制撤回权限
|
||||
compulsoryWithdrawaljurisdiction() {
|
||||
let homoJurisdictionCompulsoryWithdrawal = this.homoJurisdictionCompulsoryWithdrawal()
|
||||
if(homoJurisdictionCompulsoryWithdrawal) {
|
||||
if(homoJurisdictionCompulsoryWithdrawal === 1) {
|
||||
this.compulsoryWithdrawal()
|
||||
} else if(homoJurisdictionCompulsoryWithdrawal === 0) {
|
||||
this.visibleoperationFailed = true
|
||||
}
|
||||
},
|
||||
// 强制撤回
|
||||
@@ -1045,19 +1037,13 @@ export default {
|
||||
},
|
||||
// 分配填写人
|
||||
assignedBy() {
|
||||
if(this.sdt) {
|
||||
// 工程接口人
|
||||
let sdtJurisdictionAssigned = this.sdtJurisdictionAssigned()
|
||||
if(sdtJurisdictionAssigned) {
|
||||
this.areaVisibleAssignedby = true
|
||||
}
|
||||
return
|
||||
} else if(this.homo) {
|
||||
// 认证工程师 任意状态 都无此权限
|
||||
this.$message.warning(this.$t('operatethisbutton'))
|
||||
}else if(this.dre) {
|
||||
// 填写人 任意状态 都无此权限
|
||||
this.$message.warning(this.$t('operatethisbutton'))
|
||||
// 工程接口人
|
||||
let sdtJurisdictionAssigned = this.sdtJurisdictionAssigned()
|
||||
if(sdtJurisdictionAssigned == 1) {
|
||||
this.areaVisibleAssignedby = true
|
||||
} else if(sdtJurisdictionAssigned == 0) {
|
||||
this.visibleoperationFailed = true
|
||||
this.jurisdiction = 'SDTFPTXR'
|
||||
}
|
||||
},
|
||||
// 分配填写人确定后弹框关闭
|
||||
@@ -1066,15 +1052,13 @@ export default {
|
||||
},
|
||||
// 截止时间
|
||||
TaskCutOffTimeLibrary() {
|
||||
if(this.dre || this.sdt) {
|
||||
// 工程接口人 填写人 均无此权限
|
||||
this.$message.warning(this.$t('operatethisbutton'))
|
||||
} else {
|
||||
let dreTaskCutOffTimeLibrary = this.dreTaskCutOffTimeLibrary()
|
||||
if(dreTaskCutOffTimeLibrary) {
|
||||
if(dreTaskCutOffTimeLibrary == 1) {
|
||||
this.areaVisibleTaskCutOffTime = true
|
||||
}else if(dreTaskCutOffTimeLibrary == 0) {
|
||||
this.visibleoperationFailed = true
|
||||
this.jurisdiction = 'HOMOJZSJ'
|
||||
}
|
||||
}
|
||||
},
|
||||
// 截至时间确定弹框关闭
|
||||
areaVisibleTaskCutOffTimeflag(val) {
|
||||
@@ -1083,12 +1067,12 @@ export default {
|
||||
},
|
||||
//引用参数
|
||||
referenceparameter() {
|
||||
if(this.dre){
|
||||
// 填写人的权限
|
||||
let dreJurisdictionreferenceParameter = this.dreJurisdictionreferenceParameter()
|
||||
if(dreJurisdictionreferenceParameter) {
|
||||
this.areaVisiblereferenceparameter = true
|
||||
}
|
||||
let dreJurisdictionreferenceParameter = this.dreJurisdictionreferenceParameter()
|
||||
if(dreJurisdictionreferenceParameter == 1) {
|
||||
this.areaVisiblereferenceparameter = true
|
||||
} else if(dreJurisdictionreferenceParameter == 0) {
|
||||
this.visibleoperationFailed = true
|
||||
this.jurisdiction = 'DREYYCS'
|
||||
}
|
||||
},
|
||||
listReset() {
|
||||
@@ -1107,10 +1091,14 @@ export default {
|
||||
searchReset() {
|
||||
this.$refs.CollectionTabel.getTableListReset()
|
||||
},
|
||||
// 批量删除 -- 与下发收集一致
|
||||
handleDelJurisdiction() {
|
||||
let homoJurisdictionBatchdelete = this.homoJurisdictionBatchdelete()
|
||||
if (homoJurisdictionBatchdelete) {
|
||||
if (homoJurisdictionBatchdelete == 1) {
|
||||
this.handleDel()
|
||||
} else if(homoJurisdictionBatchdelete == 0) {
|
||||
this.visibleoperationFailed = true
|
||||
this.jurisdiction = 'HOMOZFSJ'
|
||||
}
|
||||
},
|
||||
handleDel() {
|
||||
|
||||
Reference in New Issue
Block a user