@ -297,7 +297,7 @@
< el -dialog title = "选择柜层号" :visible.sync ="detailVisible" width = "35%" >
< el -dialog title = "选择柜层号" :visible.sync ="detailVisible" width = "35%" >
< div >
< div >
< el -radio -group v-model ="radio1" @change="changeHandler" size="medium" style="margin-bottom: 40px;" >
< el -radio -group v-model ="radio1" @change="changeHandler" size="medium" style="margin-bottom: 40px;" >
< el -radio -button :label ="item.client_id" :key ="item.client_id" v-for ="item in chosedata" style="margin-bottom: 10px" > {{ item.client_name }} < / el -radio -button >
< el -radio -button : disabled = "item.conflict =='' ? false:true" :label ="item.client_id" :key ="item.client_id" v-for ="item in chosedata" style="margin-bottom: 10px" > {{ item.client_name }} < / el -radio -button >
< / e l - r a d i o - g r o u p >
< / e l - r a d i o - g r o u p >
< div :key ="index" v-for ="item,index in chosedata" >
< div :key ="index" v-for ="item,index in chosedata" >
@ -671,6 +671,8 @@ export default {
getCode ( code ) {
getCode ( code ) {
var that = this
var that = this
this . barCode = code
this . barCode = code
that . radio1 = ''
that . radio2 = ''
if ( this . barCode ) {
if ( this . barCode ) {
if ( ! this . client _id _input ) {
if ( ! this . client _id _input ) {
this . $message . warning ( '请选择存储柜体!' )
this . $message . warning ( '请选择存储柜体!' )
@ -683,8 +685,8 @@ export default {
enter _db _client _list ( stringify ( data ) ) . then ( res => {
enter _db _client _list ( stringify ( data ) ) . then ( res => {
console . log ( res . data )
console . log ( res . data )
that . chosedata = res . data
that . chosedata = res . data
that . radio1 = res . data [ 0 ] . client _i d
/ / t h a t . r a d i o 1 = r e s . d a t a [ 0 ] . c l i e n t _ i d
that . radio2 = res . data [ 0 ] . client _cell [ 0 ]
/ / t h a t . r a d i o 2 = r e s . d a t a [ 0 ] . c l i e n t _ c e l l [ 0 ]
} )
} )
this . detailVisible = true
this . detailVisible = true
}
}