Commit a9948cea by 乔延琦

Merge branch 'develop-yuancheng' into 'develop'

fix: 详情只读和按钮默认图标

See merge request GFP/RBC/rbc-frontend!120
parents 70e427e1 cf411cd2
...@@ -31,6 +31,7 @@ export default { ...@@ -31,6 +31,7 @@ export default {
c.subBillData = obj.BILLDETAILOBJ; c.subBillData = obj.BILLDETAILOBJ;
c.modal_visible = true; c.modal_visible = true;
c.state = 'readOnly' c.state = 'readOnly'
c.hideButtonGroup = true
c.$nextTick(()=>{ c.$nextTick(()=>{
component.addListener({ component.addListener({
close: function() { close: function() {
......
...@@ -10,6 +10,22 @@ ...@@ -10,6 +10,22 @@
</template> </template>
<script> <script>
const ACTIONS = GMS.getContext().getEmconCollector().getElements('billAction') const ACTIONS = GMS.getContext().getEmconCollector().getElements('billAction')
const iconMap = {
'CW_createBill': '#icon-16_GJ_A_NW_xinzeng',
'CW_editBill': '#icon-18_T_A_NW_bianji',
'CW_deleteBill': '#icon-16_GJ_A_NW_shanchu',
'CW_tempSave': '',
'CW_saveAction': '#icon-16_GJ_A_NW_baocun',
'CW_submitAction': '',
'first': '#icon-shouzhang',
'upward': '#icon-shangyizhang',
'down': '#icon-xiayizhang',
'last': '#icon-mozhang',
'CW_printAction': '#icon-16_DH_A_NR_piliangdayin',
'CW_rejectAction': '#icon-_GJZquhui',
'CW_agreeAction': '#icon-_GJZtongyi',
'CW_closeAction': ''
}
export default { export default {
inject: ['tmpBill'], inject: ['tmpBill'],
props: ['define', 'context'], props: ['define', 'context'],
...@@ -124,7 +140,7 @@ export default { ...@@ -124,7 +140,7 @@ export default {
btnConfg.buttonDefine.config.leftIcon = btnConfg.buttonDefine.config.leftIcon =
this.define.btnGroupAction && this.define.btnGroupAction &&
this.define.btnGroupAction[item] && this.define.btnGroupAction[item] &&
this.define.btnGroupAction[item].btnIcon? this.define.btnGroupAction[item].btnIcon: '' this.define.btnGroupAction[item].btnIcon? this.define.btnGroupAction[item].btnIcon: iconMap[item]
btnConfg.billStateDisable = this.getBillStateDisable( btnConfg.billStateDisable = this.getBillStateDisable(
ACTIONS[item].btnDisable, item ACTIONS[item].btnDisable, item
) )
......
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