Browse Source

2025-01-08

维修工单增加待确认
java8
fengyuan_yang 1 year ago
parent
commit
24c8e1b6c3
  1. 4
      src/views/modules/eam/eamWorkOrderForDefect.vue
  2. 9
      src/views/modules/qc/FAIResultEntry.vue
  3. 9
      src/views/modules/qc/FQCResultEntry.vue
  4. 9
      src/views/modules/qc/IPQCResultEntry.vue
  5. 13
      src/views/modules/qc/IQCResultEntry.vue
  6. 18
      src/views/modules/qc/qcItem.vue
  7. 12
      src/views/modules/reportWorkOrder/reportDefectOrder.vue

4
src/views/modules/eam/eamWorkOrderForDefect.vue

@ -49,6 +49,8 @@
<el-form-item :label="'状态'"> <el-form-item :label="'状态'">
<el-select v-model="searchData.status" clearable style="width: 100px"> <el-select v-model="searchData.status" clearable style="width: 100px">
<el-option label="未开工" value="未开工"></el-option> <el-option label="未开工" value="未开工"></el-option>
<el-option label="已到达" value="已到达"></el-option>
<el-option label="待确认" value="待确认"></el-option>
<el-option label="待审核" value="待审核"></el-option> <el-option label="待审核" value="待审核"></el-option>
<el-option label="已完工" value="已完工"></el-option> <el-option label="已完工" value="已完工"></el-option>
<el-option label="已取消" value="已取消"></el-option> <el-option label="已取消" value="已取消"></el-option>
@ -61,7 +63,7 @@
<el-option label="维修失败" value="维修失败"></el-option> <el-option label="维修失败" value="维修失败"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="'计划执行日期'">
<el-form-item :label="'计划执行日期'">
<el-date-picker <el-date-picker
style="width: 120px" style="width: 120px"
v-model="searchData.startDate" v-model="searchData.startDate"

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

@ -517,8 +517,8 @@
</el-table> </el-table>
</div> </div>
<el-footer style="height:40px;margin-top: 20px;text-align:center"> <el-footer style="height:40px;margin-top: 20px;text-align:center">
<el-button v-if="detailData.state === '待检验'" type="primary" @click="Transfer('1')">应用</el-button>
<el-button v-if="detailData.state === '待检验' || detailData.state === '待审核'" type="primary" @click="Transfer('2')">保存</el-button>
<el-button v-if="detailData.state === '待检验'" type="primary" :loading="transferLoadFlag" @click="Transfer('1')">应用</el-button>
<el-button v-if="detailData.state === '待检验' || detailData.state === '待审核'" type="primary" :loading="transferLoadFlag" @click="Transfer('2')">保存</el-button>
<el-button type="primary" @click="detailInformationFlag=false">关闭</el-button> <el-button type="primary" @click="detailInformationFlag=false">关闭</el-button>
</el-footer> </el-footer>
</el-dialog> </el-dialog>
@ -998,6 +998,7 @@
data () { data () {
return { return {
loadFlag: false, loadFlag: false,
transferLoadFlag: false,
inspectionNo: '', inspectionNo: '',
fileFlag: false, fileFlag: false,
fileContentList: [], fileContentList: [],
@ -3418,6 +3419,7 @@
this.saveInformationData.responsiblePerson = this.detailData.responsiblePerson this.saveInformationData.responsiblePerson = this.detailData.responsiblePerson
this.saveInformationData.itemList = JSON.parse(JSON.stringify(this.detailList)) this.saveInformationData.itemList = JSON.parse(JSON.stringify(this.detailList))
this.saveInformationData.type = type this.saveInformationData.type = type
this.transferLoadFlag = true
// this.saveInformationData.subDetailList = this.acquisitionList // this.saveInformationData.subDetailList = this.acquisitionList
saveFAIDetailedRecord(this.saveInformationData).then(({data}) => { saveFAIDetailedRecord(this.saveInformationData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
@ -3434,6 +3436,9 @@
confirmButtonText: '确定' confirmButtonText: '确定'
}) })
} }
this.transferLoadFlag = false
}).catch(()=>{
this.transferLoadFlag = false
}) })
}, },

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

