Commit 79ed5f0e authored by kangzhenfei's avatar kangzhenfei Committed by 佟礼

工单执行

parent ef29cd01
...@@ -1117,6 +1117,8 @@ export default { ...@@ -1117,6 +1117,8 @@ export default {
resourceId: '设备', resourceId: '设备',
resourceType: '设备类型', resourceType: '设备类型',
runtime: '单件排产工时', runtime: '单件排产工时',
performancehours: '绩效工时',
setupTime: '工序准备工时', setupTime: '工序准备工时',
transportTime: '转运工时', transportTime: '转运工时',
checkTime: '检验工时', checkTime: '检验工时',
......
...@@ -366,17 +366,19 @@ export default { ...@@ -366,17 +366,19 @@ export default {
}, },
// 打开抽屉 // 打开抽屉
openDrawer() { openDrawer() {
let chekids = this.ids
let formData = this.listTask
let timebegin = formData[0].beginTime//: "2020-04-06 10:00:00"
let timend = formData[0].endTime//: "2020-04-06 10:00:00"
if (this.button2 == '设备') { if (this.button2 == '设备') {
this.entity.taskTime = [timebegin,timend]
this.facilityModal = true this.facilityModal = true
} else { } else {
this.pentity.taskTime = [timebegin,timend]
this.manModal = true this.manModal = true
} }
let chekids = this.ids
let formData = this.listTask
this.newList = [] this.newList = []
let timebegin = formData[0].beginTime//: "2020-04-06 10:00:00"
let timend = formData[0].endTime//: "2020-04-06 10:00:00"
this.entity.taskTime = [timebegin,timend]
chekids.forEach((v) => { chekids.forEach((v) => {
var item = formData.filter((u) => { var item = formData.filter((u) => {
return u.id == v return u.id == v
...@@ -392,8 +394,9 @@ export default { ...@@ -392,8 +394,9 @@ export default {
let item = this.newList let item = this.newList
item.map((u) => { item.map((u) => {
u.userIds = this.entity.userIds u.userIds = this.entity.userIds
u.remark = this.entity.remark
}) })
console.log(item) // console.log(item)
this.$refs['formValidate'].validate((valid) => { this.$refs['formValidate'].validate((valid) => {
if(valid){ if(valid){
Api.saveTeamentry(item).then((res) => { Api.saveTeamentry(item).then((res) => {
...@@ -413,7 +416,9 @@ export default { ...@@ -413,7 +416,9 @@ export default {
let item = this.newList let item = this.newList
item.map((u) => { item.map((u) => {
u.userIds = this.peploeId u.userIds = this.peploeId
u.remark = this.pentity.remark
}) })
// console.log(item)
this.$refs['formpepole'].validate((valid) => { this.$refs['formpepole'].validate((valid) => {
if(valid){ if(valid){
Api.saveTeamentry(item).then((res) => { Api.saveTeamentry(item).then((res) => {
......
...@@ -167,12 +167,13 @@ export default { ...@@ -167,12 +167,13 @@ export default {
var url = systemUrl + '/MyRole/GetRolesAsync?' + QS.stringify(params) var url = systemUrl + '/MyRole/GetRolesAsync?' + QS.stringify(params)
service.get(`${url}`).then((response) => { service.get(`${url}`).then((response) => {
let roles = response.result.items let roles = response.result.items
let roleids = [] let roleids = []
for (let i = 0; i < roles.length; i++) { for (let i = 0; i < roles.length; i++) {
roleids.push(roles[i].id) roleids.push(roles[i].id)
} }
let userInfo = this.$store.admin.user.info; // let userInfo = this.$store.admin.user.info;
// var url = // var url =
// `${systemUrl}/myuserrole/GetUsersByRoleAndorgan?ids=` + // `${systemUrl}/myuserrole/GetUsersByRoleAndorgan?ids=` +
// roleids.join(',') + // roleids.join(',') +
...@@ -224,17 +225,8 @@ export default { ...@@ -224,17 +225,8 @@ export default {
} }
} }
} }
},
getCurrentUser(e) {
if (e) {
let userInfo =this.$store.state.admin.user.info;
this.user.cardno = userInfo.login_id
this.user.user_name =userInfo.name
this.user.user_id = userInfo.userId
} else {
this.user.cardno = ''
}
} }
} }
} }
</script> </script>
\ No newline at end of file
...@@ -238,11 +238,12 @@ export default { ...@@ -238,11 +238,12 @@ export default {
}, },
getCurrentUser(e) { getCurrentUser(e) {
if (e) { if (e) {
console.log(this.$store.state.admin.user.info);
let userInfo = this.$store.state.admin.user.info; let userInfo = this.$store.state.admin.user.info;
this.user.cardno = userInfo.login_id this.user.cardno = userInfo.cardNo
this.user.user_name = userInfo.name this.user.user_name = userInfo.name
this.user.user_id = userInfo.userId this.user.user_id = userInfo.id
} else { } else {
this.user.cardno = '' this.user.cardno = ''
} }
......
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
import service from '@/plugins/request' import service from '@/plugins/request'
import entryMovie from './components/entryMovie.vue' import entryMovie from './components/entryMovie.vue'
import entryrecordlist from './components/entryrecordlist.vue' import entryrecordlist from './components/entryrecordlist.vue'
import processview from '../processDesign/Process/processview.vue' import processview from '../processManage/Process/processview.vue'
import productReport from './components/productReport.vue' import productReport from './components/productReport.vue'
import entryPause from './components/entryPause.vue' import entryPause from './components/entryPause.vue'
import materialDetail from '../resource/order/detail.vue' import materialDetail from '../resource/order/detail.vue'
...@@ -222,22 +222,23 @@ export default { ...@@ -222,22 +222,23 @@ export default {
{ {
title: '工艺名称', title: '工艺名称',
key: 'processname' key: 'processname'
},
{
title: '料单板数',
key: 'platesnum',
render: (h, params) => {
if (this.data.routing_type == 2) {
return h('span', params.row.platesnum)
} else {
return h(
'span',
''
)
}
}
} }
// ,
// {
// title: '料单板数',
// key: 'platesnum',
// render: (h, params) => {
// if (this.data.routing_type == 2) {
// return h('span', params.row.platesnum)
// } else {
// return h(
// 'span',
// ''
// )
// }
// }
// }
], ],
column1: [ column1: [
{ {
...@@ -270,25 +271,25 @@ export default { ...@@ -270,25 +271,25 @@ export default {
key: 'quantity', key: 'quantity',
width: '100' width: '100'
}, },
{ // {
title: '每板数据', // title: '每板数据',
key: 'picnumber', // key: 'picnumber',
width: '100', // width: '100',
render: (h, params) => { // render: (h, params) => {
if (this.data.routing_type == 2) { // if (this.data.routing_type == 2) {
return h( // return h(
'span', // 'span',
params.row.picnumber // params.row.picnumber
) // )
} else { // } else {
return h( // return h(
'span', // 'span',
'' // ''
) // )
} // }
} // }
} // }
], ],
fruit: [], fruit: [],
currententry: null, currententry: null,
...@@ -630,7 +631,7 @@ export default { ...@@ -630,7 +631,7 @@ export default {
this.loadProcessFile() this.loadProcessFile()
if (this.data.routing_type == 2) { if (this.data.routing_type == 2) {
this.loadBill() this.loadBill()
this.loadplatesnum() // this.loadplatesnum()
} else { } else {
this.processdata.push(this.data) this.processdata.push(this.data)
} }
......
...@@ -11,9 +11,9 @@ ...@@ -11,9 +11,9 @@
<template slot-scope="{ row,index }" slot="is_outside"> <template slot-scope="{ row,index }" slot="is_outside">
<state code="Process.Routing.Ststus" type="text" :value="row.is_outside"></state> <state code="Process.Routing.Ststus" type="text" :value="row.is_outside"></state>
</template> </template>
<template slot-scope="{ row,index }" slot="check_flag"> <!-- <template slot-scope="{ row,index }" slot="check_flag">
<state code="Process.Routing.checkflag" type="text" :value="row.check_flag"></state> <state code="Process.Routing.checkflag" type="text" :value="row.check_flag"></state>
</template> </template> -->
</Table> </Table>
<!-- 新增/编辑 工序弹框 --> <!-- 新增/编辑 工序弹框 -->
<Modal <Modal
...@@ -117,8 +117,13 @@ ...@@ -117,8 +117,13 @@
<InputNumber v-model="formprocessValidate.check_time"></InputNumber> <InputNumber v-model="formprocessValidate.check_time"></InputNumber>
</FormItem> </FormItem>
<FormItem :label="l('checkFlag')" prop="checkFlag"> <!-- <FormItem :label="l('checkFlag')" prop="checkFlag">
<Dictionary code="Process.Routing.checkflag" v-model="formprocessValidate.check_flag"></Dictionary> <Dictionary code="Process.Routing.checkflag" v-model="formprocessValidate.check_flag"></Dictionary>
</FormItem> -->
<FormItem :label="l('performancehours')" >
<InputNumber v-model="formprocessValidate.performance_hours"></InputNumber>
</FormItem> </FormItem>
<FormItem :label="l('efficiencyValue')" prop="efficiencyValue"> <FormItem :label="l('efficiencyValue')" prop="efficiencyValue">
...@@ -271,12 +276,17 @@ export default { ...@@ -271,12 +276,17 @@ export default {
key: 'check_time', key: 'check_time',
title: this.l('checkTime') title: this.l('checkTime')
}, },
{ {
key: 'check_flag', key: 'performance_hours',
title: this.l('checkFlag'), title: this.l('performancehours')
align: 'left',
slot: 'check_flag'
}, },
// {
// key: 'check_flag',
// title: this.l('checkFlag'),
// align: 'left',
// slot: 'check_flag'
// },
{ {
key: 'efficiency_value', key: 'efficiency_value',
title: this.l('efficiencyValue') title: this.l('efficiencyValue')
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<span class="expand-value">{{ item.mesCode }}</span> <span class="expand-value">{{ item.mesCode }}</span>
</Col> </Col>
<Col span="5"> <Col span="5">
<span class="expand-value">{{ item.productDrawnum+'-'+ item.productName }}</span> <span class="expand-value">{{ item.productName }}</span>
</Col> </Col>
<Col span="2"> <Col span="2">
......
...@@ -178,20 +178,20 @@ export default { ...@@ -178,20 +178,20 @@ export default {
title: '工艺名称', title: '工艺名称',
key: 'processname' key: 'processname'
}, },
{ // {
title: '料单板数', // title: '料单板数',
key: 'platesnum', // key: 'platesnum',
render: (h, params) => { // render: (h, params) => {
if (this.data.routing_type == 2) { // if (this.data.routing_type == 2) {
return h('span', params.row.platesnum) // return h('span', params.row.platesnum)
} else { // } else {
return h( // return h(
'span', // 'span',
'' // ''
) // )
} // }
} // }
} // }
], ],
column1: [ column1: [
{ {
...@@ -222,22 +222,22 @@ export default { ...@@ -222,22 +222,22 @@ export default {
key: 'quantity', key: 'quantity',
width: '100' width: '100'
}, },
{ // {
title: '每板数据', // title: '每板数据',
key: 'picnumber', // key: 'picnumber',
width: '100', // width: '100',
render: (h, params) => { // render: (h, params) => {
if (this.data.routing_type == 2) { // if (this.data.routing_type == 2) {
return h( // return h(
'span', // 'span',
params.row.picnumber // params.row.picnumber
) // )
} else { // } else {
return h('span', '') // return h('span', '')
} // }
} // }
} // }
], ],
getstate: [], getstate: [],
hover_class: '', hover_class: '',
...@@ -552,7 +552,7 @@ export default { ...@@ -552,7 +552,7 @@ export default {
this.loadEntry(this.data.id) this.loadEntry(this.data.id)
this.loadProcessFile() this.loadProcessFile()
if (this.data.routing_type == 2) { if (this.data.routing_type == 2) {
this.loadplatesnum() //this.loadplatesnum()
} else { } else {
this.processdata.push(this.data) this.processdata.push(this.data)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment