|
@@ -269,12 +269,18 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
resetData () {
|
|
resetData () {
|
|
- this.form.productSn = undefined
|
|
|
|
- this.form.productName = ''
|
|
|
|
- this.form.productCode = ''
|
|
|
|
- this.form.productOrigCode = ''
|
|
|
|
- this.form.productCost = ''
|
|
|
|
- this.form.productQty = ''
|
|
|
|
|
|
+ this.form = {
|
|
|
|
+ supplierSn: '', // 供应商
|
|
|
|
+ productSn: undefined,
|
|
|
|
+ productName: '',
|
|
|
|
+ productCode: '',
|
|
|
|
+ productOrigCode: '',
|
|
|
|
+ warehouse: [],
|
|
|
|
+ warehouseSn: '',
|
|
|
|
+ warehouseLocationSn: '',
|
|
|
|
+ productCost: '',
|
|
|
|
+ productQty: ''
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -287,6 +293,7 @@ export default {
|
|
if (!newValue) {
|
|
if (!newValue) {
|
|
this.$emit('close')
|
|
this.$emit('close')
|
|
this.$refs.ruleForm.resetFields()
|
|
this.$refs.ruleForm.resetFields()
|
|
|
|
+ this.resetData()
|
|
this.warehouseSnBackups = ''
|
|
this.warehouseSnBackups = ''
|
|
this.warehouseLocationSnBackups = ''
|
|
this.warehouseLocationSnBackups = ''
|
|
} else {
|
|
} else {
|