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

update:修改生产排产

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