|
|
|
@ -527,10 +527,10 @@ |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="componentData" :rules="componentRules" style="margin-left: 5px"> |
|
|
|
<el-form-item :label="'单位用量'" prop="qtyPerAssembly" :rules="componentRules.qtyPerAssembly"> |
|
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.qtyPerAssembly" @input="validateInput" style="width: 112px"></el-input-number> |
|
|
|
<el-input-number :precision="10" :controls="false" :step="0" v-model="componentData.qtyPerAssembly" style="width: 112px"></el-input-number> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'调机量'" prop="componentScrap" :rules="componentRules.componentScrap"> |
|
|
|
<el-input-number :controls="false" :step="0" v-model="componentData.componentScrap" @input="validateInput" style="width: 112px"></el-input-number> |
|
|
|
<el-input-number :precision="10" :controls="false" :step="0" v-model="componentData.componentScrap" style="width: 112px"></el-input-number> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'损耗率%'" prop="shrinkageFactor" :rules="componentRules.shrinkageFactor"> |
|
|
|
<el-input-number :controls="false" :step="0" min="0" max="100" v-model="componentData.shrinkageFactor" style="width: 80px"></el-input-number> |
|
|
|
@ -957,7 +957,8 @@ export default { |
|
|
|
handler: function (newV, oldV) { |
|
|
|
this.partData.partNo = this.partData.partNo.toUpperCase() |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
// 对象 |
|
|
|
data () { |
|
|
|
@ -2605,15 +2606,6 @@ export default { |
|
|
|
}, |
|
|
|
// js |
|
|
|
methods: { |
|
|
|
validateInput (value) { |
|
|
|
// 使用正则表达式检查是否为科学计数法 |
|
|
|
if (/e/i.test(value.toString())) { |
|
|
|
// 如果是科学计数法,则恢复到之前的值 |
|
|
|
this.$nextTick(() => { |
|
|
|
this.componentData.componentScrap = '' |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// === 报价查询 === |
|
|
|
handleQueryBomByQuote(){ |
|
|
|
|