Commit 8cfbeff7 by 1377875331@qq.com

样式修改

parent 75059cef
...@@ -4900,8 +4900,8 @@ const CodeTable = { ...@@ -4900,8 +4900,8 @@ const CodeTable = {
{label:"Error",value:"E" }, {label:"Error",value:"E" },
], ],
shppar:[ shppar:[
{label:"NOT ALLOWED",value:"N" }, {label:"不允许",value:"N" },
{label:"ALLOWED",value:"Y" }, {label:"允许",value:"Y" },
], ],
shwfil:[ shwfil:[
{label:"No",value:"" }, {label:"No",value:"" },
......
...@@ -166,7 +166,11 @@ function checkLiaallLimmodOwnrefN100(rule, value, callback) { ...@@ -166,7 +166,11 @@ function checkLiaallLimmodOwnrefN100(rule, value, callback) {
* ditp * ditp
*/ */
function checkDidgrpRecExpplcN900(rule, value, callback) { function checkDidgrpRecExpplcN900(rule, value, callback) {
callback() const that = this;
that.exeuteCheck("didgrp.rec.expplc").then(res => {
//TODO
callback()
})
} }
/** /**
* source:ditp.@0088.script * source:ditp.@0088.script
...@@ -286,7 +290,11 @@ function checkDidgrpRecShptoN100(rule, value, callback) { ...@@ -286,7 +290,11 @@ function checkDidgrpRecShptoN100(rule, value, callback) {
* ditp.benp * ditp.benp
*/ */
function checkDidgrpBenNamelcN100(rule, value, callback) { function checkDidgrpBenNamelcN100(rule, value, callback) {
callback() const that = this;
that.exeuteCheck("didgrp.ben.namelc").then(res => {
//TODO
callback()
})
} }
/** /**
* source:ptsp.@0031.script * source:ptsp.@0031.script
...@@ -325,7 +333,11 @@ function checkDidgrpRmbAdrelcN100(rule, value, callback) { ...@@ -325,7 +333,11 @@ function checkDidgrpRmbAdrelcN100(rule, value, callback) {
* ditp.aplp.ptsget * ditp.aplp.ptsget
*/ */
function checkDidgrpAplPtsExtkeyN950(rule, value, callback) { function checkDidgrpAplPtsExtkeyN950(rule, value, callback) {
callback() const that = this;
that.exeuteCheck("didgrp.apl.pts.extkey").then(res => {
//TODO
callback()
})
} }
/** /**
* source:ptsp.@0013.script * source:ptsp.@0013.script
...@@ -416,7 +428,11 @@ function checkDidgrpRmbPtsBanknoN100(rule, value, callback) { ...@@ -416,7 +428,11 @@ function checkDidgrpRmbPtsBanknoN100(rule, value, callback) {
* ditp.benp * ditp.benp
*/ */
function checkDidgrpBenAdrelcN100(rule, value, callback) { function checkDidgrpBenAdrelcN100(rule, value, callback) {
callback() const that = this;
that.exeuteCheck("didgrp.ben.adrelc").then(res => {
//TODO
callback()
})
} }
/** /**
* source:ditp.@0043.script * source:ditp.@0043.script
...@@ -649,7 +665,11 @@ function checkDidgrpIssPtsDihdigN1001(rule, value, callback) { ...@@ -649,7 +665,11 @@ function checkDidgrpIssPtsDihdigN1001(rule, value, callback) {
* ditp.aplp * ditp.aplp
*/ */
function checkDidgrpAplNamelcN100(rule, value, callback) { function checkDidgrpAplNamelcN100(rule, value, callback) {
callback() const that = this;
that.exeuteCheck("didgrp.apl.namelc").then(res => {
//TODO
callback()
})
} }
/** /**
* source:ditp.@0039.script * source:ditp.@0039.script
...@@ -748,7 +768,12 @@ function checkDidgrpRecAvbbyN100(rule, value, callback) { ...@@ -748,7 +768,12 @@ function checkDidgrpRecAvbbyN100(rule, value, callback) {
* ditp * ditp
*/ */
function checkDidgrpRecMytypeN100(rule, value, callback) { function checkDidgrpRecMytypeN100(rule, value, callback) {
const that = this;
callback() callback()
that.model.didgrp.rec.sdsrfs = "";
that.model.didgrp.rec.shpfro = "";
that.model.didgrp.rec.shpto = "";
that.model.didgrp.rec.shppro = "";
} }
/** /**
* source:ditp.@0012.script * source:ditp.@0012.script
...@@ -854,7 +879,11 @@ function checkDidgrpRecExpdatN100(rule, value, callback) { ...@@ -854,7 +879,11 @@ function checkDidgrpRecExpdatN100(rule, value, callback) {
* ditp.benp.ptsget * ditp.benp.ptsget
*/ */
function checkDidgrpBenPtsExtkeyN950(rule, value, callback) { function checkDidgrpBenPtsExtkeyN950(rule, value, callback) {
callback() const that = this;
that.exeuteCheck("didgrp.ben.pts.extkey").then(res => {
//TODO
callback()
})
} }
/** /**
* source:ptsp.@0013.script * source:ptsp.@0013.script
...@@ -952,7 +981,10 @@ function checkDidgrpBlkPreperN100(rule, value, callback) { ...@@ -952,7 +981,10 @@ function checkDidgrpBlkPreperN100(rule, value, callback) {
* ditp.aplp * ditp.aplp
*/ */
function checkDidgrpAplAdrelcN100(rule, value, callback) { function checkDidgrpAplAdrelcN100(rule, value, callback) {
callback() const that = this;
that.exeuteCheck("didgrp.apl.adrelc").then(res => {
callback()
})
} }
/** /**
* source:ptsget.@0001.script * source:ptsget.@0001.script
......
...@@ -386,5 +386,8 @@ export default { ...@@ -386,5 +386,8 @@ export default {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.model.ditp.remark = rtnmsg.data.ditp_remark this.model.ditp.remark = rtnmsg.data.ditp_remark
} }
},
async onExtkey(e){
} }
} }
\ No newline at end of file
...@@ -279,7 +279,7 @@ export default { ...@@ -279,7 +279,7 @@ export default {
"didgrp.rec.tenmaxday": [ "didgrp.rec.tenmaxday": [
{ type: "string", required: false, message: "必输项", trigger: "blur" }, { type: "string", required: true, message: "必输项", trigger: "blur" },
{ max: 3, message: "长度不能超过3", trigger: "blur" } { max: 3, message: "长度不能超过3", trigger: "blur" }
], ],
......
...@@ -4,25 +4,25 @@ ...@@ -4,25 +4,25 @@
<!-- ========================= Left ========================= --> <!-- ========================= Left ========================= -->
<el-col :span="12"> <el-col :span="12">
<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%" placeholder="请选择"> <c-select v-model="model.didgrp.rec.avbby" style="width:100%" @change="avbbykeyEvent" placeholder="请选择">
<el-option v-for="item in codes.avbby0" :key="item.value" :label="item.label" :value="item.value"> <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>
<el-form-item label="付款期限" prop="didgrp.rec.tenmaxday"> <el-form-item label="付款期限" prop="didgrp.rec.tenmaxday">
<c-input v-model="model.didgrp.rec.tenmaxday" placeholder="请输入"></c-input> <c-input :disabled="model.didgrp.rec.avbby == 'P'" v-model="model.didgrp.rec.tenmaxday" placeholder="请输入"></c-input>
</el-form-item> </el-form-item>
<el-form-item label="远期付款指示" prop="didgrp.blk.defdet"> <el-form-item label="远期付款指示" prop="didgrp.blk.defdet">
<c-input type="textarea" v-model="model.didgrp.blk.defdet" :readonly="true" style="width:70%;margin-right:20px;" maxlength="140" show-word-limit placeholder="请输入"></c-input> <c-input type="textarea" :disabled="model.didgrp.rec.avbby == 'P'" v-model="model.didgrp.blk.defdet" style="width:70%;margin-right:20px;" maxlength="140" show-word-limit placeholder="请输入"></c-input>
<c-button size="small" type="primary" icon="el-icon-search" @click="onDefdetButtxmsel"> <c-button size="small" type="primary" icon="el-icon-search" @click="onDefdetButtxmsel">
... ...
</c-button> </c-button>
</el-form-item> </el-form-item>
<el-form-item label="交单期限" prop="didgrp.blk.preper"> <el-form-item label="交单期限" prop="didgrp.blk.preper">
<c-input type="textarea" v-model="model.didgrp.blk.preper" :readonly="this.flag" style="width:70%;margin-right:20px;" maxlength="105" show-word-limit placeholder="请输入"></c-input> <c-input type="textarea" v-model="model.didgrp.blk.preper" :disabled="this.flag" style="width:70%;margin-right:20px;" maxlength="105" show-word-limit placeholder="请输入"></c-input>
<c-button size="small" type="primary" icon="el-icon-search" @click="onPreperButtxmsel"> <c-button size="small" type="primary" icon="el-icon-search" @click="onPreperButtxmsel">
... ...
</c-button> </c-button>
...@@ -40,9 +40,16 @@ ...@@ -40,9 +40,16 @@
</c-select> </c-select>
</el-form-item> </el-form-item>
<el-form-item 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" :readonly="true" maxlength="140" show-word-limit placeholder="请输入"></c-input> <c-input type="textarea" v-model="model.didgrp.rec.sdsrfs" :disabled="model.didgrp.rec.mytype == 'H'" maxlength="140" show-word-limit placeholder="请输入"></c-input>
</el-form-item> </el-form-item>
<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>
</el-form-item>
<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="true" maxlength="140" show-word-limit placeholder="请输入"></c-input>
</el-form-item>
<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>
...@@ -70,7 +77,7 @@ ...@@ -70,7 +77,7 @@
</el-form-item> </el-form-item>
<el-form-item label="分期装运/提供服务" prop="didgrp.rec.fqzytgfw"> <el-form-item label="分期装运/提供服务" prop="didgrp.rec.fqzytgfw">
<c-input v-model="model.didgrp.rec.fqzytgfw" placeholder="请输入" :readonly="true"></c-input> <c-input v-model="model.didgrp.rec.fqzytgfw" placeholder="请输入" :disabled="model.didgrp.rec.shppar == 'N'"></c-input>
</el-form-item> </el-form-item>
<el-form-item label="分期装运/提供服务约定" prop="didgrp.rec.fqtime"> <el-form-item label="分期装运/提供服务约定" prop="didgrp.rec.fqtime">
...@@ -85,15 +92,15 @@ ...@@ -85,15 +92,15 @@
</el-form-item> </el-form-item>
<el-form-item label="货物转运地(港)" prop="didgrp.rec.shpfro"> <el-form-item label="货物转运地(港)" prop="didgrp.rec.shpfro">
<c-input type="textarea" :rows="3" v-model="model.didgrp.rec.shpfro" maxlength="35" show-word-limit placeholder="请输入"></c-input> <c-input type="textarea" :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> </el-form-item>
<el-form-item label="货物目的地/交货地(港)" prop="didgrp.rec.shpto"> <el-form-item label="货物目的地/交货地(港)" prop="didgrp.rec.shpto">
<c-input type="textarea" :rows="3" v-model="model.didgrp.rec.shpto" maxlength="35" show-word-limit placeholder="请输入"></c-input> <c-input type="textarea" :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> </el-form-item>
<el-form-item label="服务提供地点" prop="didgrp.rec.shppro"> <el-form-item label="服务提供地点" prop="didgrp.rec.shppro">
<c-input type="textarea" :rows="3" v-model="model.didgrp.rec.shppro" :readonly="true" maxlength="35" show-word-limit placeholder="请输入"></c-input> <c-input type="textarea" :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> </el-form-item>
</el-col> </el-col>
...@@ -130,8 +137,12 @@ export default { ...@@ -130,8 +137,12 @@ export default {
methods:{...Event, methods:{...Event,
preperflgExtkeyEvent(){ preperflgExtkeyEvent(){
this.flag = !this.model.didgrp.blk.preperflg this.flag = !this.model.didgrp.blk.preperflg
console.log(this.flag)
}, },
avbbykeyEvent(){
if(this.model.didgrp.rec.avbby == 'P'){
this.model.didgrp.rec.tenmaxday = 0;
}
}
}, },
created:function(){ created:function(){
......
...@@ -50,20 +50,26 @@ ...@@ -50,20 +50,26 @@
v-model="model.ditp.usr.extkey" v-model="model.ditp.usr.extkey"
maxlength="8" maxlength="8"
placeholder="请输入User ID" placeholder="请输入User ID"
disabled
></c-input> ></c-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item <el-form-item label="" label-width="15px">
label="" <c-button
label-width="15px" size="small"
prop="didgrp.rec.resflg" type="primary;width:10%"
> @click="onExtkey"
<c-checkbox v-model="model.didgrp.rec.resflg" >i</c-button
>Reserved Contract</c-checkbox
> >
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col>
&nbsp;
</el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="信用证金额" prop="didgrp.cbs.nom1.cur"> <el-form-item label="信用证金额" prop="didgrp.cbs.nom1.cur">
<c-select <c-select
...@@ -101,6 +107,7 @@ ...@@ -101,6 +107,7 @@
v-model="model.ditp.amt" v-model="model.ditp.amt"
maxlength="76" maxlength="76"
placeholder="请输入大写金额" placeholder="请输入大写金额"
disabled
></c-input> ></c-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -112,7 +119,6 @@ ...@@ -112,7 +119,6 @@
></c-input> ></c-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" style="text-align: left"> <el-col :span="12" style="text-align: left">
<el-form-item <el-form-item
label="-" label="-"
...@@ -127,12 +133,19 @@ ...@@ -127,12 +133,19 @@
></c-input> ></c-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col>
&nbsp;
</el-col>
<el-col :span="14"> <el-col :span="14">
<el-form-item label="信用证最大金额" prop="didgrp.cbs.max.cur"> <el-form-item label="信用证最大金额" prop="didgrp.cbs.max.cur">
<c-select <c-select
v-model="model.didgrp.cbs.max.cur" v-model="model.didgrp.cbs.max.cur"
style="width: 100%" style="width: 100%"
placeholder="请选择Currency" placeholder="请选择Currency"
disabled
> >
<el-option <el-option
v-for="item in codes.cur" v-for="item in codes.cur"
...@@ -227,6 +240,7 @@ ...@@ -227,6 +240,7 @@
<el-form-item label="有效地点" prop="didgrp.rec.expplc"> <el-form-item label="有效地点" prop="didgrp.rec.expplc">
<c-input <c-input
type="textarea" type="textarea"
:rows="3"
v-model="model.didgrp.rec.expplc" v-model="model.didgrp.rec.expplc"
maxlength="35" maxlength="35"
show-word-limit show-word-limit
...@@ -396,7 +410,7 @@ ...@@ -396,7 +410,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="Chinese address"> <el-form-item label="Chinese address">Extkey</el-form-item>>
<c-input type="textarea" v-model="model.didgrp.apl.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input> <c-input type="textarea" v-model="model.didgrp.apl.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -414,10 +428,6 @@ ...@@ -414,10 +428,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24">
<el-form-item label=""> </el-form-item>
</el-col>
<el-col :span="14"> <el-col :span="14">
<el-form-item label="邮编" prop="didgrp.apl.pts.youzbm"> <el-form-item label="邮编" prop="didgrp.apl.pts.youzbm">
<c-input <c-input
...@@ -443,10 +453,6 @@ ...@@ -443,10 +453,6 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label=""> </el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="申请人账号" prop="didgrp.apl.pts.extact"> <el-form-item label="申请人账号" prop="didgrp.apl.pts.extact">
<c-select <c-select
v-model="model.didgrp.apl.pts.extact" v-model="model.didgrp.apl.pts.extact"
...@@ -627,7 +633,7 @@ ...@@ -627,7 +633,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item <el-form-item
label="益人开户行 联行行号" label="益人开户行 联行行号"
prop="didgrp.beb.pts.bankno" prop="didgrp.beb.pts.bankno"
> >
<c-input <c-input
......
...@@ -235,14 +235,19 @@ export default { ...@@ -235,14 +235,19 @@ export default {
computed:{ computed:{
flg(){ flg(){
return this.model.didgrp.rec.elcflg return this.model.didgrp.rec.elcflg
},
avbby(){
return this.model.didgrp.rec.avbby
} }
}, },
watch:{ watch:{
flg(){ flg(){
this.pattern["didgrp.avb.pts.bankno"][0].required = this.model.didgrp.rec.elcflg == "Y"; this.pattern["didgrp.avb.pts.bankno"][0].required = this.model.didgrp.rec.elcflg == "Y";
console.log(this.pattern["didgrp.avb.pts.bankno"][0].required);
}, },
avbby(){
this.pattern["didgrp.rec.tenmaxday"][0].required = this.model.didgrp.rec.avbby == "D";
}
} }
......
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