|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<el-dialog |
|
|
|
title="称重" |
|
|
|
:title="$t('rawworkorder.placeholder.weigh')" |
|
|
|
append-to-body |
|
|
|
:visible.sync="dialogVisible" |
|
|
|
:before-close="handleClose" |
|
|
@ -9,14 +9,14 @@ |
|
|
|
@close="close" |
|
|
|
> |
|
|
|
<el-form ref="form" :model="form1" :rules="rules" size="mini" label-width="110px"> |
|
|
|
<el-form-item label="重量" prop="productin_qty"> |
|
|
|
<el-input-number v-model="form1.productin_qty" :min="0" :controls="false" :precision="3" style="width: 250px;"/> |
|
|
|
<el-form-item :label="$t('rawworkorder.dialog.productin_qty')" prop="productin_qty"> |
|
|
|
<el-input-number v-model="form1.productin_qty" :min="0" :controls="false" :precision="3" style="width: 250px;" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="text" @click="close">取消</el-button> |
|
|
|
<el-button type="primary" @click="confirm">确认</el-button> |
|
|
|
<el-button type="text" @click="close">{{ $t('rawworkorder.dialog.cancel') }}</el-button> |
|
|
|
<el-button type="primary" @click="confirm">{{ $t('rawworkorder.dialog.confirm') }}</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</template> |
|
|
@ -37,6 +37,12 @@ export default { |
|
|
|
type: Object |
|
|
|
} |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
form1: {}, |
|
|
|
dialogVisible: false |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
dialogShow: { |
|
|
|
handler(newValue, oldValue) { |
|
|
@ -45,12 +51,6 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
form1: {}, |
|
|
|
dialogVisible: false |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleClose(done) { |
|
|
|
this.$confirm('确认关闭?') |
|
|
|