Commit 7b03cb3f by nanrui

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs into development-202206
parents 76c05ac8 77eb2061
...@@ -126,6 +126,7 @@ export default class Bdtdck{ ...@@ -126,6 +126,7 @@ export default class Bdtdck{
setnowflg:"", // Register to Send and Settle Document .bdtp.setnowflg setnowflg:"", // Register to Send and Settle Document .bdtp.setnowflg
zcday:"", // 装船日\\服务提供日 .bdtp.zcday zcday:"", // 装船日\\服务提供日 .bdtp.zcday
docgrdm:{ docgrdm:{
docgrd:"",
docdsclab:"", // Label of document description .bdtp.docgrdm.docdsclab docdsclab:"", // Label of document description .bdtp.docgrdm.docdsclab
}, },
cre752flg:"", // Create 752 .bdtp.cre752flg cre752flg:"", // Create 752 .bdtp.cre752flg
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" width="170px" fixed="right"> <el-table-column label="操作" width="170px" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<c-button @click="deleteTable(scope.row)" type="primary">删除</c-button> <c-button @click="deleteTable(scope.$index)" type="primary">删除</c-button>
</template> </template>
</el-table-column> </el-table-column>
</c-table> </c-table>
...@@ -90,7 +90,8 @@ ...@@ -90,7 +90,8 @@
<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" :disabled="true"> <c-select v-model="model.bddgrp.rec.advtyp" style="width:100%" placeholder="请选择Type of Advice Received"
:disabled="true">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -104,7 +105,8 @@ ...@@ -104,7 +105,8 @@
<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="请选择不符点通知日期" :disabled="true"> <c-date-picker type="date" v-model="model.bddgrp.rec.disdat" style="width:100%" placeholder="请选择不符点通知日期"
:disabled="true">
</c-date-picker> </c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -125,7 +127,8 @@ ...@@ -125,7 +127,8 @@
</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> <c-checkbox v-model="model.bdtp.cre732flg" :disabled="!model.bddgrp.rec.acpnowflg != ''">Create MT 732
</c-checkbox>
</c-col> </c-col>
</c-row> </c-row>
</c-col> </c-col>
...@@ -210,7 +213,7 @@ import Api from "~/service/Api" ...@@ -210,7 +213,7 @@ 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 Utils from "~/utils";
export default { export default {
inject: ['root'], inject: ['root'],
props: ["model", "codes"], props: ["model", "codes"],
...@@ -230,6 +233,10 @@ export default { ...@@ -230,6 +233,10 @@ export default {
cmail1: "", cmail1: "",
cmail2: "", cmail2: "",
docnam: "", docnam: "",
description: "",
serialNum: "",
tableName: "",
tcddoc: "",
}, },
codeTable: [ codeTable: [
{ label: "增值税发票", value: "1" }, { label: "增值税发票", value: "1" },
...@@ -246,21 +253,14 @@ export default { ...@@ -246,21 +253,14 @@ export default {
}, },
methods: { methods: {
...Event, ...Event,
addTableValue() { addTableValue(index) {
var index = this.TableValue.length; var newTableValue = Object.assign({}, this.newValue);
var newTableValue = this.newValue; const serial = Utils.generateUUID();
if (index > 0) { newTableValue.serialNum = serial;
newTableValue.id = this.TableValue[index - 1].id + 1; this.model.bdtp.docgrdm.docgrd.splice(index - 1, 0, newTableValue);
}
this.TableValue.push(newTableValue);
}, },
deleteTable(row) { deleteTable(index) {
for (let i = 0; i < this.TableValue.length; i++) { this.model.bdtp.docgrdm.docgrd.splice(index, 1);
if (this.TableValue[i].id == row.id) {
this.TableValue.splice(i, 1);
break;
}
}
}, },
}, },
......
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