Commit 8b776d8c by wangyanjiao

恢复ditopn分录,加上docpre对增删的if判断,修复botdcr表格bug

parent 61c0f6b1
...@@ -219,8 +219,12 @@ ...@@ -219,8 +219,12 @@
grp: 'botp', grp: 'botp',
code: 'docpre', code: 'docpre',
}" }"
:disabledDocnam="model.rejtypsel != 'R'"
:disabledCmail2="model.rejtypsel != 'R'"
:disabledCmail1="model.rejtypsel != 'R'"
:ifShowAdd="model.rejtypsel == 'R'" :ifShowAdd="model.rejtypsel == 'R'"
:ifShowDelete="model.rejtypsel == 'R'"></c-docpre> :ifShowDelete="model.rejtypsel == 'R'">
</c-docpre>
</c-col> </c-col>
...@@ -251,50 +255,6 @@ export default { ...@@ -251,50 +255,6 @@ export default {
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return { return {
codeTable: [
{ label: "Airway Bills", value: "Airway Bills" },
{ label: "Beneficiary's Declaration", value: "Beneficiary's Declaration" },
{ label: "Bill of Lading Copies", value: "Bill of Lading Copies" },
{ label: "Bill of Lading Originals", value: "Bill of Lading Originals" },
{ label: "Certificate", value: "Certificate" },
{ label: "Certificate of Analysis", value: "Certificate of Analysis" },
{ label: "Certificate of Origin", value: "Certificate of Origin" },
{ label: "Certificate of Quality", value: "Certificate of Quality" },
{ label: "Certificate of Quantity", value: "Certificate of Quantity" },
{ label: "Commercial Invoice", value: "Commercial Invoice" },
{ label: "Courier Receipt", value: "Courier Receipt" },
{ label: "Draft", value: "Draft" },
{ label: "Export Licence", value: "Export Licence" },
{ label: "Fax Report", value: "Fax Report" },
{ label: "Inspection Cert", value: "Inspection Cert" },
{ label: "Insurance Policy", value: "Insurance Policy" },
{ label: "Packing List", value: "Packing List" },
{ label: "Shipment Advice", value: "Shipment Advice" },
{ label: "Weight List", value: "Weight List" },
],
TableValue: [
{
id: 0,
cmail1: "",
cmail2: "",
docnam: "",
description: "",
serialNum: "",
tableName: "",
tcddoc: "",
},
],
newValue: {
id: 0,
cmail1: "",
cmail2: "",
docnam: "",
description: "",
serialNum: "",
tableName: "",
tcddoc: "",
},
} }
}, },
computed: { computed: {
...@@ -309,15 +269,6 @@ export default { ...@@ -309,15 +269,6 @@ export default {
}, },
methods: { methods: {
...Event, ...Event,
addTableValue(index) {
var newTableValue = Object.assign({}, this.newValue);
const serial = Utils.generateUUID();
newTableValue.serialNum = serial;
this.model.botp.docgrdm.docgrd.splice(index - 1, 0, newTableValue);
},
deleteTable(index) {
this.model.botp.docgrdm.docgrd.splice(index, 1);
},
}, },
created: function () { created: function () {
......
...@@ -70,6 +70,11 @@ ...@@ -70,6 +70,11 @@
<m-setpan :model="model" :codes="codes" /> <m-setpan :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="分录" name="glepan">
<m-glepan :model="model" :codes="codes" ref="glepan" />
</el-tab-pane>
<el-tab-pane label="声明" name="stamet"> <el-tab-pane label="声明" name="stamet">
<m-stamet :model="model" :codes="codes" /> <m-stamet :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
...@@ -97,7 +102,7 @@ ...@@ -97,7 +102,7 @@
<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="MT799" name="mt799" > <el-tab-pane label="MT799" name="mt799">
<!--PD000361 --> <!--PD000361 -->
<m-mt799 :model="model" :codes="codes" /> <m-mt799 :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
...@@ -135,6 +140,7 @@ import Litapll1 from "./Litapll1"; ...@@ -135,6 +140,7 @@ import Litapll1 from "./Litapll1";
import Litrmbl1 from "./Litrmbl1"; import Litrmbl1 from "./Litrmbl1";
import Addbcb from "./Addbcb"; import Addbcb from "./Addbcb";
import Glepan from "~/views/Public/Glepan";
import Setpan from "~/views/Public/Setpan"; import Setpan from "~/views/Public/Setpan";
import Stamet from "./Stamet"; import Stamet from "./Stamet";
import Engp from "~/views/Public/Engp"; import Engp from "~/views/Public/Engp";
...@@ -164,6 +170,7 @@ export default { ...@@ -164,6 +170,7 @@ export default {
"m-limitbody": Limitbody, "m-limitbody": Limitbody,
"m-coninfp": Coninfp, "m-coninfp": Coninfp,
"m-ccvpan": Ccvpan, "m-ccvpan": Ccvpan,
"m-glepan": Glepan,
}, },
provide() { provide() {
return { return {
......
...@@ -36,8 +36,8 @@ ...@@ -36,8 +36,8 @@
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<div style="float: right;"> <div style="float: right;">
<span class="add_del_button add_button" @click="addTableValue">+</span> <span class="add_del_button add_button" @click="addTableValue" v-if="ifShowAdd">+</span>
<span class="add_del_button" @click="deleteTable">-</span> <span class="add_del_button" @click="deleteTable" v-if="ifShowDelete">-</span>
</div> </div>
</c-col> </c-col>
</row> </row>
......
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