Commit 67da70a4 by 李少勇

修改input-xml组件的交互模式

parent 9f00d22b
......@@ -2080,7 +2080,9 @@
"integrity": "sha512-FRq5b/VMrWlrmCzwRrpDYNxyHP9BcAZC+xHJaqTgIE5091ZV1NTmyh0sGOg5XqpnHvR0svdy0sv1gWA1zmhxig==",
"deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.",
"dev": true,
"hasInstallScript": true
"hasInstallScript": true,
"optional": true,
"peer": true
},
"node_modules/@vue/babel-preset-jsx": {
"version": "1.2.4",
......@@ -15749,7 +15751,6 @@
"integrity": "sha512-ad35OBAQgc0m1m4iqRhMRuMN0rvGb8vFx0hU7lVjVMIuuLLXornU38d2U1uMI096dIItht70RCJlZt48DsLbUQ==",
"dev": true,
"requires": {
"@babel/core": "^7.11.0",
"@babel/helper-compilation-targets": "^7.9.6",
"@babel/helper-module-imports": "^7.8.3",
"@babel/plugin-proposal-class-properties": "^7.8.3",
......@@ -15762,16 +15763,16 @@
"@vue/babel-plugin-jsx": "^1.0.3",
"@vue/babel-preset-jsx": "^1.2.4",
"babel-plugin-dynamic-import-node": "^2.3.3",
"core-js": "^3.6.5",
"core-js-compat": "^3.6.5",
"semver": "^6.1.0"
},
"dependencies": {
"core-js": {
"version": "3.21.1",
"resolved": "https://registry.npmmirror.com/core-js/-/core-js-3.21.1.tgz",
"version": "https://registry.npmmirror.com/core-js/-/core-js-3.21.1.tgz",
"integrity": "sha512-FRq5b/VMrWlrmCzwRrpDYNxyHP9BcAZC+xHJaqTgIE5091ZV1NTmyh0sGOg5XqpnHvR0svdy0sv1gWA1zmhxig==",
"dev": true
"dev": true,
"optional": true,
"peer": true
}
}
},
......
......@@ -493,15 +493,14 @@
label="直接Swift添加"
prop="gitp.indirectswiadd"
>
<c-input-xml
<c-input-textarea
type="textarea"
:maxRows="10"
:model="model.gitp.indirectswiadd"
v-model="model.gitp.indirectswiadd"
maxlength="9750"
show-word-limit
placeholder="请输入直接Swift添加"
@change="commonExecuteRule('gitp.indirectswiadd')"
></c-input-xml>
></c-input-textarea>
</el-form-item>
</c-col>
......@@ -634,9 +633,9 @@
</template>
<script>
import event from '../event';
import InputXml from "~/components/InputXml";
import InputTextarea from "~/components/InputTextarea";
export default {
components: { InputXml },
components: { InputTextarea },
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
......
......@@ -9,30 +9,29 @@
label="保函文本可变因素"
prop="gidgrp.blk.gtxgidtxt"
>
<c-input-xml
:disabled="model.gitp.gidtxtmodflgc == ''"
<c-input-textarea
type="textarea"
:disabled="model.gitp.gidtxtmodflgc == ''"
:maxRows="14"
:model="model.gidgrp.blk.gtxgidtxtc"
v-model="model.gidgrp.blk.gtxgidtxtc"
maxlength="32500"
show-word-limit
placeholder="请输入保函文本可变因素"
></c-input-xml>
></c-input-textarea>
</el-form-item>
<el-form-item
v-if="model.gitp.gidtxtmodflgc == 'X'"
label="保函文本可变因素 - 抵消保函文本"
prop="gidgrp.blk.gtxgidtxtc"
>
<c-input-xml
<c-input-textarea
type="textarea"
:modle="model.gidgrp.blk.gtxgidtxtc"
v-modle="model.gidgrp.blk.gtxgidtxtc"
:maxRows="16"
maxlength="32500"
show-word-limit
placeholder="请输入保函文本可变因素 - 抵消保函文本"
@change="(pam) => { model.gidgrp.blk.gtxgidtxtc = {rows: pam} }"
></c-input-xml>
></c-input-textarea>
</el-form-item>
</c-col>
</c-col>
......@@ -72,7 +71,6 @@
>允许</c-checkbox
>
</c-col>
<c-col :span="24">
<c-button
disabled
......@@ -127,10 +125,9 @@
</div>
</template>
<script>
import IStreamInput from "~/components/IStreamInput";
import event from '../event'
export default {
components: { IStreamInput },
components: { },
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
......@@ -138,7 +135,7 @@ export default {
return {};
},
methods: {},
created: function () {},
created () {},
};
</script>
<style>
......
......@@ -66,7 +66,7 @@
v-model="model.gidgrp.rec.delto"
style="width: 100%"
placeholder="请选择交付收款人"
:code="getValues('gidgrp.rec.delto','delto1')"
:code="getDelto"
>
</c-select>
</el-form-item>
......@@ -218,18 +218,44 @@
<script>
import _ from "lodash";
import event from '../event'
import Utils from "~/utils";
import commonProcess from "~/mixin/commonProcess"
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess, event],
computed: {
getDelto () {
let list = [{
label: '其他',
value: 'OTHR'
}]
if (this.model.gidgrp.apl.pts.extkey) {
list.push({
label: '申请人',
value: 'APPL'
})
}
if (this.model.gidgrp.ben.pts.extkey) {
list.push({
label: '收益人',
value: 'BENE'
})
}
// if (this.model.gidgrp.ctr.pts.extkey) {
// list.push({
// label: '申请人',
// value: 'OBLI'
// })
// }
return list
}
},
data() {
return {};
},
methods: {},
created: function () {},
created () {},
};
</script>
<style scoped>
......
......@@ -9,9 +9,7 @@
</div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import commonProcess from "~/mixin/commonProcess";
import Infgid from "../model";
import Infsea from "./Infsea";
......@@ -25,7 +23,6 @@ export default {
root: this,
};
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "",
......@@ -35,24 +32,8 @@ export default {
codes: { ...CodeTable },
};
},
methods: {
myTabClick(tab) {
this.tabClick(tab);
/**
* do it yourself
**/
},
},
created: async function () {
console.log("进入infgid交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
methods: {},
created () {},
};
</script>
<style>
......
<template>
<el-input
:id="id"
ref="form-item"
v-model="value"
type="textarea"
v-bind="$attrs"
v-on="$listeners"
v-bind:disabled="disabled"
:rows="maxRows"
resize="none"
@change="onChange"
/>
</template>
<script>
export default {
props: {
id: {
type: String,
default: undefined
},
value: {
type: [String, Number],
default: undefined
},
disabled: {
type: Boolean,
default: false
},
maxRows: {
type: Number,
default: 3
}
},
computed: {
model: {
get () {
return this.value
},
set (newVal) {
this.$emit('input', newVal)
}
}
},
methods: {
onChange () {
this.$emit('change', this.model)
}
}
}
</script>
......@@ -152,4 +152,7 @@ export default {
/* .el-select.highlight .el-input .el-input__inner {
border-color: red;
} */
.c-highlight-content {
overflow: hidden;
}
</style>
\ No newline at end of file
......@@ -52,6 +52,7 @@ import Fullbox from "./Fullbox"
import CompareTable from "./CompareTable"
import InputXml from "./InputXml.vue"
import InputTextarea from "./InputTextarea.vue"
import PagingTable from "./PagingTable.vue";
import MulRowInput from "./MulRowInput.vue"
......@@ -111,6 +112,7 @@ export default {
Vue.component("c-fullbox", Fullbox)
Vue.component("c-compare-table", CompareTable)
Vue.component("c-input-xml", InputXml)
Vue.component("c-input-textarea", InputTextarea)
Vue.component("c-paging-table", PagingTable)
Vue.component("c-mul-row-input", MulRowInput)
Vue.component("c-rich-text-editor", RichTextEditor)
......
......@@ -7716,6 +7716,11 @@ const CodeTable = {
{ label: "ISSU Issuance of undertaking", value: "ISSU" },
{ label: "ISCO Issuance of counter-undertaking", value: "ISCO" },
{ label: "ICCO Issuance of counter-counter-undert", value: "ICCO" },
],
sndto: [
{ label: "ISSU Issuance of undertaking", value: "ISSU" },
{ label: "ISCO Issuance of counter-undertaking", value: "ISCO" },
{ label: "ICCO Issuance of counter-counter-undert", value: "ICCO" },
]
}
export default CodeTable;
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