Commit 421dc336 by wangyanjiao

bdtdck checkbox互斥修改

parent e4da82ef
<template> <template>
<c-content> <c-content>
<c-row> <c-row>
<!-- 左边 --> <!-- 左边 -->
<c-col :span="14"> <c-col :span="14">
<c-col :span="20"> <c-col :span="20">
<el-form-item label="不符点"> <el-form-item label="不符点">
<c-input type="textarea" :disabled="!model.bddgrp.rec.igndisflg && model.bddgrp.blk.docdisflg ? false : true" <c-input type="textarea"
:rows="6" v-model="model.bddgrp.blk.docdis" maxlength="65" show-word-limit placeholder="请输入不符点"></c-input> :disabled="!model.bddgrp.rec.igndisflg && model.bddgrp.blk.docdisflg ? false : true" :rows="6"
</el-form-item> v-model="model.bddgrp.blk.docdis" maxlength="65" show-word-limit placeholder="请输入不符点"></c-input>
</c-col> </el-form-item>
</c-col>
<c-col :span="4"> <c-col :span="4">
<c-button size="small" type="primary" icon="el-icon-search" @click="onDocdisButtxmsel" <c-button size="small" type="primary" icon="el-icon-search" @click="onDocdisButtxmsel"
:disabled="!model.bddgrp.rec.igndisflg && model.bddgrp.blk.docdisflg ? false : true"> :disabled="!model.bddgrp.rec.igndisflg && model.bddgrp.blk.docdisflg ? false : true">
... ...
</c-button> </c-button>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="Comments and Conclusions" prop="bddgrp.blk.comcon"> <el-form-item label="Comments and Conclusions" prop="bddgrp.blk.comcon">
<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
placeholder="请输入Comments and Conclusions" :rows="12" style="width:95%"></c-input> placeholder="请输入Comments and Conclusions" :rows="12" style="width:95%"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="到期付款确认备注" prop="bddgrp.blk.accrmk"> <el-form-item label="到期付款确认备注" prop="bddgrp.blk.accrmk">
<c-input type="textarea" v-model="model.bddgrp.blk.accrmk" maxlength="65" show-word-limit <c-input type="textarea" v-model="model.bddgrp.blk.accrmk" maxlength="65" show-word-limit
placeholder="请输入到期付款确认备注" style="width:95%"></c-input> placeholder="请输入到期付款确认备注" style="width:95%"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- <c-col :span="24"> <!-- <c-col :span="24">
<span v-text="model.bdtp.docgrdm.docdsclab" data-path=".bdtp.docgrdm.docdsclab" > </span> <span v-text="model.bdtp.docgrdm.docdsclab" data-path=".bdtp.docgrdm.docdsclab" > </span>
</c-col> --> </c-col> -->
<!-- <c-col :span="24" style="height: 24px; margin-top: -10px"> <!-- <c-col :span="24" style="height: 24px; margin-top: -10px">
<el-form-item :label="model.bdtp.docgrdm.docdsclab" class="messageLabel"> <el-form-item :label="model.bdtp.docgrdm.docdsclab" class="messageLabel">
<c-button style="float: right" @click="addTableValue" type="primary">新增单据</c-button> <c-button style="float: right" @click="addTableValue" type="primary">新增单据</c-button>
</el-form-item> </el-form-item>
...@@ -71,79 +71,77 @@ ...@@ -71,79 +71,77 @@
</c-table> </c-table>
</c-col> --> </c-col> -->
<c-col> <c-col>
<c-docpre <c-docpre :model="model" :argadr="{
:model="model"
:argadr="{
path: 'bddgrp.blk.prsdoc', path: 'bddgrp.blk.prsdoc',
grp: 'bdtp', grp: 'bdtp',
code: 'bdtdck', code: 'bdtdck',
}"></c-docpre> }"></c-docpre>
</c-col>
</c-col> </c-col>
</c-col>
<!-- 右边 --> <!-- 右边 -->
<c-col :span="10"> <c-col :span="10">
<c-row> <c-row>
<c-col :span="24" :offset="8"> <c-col :span="24" :offset="8">
<c-checkbox v-model="model.bddgrp.rec.igndisflg"> <c-checkbox v-model="model.bddgrp.rec.igndisflg" @change="change1">
忽略不符点 忽略不符点
</c-checkbox> </c-checkbox>
</c-col> </c-col>
<c-col :span="24" :offset="8"> <c-col :span="24" :offset="8">
<c-checkbox v-model="model.bddgrp.blk.docdisflg" :disabled="model.bddgrp.rec.igndisflg ? true : false"> <c-checkbox v-model="model.bddgrp.blk.docdisflg" :disabled="model.bddgrp.rec.igndisflg ? true : false">
录入不符点 录入不符点
</c-checkbox> </c-checkbox>
</c-col> </c-col>
</c-row> </c-row>
<br /><br /><br /><br /> <br /><br /><br /><br />
<c-row> <c-row>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="收到的通知类" prop="bddgrp.rec.advtyp"> <el-form-item label="收到的通知类型" prop="bddgrp.rec.advtyp">
<c-select v-model="model.bddgrp.rec.advtyp" style="width:100%" placeholder="请选择Type of Advice Received" <c-select v-model="model.bddgrp.rec.advtyp" style="width:100%" placeholder="请选择Type of Advice Received"
:disabled="true"> :disabled="true">
</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="bddgrp.rec.totdat"> <el-form-item label="付款日期" prop="bddgrp.rec.totdat">
<c-date-picker type="date" v-model="model.bddgrp.rec.totdat" style="width:100%" placeholder="请选择付款日期"> <c-date-picker type="date" v-model="model.bddgrp.rec.totdat" style="width:100%" placeholder="请选择付款日期">
</c-date-picker> </c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="不符点通知日期" prop="bddgrp.rec.disdat"> <el-form-item label="不符点通知日期" prop="bddgrp.rec.disdat">
<c-date-picker type="date" v-model="model.bddgrp.rec.disdat" style="width:100%" placeholder="请选择不符点通知日期" <c-date-picker type="date" v-model="model.bddgrp.rec.disdat" style="width:100%" placeholder="请选择不符点通知日期"
:disabled="true"> :disabled="true">
</c-date-picker> </c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24" :offset="8"> <c-col :span="24" :offset="8">
<c-checkbox v-model="model.bddgrp.rec.approvcod">议付行担保议付</c-checkbox> <c-checkbox v-model="model.bddgrp.rec.approvcod">议付行担保议付</c-checkbox>
</c-col> </c-col>
<c-col :span="24" :offset="8" v-if="false"> <c-col :span="24" :offset="8" v-if="false">
<c-checkbox v-model="model.bdtp.cre752flg">Create 752</c-checkbox> <c-checkbox v-model="model.bdtp.cre752flg">Create 752</c-checkbox>
</c-col> </c-col>
<c-col :span="24" v-if="false"> <c-col :span="24" v-if="false">
<el-form-item label="Further Identification" prop="bdtp.furide"> <el-form-item label="Further Identification" prop="bdtp.furide">
<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" :offset="8"> <c-col :span="24" :offset="8">
<c-checkbox v-model="model.bdtp.cre732flg" :disabled="!model.bddgrp.rec.acpnowflg != ''">Create MT 732 <c-checkbox v-model="model.bdtp.cre732flg" :disabled="!model.bddgrp.rec.acpnowflg != ''">Create MT 732
</c-checkbox> </c-checkbox>
</c-col> </c-col>
</c-row> </c-row>
</c-col> </c-col>
<!-- <c-col :span="12"> <!-- <c-col :span="12">
<c-checkbox v-model="model.bddgrp.rec.igndisflg">Ignore Discrepancies</c-checkbox> <c-checkbox v-model="model.bddgrp.rec.igndisflg">Ignore Discrepancies</c-checkbox>
</c-col> </c-col>
...@@ -216,79 +214,84 @@ ...@@ -216,79 +214,84 @@
<c-col :span="12"> <c-col :span="12">
<span v-text="model.bdtp.docgrdm.docdsclab" data-path=".bdtp.docgrdm.docdsclab" > </span> <span v-text="model.bdtp.docgrdm.docdsclab" data-path=".bdtp.docgrdm.docdsclab" > </span>
</c-col> --> </c-col> -->
</c-row> </c-row>
</c-content> </c-content>
</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/Bdtdck/Event" import Event from "~/model/Bdtdck/Event"
import Docpre from "~/views/Public/Docpre"; import Docpre from "~/views/Public/Docpre";
import Utils from "~/utils"; import Utils from "~/utils";
export default { export default {
components: { components: {
"c-docpre": Docpre, "c-docpre": Docpre,
}, },
inject: ['root'], inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return { return {
TableValue: [ TableValue: [
{ {
id: 0,
cmail1: "1",
cmail2: "2",
docnam: "1",
},
],
newValue: {
id: 0, id: 0,
cmail1: "1", cmail1: "",
cmail2: "2", cmail2: "",
docnam: "1", docnam: "",
description: "",
serialNum: "",
tableName: "",
tcddoc: "",
}, },
], codeTable: [
newValue: { { label: "增值税发票", value: "1" },
id: 0, { label: "发票", value: "2" },
cmail1: "", { label: "装箱单", value: "3" },
cmail2: "", { label: "空运单", value: "4" },
docnam: "", { label: "海运提单", value: "5" },
description: "", { label: "铁路运单", value: "6" },
serialNum: "", { label: "货物收据", value: "7" },
tableName: "", { label: "邮政收据", value: "8" },
tcddoc: "", ],
},
codeTable: [
{ label: "增值税发票", value: "1" },
{ label: "发票", value: "2" },
{ label: "装箱单", value: "3" },
{ label: "空运单", value: "4" },
{ label: "海运提单", value: "5" },
{ label: "铁路运单", value: "6" },
{ label: "货物收据", value: "7" },
{ label: "邮政收据", value: "8" },
],
} }
},
methods: {
...Event,
addTableValue(index) {
var newTableValue = Object.assign({}, this.newValue);
const serial = Utils.generateUUID();
newTableValue.serialNum = serial;
this.model.bdtp.docgrdm.docgrd.splice(index - 1, 0, newTableValue);
}, },
deleteTable(index) { methods: {
this.model.bdtp.docgrdm.docgrd.splice(index, 1); ...Event,
async change1() {
if (this.model.bddgrp.rec.igndisflg == 'X') {
this.model.bddgrp.blk.docdisflg = '';
}
},
addTableValue(index) {
var newTableValue = Object.assign({}, this.newValue);
const serial = Utils.generateUUID();
newTableValue.serialNum = serial;
this.model.bdtp.docgrdm.docgrd.splice(index - 1, 0, newTableValue);
},
deleteTable(index) {
this.model.bdtp.docgrdm.docgrd.splice(index, 1);
},
}, },
},
created: function () { created: function () {
}
} }
}
</script> </script>
<style> <style>
.messageLabel>>>.el-form-item__label { .messageLabel>>>.el-form-item__label {
text-align: left; text-align: left;
font-weight: bold; font-weight: bold;
font-size: 12px; font-size: 12px;
} }
</style> </style>
\ No newline at end of file
...@@ -312,7 +312,7 @@ ...@@ -312,7 +312,7 @@
</c-col> </c-col>
</el-row> </el-row>
<m-busbtn ref="childs" :ownref="ownref" trnCode="ditsel" :model="ditselModel" ownrefPath="bddgrp" tabIndex=3 @onChoose="onChoose" >11</m-busbtn> <m-busbtn ref="childs" :ownref="ownref" trnCode="ditsel" :model="ditselModel" ownrefPath="bddgrp" tabIndex=3 @onChoose="onChoose" >11</m-busbtn>
</div> </div>
</template> </template>
<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