Commit e40f0de7 by wangguangchao

cptopn setpan优化

parent 4e8637b1
<template> <template>
<div class="eibs-tab"> <el-row class="eibs-tab">
<!-- ===================顶部===================== --> <!-- ===================顶部===================== -->
<el-col :span="6"> <el-col :span="6">
<el-form-item label="Reference" label-width="100px" prop="setmod.ref"> <el-form-item label="Reference" label-width="100px" prop="setmod.ref">
...@@ -11,12 +11,12 @@ ...@@ -11,12 +11,12 @@
></c-input> ></c-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="6">
<el-form-item label="Amount Settled" label-width="150px"> <el-form-item label="Amount Settled" label-width="150px">
<c-input <c-input
v-model="temp1" v-model="model.setmod.doccur"
style="width: 100%" style="width: 100%"
placeholder="" placeholder="CNY"
:readonly="true" :readonly="true"
></c-input> ></c-input>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<el-col :span="4"> <el-col :span="4">
<el-form-item label="" label-width="20px"> <el-form-item label="" label-width="20px">
<c-input <c-input
v-model="temp2" v-model="model.setmod.docamt"
:readonly="true" :readonly="true"
placeholder="" placeholder=""
></c-input> ></c-input>
...@@ -34,14 +34,21 @@ ...@@ -34,14 +34,21 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="Type" label-width="100px"> <el-form-item label="类型" label-width="100px">
<c-input <c-select
v-model="temp3" v-model="model.setmod.dspflg"
readonly disabled
style="width: 100%" style="width: 100%"
placeholder="" placeholder="请选择Type of settlement"
> >
</c-input > <el-option
v-for="item in codes.dspflg"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -109,7 +116,7 @@ ...@@ -109,7 +116,7 @@
<el-col :span="22" style="margin-bottom: 18px" :offset="1"> <el-col :span="22" style="margin-bottom: 18px" :offset="1">
<c-table <c-table
style="text-align: center" style="text-align: center"
:list="data" :list="model.setmod.setfog.setfol"
:paginationShow="false" :paginationShow="false"
:border="true" :border="true"
> >
...@@ -265,6 +272,7 @@ ...@@ -265,6 +272,7 @@
</el-table-column> </el-table-column>
</c-table> </c-table>
</el-col> </el-col>
<setpan-dialog v-if="dialogVisible2" :visible="dialogVisible2" :model="model" :idx="index" :codes="codes"/>
<!--=================== Settlement:================== --> <!--=================== Settlement:================== -->
<el-col :span="24" style="text-align: left"> <el-col :span="24" style="text-align: left">
<el-form-item label="Settlement:" label-width="100px"> <el-form-item label="Settlement:" label-width="100px">
...@@ -273,7 +281,7 @@ ...@@ -273,7 +281,7 @@
<el-col :span="22" style="margin-bottom: 18px" :offset="1"> <el-col :span="22" style="margin-bottom: 18px" :offset="1">
<c-table <c-table
style="text-align: center" style="text-align: center"
:list="data" :list="model.setmod.setglg.setgll"
:paginationShow="false" :paginationShow="false"
:border="true" :border="true"
> >
...@@ -341,25 +349,49 @@ ...@@ -341,25 +349,49 @@
<el-table-column label="" width="auto"> </el-table-column> <el-table-column label="" width="auto"> </el-table-column>
</c-table> </c-table>
</el-col> </el-col>
</div> </el-row>
</template> </template>
<script> <script>
import Api from "~/service/Api"; import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptopn/Event"; import Event from "~/model/Cptopn/Event";
import SetpanDialog from "./SetpanDialog.vue";
import Utils from "~/utils/index"
export default { export default {
inject: ['root'], inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
components: { SetpanDialog },
data() { data() {
return { return {
temp1:'USD',
temp2:'0.00', dialogVisible2: false,
temp3:'final',
dialog2: {
feetxtinf:"",
feetxt:"",
},
index: 0,
data:[] data:[]
}; };
}, },
methods: { ...Event }, methods: {
...Event,
dispDefault(){
Api.post("cptopn/executeDefault/mac",Utils.getRequestDataFn.call(this)).then(res=>{
Utils.copyValueFromVO(this.model, res.data)
})
},
detail2(index, row) {
Api.post("cptopn/executeRule/det",Utils.getRequestDataFn.call(this)).then(res=>{
this.dialogVisible2 = true;
this.index = index;
this.dialog2 = row
})
},
},
created: function () {}, created: function () {},
}; };
</script> </script>
......
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