|
|
|
@ -222,7 +222,6 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="labels.factorUnit"> |
|
|
|
<el-select filterable v-model="detailData.factorUnit" style="width: 130px"> |
|
|
|
<el-option label="" value=""></el-option> |
|
|
|
<el-option :label="labels.oneandtime" value="单位/小时"></el-option> |
|
|
|
<el-option :label="labels.time" value="小时"></el-option> |
|
|
|
</el-select> |
|
|
|
@ -232,7 +231,6 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="labels.jjgzUnitFactor"> |
|
|
|
<el-select filterable v-model="detailData.jjgzUnitFactor" style="width: 130px"> |
|
|
|
<el-option label="" value=""></el-option> |
|
|
|
<el-option :label="labels.time" value="小时"></el-option> |
|
|
|
<el-option :label="labels.one" value="件"></el-option> |
|
|
|
</el-select> |
|
|
|
@ -1595,11 +1593,11 @@ export default { |
|
|
|
workCenterNo: '', |
|
|
|
machSetupTime: '', |
|
|
|
machRunFactor: '', |
|
|
|
factorUnit: '', |
|
|
|
factorUnit: '单位/小时', |
|
|
|
jjgzUnitPrice: '', |
|
|
|
jjgzUnitFactor: '', |
|
|
|
jjgzUnitFactor: '小时', |
|
|
|
efficiency: '', |
|
|
|
crewsize: '', |
|
|
|
crewsize: 1, |
|
|
|
remark: '', |
|
|
|
site: '', |
|
|
|
partNo: '', |
|
|
|
@ -1798,10 +1796,11 @@ export default { |
|
|
|
workCenterNo: '', |
|
|
|
machSetupTime: 0, |
|
|
|
machRunFactor: 0, |
|
|
|
factorUnit: null, |
|
|
|
factorUnit: '单位/小时', |
|
|
|
jjgzUnitFactor: '小时', |
|
|
|
jjgzUnitPrice: 0, |
|
|
|
efficiency: 100, |
|
|
|
crewsize: 0, |
|
|
|
crewsize: 1, |
|
|
|
remark: '', |
|
|
|
add: 0, |
|
|
|
partNo: this.mainData.partNo, |
|
|
|
@ -1862,6 +1861,15 @@ export default { |
|
|
|
}) |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
if (this.detailData.machRunFactor<=0) { |
|
|
|
this.$message.warning('单位产出量不能小于0!') |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.detailData.crewsize<1) { |
|
|
|
this.$message.warning('操作工人数不能少于1!') |
|
|
|
return |
|
|
|
} |
|
|
|
saveRoutingDetailData(this.detailData).then(({data}) => { |
|
|
|
this.currentRow = null; |
|
|
|
if (data && data.code == 200) { |
|
|
|
@ -1991,7 +1999,7 @@ export default { |
|
|
|
}, |
|
|
|
getSearchModal() { |
|
|
|
this.searchPartNo = ''; |
|
|
|
this.searchRoutingWithPartNo(); |
|
|
|
// this.searchRoutingWithPartNo(); |
|
|
|
this.modelFlag = true; |
|
|
|
}, |
|
|
|
editRoutingDetail() { |
|
|
|
|