|
|
@@ -112,6 +112,8 @@
|
|
|
<span slot="action" slot-scope="text, record">
|
|
|
<a @click="handleEdit(record)">编辑</a>
|
|
|
<a-divider type="vertical" />
|
|
|
+ <a @click="configuration(record)">{{record.busPayInterfaceConfig? '配置':'新增'}}</a>
|
|
|
+ <a-divider type="vertical" />
|
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
|
|
<a>删除</a>
|
|
|
</a-popconfirm>
|
|
|
@@ -132,6 +134,7 @@
|
|
|
</div>
|
|
|
|
|
|
<room-pay-type-modal ref="modalForm" @ok="modalFormOk"></room-pay-type-modal>
|
|
|
+ <pay-interface-config-modal ref="modalFormPay" @ok="modalFormOk"></pay-interface-config-modal>
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
|
@@ -142,12 +145,14 @@
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import roomPayTypeModal from './modules/roomPayTypeModal'
|
|
|
import {hotelQueryList} from "../../../api/hotel";
|
|
|
+ import payInterfaceConfigModal from './modules/payInterfaceConfigModal'
|
|
|
|
|
|
export default {
|
|
|
name: 'paySettings',
|
|
|
mixins:[JeecgListMixin, mixinDevice],
|
|
|
components: {
|
|
|
- roomPayTypeModal
|
|
|
+ roomPayTypeModal,
|
|
|
+ payInterfaceConfigModal
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
@@ -234,6 +239,12 @@
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ configuration(record){
|
|
|
+ // this.$refs.modalFormPay.edit()
|
|
|
+ this.$refs.modalFormPay.edit(record.busPayInterfaceConfig);
|
|
|
+ this.$refs.modalFormPay.title = record.busPayInterfaceConfig ? '配置' : '新增';
|
|
|
+ this.$refs.modalFormPay.disableSubmit = false;
|
|
|
+ },
|
|
|
initDictConfig(){
|
|
|
},
|
|
|
initData(){
|