Browse Source

只读更改

master
zuowenwen 4 years ago
parent
commit
b2c69927a8
  1. 6
      src/views/modules/warehouse/location.vue

6
src/views/modules/warehouse/location.vue

@ -120,7 +120,7 @@
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-drag :title="inputLabel.headerInput.label5" :visible.sync="setUp.reviewFlag" width="325px">
<el-form :inline="true" label-position="top">
<el-form-item :label="inputLabel.headerInput.label1">
<el-input style="width: 130px;" :readonly = "setUp.readonlyFlag" onkeyup="this.value = this.value.toUpperCase()" v-model="saveHeaderData.locationId"></el-input>
<el-input style="width: 130px;" :readonly = "setUp.readonlyFlag?'readonly':false" onkeyup="this.value = this.value.toUpperCase()" v-model="saveHeaderData.locationId"></el-input>
</el-form-item>
<el-form-item :label="inputLabel.headerInput.label2">
<el-input style="width: 130px;" v-model="saveHeaderData.locationName"></el-input>
@ -648,6 +648,7 @@ import {
})
},
initModel(row){
console.log("1 =" +row)
this.setUp.reviewFlag = true
this.setUp.saveButton = false
this.setUp.readonlyFlag = false
@ -657,7 +658,8 @@ import {
this.saveHeaderData.locationName = ''
this.saveHeaderData.warehouseId = ''
this.saveHeaderData.active = 'Y'
if(row != null){
if(row){
console.log("2 =" +row)
this.setUp.readonlyFlag = true
this.saveHeaderData.id = 1
this.saveHeaderData.locationId = row.locationId

Loading…
Cancel
Save