|
|
|
@ -73,7 +73,7 @@ |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="''" style="margin-top: -10px;"> |
|
|
|
<el-checkbox v-model="pageData.specifiedTime" true-label="Y" false-label="N" style="margin-top: 28px;" ></el-checkbox> |
|
|
|
<el-checkbox v-model="pageData.specifiedTime" true-label="Y" false-label="N" style="margin-top: 28px; margin-right: -20px;" ></el-checkbox> |
|
|
|
<el-time-picker |
|
|
|
format="HH:mm" |
|
|
|
arrow-control |
|
|
|
@ -94,8 +94,7 @@ |
|
|
|
<span slot="label" style="" @click="getBaseList(88)"><a herf="#">机台编号:</a></span> |
|
|
|
<el-input v-model="pageData.resourceId" style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<span slot="label" style="" @click="getBaseList(24)"><a herf="#">加工中心编码:</a></span> |
|
|
|
<el-form-item :label="'加工中心编码:'"> |
|
|
|
<el-input v-model="pageData.workCenterNo" style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
@ -175,7 +174,7 @@ |
|
|
|
|
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
height="120" |
|
|
|
:height="height" |
|
|
|
:data="shopOrderList" |
|
|
|
border |
|
|
|
ref="routingTable" |
|
|
|
@ -209,7 +208,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
height="135" |
|
|
|
:height="height" |
|
|
|
:data="orderScheduleList" |
|
|
|
border |
|
|
|
highlight-current-row |
|
|
|
@ -956,10 +955,10 @@ export default { |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 5301, |
|
|
|
serialNumber: '5301Schedule', |
|
|
|
serialNumber: '5301ScheduleScheduledSeqNo', |
|
|
|
tableId: "5301Schedule", |
|
|
|
tableName: "排产明细表", |
|
|
|
columnProp: "", |
|
|
|
columnProp: "scheduledSeqNo", |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: "排产序号", |
|
|
|
@ -1757,7 +1756,7 @@ export default { |
|
|
|
|
|
|
|
mounted() { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.height = window.innerHeight - 300; |
|
|
|
this.height = (window.innerHeight - 405) / 2; |
|
|
|
}) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
@ -1900,9 +1899,8 @@ export default { |
|
|
|
} |
|
|
|
//赋值排产的数量 |
|
|
|
let scheduledQty = row.qtyToSchedule; |
|
|
|
debugger; |
|
|
|
row.qtyScheduled = scheduledQty; |
|
|
|
row.qtyToSchedule = row.lotSize - row.qtyScheduled; |
|
|
|
row.qtyToSchedule = parseFloat(row.qtyToSchedule) - parseFloat(row.qtyScheduled); |
|
|
|
this.pageData.scheduledQty = scheduledQty; |
|
|
|
//设置工单和工序 |
|
|
|
this.pageData.orderNo = row.orderNo; |
|
|
|
@ -1923,8 +1921,8 @@ export default { |
|
|
|
this.$message.error('机台不能为空!') |
|
|
|
return false; |
|
|
|
} |
|
|
|
this.currentRoutingRow.qtyScheduled = this.currentRoutingRow.qtyScheduled + parseFloat(scheduledQty); |
|
|
|
this.currentRoutingRow.qtyToSchedule = parseFloat(this.currentRoutingRow.lotSize) - this.currentRoutingRow.qtyScheduled; |
|
|
|
this.currentRoutingRow.qtyScheduled = parseFloat(this.currentRoutingRow.qtyScheduled) + parseFloat(scheduledQty); |
|
|
|
this.currentRoutingRow.qtyToSchedule = parseFloat(this.currentRoutingRow.qtyToSchedule) - parseFloat(scheduledQty); |
|
|
|
//执行排产的方法 |
|
|
|
this.scheduleWorkOrderOperation(scheduledQty); |
|
|
|
}, |
|
|
|
@ -1935,6 +1933,8 @@ export default { |
|
|
|
this.pageData.scheduledQty = scheduledQty; |
|
|
|
scheduleWorkOrder(this.pageData).then(({data}) => { |
|
|
|
if(data.code == 500){ |
|
|
|
this.currentRoutingRow.qtyScheduled = parseFloat(this.currentRoutingRow.qtyScheduled) - parseFloat(scheduledQty); |
|
|
|
this.currentRoutingRow.qtyToSchedule = parseFloat(this.currentRoutingRow.qtyToSchedule) + parseFloat(scheduledQty); |
|
|
|
this.$message.error(data.msg); |
|
|
|
this.pageData.scheduledQty = 0; |
|
|
|
}else{ |
|
|
|
@ -2165,5 +2165,9 @@ div.customer-el-card-blue { |
|
|
|
.el-dropdown-menu /deep/ li.customer-li{ |
|
|
|
font-size: 10px; |
|
|
|
} |
|
|
|
|
|
|
|
.el-input /deep/ .el-icon-time{ |
|
|
|
display: none; |
|
|
|
} |
|
|
|
/*控制上下间距*/ |
|
|
|
</style> |