|
|
|
@ -87,6 +87,7 @@ |
|
|
|
<el-button v-if="!authCheck" type="primary" @click="submitResult">审核</el-button> |
|
|
|
<el-button v-if="!authCancelCheck" type="primary" @click="cancelApproval">取消审核</el-button> |
|
|
|
<el-button v-if="!authDelete" type="primary" @click="deleteModal">删除</el-button> |
|
|
|
<el-button v-if="!authOverLoad" type="primary" @click="overLoadModal">任务重载</el-button> |
|
|
|
<el-button type="primary" @click="printList">打印</el-button> |
|
|
|
<download-excel |
|
|
|
:fields="fields()" |
|
|
|
@ -947,6 +948,7 @@ import { |
|
|
|
getFAIItemObjectList, // 查询项目设备 |
|
|
|
dataAcquisitionByItem, // 根据项目数据采集 |
|
|
|
cancelApproval2, // 取消审核 |
|
|
|
faiRecordOverLoad, // 任务重载 |
|
|
|
searchPartAttributeDetails, // 查询物料属性模板 |
|
|
|
} from "@/api/qc/qc.js" |
|
|
|
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js" |
|
|
|
@ -2305,6 +2307,7 @@ export default { |
|
|
|
authCheck: false, |
|
|
|
authCancelCheck: false, |
|
|
|
authDelete: false, |
|
|
|
authOverLoad: false, |
|
|
|
authDetail: false, |
|
|
|
authFile: false, |
|
|
|
menuId: this.$route.meta.menuId, |
|
|
|
@ -3425,6 +3428,29 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 任务重载 |
|
|
|
overLoadModal () { |
|
|
|
if (this.FAISelections.length === 0) { |
|
|
|
this.$message.warning('请勾选要重载的检验单!') |
|
|
|
return |
|
|
|
} |
|
|
|
this.$confirm(`确认重载选中的检验单?`, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
faiRecordOverLoad({ submitList: this.FAISelections }).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.$message.success('操作成功') |
|
|
|
this.getDataList() |
|
|
|
this.FAISelections = [] |
|
|
|
} else { |
|
|
|
this.$message.warning(data.msg || '操作失败') |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => {}) |
|
|
|
}, |
|
|
|
|
|
|
|
Transfer (type) { |
|
|
|
if (type === '2') { |
|
|
|
if (this.detailData.inspectionResult === '' || this.detailData.inspectionResult == null) { |
|
|
|
@ -4168,11 +4194,13 @@ export default { |
|
|
|
let detailFlag = this.isAuth(this.menuId + ":detail") |
|
|
|
let fileFlag = this.isAuth(this.menuId + ":file") |
|
|
|
let cancelCheckFlag = this.isAuth(this.menuId + ":cancelCheck") |
|
|
|
let overLoadFlag = this.isAuth(this.menuId + ":overLoad") |
|
|
|
//处理页面的权限数据 |
|
|
|
this.authSearch = !searchFlag |
|
|
|
this.authCheck = !checkFlag |
|
|
|
this.authSave = !saveFlag |
|
|
|
this.authDelete = !deleteFlag |
|
|
|
this.authOverLoad = !overLoadFlag |
|
|
|
this.authDetail = !detailFlag |
|
|
|
this.authFile = !fileFlag |
|
|
|
this.authCancelCheck = !cancelCheckFlag |
|
|
|
|