Browse Source

0412 新看板

master
ruanqi 2 years ago
parent
commit
cb64b43513
  1. 25
      src/views/modules/production/dailyPlan.vue

25
src/views/modules/production/dailyPlan.vue

@ -217,9 +217,12 @@
<el-form-item :label="'未排产数量:'">
<el-input v-model="scheduledModelData.unSchedulingSize" readonly style="width: 100px"></el-input>
</el-form-item>
<el-form-item :label="'生产订单状态:'">
<el-input v-model="scheduledModelData.status" readonly style="width: 100px"></el-input>
</el-form-item>
<el-form-item :label="' '">
<el-button @click="schedulings()" type="primary" style="margin-top: 0px;margin-left: 0px;">批量新增</el-button>
<el-button @click="schedulingModal()" type="primary" style="margin-top: 0px;">新增</el-button>
<el-button @click="schedulings()" type="primary" :disabled="closeFlag" style="margin-top: 0px;margin-left: 0px;">批量新增</el-button>
<el-button @click="schedulingModal()" type="primary" :disabled="closeFlag" style="margin-top: 0px;">新增</el-button>
</el-form-item>
</el-form>
<el-table
@ -269,7 +272,7 @@
min-width="40"
label="操作">
<template slot-scope="scope" class="foo_container">
<a type="text" size="small" @click="editSchedule(scope.row)">编辑</a>
<a type="text" size="small" :v-if="!closeFlag" @click="editSchedule(scope.row)">编辑</a>
<a type="text" size="small" @click="deleteSchedule(scope.row)">取消</a>
</template>
</el-table-column>
@ -367,6 +370,7 @@
schedulingModalFlag: false,
scheduleTableData: [],
scheduledModelData: {
status:'',
weightFactor:'',
orderNo: '',
planStartDate: '',
@ -375,6 +379,7 @@
unSchedulingSize: '',
site:'',
},
closeFlag:false,
dataListSelections: [],
scheduledingData: {
weight:'',
@ -516,17 +521,23 @@
},
//
openScheduleModel (row) {
// if (row.status == '' || row.status == '') {
// this.$alert('' + row.status + '', '', {
// confirmButtonText: ''
// })
// return false
// }
if (row.status == '已计划' || row.status == '已关闭') {
this.$alert('该订单状态为' + row.status + '无法排产', '错误', {
confirmButtonText: '确定'
})
return false
this.closeFlag=true;
}else {
this.closeFlag=false;
}
let list = {site:row.site,orderNo: row.orderNo}
getSchedulingSize(list).then(({data}) => {
this.scheduledModelData.schedulingSize = data.schedulingSize.toFixed(1)
this.scheduledModelData.unSchedulingSize = this.decimalUtil.sub(this.scheduledingData.lotSize,data.schedulingSize)
})
this.scheduledModelData.status = row.status
this.scheduledingData.lotSize = row.lotSize
this.scheduledingData.site = row.site
this.scheduledingData.partNo = row.partNo

Loading…
Cancel
Save