Commit b94484a9 by wangguangchao

到单和任务列表查询日期控件优化

parent 93f62f9f
...@@ -263,8 +263,11 @@ const CodeTable = { ...@@ -263,8 +263,11 @@ const CodeTable = {
{ label: "BY ACCEPTANCE", value: "A" }, { label: "BY ACCEPTANCE", value: "A" },
], ],
avbby0: [ avbby0: [
{ label: "即期付款", value: "P" }, { label: "远期承兑", value: "A" },
{ label: "远期付款", value: "D" }, { label: "远期付款", value: "D" },
{ label: "混合付款", value: "M" },
{ label: "议付", value: "N" },
{ label: "即期付款", value: "P" },
], ],
avbwth: [ avbwth: [
{ label: "Issuing Bank", value: "I" }, { label: "Issuing Bank", value: "I" },
...@@ -5817,5 +5820,11 @@ const CodeTable = { ...@@ -5817,5 +5820,11 @@ const CodeTable = {
{ label: "粤/深港票据交换", value: "G" }, { label: "粤/深港票据交换", value: "G" },
{ label: "Other", value: "Y" }, { label: "Other", value: "Y" },
], ],
brdtyp: [
{ label: "远期付款单据(承兑)", value: "A" },
{ label: "远期付款单据", value: "D" },
{ label: "混合付款单据", value: "M" },
{ label: "即期单据", value: "P" },
],
} }
export default CodeTable; export default CodeTable;
\ No newline at end of file
...@@ -30,25 +30,25 @@ ...@@ -30,25 +30,25 @@
<c-col :span="8"> <c-col :span="8">
<el-form-item label="起止日期" style="width: 100%"> <el-form-item label="起止日期" style="width: 100%">
<c-col :span="11"> <c-col :span="11">
<el-date-picker <c-date-picker
type="date" type="date"
v-model="model.bopquep.frmdat" v-model="model.bopquep.frmdat"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
style="width: 100%" style="width: 100%"
placeholder="请选择From" placeholder="请选择From"
></el-date-picker> ></c-date-picker>
</c-col> </c-col>
<c-col :span="2" style="text-align: center"> <c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label> <label style="display: inline-block; width: 100%">-</label>
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<el-date-picker <c-date-picker
type="date" type="date"
v-model="model.bopquep.tildat" v-model="model.bopquep.tildat"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
style="width: 100%" style="width: 100%"
placeholder="请选择Until" placeholder="请选择Until"
></el-date-picker> ></c-date-picker>
</c-col> </c-col>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -25,25 +25,25 @@ ...@@ -25,25 +25,25 @@
<c-col :span="8"> <c-col :span="8">
<el-form-item label="起止日期" style="width: 100%"> <el-form-item label="起止日期" style="width: 100%">
<c-col :span="11"> <c-col :span="11">
<el-date-picker <c-date-picker
type="date" type="date"
v-model="model.bopquep.frmdat" v-model="model.bopquep.frmdat"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
style="width: 100%" style="width: 100%"
placeholder="请选择From" placeholder="请选择From"
></el-date-picker> ></c-date-picker>
</c-col> </c-col>
<c-col :span="2" style="text-align: center"> <c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label> <label style="display: inline-block; width: 100%">-</label>
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<el-date-picker <c-date-picker
type="date" type="date"
v-model="model.bopquep.tildat" v-model="model.bopquep.tildat"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
style="width: 100%" style="width: 100%"
placeholder="请选择Until" placeholder="请选择Until"
></el-date-picker> ></c-date-picker>
</c-col> </c-col>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -27,23 +27,23 @@ ...@@ -27,23 +27,23 @@
<c-col :span="8"> <c-col :span="8">
<el-form-item label="提示日期" style="width: 100%"> <el-form-item label="提示日期" style="width: 100%">
<c-col :span="11"> <c-col :span="11">
<el-date-picker <c-date-picker
type="date" type="date"
v-model="model.diafro" v-model="model.diafro"
style="width: 100%" style="width: 100%"
placeholder="请选择Diary From date" placeholder="请选择Diary From date"
></el-date-picker> ></c-date-picker>
</c-col> </c-col>
<c-col :span="2" style="text-align: center"> <c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label> <label style="display: inline-block; width: 100%">-</label>
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<el-date-picker <c-date-picker
type="date" type="date"
v-model="model.diatil" v-model="model.diatil"
style="width: 100%" style="width: 100%"
placeholder="请选择Diary Till date" placeholder="请选择Diary Till date"
></el-date-picker> ></c-date-picker>
</c-col> </c-col>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -5,18 +5,26 @@ ...@@ -5,18 +5,26 @@
<c-col :span="20"> <c-col :span="20">
<el-form-item label="不符点"> <el-form-item label="不符点">
<c-input type="textarea" v-model="model.bddgrp.blk.docdis" maxlength="50" show-word-limit <c-input type="textarea" v-model="model.bddgrp.blk.docdis" disabled maxlength="50" show-word-limit
placeholder="请输入不符点"></c-input> placeholder="请输入不符点"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="4">
<c-button style="text-align: left" label-width="-10px" size="small" type="primary" icon="el-icon-search" <c-col :span="4" style="text-align: right">
@click="onDocdisButtxmsel"> <el-form-item label-width="0">
... <c-button
</c-button> size="small"
type="primary"
icon="el-icon-search"
style="margin-left: 0"
@click="onDocdisButtxmsel"
disabled
></c-button>
</el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="注释和结论"> <el-form-item label="注释和结论">
<c-input type="textarea" v-model="model.bddgrp.blk.comcon" maxlength="65" show-word-limit <c-input type="textarea" v-model="model.bddgrp.blk.comcon" maxlength="65" show-word-limit
...@@ -37,11 +45,15 @@ ...@@ -37,11 +45,15 @@
<!-- =================右边====================== --> <!-- =================右边====================== -->
<c-col :span="11" :offset="1"> <c-col :span="11" :offset="1">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="" prop="bddgrp.rec.igndisflg">
<c-checkbox v-model="model.bddgrp.rec.igndisflg">忽略不符点</c-checkbox> <c-checkbox v-model="model.bddgrp.rec.igndisflg">忽略不符点</c-checkbox>
</el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="" prop="bddgrp.blk.docdisflg">
<c-checkbox v-model="model.bddgrp.blk.docdisflg">录入不符点</c-checkbox> <c-checkbox v-model="model.bddgrp.blk.docdisflg">录入不符点</c-checkbox>
</el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
...@@ -66,10 +78,12 @@ ...@@ -66,10 +78,12 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="" prop="bddgrp.rec.approvcod">
<c-checkbox v-model="model.bddgrp.rec.approvcod">议付行担保协议</c-checkbox> <c-checkbox v-model="model.bddgrp.rec.approvcod">议付行担保协议</c-checkbox>
</el-form-item>
</c-col> </c-col>
<c-col :span="8"> <!-- <c-col :span="8">
<c-checkbox v-model="model.bdtp.cre752flg">Create MT 752</c-checkbox> <c-checkbox v-model="model.bdtp.cre752flg">Create MT 752</c-checkbox>
</c-col> </c-col>
...@@ -78,10 +92,12 @@ ...@@ -78,10 +92,12 @@
<c-select v-model="model.bdtp.furide" style="width:100%" placeholder="请选择Further Identification"> <c-select v-model="model.bdtp.furide" style="width:100%" placeholder="请选择Further Identification">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col> -->
<c-col :span="24"> <c-col :span="24">
<el-form-item label="" prop="bdtp.cre732flg">
<c-checkbox v-model="model.bdtp.cre732flg">Create MT 732</c-checkbox> <c-checkbox v-model="model.bdtp.cre732flg">Create MT 732</c-checkbox>
</el-form-item>
</c-col> </c-col>
...@@ -89,10 +105,31 @@ ...@@ -89,10 +105,31 @@
<!-- =================已交单据====================== --> <!-- =================已交单据====================== -->
<c-col :span="24"> <c-col :span="24">
<c-table :border="true" :list="model.bdtp.docgrdm.docgrd" style="width:80%,text-align:center">
<c-table :border="true" :paginationShow="false" :list="model.bdtp.docgrdm.docgrd" style="width:80%,text-align:center">
<el-table-column prop="cmail1" label="1st" width="auto"> </el-table-column> <el-table-column prop="cmail1" label="1st" width="auto"> </el-table-column>
<el-table-column prop="cmail2" label="2st" width="auto"> </el-table-column> <el-table-column prop="cmail2" label="2st" width="auto"> </el-table-column>
<el-table-column prop="docnam" label="Document" width="auto"> </el-table-column> <el-table-column prop="docnam" label="Document" width="auto"> </el-table-column>
<el-table-column label="" prop="det" width="80px" fixed="right">
<template slot-scope="scope" slot="header">
<el-button
circle
style="padding:4px"
class="el-icon-plus"
size="mini"
@click="addRow(scope)"
>
</el-button>
<el-button
style="padding:4px"
circle
class="el-icon-minus"
size="mini"
@click="removeRow(scope)"
>
</el-button>
</template>
</el-table-column>
</c-table> </c-table>
</c-col> </c-col>
...@@ -103,26 +140,23 @@ ...@@ -103,26 +140,23 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess"; import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditdck/Event" import Event from "~/model/Ditdck/Event";
export default { export default {
inject: ['root'], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [CommonProcess], mixins: [CommonProcess],
data() { data() {
return {}; return {};
}, },
methods: { methods: {
...Event ...Event,
}, },
created: function () { created: function () {},
};
}
}
</script> </script>
<style> <style>
</style> </style>
\ No newline at end of file
<template> <template>
<c-page title="到单"> <c-page title="到单">
<div class="eContainer"> <div class="eContainer">
<c-bus-button :$pntvm="this"></c-bus-button> <c-bus-button :$pntvm="this"></c-bus-button>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="left" size="small" :validate-on-rule-change="false"> <el-form
<c-tabs :value="tabVal" ref="elment" type="card" @tab-click="tabClick"> :model="model"
:rules="rules"
ref="modelForm"
label-width="150px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<c-tabs :value="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000047 --> <!--PD000047 -->
<el-tab-pane label="单据概况" name="litdckp"> <el-tab-pane label="单据概况" name="litdckp">
<c-content> <c-content>
<m-litdckp :model="model" :codes="codes"/> <m-litdckp :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
...@@ -19,7 +27,7 @@ ...@@ -19,7 +27,7 @@
<!--PD000062 --> <!--PD000062 -->
<el-tab-pane label="单据详情" name="docpre"> <el-tab-pane label="单据详情" name="docpre">
<m-docpre :model="model" :codes="codes"/> <m-docpre :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000079 --> <!--PD000079 -->
...@@ -27,21 +35,21 @@ ...@@ -27,21 +35,21 @@
<m-shpdet :model="model" :codes="codes"/> <m-shpdet :model="model" :codes="codes"/>
</el-tab-pane> --> </el-tab-pane> -->
<el-tab-pane label="或有" name="engp"> <!-- <el-tab-pane label="或有" name="engp">
<m-engp :model="model" :codes="codes" /> <m-engp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane> -->
<el-tab-pane label="帐务" name="setpan"> <el-tab-pane label="帐务" name="setpan">
<m-setpan :model="model" :codes="codes" /> <m-setpan :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="分录" name="glepan"> <!-- <el-tab-pane label="分录" name="glepan">
<m-glepan :model="model" :codes="codes" ref="glepan" /> <m-glepan :model="model" :codes="codes" ref="glepan" />
</el-tab-pane> </el-tab-pane> -->
<el-tab-pane label="保证金" name="ccvpan"> <!-- <el-tab-pane label="保证金" name="ccvpan">
<m-ccvpan :model="model" :codes="codes" /> <m-ccvpan :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane> -->
<el-tab-pane label="附言" name="coninfp"> <el-tab-pane label="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" /> <m-coninfp :model="model" :codes="codes" />
...@@ -51,29 +59,27 @@ ...@@ -51,29 +59,27 @@
<m-docpan :model="model" :codes="codes" ref="docpan" /> <m-docpan :model="model" :codes="codes" ref="docpan" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="统一授信" name="limitbody"> <el-tab-pane label="统一授信" name="limitbody">
<m-limitbody :model="model" :codes="codes" /> <m-limitbody :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
</div> </div>
</c-page> </c-page>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import Utils from "~/utils/index" import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Ditdck from "~/model/Ditdck" import Ditdck from "~/model/Ditdck";
import CommonProcess from "~/mixin/CommonProcess" import CommonProcess from "~/mixin/CommonProcess";
import Pattern from "~/model/Ditdck/Pattern" import Pattern from "~/model/Ditdck/Pattern";
import Default from "~/model/Ditdck/Default"; import Default from "~/model/Ditdck/Default";
import Check from "~/model/Ditdck/Check"; import Check from "~/model/Ditdck/Check";
import Litdckp from "./Litdckp" import Litdckp from "./Litdckp";
import Ovwp from "./Ovwp" import Ovwp from "./Ovwp";
import Docpre from "./Docpre" import Docpre from "./Docpre";
import Shpdet from "./Shpdet" import Shpdet from "./Shpdet";
import Limitbody from "./Limitbody"; import Limitbody from "./Limitbody";
import Glepan from "~/views/Public/Glepan"; import Glepan from "~/views/Public/Glepan";
...@@ -83,14 +89,13 @@ import Engp from "~/views/Public/Engp"; ...@@ -83,14 +89,13 @@ import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan"; import Ccvpan from "~/views/Public/Ccvpan";
import Coninfp from "~/views/Public/Coninfp"; import Coninfp from "~/views/Public/Coninfp";
export default { export default {
components:{ name: "Infdid",
"m-litdckp" : Litdckp, components: {
"m-ovwp" : Ovwp, "m-litdckp": Litdckp,
"m-docpre" : Docpre, "m-ovwp": Ovwp,
"m-shpdet" : Shpdet, "m-docpre": Docpre,
"m-shpdet": Shpdet,
"m-engp": Engp, "m-engp": Engp,
"m-setpan": Setpan, "m-setpan": Setpan,
"m-glepan": Glepan, "m-glepan": Glepan,
...@@ -101,44 +106,55 @@ export default { ...@@ -101,44 +106,55 @@ export default {
}, },
provide() { provide() {
return { return {
root: this root: this,
} };
}, },
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理 mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data(){ data() {
return { return {
tabVal: "litdckp", tabVal: "litdckp",
trnName:"ditdck", trnName: "ditdck",
model:new Ditdck().data, model: new Ditdck().data,
//checkRules: Check, // checkRules: Check,
defaultRules: Default, defaultRules: Default,
//pattern: Pattern, pattern: Pattern,
rules:null, rules: null,
codes:{...CodeTable}, codes: { ...CodeTable,
} invtypCodes:[
{ label: "type1", value: "1" }
], },
};
}, },
methods:{ methods: {
tabClick() {},
}, },
created:async function(){ created: async function () {
// console.log("进入ditdck交易");
// let rtnmsg = await this.init(this.$route.query)
// if(rtnmsg.respCode == SUCCESS)
// {
// //TODO 处理数据逻辑
// console.log(rtnmsg)
// Utils.copyValueFromVO(this.model,rtnmsg.data)
// console.log(this.model);
// if(this.isInDisplay){
// this.restoreDisplay()
// }
// }
// else
// {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
console.log("进入ditdck交易"); console.log("进入ditdck交易");
let rtnmsg = await this.init(this.$route.query) let rtnmsg = await this.init({});
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{ Utils.copyValueFromVO(this.model, rtnmsg.data);
//TODO 处理数据逻辑 } else {
console.log(rtnmsg) this.$notify.error({ title: "错误", message: "服务请求失败!" });
Utils.copyValueFromVO(this.model,rtnmsg.data)
console.log(this.model);
if(this.isInDisplay){
this.restoreDisplay()
} }
} },
else };
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script> </script>
<style> <style>
</style> </style>
...@@ -74,23 +74,23 @@ ...@@ -74,23 +74,23 @@
<c-col :span="8"> <c-col :span="8">
<el-form-item label="创建时间" style="width: 100%"> <el-form-item label="创建时间" style="width: 100%">
<c-col :span="11"> <c-col :span="11">
<el-date-picker <c-date-picker
type="date" type="date"
v-model="model.inidatfro" v-model="model.inidatfro"
style="width: 100%" style="width: 100%"
placeholder="请选择Date of entry of Transaction" placeholder="请选择Date of entry of Transaction"
></el-date-picker> ></c-date-picker>
</c-col> </c-col>
<c-col :span="2" style="text-align: center"> <c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label> <label style="display: inline-block; width: 100%">-</label>
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<el-date-picker <c-date-picker
type="date" type="date"
v-model="model.inidattil" v-model="model.inidattil"
style="width: 100%" style="width: 100%"
placeholder="请选择Date of entry of Transaction until" placeholder="请选择Date of entry of Transaction until"
></el-date-picker> ></c-date-picker>
</c-col> </c-col>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -74,23 +74,23 @@ ...@@ -74,23 +74,23 @@
<c-col :span="8"> <c-col :span="8">
<el-form-item label="创建时间" style="width: 100%"> <el-form-item label="创建时间" style="width: 100%">
<c-col :span="11"> <c-col :span="11">
<el-date-picker <c-date-picker
type="date" type="date"
v-model="model.inidatfro" v-model="model.inidatfro"
style="width: 100%" style="width: 100%"
placeholder="请选择Date of entry of Transaction" placeholder="请选择Date of entry of Transaction"
></el-date-picker> ></c-date-picker>
</c-col> </c-col>
<c-col :span="2" style="text-align: center"> <c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label> <label style="display: inline-block; width: 100%">-</label>
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<el-date-picker <c-date-picker
type="date" type="date"
v-model="model.inidattil" v-model="model.inidattil"
style="width: 100%" style="width: 100%"
placeholder="请选择Date of entry of Transaction until" placeholder="请选择Date of entry of Transaction until"
></el-date-picker> ></c-date-picker>
</c-col> </c-col>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -30,23 +30,23 @@ ...@@ -30,23 +30,23 @@
<c-col :span="8"> <c-col :span="8">
<el-form-item label="创建时间" style="width: 100%"> <el-form-item label="创建时间" style="width: 100%">
<c-col :span="11"> <c-col :span="11">
<el-date-picker <c-date-picker
type="date" type="date"
v-model="model.trncorco.inidatfro" v-model="model.trncorco.inidatfro"
style="width: 100%" style="width: 100%"
placeholder="请选择Date of entry of Transaction" placeholder="请选择Date of entry of Transaction"
></el-date-picker> ></c-date-picker>
</c-col> </c-col>
<c-col :span="2" style="text-align: center"> <c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label> <label style="display: inline-block; width: 100%">-</label>
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<el-date-picker <c-date-picker
type="date" type="date"
v-model="model.trncorco.inidattil" v-model="model.trncorco.inidattil"
style="width: 100%" style="width: 100%"
placeholder="请选择Date of entry of Transaction until" placeholder="请选择Date of entry of Transaction until"
></el-date-picker> ></c-date-picker>
</c-col> </c-col>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -29,23 +29,23 @@ ...@@ -29,23 +29,23 @@
<c-col :span="8"> <c-col :span="8">
<el-form-item label="创建时间" style="width: 100%"> <el-form-item label="创建时间" style="width: 100%">
<c-col :span="11"> <c-col :span="11">
<el-date-picker <c-date-picker
type="date" type="date"
v-model="model.trncorco.inidatfro" v-model="model.trncorco.inidatfro"
style="width: 100%" style="width: 100%"
placeholder="请选择Date of entry of Transaction" placeholder="请选择Date of entry of Transaction"
></el-date-picker> ></c-date-picker>
</c-col> </c-col>
<c-col :span="2" style="text-align: center"> <c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label> <label style="display: inline-block; width: 100%">-</label>
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<el-date-picker <c-date-picker
type="date" type="date"
v-model="model.trncorco.inidattil" v-model="model.trncorco.inidattil"
style="width: 100%" style="width: 100%"
placeholder="请选择Date of entry of Transaction until" placeholder="请选择Date of entry of Transaction until"
></el-date-picker> ></c-date-picker>
</c-col> </c-col>
</el-form-item> </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