Commit c0f407af authored by 仇晓婷's avatar 仇晓婷

Merge branch 'product' of http://git.mes123.com/zhouyx/mes-ui into product

parents 6cb51e63 b87acec3
...@@ -53,8 +53,8 @@ export default { ...@@ -53,8 +53,8 @@ export default {
userIds: "", userIds: "",
userId: "", userId: "",
note: "", note: "",
planstartdate: null, plansToStartDate: null,
planenddate: null, plansToEndTime: null,
}, },
rules: { rules: {
name: [{ name: [{
...@@ -117,8 +117,8 @@ export default { ...@@ -117,8 +117,8 @@ export default {
}); });
}, },
changeFormat(val) { changeFormat(val) {
this.entity.planstartdate = val[0]; this.entity.plansToStartDate = val[0];
this.entity.planenddate = val[1]; this.entity.plansToEndTime = val[1];
}, },
handleImg(e) { handleImg(e) {
console.warn(e) console.warn(e)
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<User :value="parseInt(entity.userId)"></User> <User :value="parseInt(entity.userId)"></User>
</Filed> </Filed>
<Filed :span="12" name="计划起止日期"> <Filed :span="12" name="计划起止日期">
<TimeDifference :timeValue="timeValuePlan" :work="1"></TimeDifference> <TimeDifference :timeValue="timeValuePlan" :work="0"></TimeDifference>
</Filed> </Filed>
<Filed :span="12" name="实际起止日期"> <Filed :span="12" name="实际起止日期">
<TimeDifference :timeValue="timeValue" :work="1"></TimeDifference> <TimeDifference :timeValue="timeValue" :work="1"></TimeDifference>
...@@ -42,8 +42,8 @@ export default { ...@@ -42,8 +42,8 @@ export default {
endDate: "", endDate: "",
}, },
timeValuePlan: { timeValuePlan: {
planStartDate: "", startDate: "",
planEndDate: "", endDate: "",
}, },
rules: { rules: {
name: [{ name: [{
...@@ -80,8 +80,8 @@ export default { ...@@ -80,8 +80,8 @@ export default {
endDate: r.result.endDate, endDate: r.result.endDate,
}, },
this.timeValuePlan = { this.timeValuePlan = {
planStartDate: r.result.planStartDate, startDate: r.result.plansToStartDate,
planEndDate: r.result.planEndDate, endDate: r.result.plansToEndTime,
}, },
this.$emit('on-load') this.$emit('on-load')
// this.curId = v // this.curId = v
......
...@@ -198,10 +198,10 @@ export default { ...@@ -198,10 +198,10 @@ export default {
return h('TimeDifference', { return h('TimeDifference', {
props: { props: {
timeValue: { timeValue: {
startDate: params.row.planstartdate, startDate: params.row.plansToStartDate,
endDate: params.row.planenddate, endDate: params.row.plansToEndTime,
}, },
work: 1 work: 0
} }
}) })
} }
...@@ -276,30 +276,18 @@ export default { ...@@ -276,30 +276,18 @@ export default {
oprate: "edit", oprate: "edit",
title: params.row.status == 0 ? "开始" : params.row.status == 2 ? "继续" : '', title: params.row.status == 0 ? "开始" : params.row.status == 2 ? "继续" : '',
disable: params.row.status disable: params.row.status
//disable: (params.row.status == 0 || params.row.status == 2) ? false : true
}, },
on: { on: {
click: () => this.updatepart(params.row.id, 1) click: () => this.updatepart(params.row.id, 1)
} }
}), }),
// h('op', {
// attrs: {
// icon: "ios-pause",
// type: "icon",
// title: "暂停",
// //disable: params.row.status == 1 ? false : true
// },
// on: {
// click: () => this.updatepart(params.row.id, 2)
// }
// }),
h('op', { h('op', {
attrs: { attrs: {
icon: "ios-alarm", icon: "ios-alarm",
type: "icon", type: "icon",
oprate: "edit", oprate: "edit",
title: "完成", title: "完成",
//disable: (params.row.status != 0 && params.row.status != 3) ? false : true disable: params.row.status == 1 ? 0 : 1
}, },
on: { on: {
click: () => this.updatepart(params.row.id, 2) click: () => this.updatepart(params.row.id, 2)
...@@ -312,7 +300,6 @@ export default { ...@@ -312,7 +300,6 @@ export default {
oprate: "add", oprate: "add",
title: "新增记录", title: "新增记录",
disable: params.row.status == 1 ? 0 : 1 disable: params.row.status == 1 ? 0 : 1
// disable: (params.row.status != 3 && params.row.status != 4) ? false : true
}, },
on: { on: {
click: () => this.addRecord(params.row.id) click: () => this.addRecord(params.row.id)
...@@ -325,7 +312,6 @@ export default { ...@@ -325,7 +312,6 @@ export default {
oprate: "edit", oprate: "edit",
title: "修改", title: "修改",
disable: params.row.status disable: params.row.status
//disable: (params.row.status == 0 || params.row.status == 2) ? false : true
}, },
on: { on: {
click: () => this.edit(params.row.id) click: () => this.edit(params.row.id)
...@@ -338,7 +324,6 @@ export default { ...@@ -338,7 +324,6 @@ export default {
title: "删除", title: "删除",
oprate: 'delete', oprate: 'delete',
disable: params.row.status disable: params.row.status
// disable: (params.row.status == 0 || params.row.status == 3) ? false : true
}, },
on: { on: {
click: () => this.remove(params.row.id) click: () => this.remove(params.row.id)
......
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