Commit b642e412 authored by renjintao's avatar renjintao

分卡原因

parent 05765173
<template> <template>
<div class="record"> <div class="record">
<div v-if="load" style="width:100px;margin:0 auto;padding-top:260px;"> <div v-if="load" style="width:100px;margin:0 auto;padding-top:260px;">
<Spin size="large"></Spin> <Spin size="large"></Spin>
</div> </div>
<div v-show="!load"> <div v-show="!load">
<DataGrid :columns="columns" :data="result" border :tool="false" :height="820" :page="false"></DataGrid> <DataGrid :columns="columns" :data="result" border :tool="false" :height="820" :page="false"></DataGrid>
</div> </div>
<Modal v-model="workOrderPauseModal" title="工单暂停原因" width="800" footer-hide class="suspend"> <Modal v-model="workOrderPauseModal" title="工单暂停原因" width="800" footer-hide class="suspend">
<EntryPause @on-ok="pauseOk" ref="addBug" :info="info" /> <EntryPause @on-ok="pauseOk" ref="addBug" :info="info" />
</Modal> </Modal>
<Modal v-model="modalSplit" title="订单分卡" width="650" footer-hide> <Modal v-model="modalSplit" title="订单分卡" width="650" footer-hide>
<div slot="close"> <div slot="close">
<Icon type="ios-close" size="31" color="gray" @click="handleClose" /> <Icon type="ios-close" size="31" color="gray" @click="handleClose" />
</div> </div>
<Form :model="entity" ref="form" :label-width="110" :rules="rules"> <Form :model="entity" ref="form" :label-width="110" :rules="rules">
<Row> <Row>
<Col span="24"> <Col span="24">
<FormItem label="选择序列号" prop="num"> <FormItem label="选择序列号" prop="num">
<Select v-model="entity.num" multiple> <Select v-model="entity.num" multiple>
<Option <Option v-for="(item,index) in numList" :value="item.productcodes" :key="index">{{ item.productcodes}}</Option>
v-for="(item,index) in numList" </Select>
:value="item.productcodes" </FormItem>
:key="index" </Col>
>{{ item.productcodes}}</Option> <Col span="24">
</Select> <FormItem label="选择分卡原因" prop="reason">
</FormItem> <dictionary code="taskList.split.reson" v-model="entity.reason" style="width:240px"></dictionary>
</Col> </FormItem>
<Col span="24"> </Col>
<FormItem label="选择分卡原因" prop="reason"> <Col span="24">
<Select v-model="entity.reason" style="width:260px"> <FormItem label="备注说明">
<Option <Input v-model="entity.remark" placeholder type="textarea" :rows="3" />
v-for="(item,index) in reasonList" </FormItem>
:value="item.value" </Col>
:key="index" <!--
>{{ item.label }}</Option>
</Select>
</FormItem>
</Col>
<Col span="24">
<FormItem label="备注说明">
<Input v-model="entity.remark" placeholder type="textarea" :rows="3" />
</FormItem>
</Col>
<!--
<Col span="14"> <Col span="14">
<FormItem label prop="action"> <FormItem label prop="action">
<RadioGroup v-model="entity.action" @on-change="onchangeAction"> <RadioGroup v-model="entity.action" @on-change="onchangeAction">
...@@ -62,390 +52,381 @@ ...@@ -62,390 +52,381 @@
</FormItem> </FormItem>
</Col> </Col>
--> -->
</Row>
</Form>
<Row>
<Col span="24" style="text-align:right;height:60px;line-height:60px">
<Button type="primary" @click="splitOk">确定分卡</Button>
<Button @click="handleClose" class="ml20">取消</Button>
</Col>
</Row> </Row>
</Form>
<Row>
<Col span="24" style="text-align:right;height:60px;line-height:60px">
<Button type="primary" @click="splitOk">确定分卡</Button>
<Button @click="handleClose" class="ml20">取消</Button>
</Col>
</Row>
</Modal> </Modal>
</div> </div>
</template> </template>
<script> <script>
import Api from "./api"; import Api from "./api";
import EntryPause from "./entryPause"; import EntryPause from "./entryPause";
export default { export default {
name: "", name: "",
components: { components: {
EntryPause EntryPause
}, },
data() { data() {
return { return {
modalSplit: false, modalSplit: false,
workOrderPauseModal: false, workOrderPauseModal: false,
index: null, index: null,
entity: { entity: {
count: 0, count: 0,
code: "", code: "",
routingDetailId: 0, routingDetailId: 0,
orderId: 0, orderId: 0,
dispatchId: 0 dispatchId: 0
}, },
info: {}, info: {},
initeId: { initeId: {
routingDetailId: null, routingDetailId: null,
dispatchId: null dispatchId: null
}, },
columns: [ columns: [{
{ key: "detailId",
key: "detailId", title: this.l("detailId"),
title: this.l("detailId"), align: "center",
align: "center", width: 100
width: 100 },
}, {
{ key: "taskSeq",
key: "taskSeq", title: this.l("taskSeq"),
title: this.l("taskSeq"), align: "center",
align: "center", width: 100
width: 100 },
}, {
{ key: "detailName",
key: "detailName", title: this.l("detailName"),
title: this.l("detailName"), align: "left"
align: "left" },
},
{
key: "routingCode",
title: this.l("routingCode"),
align: "center"
},
{
key: "userNames",
title: this.l("userNames"),
align: "center"
},
{
key: "demandStartDate",
title: this.l("demandStartDate"),
align: "center",
render: (h, params) => {
return h(
"span",
this.sliceStr(params.row.demandStartDate + " ", 0, 10),
params.row.demandStartDate
);
}
},
{
key: "demandFinishDate",
title: this.l("demandFinishDate"),
align: "center",
render: (h, params) => {
return h(
"span",
this.sliceStr(params.row.demandFinishDate + " ", 0, 10),
params.row.demandFinishDate
);
}
},
{
key: "actualStartDate",
title: this.l("actualStartDate"),
align: "center",
render: (h, params) => { {
return h( key: "routingCode",
"span", title: this.l("routingCode"),
// this.sliceStr(params.row.actualStartDate + ' ', 0, 10), align: "center"
params.row.actualStartDate == "0001-01-01 00:00:00" },
? "" {
: params.row.actualStartDate key: "userNames",
); title: this.l("userNames"),
}
},
{
key: "actualFinishDate",
title: this.l("actualFinishDate"),
align: "center",
render: (h, params) => { align: "center"
return h( },
"span", {
// this.sliceStr(params.row.actualFinishDate + ' ', 0, 10), key: "demandStartDate",
params.row.actualFinishDate == "0001-01-01 00:00:00" title: this.l("demandStartDate"),
? "" align: "center",
: params.row.actualFinishDate render: (h, params) => {
); return h(
} "span",
}, this.sliceStr(params.row.demandStartDate + " ", 0, 10),
params.row.demandStartDate
);
}
},
{
key: "demandFinishDate",
title: this.l("demandFinishDate"),
align: "center",
{ render: (h, params) => {
key: "status", return h(
title: "工单状态", "span",
code: "taskList.status", this.sliceStr(params.row.demandFinishDate + " ", 0, 10),
align: "center", params.row.demandFinishDate
width: 140, );
filters: this.$u.getArry( }
this.$store.getters.dictionaryByKey("taskList.status") },
),
filterMethod(value, row) {
let statusChar = row.status + "";
return statusChar.indexOf(value) > -1;
}
},
{
title: "操作",
key: "action",
width: 120,
align: "center",
render: (h, params) => {
return h("div", { class: "action" }, [
h(
"op",
{ {
props: { key: "actualStartDate",
oprate: "edit", title: this.l("actualStartDate"),
title: "暂停" align: "center",
//msg: "确定暂停工序:" + params.row.detailName + "?"
}, render: (h, params) => {
style: params.row.status == 14 ? "" : "display:none", return h(
on: { click: () => this.pause(params.row, params.index) } "span",
// this.sliceStr(params.row.actualStartDate + ' ', 0, 10),
params.row.actualStartDate == "0001-01-01 00:00:00" ?
"" :
params.row.actualStartDate
);
}
}, },
"暂停"
),
h(
"op",
{ {
props: { oprate: "edit", title: "分卡" }, key: "actualFinishDate",
style: params.row.status == 5 ? "" : "display:none", title: this.l("actualFinishDate"),
on: { click: () => this.split(params.row, params.index) } align: "center",
render: (h, params) => {
return h(
"span",
// this.sliceStr(params.row.actualFinishDate + ' ', 0, 10),
params.row.actualFinishDate == "0001-01-01 00:00:00" ?
"" :
params.row.actualFinishDate
);
}
}, },
"分卡"
),
h(
"op",
{ {
props: { key: "status",
oprate: "delete", title: "工单状态",
title: "继续", code: "taskList.status",
msg: "确定继续执行工序:" + params.row.detailName + "?" align: "center",
}, width: 140,
style: params.row.status == 5 ? "" : "display:none", filters: this.$u.getArry(
on: { click: () => this.continue(params.row, params.index) } this.$store.getters.dictionaryByKey("taskList.status")
),
filterMethod(value, row) {
let statusChar = row.status + "";
return statusChar.indexOf(value) > -1;
}
}, },
"继续" {
) title: "操作",
]); key: "action",
} width: 120,
} align: "center",
], render: (h, params) => {
listTask: [], return h("div", {
numList: [], class: "action"
reasonList: [ }, [
{ h(
value: 1, "op", {
label: "分卡原因1" props: {
}, oprate: "edit",
{ title: "暂停"
value: 2, //msg: "确定暂停工序:" + params.row.detailName + "?"
label: "分卡原因2" },
}, style: params.row.status == 14 ? "" : "display:none",
{ on: {
value: 3, click: () => this.pause(params.row, params.index)
label: "分卡原因3" }
} },
], "暂停"
rules: { ),
num: [ h(
{ "op", {
required: true, props: {
message: "请选择分卡原因", oprate: "edit",
trigger: "change", title: "分卡"
type: "array" },
} style: params.row.status == 5 ? "" : "display:none",
], on: {
reason: [ click: () => this.split(params.row, params.index)
{ }
required: true, },
message: "请选择分卡原因", "分卡"
trigger: "change", ),
type: "number" h(
} "op", {
], props: {
action: [ oprate: "delete",
{ title: "继续",
required: true, msg: "确定继续执行工序:" + params.row.detailName + "?"
message: "请选择操作", },
trigger: "change", style: params.row.status == 5 ? "" : "display:none",
type: "number" on: {
} click: () => this.continue(params.row, params.index)
], }
scheduleType: [ },
{ "继续"
required: true, )
message: "请选择排产类型", ]);
trigger: "change", }
type: "number" }
} ],
] listTask: [],
} numList: [],
}; rules: {
}, num: [{
props: { required: true,
result: Array, message: "请选择分卡原因",
load: Boolean, trigger: "change",
executeId: Number, type: "array"
orderId: Number }],
}, reason: [{
async fetch({ store, params }) { required: true,
await store.dispatch("loadDictionary"); // 加载数据字典 message: "请选择分卡原因",
}, trigger: "change",
created() {}, type: "number"
methods: { }],
split(row, index) { action: [{
//工单分卡 required: true,
this.getProduct(row); message: "请选择操作",
this.initeId = { trigger: "change",
routingDetailId: row.detailId, type: "number"
dispatchId: row.id }],
}; scheduleType: [{
this.modalSplit = true; required: true,
message: "请选择排产类型",
trigger: "change",
type: "number"
}]
}
};
}, },
onchangeAction(val) { props: {
//选择移入排产时显示排产模型下拉框 result: Array,
if (val != 3) { load: Boolean,
this.entity.scheduleType = null; executeId: Number,
} orderId: Number
}, },
getProduct(row) { async fetch({
let params = { store,
dispatch_id:row.id, params
execute_id:row.executeId, }) {
order_id:row.orderId, await store.dispatch("loadDictionary"); // 加载数据字典
RoutingHeaderId:row.routingHeaderId,
RoutingDetailId:row.detailId,
};
Api.getentryproductcode(params).then(res => {
if (res.success) {
this.numList = [];
this.numList = res.result;
}
});
}, },
splitOk() { created() {},
//确定分卡 methods: {
this.$refs.form.validate(valid => { split(row, index) {
if (valid) { //工单分卡
let params = { this.getProduct(row);
count: this.entity.num.length, this.initeId = {
code: JSON.stringify(this.entity.num) routingDetailId: row.detailId,
.replace("[", "") dispatchId: row.id
.replace("]", "") };
.replace(/\"/g, ""), this.modalSplit = true;
routingDetailId: this.initeId.routingDetailId, },
orderId: this.orderId, onchangeAction(val) {
dispatchId: this.initeId.dispatchId //选择移入排产时显示排产模型下拉框
//reason: this.entity.reason, if (val != 3) {
//remark: this.entity.remark this.entity.scheduleType = null;
}; }
Api.mesordersplitcard(params) },
.then(res => { getProduct(row) {
if (res.success) { let params = {
this.$Message.success("分卡成功"); dispatch_id: row.id,
this.$emit("on-close"); execute_id: row.executeId,
} else { order_id: row.orderId,
this.$Message.error("分卡失败"); RoutingHeaderId: row.routingHeaderId,
} RoutingDetailId: row.detailId,
}) };
.catch(err => { Api.getentryproductcode(params).then(res => {
this.$Message.error("连接失败"); if (res.success) {
this.numList = [];
this.numList = res.result;
}
}); });
this.handleClose(); },
} else { splitOk() {
this.modalSplit = true; //确定分卡
this.$refs.form.validate(valid => {
if (valid) {
let params = {
count: this.entity.num.length,
code: JSON.stringify(this.entity.num)
.replace("[", "")
.replace("]", "")
.replace(/\"/g, ""),
routingDetailId: this.initeId.routingDetailId,
orderId: this.orderId,
dispatchId: this.initeId.dispatchId
//reason: this.entity.reason,
//remark: this.entity.remark
};
Api.mesordersplitcard(params)
.then(res => {
if (res.success) {
this.$Message.success("分卡成功");
this.$emit("on-close");
} else {
this.$Message.error("分卡失败");
}
})
.catch(err => {
this.$Message.error("连接失败");
});
this.handleClose();
} else {
this.modalSplit = true;
}
});
},
handleClose() {
//取消分卡
this.entityReset();
this.modalSplit = false;
},
entityReset() {
//重置分卡项目
this.entity = {
num: [],
reason: null,
remark: "",
action: null,
scheduleType: null
};
},
pause(row, index) {
this.index = index;
//暂停工单
this.info = {
dispatch_id: row.id,
execute_id: this.executeId,
order_id: this.orderId
};
this.workOrderPauseModal = true;
},
pauseOk() {
this.workOrderPauseModal = false;
this.result[this.index].status = 5;
},
continue (row, index) {
this.index = index;
//继续工单
let params = {
id: row.id,
orderid: this.orderId,
time: null
};
Api.entrycontinue(params)
.then(response => {
if (response.success) {
this.$Message.success("操作成功");
this.result[this.index].status = 14;
} else {
this.$Message.error("操作失败");
}
})
.catch(error => {
this.$Message.error("连接失败");
});
},
//截取字符串
sliceStr(str, lenS, lenE) {
return str.slice(lenS, lenE);
},
l(key) {
let vkey = "mes_order_watch" + "." + key;
return this.$t(vkey) || key;
} }
});
},
handleClose() {
//取消分卡
this.entityReset();
this.modalSplit = false;
},
entityReset() {
//重置分卡项目
this.entity = {
num: [],
reason: null,
remark: "",
action: null,
scheduleType: null
};
},
pause(row, index) {
this.index = index;
//暂停工单
this.info = {
dispatch_id: row.id,
execute_id: this.executeId,
order_id: this.orderId
};
this.workOrderPauseModal = true;
}, },
pauseOk() { watch: {
this.workOrderPauseModal = false; result(v) {
this.result[this.index].status = 5; if (v && v.length > 0) {
}, this.load = false;
continue(row, index) { }
this.index = index; }
//继续工单
let params = {
id: row.id,
orderid: this.orderId,
time: null
};
Api.entrycontinue(params)
.then(response => {
if (response.success) {
this.$Message.success("操作成功");
this.result[this.index].status = 14;
} else {
this.$Message.error("操作失败");
}
})
.catch(error => {
this.$Message.error("连接失败");
});
},
//截取字符串
sliceStr(str, lenS, lenE) {
return str.slice(lenS, lenE);
},
l(key) {
let vkey = "mes_order_watch" + "." + key;
return this.$t(vkey) || key;
}
},
watch: {
result(v) {
if (v && v.length > 0) {
this.load = false;
}
} }
}
}; };
</script> </script>
<style lang='less' scope>
<style lang="less">
.scheduleTypeSelect { .scheduleTypeSelect {
display: inline; display: inline;
width: 180px;
margin-left: -110px;
.ivu-select {
width: 180px; width: 180px;
} margin-left: -110px;
.ivu-select {
width: 180px;
}
} }
</style> </style>
\ No newline at end of file
...@@ -8,16 +8,12 @@ ...@@ -8,16 +8,12 @@
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('status')" prop="status">
<Dictionary code="mes.project_plan_record.Status" v-model="entity.status"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('title')" prop="title"> <Input v-model="entity.title"> </Input> <FormItem :label="l('title')" prop="title"> <Input v-model="entity.title"> </Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="24">
<FormItem :label="l('note')" prop="note"> <Input v-model="entity.note"> </Input> <FormItem :label="l('note')" prop="note">
<i-quill v-model="entity.note" :height="300" v-paste="handleImg" /></Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
...@@ -34,8 +30,12 @@ ...@@ -34,8 +30,12 @@
<script> <script>
import Api from './api' import Api from './api'
import iQuill from '@/components/quill'
export default { export default {
name: 'Add', name: 'Add',
components: {
iQuill
},
data() { data() {
return { return {
disabled: false, disabled: false,
...@@ -107,6 +107,27 @@ export default { ...@@ -107,6 +107,27 @@ export default {
this.entity.id = 0; this.entity.id = 0;
}); });
}, },
handleImg(e) {
console.warn(e)
let file = null
if (
e.clipboardData &&
e.clipboardData.items[0] &&
e.clipboardData.items[0].type &&
e.clipboardData.items[0].type.indexOf('image') > -1
) {
//这里就是判断是否有粘贴进来的文件且文件为图片格式
file = e.clipboardData.items[0].getAsFile()
let reader = new FileReader()
reader.readAsDataURL(file)
setTimeout(() => {
var img = '<img src="' + reader.result + '" alt=""/>'
this.entity.note += img
}, 1000)
// new R
}
},
l(key) { l(key) {
key = "project_plan_record" + "." + key; key = "project_plan_record" + "." + key;
return this.$t(key) return this.$t(key)
......
...@@ -5,71 +5,19 @@ ...@@ -5,71 +5,19 @@
<FormItem :label="l('title')" prop="title"> <Input v-model="entity.title"> </Input> <FormItem :label="l('title')" prop="title"> <Input v-model="entity.title"> </Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('level')" prop="level"> <FormItem :label="l('level')" prop="level">
<Dictionary code="project.task.level" v-model="entity.level"></Dictionary> <Dictionary code="project.task.level" v-model="entity.level"></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('projectTitle')" prop="projectTitle"> <Input v-model="entity.projectTitle"> </Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('planTitle')" prop="planTitle"> <Input v-model="entity.planTitle"> </Input>
</FormItem>
</Col>
<Col :span="12" v-if="false">
<FormItem :label="l('planId')" prop="planId">
<Input v-model="entity.planId"></Input>
</FormItem>
</Col>
<Col :span="12" v-if="false">
<FormItem :label="l('projectId')" prop="projectId">
<Input v-model="entity.projectId"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('userId')" prop="userId"> <FormItem :label="l('userId')" prop="userId">
<UserSelect ref="userSelected" v-model="entity.userId" /></Input> <UserSelect ref="userSelected" v-model="entity.userId" />
</FormItem> </FormItem>
</Col> </Col>
<Col :span="24"> <Col :span="24">
<FormItem :label="l('userIds')" prop="userIds"> <Input v-model="entity.userIds" type="textarea" :rows="5"></Input> <FormItem :label="l('note')" prop="note">
</FormItem> <i-quill v-model="entity.note" :height="300" v-paste="handleImg" />
</Col>
<Col :span="12">
<FormItem :label="l('startDate')" prop="startDate">
<DatePicker type="date" v-model="entity.startDate"></DatePicker>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('endDate')" prop="endDate">
<DatePicker type="date" v-model="entity.endDate"></DatePicker>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('plansToStartDate')" prop="plansToStartDate">
<DatePicker type="date" v-model="entity.plansToStartDate"></DatePicker>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('plansToEndTime')" prop="plansToEndTime">
<DatePicker type="date" v-model="entity.plansToEndTime"></DatePicker>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('completePercentage')" prop="completePercentage">
<InputNumber v-model="entity.completePercentage"></InputNumber>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('note')" prop="note"> <Input v-model="entity.note"> </Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('upTaskId')" prop="upTaskId">
<InputNumber v-model="entity.upTaskId"></InputNumber>
</FormItem> </FormItem>
</Col> </Col>
</Row> </Row>
...@@ -82,8 +30,12 @@ ...@@ -82,8 +30,12 @@
<script> <script>
import Api from './api' import Api from './api'
import iQuill from '@/components/quill'
export default { export default {
name: 'Add', name: 'Add',
components: {
iQuill
},
data() { data() {
return { return {
disabled: false, disabled: false,
...@@ -169,6 +121,27 @@ export default { ...@@ -169,6 +121,27 @@ export default {
this.entity.id = 0; this.entity.id = 0;
}); });
}, },
handleImg(e) {
console.warn(e)
let file = null
if (
e.clipboardData &&
e.clipboardData.items[0] &&
e.clipboardData.items[0].type &&
e.clipboardData.items[0].type.indexOf('image') > -1
) {
//这里就是判断是否有粘贴进来的文件且文件为图片格式
file = e.clipboardData.items[0].getAsFile()
let reader = new FileReader()
reader.readAsDataURL(file)
setTimeout(() => {
var img = '<img src="' + reader.result + '" alt=""/>'
this.entity.note += img
}, 1000)
// new R
}
},
l(key) { l(key) {
key = "project_task" + "." + key; key = "project_task" + "." + key;
return this.$t(key) return this.$t(key)
......
...@@ -10,15 +10,12 @@ ...@@ -10,15 +10,12 @@
<Filed :span="6" :name="l('status')">{{entity.status}}</Filed> <Filed :span="6" :name="l('status')">{{entity.status}}</Filed>
<Filed :span="6" :name="l('projectTitle')">{{entity.projectTitle}}</Filed> <Filed :span="6" :name="l('projectTitle')">{{entity.projectTitle}}</Filed>
<Filed :span="6" :name="l('planTitle')">{{entity.planTitle}}</Filed> <Filed :span="6" :name="l('planTitle')">{{entity.planTitle}}</Filed>
<Filed :span="6" :name="l('userIds')">{{entity.userIds}}</Filed>
<Filed :span="6" :name="l('userId')">{{entity.userId}}</Filed> <Filed :span="6" :name="l('userId')">{{entity.userId}}</Filed>
<Filed :span="6" :name="l('endDate')">{{entity.endDate}}</Filed>
<Filed :span="6" :name="l('note')">{{entity.note}}</Filed>
<Filed :span="6" :name="l('startDate')">{{entity.startDate}}</Filed> <Filed :span="6" :name="l('startDate')">{{entity.startDate}}</Filed>
<Filed :span="6" :name="l('plansToStartDate')">{{entity.plansToStartDate}}</Filed> <Filed :span="6" :name="l('endDate')">{{entity.endDate}}</Filed>
<Filed :span="6" :name="l('plansToEndTime')">{{entity.plansToEndTime}}</Filed> <Filed :span="12">&nbsp;</Filed>
<Filed :span="6" :name="l('completePercentage')">{{entity.completePercentage}}</Filed> <Filed :span="24" :name="l('note')">{{entity.note}}</Filed>
<Filed :span="6" :name="l('upTaskId')">{{entity.upTaskId}}</Filed>
</Row> </Row>
<component :is="detail" :eid="curId" /> <component :is="detail" :eid="curId" />
</div> </div>
......
...@@ -85,6 +85,9 @@ ...@@ -85,6 +85,9 @@
</template> </template>
<script> <script>
import {
replace
} from 'lodash';
import Api from './api' import Api from './api'
export default { export default {
name: 'Edit', name: 'Edit',
...@@ -121,6 +124,7 @@ export default { ...@@ -121,6 +124,7 @@ export default {
id: v id: v
}).then(r => { }).then(r => {
this.entity = r.result; this.entity = r.result;
this.entity.userId = parseInt(r.result.userId)
}) })
}, },
handleSubmit() { handleSubmit() {
......
...@@ -188,26 +188,6 @@ export default { ...@@ -188,26 +188,6 @@ export default {
high: true, high: true,
type: 'date' type: 'date'
}, },
{
key: "plansToStartDate",
title: this.l("plansToStartDate"),
align: "center",
high: true,
type: 'date'
},
{
key: "plansToEndTime",
title: this.l("plansToEndTime"),
align: "center",
high: true,
type: 'date'
},
{
key: "completePercentage",
title: this.l("completePercentage"),
align: "left",
high: true
},
{ {
key: "note", key: "note",
title: this.l("note"), title: this.l("note"),
......
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