Commit 6eb8c063 authored by 张海景's avatar 张海景

update:修改生产排产

parent 8889fa95
...@@ -193,6 +193,7 @@ ...@@ -193,6 +193,7 @@
value-format="yyyy-MM-dd hh:mm:ss" value-format="yyyy-MM-dd hh:mm:ss"
format="yyyy-MM-dd hh:mm:ss" format="yyyy-MM-dd hh:mm:ss"
placeholder="请选择计划开始时间" placeholder="请选择计划开始时间"
@blur="submitForm(scope.row)"
> >
</el-date-picker> </el-date-picker>
<span v-else>{{ <span v-else>{{
...@@ -215,6 +216,7 @@ ...@@ -215,6 +216,7 @@
value-format="yyyy-MM-dd hh:mm:ss" value-format="yyyy-MM-dd hh:mm:ss"
format="yyyy-MM-dd hh:mm:ss" format="yyyy-MM-dd hh:mm:ss"
placeholder="请选择计划结束时间" placeholder="请选择计划结束时间"
@blur="submitForm(scope.row)"
> >
</el-date-picker> </el-date-picker>
<span v-else>{{ <span v-else>{{
...@@ -531,8 +533,9 @@ export default { ...@@ -531,8 +533,9 @@ export default {
this.getList() this.getList()
}, },
// 获取工作单元 // 获取工作单元
onWorkunitSelect(row) { async onWorkunitSelect(row) {
console.log(45456, row); await this.submitForm({...this.currentData, workunitId: row.workunitId})
this.$refs['WorkunitSelect'].showFlag = false
}, },
async hanldeGettaskWorkunitList() { async hanldeGettaskWorkunitList() {
this.taskWorkunitList = [] this.taskWorkunitList = []
...@@ -651,18 +654,12 @@ export default { ...@@ -651,18 +654,12 @@ export default {
this.open = true this.open = true
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { async submitForm(row) {
this.$refs["form"].validate(valid => { const {scheduleStartDate, scheduleEndDate, taskWorkunitId, workunitId } = row
if (valid) { const params = {scheduleStartDate, scheduleEndDate, taskWorkunitId, workunitId}
const {scheduleStartDate, scheduleEndDate, taskWorkunitId, remark} = this.form await updateList(params)
const params = {scheduleStartDate, scheduleEndDate, taskWorkunitId, remark} this.$modal.msgSuccess("修改成功");
updateList(params).then(response => { this.getList();
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
}
});
}, },
handleSumbitScheduleList() { handleSumbitScheduleList() {
if (this.$refs.orderListRef.selectedRows&&this.$refs.orderListRef.selectedRows.length > 0) { if (this.$refs.orderListRef.selectedRows&&this.$refs.orderListRef.selectedRows.length > 0) {
......
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