Commit 3116a1df by Joey

feat(@gms/gms-plugin-billexpand): 红冲标识组件

parent 50eeb4fa
<template>
<div class="credit-memo-wrapper" v-if="HCDBillcode">
<div class="credit-memo-label" v-if="hcje == ydje">全部红冲</div>
<div class="credit-memo-label" v-else>部分红冲</div>
</div>
</template>
<script>
export default {
props: {
define: {
type: Object,
required: true,
},
context: {
type: Object,
default: () => ({})
}
},
data() {
return {
HCDBillcode: null,
hcje: null,
ydje: null,
}
},
mounted() {
this.HCDBillcode = this.context.bill.getMasterData().getValue('HCD_BILLCODE')
this.hcje = this.context.bill.getMasterData().getValue('HCJE')
this.ydje = this.context.bill.getMasterData().getValue('YDJE')
}
}
</script>
<style lang="less" scoped>
.credit-memo-wrapper {
position: relative;
.credit-memo-label {
user-select: none;
position: absolute;
height: 50px;
width: 100px;
border-radius: 5px;
border: 1px solid red;
color: red;
display: flex;
align-items: center;
justify-content: center;
}
}
</style>
\ No newline at end of file
export default {
billControl: [
{
"title": "红冲标识",
"description": "",
"discard": false,
"dynamicComponent": 'billForm',
"extends": {
"config": [
],
},
"value": "CreditMemoLabel",
"path": "报销/通用"
},
{
"title": "变更轨迹",
"description": "",
"discard": false,
......
......@@ -93,6 +93,7 @@ import InputModalControl from './control/InputModalControl.vue'
import Achievements from './control/vxe-achievements/achievements.vue'
import VxeSubjectControl from './control/vxeTableExpand/VxeSubjectControl.js'
import ModificationTrack from './control/modification-track/modification-track.vue'
import CreditMemoLabel from './control/credit-memo-label.vue'
//formula
import GeneralImportFile from './formula/GeneralImportFile.js';
......@@ -285,6 +286,7 @@ export default {
Achievements,
VxeSubjectControl,
ModificationTrack,
CreditMemoLabel,
},
formula: {
SubTableSetBaseData,
......
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