Browse Source

0412 新看板

master
ruanqi 3 years ago
parent
commit
2c062c0105
  1. 2
      src/api/taskmanage/tasklist.js
  2. 15
      src/views/modules/production/cancelSfdc.vue
  3. 3
      src/views/modules/production/generateReport.vue
  4. 25
      src/views/modules/production/scheduleForSOTask.vue
  5. 16
      src/views/modules/production/scheduleForShopOrder.vue
  6. 10
      src/views/modules/taskmanage/mysendtasklist.vue
  7. 12
      src/views/modules/taskmanage/mytasklist.vue
  8. 58
      src/views/modules/taskmanage/taskReport.vue

2
src/api/taskmanage/tasklist.js

@ -19,4 +19,4 @@ export const getTaskDetailList = data => createAPI(`taskmanage/taskDetail/taskDe
export const updateTaskDetail = data => createAPI(`taskmanage/taskDetail/updateTaskDetail`, 'post', data); export const updateTaskDetail = data => createAPI(`taskmanage/taskDetail/updateTaskDetail`, 'post', data);
export const getTaskDetailListBoard= data => createAPI(`board/getTaskDetailListBoard`, 'post', data);

15
src/views/modules/production/cancelSfdc.vue

@ -168,8 +168,7 @@
<el-button type="primary" @click="defectModalFlag = false">关闭</el-button> <el-button type="primary" @click="defectModalFlag = false">关闭</el-button>
</el-footer> </el-footer>
</el-dialog> </el-dialog>
<!-- 动态列 -->
<column v-if="visible" ref="column" @refreshData="getTableUserColumn" v-drag></column>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
</div> </div>
@ -182,17 +181,7 @@
} from '@/api/production/generateReport.js' } from '@/api/production/generateReport.js'
import Chooselist from '@/views/modules/common/Chooselist' import Chooselist from '@/views/modules/common/Chooselist'
import {
saveTableDefaultList,
getTableDefaultListLanguage,
getTableUserListLanguage,
removerDefault,
removerUser
} from "@/api/table.js"
import column from "../common/column";
// import {
// printSeqNoLabel,
// } from "@/views/modules/production/print_seqNo_label.js"
export default { export default {
name: 'searchSOScheduleRouting', name: 'searchSOScheduleRouting',

3
src/views/modules/production/generateReport.vue

@ -966,7 +966,8 @@
this.qty2 =''; this.qty2 ='';
this.saveHeaderData.planStartTime = this.dayjs(new Date()).format('YYYY-MM-DD 00:00:00') this.saveHeaderData.planStartTime = this.dayjs(new Date()).format('YYYY-MM-DD 00:00:00')
this.saveHeaderData.planFinishTime = this.dayjs(new Date()).format('YYYY-MM-DD 00:00:00') this.saveHeaderData.planFinishTime = this.dayjs(new Date()).format('YYYY-MM-DD 00:00:00')
searchReportedQty(this.saveHeaderData).then(({data}) => {
(this.saveHeaderData).then(({data}) => {
if(data.code===0) { if(data.code===0) {
this.cavity= data.row.cavity this.cavity= data.row.cavity
this.qty1 = data.row.qtyReported; this.qty1 = data.row.qtyReported;

25
src/views/modules/production/scheduleForSOTask.vue

@ -498,6 +498,7 @@
orderDate:'', orderDate:'',
operatorId:'', operatorId:'',
efficiency:'', efficiency:'',
partPlanQty:'',
}, },
scheduledModalFlag: false, scheduledModalFlag: false,
availableResourceList: [], availableResourceList: [],
@ -571,6 +572,7 @@
} }
this.schedulingModalData = { this.schedulingModalData = {
weightFactor: row.weightFactor, weightFactor: row.weightFactor,
partPlanQty: row.partPlanQty,
orderNo: row.orderNo, orderNo: row.orderNo,
site: row.site, site: row.site,
orderRef1: row.orderRef1, orderRef1: row.orderRef1,
@ -615,13 +617,22 @@
// }) // })
// return false // return false
// } // }
this.schedulingModalTableData.push({
scheduleQty: '',
resourceId: this.schedulingModalData.resourceId,
shiftNo: this.schedulingModalData.shiftNo,
scheduleDate: null,
operatorId:this.schedulingModalData.operatorId,
})
let data={
scheduleQty: '',
weight:'',
resourceId: this.schedulingModalData.resourceId,
shiftNo: this.schedulingModalData.shiftNo,
scheduleDate: null,
operatorId:this.schedulingModalData.operatorId,
}
if(this.schedulingModalData.partPlanQty!=null&&this.schedulingModalData.partPlanQty!=''&&this.schedulingModalData.partPlanQty!=0){
data.scheduleQty=this.schedulingModalData.partPlanQty;
if(this.schedulingModalData.weightFactor==null||this.schedulingModalData.weightFactor==''||this.schedulingModalData.weightFactor=='0'){
}else {
data.weight=Math.round( data.scheduleQty*this.schedulingModalData.weightFactor)
}
}
this.schedulingModalTableData.push(data)
this.sumQty += this.schedulingModalData.scheduleQty this.sumQty += this.schedulingModalData.scheduleQty
}, },
changeSum () { changeSum () {

16
src/views/modules/production/scheduleForShopOrder.vue

@ -560,6 +560,7 @@
efficiency:'', efficiency:'',
qty1:'', qty1:'',
lastApproveQty:'', lastApproveQty:'',
partPlanQty:'',
}, },
scheduledModalFlag: false, scheduledModalFlag: false,
availableResourceList: [], availableResourceList: [],
@ -628,6 +629,7 @@
} }
this.schedulingModalData = { this.schedulingModalData = {
weightFactor: row.weightFactor, weightFactor: row.weightFactor,
partPlanQty: row.partPlanQty,
orderNo: row.orderNo, orderNo: row.orderNo,
site: row.site, site: row.site,
needDate: row.needDate, needDate: row.needDate,
@ -684,14 +686,22 @@
// }) // })
// return false // return false
// } // }
this.schedulingModalTableData.push({
let data={
scheduleQty: '', scheduleQty: '',
weight:'',
resourceId: this.schedulingModalData.resourceId, resourceId: this.schedulingModalData.resourceId,
shiftNo: this.schedulingModalData.shiftNo, shiftNo: this.schedulingModalData.shiftNo,
scheduleDate: null, scheduleDate: null,
operatorId:this.schedulingModalData.operatorId, operatorId:this.schedulingModalData.operatorId,
weight:'',
})
}
if(this.schedulingModalData.partPlanQty!=null&&this.schedulingModalData.partPlanQty!=''&&this.schedulingModalData.partPlanQty!=0){
data.scheduleQty=this.schedulingModalData.partPlanQty;
if(this.schedulingModalData.weightFactor==null||this.schedulingModalData.weightFactor==''||this.schedulingModalData.weightFactor=='0'){
}else {
data.weight=Math.round( data.scheduleQty*this.schedulingModalData.weightFactor)
}
}
this.schedulingModalTableData.push(data)
this.sumQty += this.schedulingModalData.scheduleQty this.sumQty += this.schedulingModalData.scheduleQty
}, },
changeSum () { changeSum () {

10
src/views/modules/taskmanage/mysendtasklist.vue

@ -85,6 +85,7 @@
border border
:height="height" :height="height"
v-loading="dataListLoading" v-loading="dataListLoading"
:row-class-name="tableRowClassName"
@selection-change="selectionChangeHandle" @selection-change="selectionChangeHandle"
highlight-current-row highlight-current-row
style="width: 100%;"> style="width: 100%;">
@ -558,6 +559,11 @@
}) })
}) })
}, },
tableRowClassName({row, rowIndex}) {
if (row.chatLastType == '有新回复'&&row.finalStatus=='未完成') {
return 'newChat'
}
},
// / // /
addOrUpdateHandle(id) { addOrUpdateHandle(id) {
this.addOrUpdateVisible = true this.addOrUpdateVisible = true
@ -587,5 +593,7 @@
} }
</script> </script>
<style> <style>
.mod-config .newChat {
background-color: #00d9ff;
}
</style> </style>

12
src/views/modules/taskmanage/mytasklist.vue

@ -78,6 +78,7 @@
border border
:height="height" :height="height"
v-loading="dataListLoading" v-loading="dataListLoading"
:row-class-name="tableRowClassName"
@selection-change="selectionChangeHandle" @selection-change="selectionChangeHandle"
highlight-current-row highlight-current-row
style="width: 100%;"> style="width: 100%;">
@ -466,6 +467,11 @@
}) })
}, },
methods: { methods: {
tableRowClassName({row, rowIndex}) {
if (row.chatLastType == '有新消息'&&row.finalStatus=='未完成') {
return 'newChat'
}
},
// //
getDataList() { getDataList() {
this.dataListLoading = true this.dataListLoading = true
@ -564,6 +570,8 @@
} }
} }
</script> </script>
<style>
<style >
.mod-config .newChat {
background-color: #00d9ff;
}
</style> </style>

58
src/views/modules/taskmanage/taskReport.vue

@ -45,7 +45,7 @@
</template> </template>
<script> <script>
import {getTaskDetailList} from '@/api/taskmanage/tasklist.js'
import {getTaskDetailListBoard} from '@/api/taskmanage/tasklist.js'
let domTimer = '' // let domTimer = '' //
let dataTimer = '' // let dataTimer = '' //
@ -68,8 +68,11 @@ export default {
finishStartDate: '', finishStartDate: '',
finishEndDate: '', finishEndDate: '',
status: '', status: '',
ipAddress: this.$route.query.ip
ipAddress: this.$route.query.ip,
number:'',
}, },
pageIndex: 1,
totalPage: 1,
// //
columnList: [ columnList: [
{ {
@ -221,9 +224,16 @@ export default {
// //
getDataList() { getDataList() {
getTaskDetailList(this.dataForm).then(({data}) => {
if (data && data.code === 0) {
this.dataList = data.data
this.dataForm.number=this.pageIndex;
getTaskDetailListBoard(this.dataForm).then(({data}) => {
if (data && data.code === 200) {
this.dataList = data.rows
this.totalPage= data.maxPage;
if(this.pageIndex+1>data.maxPage){
this.pageIndex=1
}else {
this.pageIndex=this.pageIndex+1
}
} else { } else {
this.dataList = [] this.dataList = []
} }
@ -245,50 +255,16 @@ export default {
} }
// return '' // return ''
}, },
//
mouseEnter(time) {
//
this.autoRoll(true)
},
//
mouseLeave() {
//
this.autoRoll()
},
//
autoRoll(stop) {
if (stop) {
clearInterval(domTimer)
return
}
this.$nextTick(() => {
// DOM
const table = this.$refs.task_table
// div
const divData = table.bodyWrapper
//
domTimer = setInterval(() => {
//
divData.scrollTop = this.decimalUtil.add(Number(divData.scrollTop), Number(this.rollPx))
// (+=)
if (divData.clientHeight + divData.scrollTop + 1 >= divData.scrollHeight) {
// table
divData.scrollTop = 0
}
}, this.rollTime * 10)
})
},
}, },
created() { created() {
this.autoRoll()
this.getDataList()
dataTimer = setInterval(() => { dataTimer = setInterval(() => {
this.getDataList() this.getDataList()
}, 3000)
}, 30000)
}, },
beforeUnmount() { beforeUnmount() {
clearInterval(dataTimer) clearInterval(dataTimer)
clearInterval(domTimer)
} }
} }
</script> </script>

Loading…
Cancel
Save