Commit 2b90d5aa by wangyanjiao

ditopn bug处理

parent 295f01d5
...@@ -218,7 +218,7 @@ function defaultLiaallButmissig() { ...@@ -218,7 +218,7 @@ function defaultLiaallButmissig() {
} }
function defaultDitpRevclauseButtxmsel() { function defaultDitpRevclauseButtxmsel() {
} }
function defaultDidgrpCbsNom1Cur(rule, value, callback) function defaultDidgrpCbsNom1Cur(rule, value, callback)
{ {
const that = this; const that = this;
// 摘要 // 摘要
...@@ -251,10 +251,11 @@ function defaultDidgrpRecMytype() { ...@@ -251,10 +251,11 @@ function defaultDidgrpRecMytype() {
function defaultSetmodXreflg() { function defaultSetmodXreflg() {
} }
function defaultDidgrpRecAvbwth(rule, value, callback) { function defaultDidgrpRecAvbwth(rule, value, callback) {
const that = this; this.executeDefault("didgrp.rec.avbwth").then(res => {
that.executeDefault("didgrp.rec.avbwth").then(res => { if ((res.respCode == "AAAAAA")) {
//TODO console.log("-------------------------------")
callback() Utils.copyValueFromVO(this.model, res.data);
}
}) })
} }
function defaultDidgrpRmbPtsRef() { function defaultDidgrpRmbPtsRef() {
......
...@@ -2,11 +2,13 @@ ...@@ -2,11 +2,13 @@
<div class="eibs-tab"> <div class="eibs-tab">
<!-- ========================= Left ========================= --> <!-- ========================= Left ========================= -->
<c-col :span="11"> <c-col :span="11">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="信用证兑付方式" prop="didgrp.rec.avbby"> <el-form-item label="信用证兑付方式" prop="didgrp.rec.avbby">
<c-select v-model="model.didgrp.rec.avbby" style="width:100%" @change="avbbykeyEvent" placeholder="请选择"> <c-select v-model="model.didgrp.rec.avbby" style="width:100%" @change="avbbykeyEvent"
<el-option v-for="item in codes.avbby0" :key="item.value" :label="item.label" :value="item.value"> placeholder="请选择">
<el-option v-for="item in codes.avbby0" :key="item.value" :label="item.label"
:value="item.value">
</el-option> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -14,140 +16,165 @@ ...@@ -14,140 +16,165 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="付款期限" prop="didgrp.rec.tenmaxday"> <el-form-item label="付款期限" prop="didgrp.rec.tenmaxday">
<c-input :disabled="model.didgrp.rec.avbby == 'P'" v-model.number="model.didgrp.rec.tenmaxday" placeholder="请输入" style="width:100%" maxlength="3" @keyup.enter.native="defaultFunction('didgrp.rec.tenmaxday', model.didgrp.rec.tenmaxday)"></c-input> <c-input :disabled="model.didgrp.rec.avbby == 'P'" v-model.number="model.didgrp.rec.tenmaxday"
placeholder="请输入" style="width:100%" maxlength="3"
@keyup.enter.native="defaultFunction('didgrp.rec.tenmaxday', model.didgrp.rec.tenmaxday)">
</c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col> <c-col>
<el-form-item label="远期付款指示" prop="didgrp.blk.defdet"> <el-form-item label="远期付款指示" prop="didgrp.blk.defdet">
<!-- <c-col :span="21"> --> <!-- <c-col :span="21"> -->
<c-fullbox> <c-fullbox>
<c-input type="textarea" :disabled="model.didgrp.rec.avbby == 'P'" v-model="model.didgrp.blk.defdet" style="width:98%" maxlength="140" show-word-limit placeholder="请输入" :autosize="{ minRows: 3,maxRows:5}"></c-input> <c-input type="textarea" :disabled="model.didgrp.rec.avbby == 'P'"
<!-- </c-col> --> v-model="model.didgrp.blk.defdet" style="width:98%" maxlength="140" show-word-limit
<!-- <c-col :span="3" style="text-align: right"> --> placeholder="请输入" :autosize="{ minRows: 3, maxRows: 5 }"></c-input>
<template slot="footer"> <!-- </c-col> -->
<c-button size="small" style="margin:0 0;" type="primary" icon="el-icon-search" @click="onDefdetButtxmsel"> <!-- <c-col :span="3" style="text-align: right"> -->
</c-button> <template slot="footer">
</template> <c-button size="small" style="margin:0 0;" type="primary" icon="el-icon-search"
</c-fullbox> @click="onDefdetButtxmsel">
<!-- </c-col> --> </c-button>
</el-form-item> </template>
</c-fullbox>
<!-- </c-col> -->
</el-form-item>
</c-col> </c-col>
<c-col> <c-col>
<el-form-item label="交单期限" prop="didgrp.blk.preper"> <el-form-item label="交单期限" prop="didgrp.blk.preper">
<!-- <c-col :span="21"> --> <!-- <c-col :span="21"> -->
<c-fullbox> <c-fullbox>
<c-input type="textarea" v-model="model.didgrp.blk.preper" :disabled="this.flag" style="width:98%" maxlength="105" show-word-limit placeholder="请输入"></c-input> <c-input type="textarea" v-model="model.didgrp.blk.preper" :disabled="this.flag"
<!-- </c-col> --> style="width:98%" maxlength="105" show-word-limit placeholder="请输入"></c-input>
<!-- <c-col :span="3" style="text-align: right"> --> <!-- </c-col> -->
<template slot="footer"> <!-- <c-col :span="3" style="text-align: right"> -->
<c-button size="small" type="primary" style="margin:0 0;" icon="el-icon-search" @click="onPreperButtxmsel"> <template slot="footer">
</c-button> <c-button size="small" type="primary" style="margin:0 0;" icon="el-icon-search"
</template> @click="onPreperButtxmsel">
</c-button>
</template>
</c-fullbox> </c-fullbox>
<!-- </c-col> --> <!-- </c-col> -->
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col> <c-col>
<el-form-item label="" prop="didgrp.blk.preperflg"> <el-form-item label="" prop="didgrp.blk.preperflg">
<c-checkbox v-model="model.didgrp.blk.preperflg" :click="preperflgExtkeyEvent()">修改交单期限文本</c-checkbox> <c-checkbox v-model="model.didgrp.blk.preperflg" :click="preperflgExtkeyEvent()">修改交单期限文本
</el-form-item> </c-checkbox>
</el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="货物运输/交货/服务方式" prop="didgrp.rec.tratyp"> <el-form-item label="货物运输/交货/服务方式" prop="didgrp.rec.tratyp">
<c-select v-model="model.didgrp.rec.tratyp" style="width:100%" placeholder="请选择" @change="recTratypChange" :disabled="model.didgrp.rec.mytype == 'F'"> <c-select v-model="model.didgrp.rec.tratyp" style="width:100%" placeholder="请选择"
<el-option v-for="item in codes.tratyp" :key="item.value" :label="item.label" @change="recTratypChange" :disabled="model.didgrp.rec.mytype == 'F'">
:value="item.value"> <el-option v-for="item in codes.tratyp" :key="item.value" :label="item.label"
</el-option> :value="item.value">
</c-select> </el-option>
</el-form-item> </c-select>
</c-col> </el-form-item>
</c-col> </c-col>
</c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item v-if="model.didgrp.rec.mytype == 'H'" label="手输运输方式" prop="didgrp.rec.sdsrfs"> <el-form-item v-if="model.didgrp.rec.mytype == 'H'" label="手输运输方式" prop="didgrp.rec.sdsrfs">
<c-input type="textarea" v-model="model.didgrp.rec.sdsrfs" :disabled="this.mytypeFlag" maxlength="140" show-word-limit placeholder="请输入"></c-input> <c-input type="textarea" v-model="model.didgrp.rec.sdsrfs" :disabled="this.mytypeFlag"
</el-form-item> maxlength="140" show-word-limit placeholder="请输入"></c-input>
</el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item v-if="model.didgrp.rec.mytype == 'F'" label="服务提供方式" prop="didgrp.rec.sdsrfs"> <el-form-item v-if="model.didgrp.rec.mytype == 'F'" label="服务提供方式" prop="didgrp.rec.sdsrfs">
<c-input type="textarea" v-model="model.didgrp.rec.sdsrfs" maxlength="140" show-word-limit placeholder="请输入"></c-input> <c-input type="textarea" v-model="model.didgrp.rec.sdsrfs" maxlength="140" show-word-limit
</el-form-item> placeholder="请输入"></c-input>
</el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item v-if="model.didgrp.rec.mytype == '3'" label="手输运输方式/服务提供方式" prop="didgrp.rec.sdsrfs"> <el-form-item v-if="model.didgrp.rec.mytype == '3'" label="手输运输方式/服务提供方式" prop="didgrp.rec.sdsrfs">
<c-input type="textarea" v-model="model.didgrp.rec.sdsrfs" :disabled="this.mytypeFlag" maxlength="140" show-word-limit placeholder="请输入"></c-input> <c-input type="textarea" v-model="model.didgrp.rec.sdsrfs" :disabled="this.mytypeFlag"
</el-form-item> maxlength="140" show-word-limit placeholder="请输入"></c-input>
</el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="合同编号" prop="didgrp.rec.conno"> <el-form-item label="合同编号" prop="didgrp.rec.conno">
<c-input v-model="model.didgrp.rec.conno" maxlength="35" placeholder="请输入"></c-input> <c-input v-model="model.didgrp.rec.conno" maxlength="35" placeholder="请输入"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="11"> <c-col :span="11">
<el-form-item label="合同金额" prop="didgrp.rec.conamt"> <el-form-item label="合同金额" prop="didgrp.rec.conamt">
<c-select v-model="model.didgrp.rec.concur" style="width:100%" placeholder="请选择"> <c-select v-model="model.didgrp.rec.concur" style="width:100%" placeholder="请选择">
<el-option label="CNY" value="CNY"> <el-option label="CNY" value="CNY">
<span style="float: left">{{ "CNY 人民币" }}</span> <span style="float: left">{{ "CNY 人民币" }}</span>
</el-option> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="13"> <c-col :span="13">
<el-form-item label-width="5px" prop="didgrp.rec.conamt"> <el-form-item label-width="5px" prop="didgrp.rec.conamt">
<c-input v-model="model.didgrp.rec.conamt" placeholder="请输入"></c-input> <c-input v-model="model.didgrp.rec.conamt" placeholder="请输入"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<!-- ========================= Right ========================= --> <!-- ========================= Right ========================= -->
<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="didgrp.rec.shppar"> <el-form-item label="分批装运货物" prop="didgrp.rec.shppar">
<c-select v-model="model.didgrp.rec.shppar" style="width:100%" placeholder="请选择"> <c-select v-model="model.didgrp.rec.shppar" style="width:100%" placeholder="请选择"
<el-option v-for="item in codes.shppar" :key="item.value" :label="item.label" :value="item.value"> @change="changeFqzytgfw">
</el-option> <el-option v-for="item in codes.shppar" :key="item.value" :label="item.label"
</c-select> :value="item.value">
</el-form-item> </el-option>
</c-select>
</el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="分期装运/提供服务" prop="didgrp.rec.fqzytgfw"> <el-form-item label="分期装运/提供服务" prop="didgrp.rec.fqzytgfw">
<c-select v-model="model.didgrp.rec.fqzytgfw" placeholder="请选择" :disabled="model.didgrp.rec.shppar != 'Y'" style="width:100%"> <c-select v-model="model.didgrp.rec.fqzytgfw" placeholder="请选择"
<el-option v-for="item in codes.shppar" :key="item.value" :label="item.label" :value="item.value"> :disabled="model.didgrp.rec.shppar != 'Y'" style="width:100%">
</el-option> <el-option v-for="item in codes.shppar" :key="item.value" :label="item.label"
</c-select> :value="item.value">
</el-form-item> </el-option>
</c-select>
</el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="分期装运/提供服务约定" prop="didgrp.rec.fqtime"> <el-form-item label="分期装运/提供服务约定" prop="didgrp.rec.fqtime">
<c-input type="textarea" :rows="3" v-model="model.didgrp.rec.fqtime" maxlength="140" show-word-limit placeholder="请输入" style="width:100%"></c-input> <c-input type="textarea" :rows="3" v-model="model.didgrp.rec.fqtime" maxlength="140" show-word-limit
</el-form-item> placeholder="请输入" style="width:100%"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="转运" prop="didgrp.rec.shptrs">
<c-select v-model="model.didgrp.rec.shptrs" style="width:100%" placeholder="请选择"
:disabled="model.didgrp.rec.mytype == 'F'">
<el-option label="禁止" value="禁止"></el-option>
<el-option label="允许" value="允许"></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货物转运地(港)" prop="didgrp.rec.shpfro">
<c-input type="textarea" style="width:100%" :rows="3" v-model="model.didgrp.rec.shpfro"
:disabled="model.didgrp.rec.mytype == 'F'" maxlength="35" show-word-limit placeholder="请输入">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货物目的地/交货地(港)" prop="didgrp.rec.shpto">
<c-input type="textarea" style="width:100%" :rows="3" v-model="model.didgrp.rec.shpto"
:disabled="model.didgrp.rec.mytype == 'F'" maxlength="35" show-word-limit placeholder="请输入">
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="服务提供地点" prop="didgrp.rec.shppro">
<c-input type="textarea" style="width:100%" :rows="3" v-model="model.didgrp.rec.shppro"
:disabled="model.didgrp.rec.mytype == 'H'" maxlength="35" show-word-limit placeholder="请输入">
</c-input>
</el-form-item>
</c-col> </c-col>
<c-col :span="24">
<el-form-item label="转运" prop="didgrp.rec.shptrs">
<c-select v-model="model.didgrp.rec.shptrs" style="width:100%" placeholder="请选择" :disabled="model.didgrp.rec.mytype == 'F'">
<el-option label="不允许" value="禁止"></el-option>
<el-option label="允许" value="允许"></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货物转运地(港)" prop="didgrp.rec.shpfro">
<c-input type="textarea" style="width:100%" :rows="3" v-model="model.didgrp.rec.shpfro" :disabled="model.didgrp.rec.mytype == 'F'" maxlength="35" show-word-limit placeholder="请输入"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货物目的地/交货地(港)" prop="didgrp.rec.shpto">
<c-input type="textarea" style="width:100%" :rows="3" v-model="model.didgrp.rec.shpto" :disabled="model.didgrp.rec.mytype == 'F'" maxlength="35" show-word-limit placeholder="请输入"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="服务提供地点" prop="didgrp.rec.shppro">
<c-input type="textarea" style="width:100%" :rows="3" v-model="model.didgrp.rec.shppro" :disabled="model.didgrp.rec.mytype == 'H'" maxlength="35" show-word-limit placeholder="请输入"></c-input>
</el-form-item>
</c-col>
</c-col> </c-col>
<!-- <c-col :span="12"> <!-- <c-col :span="12">
...@@ -178,54 +205,71 @@ import Utils from "~/utils"; ...@@ -178,54 +205,71 @@ import Utils from "~/utils";
export default { export default {
inject: ['root'], inject: ['root'],
mixins: [commonProcess], mixins: [commonProcess],
props:["model","codes"], props: ["model", "codes"],
data(){ data() {
return { return {
flag:false, flag: false,
mytypeFlag:true, mytypeFlag: true,
} }
}, },
methods:{...Event, methods: {
preperflgExtkeyEvent(){ ...Event,
changeFqzytgfw() {
this.executeDefault("didgrp.rec.fqzytgfw").then(
(res) => {
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data);
}
}
)
},
preperflgExtkeyEvent() {
this.flag = !this.model.didgrp.blk.preperflg this.flag = !this.model.didgrp.blk.preperflg
if (this.flag === true){ if (this.flag === true) {
this.model.didgrp.blk.preper = "货物装运日后15天"; this.model.didgrp.blk.preper = "货物装运日后15天";
} }
}, },
avbbykeyEvent(){ avbbykeyEvent() {
if(this.model.didgrp.rec.avbby == 'P'){ if (this.model.didgrp.rec.avbby == 'P') {
this.model.didgrp.rec.tenmaxday = 0; this.model.didgrp.rec.tenmaxday = 0;
this.model.didgrp.blk.defdet = ""; this.model.didgrp.blk.defdet = "";
} }
this.executeCheck("didgrp.rec.avbby").then( this.executeCheck("didgrp.rec.avbby").then(
(res) => { (res) => {
if (res.respCode == SUCCESS){ if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data); Utils.copyValueFromVO(this.model, res.data);
} }
} }
); );
this.executeDefault("didgrp.blk.defdet").then(
(res) => {
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data);
}
}
)
}, },
recTenmaxdayEvent(){ recTenmaxdayEvent() {
this.executeDefault("didgrp.rec.tenmaxday").then( this.executeDefault("didgrp.rec.tenmaxday").then(
(res) => { (res) => {
if (res.respCode == SUCCESS){ if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data); Utils.copyValueFromVO(this.model, res.data);
} }
} }
); );
}, },
recTratypChange(){ recTratypChange() {
if (this.model.didgrp.rec.tratyp == "08"){ if (this.model.didgrp.rec.tratyp == "08") {
this.model.didgrp.rec.sdsrfs = ""; this.model.didgrp.rec.sdsrfs = "";
this.mytypeFlag = false; this.mytypeFlag = false;
}else{ } else {
this.model.didgrp.rec.sdsrfs = ""; this.model.didgrp.rec.sdsrfs = "";
this.mytypeFlag = true; this.mytypeFlag = true;
} }
} }
}, },
created:function(){ created: function () {
} }
} }
......
...@@ -53,8 +53,8 @@ ...@@ -53,8 +53,8 @@
></c-input> ></c-input>
</el-form-item> --> </el-form-item> -->
<c-ptapdome <c-ptapdome
:disabledJigomc="true" :disabledJigomc="false"
:disabledDizhii="true" :disabledDizhii="false"
:model="model" :model="model"
:argadr="{ :argadr="{
title: '通知行', title: '通知行',
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<c-col :span="13"> <c-col :span="13">
<el-form-item label="通知行邮编" prop="didgrp.adv.pts.youzbm"> <el-form-item label="通知行邮编" prop="didgrp.adv.pts.youzbm">
<c-input <c-input
disabled :disabled="false"
v-model="model.didgrp.adv.pts.youzbm" v-model="model.didgrp.adv.pts.youzbm"
maxlength="6" maxlength="6"
placeholder="请输入邮编 电证用" placeholder="请输入邮编 电证用"
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
label-width="100px" label-width="100px"
> >
<c-input <c-input
disabled :disabled="false"
v-model="model.didgrp.adv.pts.dihdig" v-model="model.didgrp.adv.pts.dihdig"
maxlength="16" maxlength="16"
placeholder="请输入电话" placeholder="请输入电话"
...@@ -154,9 +154,9 @@ ...@@ -154,9 +154,9 @@
></c-input> ></c-input>
</el-form-item> --> </el-form-item> -->
<c-ptapdome <c-ptapdome
:disabledBankno="model.didgrp.rec.fenctg != 'Y'" :disabledBankno="model.didgrp.rec.avbwth != 'S'"
:disabledJigomc="true" :disabledJigomc="true"
:disabledDizhii="model.didgrp.rec.fenctg != 'Y'" :disabledDizhii="model.didgrp.rec.avbwth != 'S'"
:model="model" :model="model"
:argadr="{ :argadr="{
title: '议付行', title: '议付行',
...@@ -351,7 +351,7 @@ ...@@ -351,7 +351,7 @@
</el-form-item> --> </el-form-item> -->
<c-ptapdome <c-ptapdome
:disabledBankno="model.didgrp.rec.bdflg != 'Y'" :disabledBankno="model.didgrp.rec.bdflg != 'Y'"
:disabledJigomc="true" :disabledJigomc="model.didgrp.rec.bdflg != 'Y'"
:disabledDizhii="model.didgrp.rec.bdflg != 'Y'" :disabledDizhii="model.didgrp.rec.bdflg != 'Y'"
:model="model" :model="model"
:argadr="{ :argadr="{
......
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