Commit 80c9e0ee by 乔延琦

Merge branch 'develop-yuancheng' into 'develop'

Develop yuancheng

See merge request GFP/RBC/rbc-frontend!116
parents b346ca3b 7807e174
...@@ -30,6 +30,7 @@ export default { ...@@ -30,6 +30,7 @@ export default {
c.billId = obj[BILLID]; c.billId = obj[BILLID];
c.subBillData = obj.BILLDETAILOBJ; c.subBillData = obj.BILLDETAILOBJ;
c.modal_visible = true; c.modal_visible = true;
c.state = 'readOnly'
c.$nextTick(()=>{ c.$nextTick(()=>{
component.addListener({ component.addListener({
close: function() { close: function() {
......
...@@ -760,11 +760,11 @@ export default { ...@@ -760,11 +760,11 @@ export default {
}, },
}, },
watch: { watch: {
state: { // state: {
handler(newVal, oldVal) { // handler(newVal, oldVal) {
this.state = newVal; // this.state = newVal;
}, // },
}, // },
subBillData: { subBillData: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.subBillData = newVal; this.subBillData = newVal;
......
...@@ -10,7 +10,19 @@ ...@@ -10,7 +10,19 @@
</li> </li>
</ul> </ul>
<div class="select-box" slot="reference"> <div class="select-box" slot="reference">
<Input ref="searchInput" v-model="selectValue" :disabled="disabled" :readonly="readonly || multiple" :class="{'multiple-input': multiple && !readonly}" placeholder="" @on-change="handleChange" @on-focus="handleFocus" @keydown.down.native="handleSelectNext" @keydown.up.native="handleSelectPrev" @keydown.enter.native="handleSelected"> <Input
ref="searchInput"
v-model="selectValue"
:disabled="disabled"
:readonly="readonly || multiple"
:class="{'multiple-input': multiple && !readonly}"
@on-change="handleChange"
@on-focus="handleFocus"
@on-blur="handleBlur"
@keydown.down.native="handleSelectNext"
@keydown.up.native="handleSelectPrev"
@keydown.enter.native="handleSelected"
>
<Icon type="ios-close-circle" :class="{'clear-icon': true, 'hidden-icon': disabled || readonly || !selectValue }" slot="suffix" @click="clearList" /> <Icon type="ios-close-circle" :class="{'clear-icon': true, 'hidden-icon': disabled || readonly || !selectValue }" slot="suffix" @click="clearList" />
<Icon type="ios-more" class="more-select" slot="suffix" @click="handleInputSelect" /> <Icon type="ios-more" class="more-select" slot="suffix" @click="handleInputSelect" />
</Input> </Input>
...@@ -198,6 +210,9 @@ export default { ...@@ -198,6 +210,9 @@ export default {
this.hasFocus = true this.hasFocus = true
this.getBaseDataList() this.getBaseDataList()
}, },
handleBlur() {
this.dataListShow = false
},
// 输入查询时 // 输入查询时
handleChange() { handleChange() {
if (this.selectValue === '' || this.selectValue === null) { if (this.selectValue === '' || this.selectValue === null) {
......
...@@ -102,6 +102,7 @@ export default { ...@@ -102,6 +102,7 @@ export default {
size: 'default', size: 'default',
text: '关闭', text: '关闭',
type: 'text', type: 'text',
leftIcon: ''
}, },
layout: {}, layout: {},
name: 'ButtonControl_1', name: 'ButtonControl_1',
...@@ -120,6 +121,10 @@ export default { ...@@ -120,6 +121,10 @@ export default {
ACTIONS[item].title.indexOf('_') + 1, ACTIONS[item].title.indexOf('_') + 1,
ACTIONS[item].title.indexOf('[') ACTIONS[item].title.indexOf('[')
) )
btnConfg.buttonDefine.config.leftIcon =
this.define.btnGroupAction &&
this.define.btnGroupAction[item] &&
this.define.btnGroupAction[item].btnIcon? this.define.btnGroupAction[item].btnIcon: ''
btnConfg.billStateDisable = this.getBillStateDisable( btnConfg.billStateDisable = this.getBillStateDisable(
ACTIONS[item].btnDisable, item ACTIONS[item].btnDisable, item
) )
...@@ -202,6 +207,10 @@ export default { ...@@ -202,6 +207,10 @@ export default {
.button-group { .button-group {
display: flex; display: flex;
padding: 0 10px; padding: 0 10px;
/deep/ .ivu-divider, .ivu-divider-vertical {
height: 1.3em;
top: 0;
}
} }
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment