Browse Source

qms修改

master
shenzhouyu 2 months ago
parent
commit
ec418ca3bd
  1. 3
      src/api/qc/qc.js
  2. 28
      src/views/modules/qc/FAIResultEntry.vue
  3. 28
      src/views/modules/qc/FQCResultEntry.vue
  4. 28
      src/views/modules/qc/IPQCResultEntry.vue
  5. 4
      src/views/modules/qc/SQCResultEntry.vue

3
src/api/qc/qc.js

@ -199,6 +199,9 @@ export const disposalMeasuresSearch = data => createAPI(`/pms/qc/disposalMeasure
export const searchItemFileUrl = data => createAPI(`/pms/qc/searchItemFileUrl`,'post',data)
export const imageDelete = data => createAPI(`/pms/qc/imageDelete`,'post',data)
export const iqcRecordOverLoad = data => createAPI(`/pms/qc/iqcRecordOverLoad`,'post',data)
export const faiRecordOverLoad = data => createAPI(`/pms/qc/faiRecordOverLoad`,'post',data)
export const ipqcRecordOverLoad = data => createAPI(`/pms/qc/ipqcRecordOverLoad`,'post',data)
export const fqcRecordOverLoad = data => createAPI(`/pms/qc/fqcRecordOverLoad`,'post',data)
export const uploadSopFile = data => createAPI(`/pms/qc/upload`,'post',data)
export const getSiteAndBuByUserName = data => createAPI(`/pms/qc/getSiteAndBuByUserName`,'post',data)
export const searchSeqInfo = data => createAPI(`/pms/qc/searchSeqInfo`,'post',data)

28
src/views/modules/qc/FAIResultEntry.vue

@ -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

28
src/views/modules/qc/FQCResultEntry.vue

@ -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()"
@ -919,6 +920,7 @@
getFQCItemObjectList, //
dataAcquisitionByItem, //
cancelApproval2, //
fqcRecordOverLoad, //
searchPartAttributeDetails, //
} from "@/api/qc/qc.js"
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js"
@ -2268,6 +2270,7 @@
authCheck: false,
authCancelCheck: false,
authDelete: false,
authOverLoad: false,
authDetail: false,
authFile: false,
menuId: this.$route.meta.menuId,
@ -3389,6 +3392,29 @@
})
},
//
overLoadModal () {
if (this.FAISelections.length === 0) {
this.$message.warning('请勾选要重载的检验单!')
return
}
this.$confirm(`确认重载选中的检验单?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
fqcRecordOverLoad({ 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) {
@ -4136,11 +4162,13 @@
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

28
src/views/modules/qc/IPQCResultEntry.vue

@ -91,6 +91,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()"
@ -938,6 +939,7 @@
getIPQCItemObjectList, //
dataAcquisitionByItem, //
cancelApproval2, //
ipqcRecordOverLoad, //
searchPartAttributeDetails, //
} from "@/api/qc/qc.js"
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js"
@ -2340,6 +2342,7 @@
authCheck: false,
authCancelCheck: false,
authDelete: false,
authOverLoad: false,
authDetail: false,
authFile: false,
menuId: this.$route.meta.menuId,
@ -3465,6 +3468,29 @@
})
},
//
overLoadModal () {
if (this.IPQCSelections.length === 0) {
this.$message.warning('请勾选要重载的检验单!')
return
}
this.$confirm(`确认重载选中的检验单?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
ipqcRecordOverLoad({ submitList: this.IPQCSelections }).then(({data}) => {
if (data && data.code === 0) {
this.$message.success('操作成功')
this.getDataList()
this.IPQCSelections = []
} else {
this.$message.warning(data.msg || '操作失败')
}
})
}).catch(() => {})
},
Transfer (type) {
if (type === '2') {
if (this.detailData.inspectionResult === '' || this.detailData.inspectionResult == null) {
@ -4202,11 +4228,13 @@
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

4
src/views/modules/qc/SQCResultEntry.vue

@ -91,7 +91,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 v-if="!authOverLoad" type="primary" @click="overLoadModal">任务重载</el-button>
<el-button type="primary" @click="printList">打印</el-button>
<download-excel
:fields="fields()"
@ -1880,9 +1880,11 @@
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.authDelete = !deleteFlag
this.authOverLoad = !overLoadFlag
this.authDetail = !detailFlag
this.authFile = !fileFlag
this.authCancelCheck = !cancelCheckFlag

Loading…
Cancel
Save