@ -501,8 +501,8 @@
</el-table> </el-table>
</div> </div>
<el-footer style="height:40px;margin-top: 20px;text-align:center"> <el-footer style="height:40px;margin-top: 20px;text-align:center">
<el-button v-if="detailData.state === '待检验'" type="primary" @click="Transfer('1')">应用</el-button>
<el-button v-if="detailData.state === '待检验' || detailData.state === '待审核'" type="primary" @click="Transfer('2')">保存</el-button>
<el-button v-if="detailData.state === '待检验'" type="primary" :loading="transferLoadFlag" @click="Transfer('1')">应用</el-button>
<el-button v-if="detailData.state === '待检验' || detailData.state === '待审核'" type="primary" :loading="transferLoadFlag" @click="Transfer('2')">保存</el-button>
<el-button type="primary" @click="detailInformationFlag=false">关闭</el-button> <el-button type="primary" @click="detailInformationFlag=false">关闭</el-button>
</el-footer> </el-footer>
</el-dialog> </el-dialog>
@ -974,6 +974,7 @@
data () { data () {
return { return {
loadFlag: false, loadFlag: false,
transferLoadFlag: false,
inspectionNo: '', inspectionNo: '',
fileFlag: false, fileFlag: false,
fileContentList: [], fileContentList: [],
@ -3391,6 +3392,7 @@
this.saveInformationData.responsiblePerson = this.detailData.responsiblePerson this.saveInformationData.responsiblePerson = this.detailData.responsiblePerson
this.saveInformationData.itemList = JSON.parse(JSON.stringify(this.detailList)) this.saveInformationData.itemList = JSON.parse(JSON.stringify(this.detailList))
this.saveInformationData.type = type this.saveInformationData.type = type
this.transferLoadFlag = true
// this.saveInformationData.subDetailList = this.acquisitionList // this.saveInformationData.subDetailList = this.acquisitionList
saveFQCDetailedRecord(this.saveInformationData).then(({data}) => { saveFQCDetailedRecord(this.saveInformationData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
@ -3407,6 +3409,9 @@
confirmButtonText: '确定' confirmButtonText: '确定'
}) })
} }
this.transferLoadFlag = false
}).catch(()=>{
this.transferLoadFlag = false
}) })
}, },

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

@ -515,8 +515,8 @@
</el-table> </el-table>
</div> </div>
<el-footer style="height:40px;margin-top: 20px;text-align:center"> <el-footer style="height:40px;margin-top: 20px;text-align:center">
<el-button v-if="detailData.state === '待检验'" type="primary" @click="Transfer('1')">应用</el-button>
<el-button v-if="detailData.state === '待检验' || detailData.state === '待审核'" type="primary" @click="Transfer('2')">保存</el-button>
<el-button v-if="detailData.state === '待检验'" type="primary" :loading="transferLoadFlag" @click="Transfer('1')">应用</el-button>
<el-button v-if="detailData.state === '待检验' || detailData.state === '待审核'" type="primary" :loading="transferLoadFlag" @click="Transfer('2')">保存</el-button>
<el-button type="primary" @click="detailInformationFlag=false">关闭</el-button> <el-button type="primary" @click="detailInformationFlag=false">关闭</el-button>
</el-footer> </el-footer>
</el-dialog> </el-dialog>
@ -995,6 +995,7 @@
data () { data () {
return { return {
loadFlag: false, loadFlag: false,
transferLoadFlag: false,
inspectionNo: '', inspectionNo: '',
fileFlag: false, fileFlag: false,
fileContentList: [], fileContentList: [],
@ -3470,6 +3471,7 @@
this.saveInformationData.responsiblePerson = this.detailData.responsiblePerson this.saveInformationData.responsiblePerson = this.detailData.responsiblePerson
this.saveInformationData.itemList = JSON.parse(JSON.stringify(this.detailList)) this.saveInformationData.itemList = JSON.parse(JSON.stringify(this.detailList))
this.saveInformationData.type = type this.saveInformationData.type = type
this.transferLoadFlag = true
// this.saveInformationData.subDetailList = this.acquisitionList // this.saveInformationData.subDetailList = this.acquisitionList
saveIPQCDetailedRecord(this.saveInformationData).then(({data}) => { saveIPQCDetailedRecord(this.saveInformationData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
@ -3486,6 +3488,9 @@
confirmButtonText: '确定' confirmButtonText: '确定'
}) })
} }
this.transferLoadFlag = false
}).catch(()=>{
this.transferLoadFlag = false
}) })
}, },

13
src/views/modules/qc/IQCResultEntry.vue

@ -408,8 +408,8 @@
</el-table> </el-table>
</div> </div>
<el-footer style="height:40px;margin-top: 20px;text-align:center"> <el-footer style="height:40px;margin-top: 20px;text-align:center">
<el-button v-if="detailData.state === '待检验'" type="primary" @click="Transfer('1')">应用</el-button>
<el-button v-if="detailData.state === '待检验' || detailData.state === '待审核'" type="primary" @click="Transfer('2')">保存</el-button>
<el-button v-if="detailData.state === '待检验'" type="primary" :loading="transferLoadFlag" @click="Transfer('1')">应用</el-button>
<el-button v-if="detailData.state === '待检验' || detailData.state === '待审核'" type="primary" :loading="transferLoadFlag" @click="Transfer('2')">保存</el-button>
<el-button type="primary" @click="detailInformationFlag=false">关闭</el-button> <el-button type="primary" @click="detailInformationFlag=false">关闭</el-button>
</el-footer> </el-footer>
</el-dialog> </el-dialog>
@ -720,6 +720,7 @@
data () { data () {
return { return {
loadFlag: false, loadFlag: false,
transferLoadFlag: false,
// //
favorite: false, favorite: false,
// start // start
@ -1867,6 +1868,8 @@
}) })
} }
this.loadFlag = false this.loadFlag = false
}).catch(()=>{
this.loadFlag = false
}) })
}, },
@ -1897,6 +1900,8 @@
}) })
} }
this.loadFlag = false this.loadFlag = false
}).catch(()=>{
this.loadFlag = false
}) })
}, },
@ -2339,6 +2344,7 @@
this.saveInformationData.responsiblePerson = this.detailData.responsiblePerson this.saveInformationData.responsiblePerson = this.detailData.responsiblePerson
this.saveInformationData.itemList = JSON.parse(JSON.stringify(this.detailList)) this.saveInformationData.itemList = JSON.parse(JSON.stringify(this.detailList))
this.saveInformationData.type = type this.saveInformationData.type = type
this.transferLoadFlag = true
// this.saveInformationData.subDetailList = this.acquisitionList // this.saveInformationData.subDetailList = this.acquisitionList
saveIQCDetailedRecord(this.saveInformationData).then(({data}) => { saveIQCDetailedRecord(this.saveInformationData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
@ -2355,6 +2361,9 @@
confirmButtonText: '确定' confirmButtonText: '确定'
}) })
} }
this.transferLoadFlag = false
}).catch(()=>{
this.transferLoadFlag = false
}) })
}, },

