Commit 123e57e6 by lei wang

dia新增交易修改

parent 1e2fcdd1
......@@ -5,18 +5,31 @@
<c-col :span="12" class="col-left">
<c-col :span="24">
<el-form-item label="Business Sector" prop="subObjTyp">
<c-select :disabled="true" style="width: 100%" v-model="model.subObjTyp" placeholder="请选择Business Sector" :code="getCodesByKey('dia_bustxt')">
<c-select :disabled="type === 'edit'" style="width: 100%" v-model="model.subObjTyp" placeholder="请选择Business Sector" :code="getCodesByKey('dia_bustxt')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="参考号" prop="objref">
<c-input :disabled="true" v-model="model.objref" style="width: 100%" placeholder="请输入参考号"> </c-input>
<c-fullbox>
<c-input :disabled="false" v-model="model.objref" placeholder="请输入参考号"> </c-input>
<template slot="footer">
<c-button
:disabled="type === 'edit'"
style="margin-left: 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf"
icon="el-icon-info"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="参考号描述" prop="ownrefDesc">
<c-input :disabled="true" v-model="model.ownrefDesc" style="width: 100%" placeholder="请输入参考号描述"> </c-input>
<c-input :disabled="type === 'edit'" v-model="model.ownrefDesc" style="width: 100%" placeholder="请输入参考号描述"> </c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="24">
......@@ -59,7 +72,20 @@
<c-col :span="12" class="col-right">
<c-col :span="24">
<el-form-item label="经办用户" prop="ownusr">
<c-input :disabled="true" v-model="model.ownusr" placeholder="请输入经办用户" > </c-input>
<c-fullbox>
<c-input :disabled="false" v-model="model.ownusr" placeholder="请输入经办用户" > </c-input>
<template slot="footer">
<c-button
:disabled="type === 'edit'"
style="margin-left: 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf"
icon="el-icon-info"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -70,7 +96,7 @@
</c-col>
<c-col :span="24">
<el-form-item label="创建/修改人" prop="usr">
<c-input :disabled="true" v-model="model.usr" placeholder="请输入创建/修改人" >
<c-input :disabled="type === 'edit'" v-model="model.usr" placeholder="请输入创建/修改人" >
</c-input>
</el-form-item>
</c-col>
......@@ -82,7 +108,7 @@
</c-col>
<c-col :span="24">
<el-form-item label="类型" prop="cod">
<c-select :disabled="true" style="width: 100%" v-model="model.cod" placeholder="请选择类型" :code="getCodesByKey('diatxt')">
<c-select :disabled="type === 'edit'" style="width: 100%" v-model="model.cod" placeholder="请选择类型" :code="getCodesByKey('diatxt')">
</c-select>
</el-form-item>
</c-col>
......@@ -118,7 +144,7 @@
import codes from "~/config/CodeTable";
export default {
name: '',
props: ['model'],
props: ['model', 'type'],
data() {
return {
}
......
......@@ -14,7 +14,7 @@
<c-tabs v-model="tabVal" ref="elment" type="card">
<el-tab-pane label="交易备忘录查询" name="dia">
<c-content>
<m-dia-info :model="model" />
<m-dia-info :model="model" :type="type" />
</c-content>
</el-tab-pane>
</c-tabs>
......@@ -105,8 +105,13 @@
if (validated) {
add(this.model)
.then((res) => {
this.$message.success("保存成功!");
this.goBack(true)
console.log('返回结果'+res.messsage);
if (res.messsage !== null && Object.keys(res.messsage).length > 0) {
this.$message.error(res.messsage)
} else {
this.$message.success("保存成功!")
this.goBack(true)
}
})
.catch((err) => {
this.$message.error("保存失败!");
......
......@@ -16,8 +16,18 @@
</c-col>
<c-col :span="24">
<el-form-item label="经办用户" prop="ownusr">
<c-input v-model="model.ownusr" placeholder="请输入经办用户" style="width: 100%">
</c-input>
<c-fullbox>
<c-input :disabled="true" v-model="model.ownusr" placeholder="请输入经办用户" style="width: 100%"></c-input>
<template slot="footer">
<c-button
:disabled="type === 'edit'"
style="margin-left: 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf"
icon="el-icon-info"/>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -28,8 +38,8 @@
</c-col>
<c-col :span="24">
<el-form-item label="经办用户组" prop="ownusg">
<c-input v-model="model.ownusg" placeholder="请输入经办用户组" style="width: 100%">
</c-input>
<c-select style="width: 100%" v-model="model.ownusg" placeholder="请选择经办用户组" :code="getCodesByKey('usgtxt')">
</c-select>
</el-form-item>
</c-col>
</c-col>
......@@ -52,9 +62,19 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="柜员名" prop="usr">
<c-input v-model="model.usr" placeholder="请输入柜员名" style="width: 100%">
</c-input>
<el-form-item label="创建/修改人" prop="usr">
<c-fullbox>
<c-input :disabled="true" v-model="model.usr" placeholder="请输入创建/修改人" style="width: 100%"></c-input>
<template slot="footer">
<c-button
:disabled="type === 'edit'"
style="margin-left: 10px; padding: 0 12px"
size="small"
type="primary"
@click="onSeainf"
icon="el-icon-info"/>
</template>
</c-fullbox>
</el-form-item>
</c-col>
</c-col>
......
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