18
src/views/modules/qc/qcItem.vue

@ -38,8 +38,8 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="' '"> <el-form-item :label="' '">
<el-button v-if="!authSearch" type="primary" @click="getDataList()">查询</el-button>
<el-button v-if="!authSave" type="primary" @click="addModal()">新增</el-button>
<el-button v-if="authSearch" type="primary" @click="getDataList()">查询</el-button>
<el-button v-if="authSave" type="primary" @click="addModal()">新增</el-button>
</el-form-item> </el-form-item>
<el-form-item :label="' '"> <el-form-item :label="' '">
<el-button type="primary" icon="el-icon-upload" @click="qcUpload()">导入</el-button> <el-button type="primary" icon="el-icon-upload" @click="qcUpload()">导入</el-button>
@ -88,8 +88,8 @@
width="160" width="160"
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="!authUpdate" type="text" size="small" @click="updateModal(scope.row)">编辑</a>
<a v-if="!authDelete" type="text" size="small" @click="deleteModal(scope.row)">删除</a>
<a v-if="authUpdate" type="text" size="small" @click="updateModal(scope.row)">编辑</a>
<a v-if="authDelete" type="text" size="small" @click="deleteModal(scope.row)">删除</a>
<a type="text" size="small" @click="itemObjectModal(scope.row)">采集设备配置</a> <a type="text" size="small" @click="itemObjectModal(scope.row)">采集设备配置</a>
</template> </template>
</el-table-column> </el-table-column>
@ -976,7 +976,7 @@
this.inspectionTypeSearch() this.inspectionTypeSearch()
// //
this.getTableUserColumn(this.$route.meta.menuId+'table',1) this.getTableUserColumn(this.$route.meta.menuId+'table',1)
if (!this.authSearch) {
if (this.authSearch) {
// //
this.getDataList() this.getDataList()
} }
@ -1597,10 +1597,10 @@
let updateFlag = this.isAuth(this.menuId+":update") let updateFlag = this.isAuth(this.menuId+":update")
let deleteFlag = this.isAuth(this.menuId+":delete") let deleteFlag = this.isAuth(this.menuId+":delete")
// //
this.authSearch = !searchFlag
this.authSave = !saveFlag
this.authUpdate = !updateFlag
this.authDelete = !deleteFlag
this.authSearch = searchFlag
this.authSave = saveFlag
this.authUpdate = updateFlag
this.authDelete = deleteFlag
}, },
} }
} }

12
src/views/modules/reportWorkOrder/reportDefectOrder.vue

@ -1824,8 +1824,8 @@
planID: row.planID, planID: row.planID,
planOperatorName: row.planOperatorName, planOperatorName: row.planOperatorName,
workTime: '', workTime: '',
remark: '',
disposalMeasures: '',
remark: row.remark,
disposalMeasures: row.disposalMeasures,
mesUser: this.$store.state.user.name, mesUser: this.$store.state.user.name,
itemList: [], itemList: [],
defectID: row.defectID, defectID: row.defectID,
@ -1837,11 +1837,11 @@
reachDate: row.reachDate, reachDate: row.reachDate,
operator: row.reachOperator, operator: row.reachOperator,
operatorName: row.reachOperatorName, operatorName: row.reachOperatorName,
handlingMethod: '',
handlingMethod: row.handlingMethod,
feedBackDesc: row.feedBackDesc, feedBackDesc: row.feedBackDesc,
faultReason: '',
preventiveMeasure: '',
result: ''
faultReason: row.faultReason,
preventiveMeasure: row.preventiveMeasure,
result: row.result
} }
this.activeTable = 'inspection_form' this.activeTable = 'inspection_form'
this.queryHistoryRecord() this.queryHistoryRecord()

Loading…
Cancel
Save