Commit bb42a82c by wangren
parents 4989c51e a04d7647
<template> <template>
<!--
<c-col :span="24"> <c-col :span="24">
<el-row> <el-row>
<el-col :span="spanVal" v-for="(item, idx) in displayIconList" :key="idx" :offset="1"> <el-col :span="spanVal" v-for="(item, idx) in displayIconList" :key="idx" :offset="1">
...@@ -34,6 +35,44 @@ ...@@ -34,6 +35,44 @@
</div> </div>
</el-dialog> </el-dialog>
</c-col> </c-col>
-->
<c-col :span="24">
<el-row>
<el-col :span="spanVal" v-for="(item, idx) in displayIconList" :key="idx" :offset="1">
<el-card :body-style="{ padding: '0px' }" style="height:100%">
<!-- <img :src="item.src" class="image"> -->
<div style="padding: 5px;">
<span style="text-align:center;font-size:5px">{{item.name}}</span>
<el-button type="text" class="button" icon="el-icon-delete" @click="DeleteIcon(item.id)"></el-button>
</div>
</el-card>
</el-col>
<el-col :span="2" :offset="1">
<el-card :body-style="{ padding: '5px' }">
<!-- <img :src="require('~/assets/add.png')" class="image" @click="AddIcon"> -->
<!-- <span style="text-align:center;font-size:5px">添加</span> -->
<el-button type="text" class="button" icon="el-icon-plus" @click="AddIcon"></el-button>
</el-card>
</el-col>
</el-row>
<el-dialog :visible.sync="IconDialog" :title="'单据列表'">
<div style="height:200px">
<el-col :span="14">
<el-col :span="spanVal" v-for="(item, idx) in hideIconList" :key="idx" :offset="1">
<el-card :body-style="{ padding: '0px' }" style="height:100%">
<!-- <img :src="item.src" class="image"> -->
<div style="padding: 5px;">
<span style="text-align:center;font-size:5px">{{item.name}}</span>
<el-button type="text" class="button" icon="el-icon-plus" @click="InsertIcon(item.id)"></el-button>
</div>
</el-card>
</el-col>
</el-col>
</div>
</el-dialog>
</c-col>
</template> </template>
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<!-- =================左边====================== --> <!-- =================左边====================== -->
<c-col :span="11"> <c-col :span="12">
<el-form-item label="不符点"> <el-form-item label="不符点">
<c-col :span="21"> <c-col :span="21">
<c-input <c-input
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</c-col> </c-col>
<!-- =================右边====================== --> <!-- =================右边====================== -->
<c-col :span="11" :offset="1"> <c-col :span="12">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="" prop="bddgrp.rec.igndisflg"> <el-form-item label="" prop="bddgrp.rec.igndisflg">
<c-checkbox v-model="model.bddgrp.rec.igndisflg" <c-checkbox v-model="model.bddgrp.rec.igndisflg"
...@@ -132,6 +132,9 @@ ...@@ -132,6 +132,9 @@
<!-- =================已交单据====================== --> <!-- =================已交单据====================== -->
<c-col :span="24"> <c-col :span="24">
<el-button slot="reference" style="float:right" @click="addDocgrdDataStore">添加</el-button>
</c-col>
<c-col :span="24">
<!-- :list="model.bdtp.docgrdm.docgrd" --> <!-- :list="model.bdtp.docgrdm.docgrd" -->
<c-table <c-table
:border="true" :border="true"
...@@ -219,7 +222,7 @@ ...@@ -219,7 +222,7 @@
<el-dialog :visible.sync="InsertErrorDialogVisibal" center width="500px"> <el-dialog :visible.sync="InsertErrorDialogVisibal" center width="500px">
<c-col :span="24"> <c-col :span="24">
<c-col :span="20"> <c-col :span="20">
<el-form-item label="错误信息" label-width="100px"> <el-form-item label="不符点" label-width="100px">
<c-input v-model="newInsertError"></c-input> <c-input v-model="newInsertError"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -322,22 +325,22 @@ export default { ...@@ -322,22 +325,22 @@ export default {
}, },
] ]
}, },
{ // {
name:"KZ3500220597AA-003.pdf", // name:"KZ3500220597AA-003.pdf",
errorData:[ // errorData:[
{ // {
discribe:"货物数量有误", // discribe:"货物数量有误",
state:true // state:true
}, // },
] // ]
}, // },
], ],
}, },
{ {
id:"oceanShipping", id:"oceanShipping",
data:[ data:[
{ {
name:"KZ3500220597AA-004.pdf", name:"KZ3500220597AA-003.pdf",
errorData:[ errorData:[
] ]
}, },
...@@ -460,13 +463,13 @@ export default { ...@@ -460,13 +463,13 @@ export default {
if(this.selectPDFData.length > 0){ if(this.selectPDFData.length > 0){
const arr = [] const arr = []
for(let i = 0; i < this.gridData.length; i++){ for(let i = 0; i < this.gridData.length; i++){
if(this.gridData[i].id == this.selectPDFData){ // if(this.gridData[i].id == this.selectPDFData){
// arr.push({"id" : this.gridData[i].id}); // arr.push({"id" : this.gridData[i].id});
for(let j = 0; j < this.gridData[i].data.length; j++){ for(let j = 0; j < this.gridData[i].data.length; j++){
arr.push({"name" : this.gridData[i].data[j].name}); arr.push({"name" : this.gridData[i].data[j].name});
} }
break; // break;
} // }
} }
this.gridPDFData = arr; this.gridPDFData = arr;
} }
......
...@@ -8,31 +8,31 @@ ...@@ -8,31 +8,31 @@
<c-col :span="16"> <c-col :span="16">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="货物描述" prop="didgrp.blk.lcrgod"> <el-form-item label="货物描述" prop="didgrp.blk.lcrgod">
<c-input type="textarea" :autosize="{ minRows: 6, maxRows: 8}" v-model="model.didgrp.blk.lcrgod" style="width:70%;margin-right:20px;" maxlength="1430" show-word-limit placeholder="请输入Description of Goods" ></c-input> <c-input type="textarea" :autosize="{ minRows: 6, maxRows: 8}" v-model="model.didgrp.blk.lcrgod" style="margin-right:20px;" maxlength="1430" show-word-limit placeholder="请输入Description of Goods" ></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="didgrp.blk.lcrdoc"> <el-form-item label="单据要求" prop="didgrp.blk.lcrdoc">
<c-input type="textarea" :autosize="{ minRows: 6, maxRows: 8}" v-model="model.didgrp.blk.lcrdoc" maxlength="1950" style="width:70%;margin-right:20px;" show-word-limit placeholder="请输入单据要求" ></c-input> <c-input type="textarea" :autosize="{ minRows: 6, maxRows: 8}" v-model="model.didgrp.blk.lcrdoc" maxlength="1950" style="margin-right:20px;" show-word-limit placeholder="请输入单据要求" ></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="didgrp.blk.adlcnd"> <el-form-item label="附加条款" prop="didgrp.blk.adlcnd">
<c-input type="textarea" :autosize="{ minRows: 6, maxRows: 8}" v-model="model.didgrp.blk.adlcnd" style="width:70%;margin-right:20px;" maxlength="1430" show-word-limit placeholder="请输入附加条款" ></c-input> <c-input type="textarea" :autosize="{ minRows: 6, maxRows: 8}" v-model="model.didgrp.blk.adlcnd" style="margin-right:20px;" maxlength="1430" show-word-limit placeholder="请输入附加条款" ></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="didgrp.blk.insbnk"> <el-form-item label="给付款、承兑、议付行的指示" prop="didgrp.blk.insbnk">
<c-input type="textarea" :autosize="{ minRows: 6, maxRows: 8}" v-model="model.didgrp.blk.insbnk" style="width:70%;margin-right:20px;" maxlength="325" show-word-limit placeholder="请输入付行的指示" ></c-input> <c-input type="textarea" :autosize="{ minRows: 6, maxRows: 8}" v-model="model.didgrp.blk.insbnk" style="margin-right:20px;" maxlength="325" show-word-limit placeholder="请输入付行的指示" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="7" :offset="1">
<IntellectIcon :IconList="IconList" :span="spanVal" v-on:deleteIcon="deleteIcon" v-on:insertIcon="insertIcon"></IntellectIcon> <IntellectIcon :IconList="IconList" :spanVal="spanVal" v-on:deleteIcon="deleteIcon" v-on:insertIcon="insertIcon"></IntellectIcon>
</c-col> </c-col>
<!-- <c-col :span="8"> <!-- <c-col :span="8">
<el-row> <el-row>
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
IconList:[ IconList:[
"invoice","receipt", "invoice","receipt",
], ],
spanVal:4, spanVal:5,
} }
}, },
methods:{ methods:{
...@@ -141,7 +141,10 @@ export default { ...@@ -141,7 +141,10 @@ export default {
} }
}, },
created:function(){ created:function(){
sessionStorage.setItem('IconList', JSON.stringify(this.IconList)); var IconList = JSON.parse(sessionStorage.getItem("IconList"));
if(IconList == null){
sessionStorage.setItem('IconList', JSON.stringify(this.IconList));
}
} }
} }
</script> </script>
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="24" style="text-align: right"> <el-form
<c-button ref="paramsForm"
size="small" label-position="right"
type="primary" label-width="110px"
style="margin-left: 0" size="small"
:disabled="buttonFlag" >
@click="Update" <c-col :span="24" style="margin-top: 10px">
>Update</c-button <!-- ================左=============== -->
> <c-col :span="8">
<c-button <c-col :span="24">
size="small" <el-form-item
type="primary" label="Start Processing"
style="margin-left: 0" prop="wfetsk.tsklist.strflg"
:disabled="buttonFlag"
@click="Start"
>Start</c-button
>
<c-button
size="small"
type="primary"
style="margin-left: 0"
:disabled="!buttonFlag"
@click="Stop"
>Stop</c-button
>
</c-col>
<c-col :span="24" style="margin-top: 10px">
<!-- ================左=============== -->
<!-- <c-col :span="11">
<c-col>(Services see 2nd Tab)</c-col>
<c-col>Running in foreground</c-col>
<c-col :span="12" :offset="12" style="margin-top: 105px">
<el-form-item label="Ref No" prop="wfetsk.refno" label-width="50px">
<c-input
v-model="model.wfetsk.refno"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
</c-col> -->
<c-col :span="12">
<c-col :span="24">
<el-form-item
label="Start Processing"
prop="wfetsk.tsklist.strflg"
>
<c-select
v-model="model.wfetsk.tsklist.strflg"
style="width: 100%" style="width: 100%"
placeholder="请选择Automatic Start Flag"
> >
<el-option <c-select
v-for="item in codes.strflg" v-model="model.wfetsk.tsklist.strflg"
:key="item.value" style="width: 100%"
:label="item.label" placeholder="请选择Automatic Start Flag"
:value="item.value"
> >
</el-option> <el-option
</c-select> v-for="item in codes.strflg"
</el-form-item> :key="item.value"
</c-col> :label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="Ref No" prop="wfetsk.refno"> <el-form-item
<c-input label="Ref No"
v-model="model.wfetsk.refno" prop="wfetsk.refno"
placeholder="请输入" style="width: 100%"
></c-input> >
</el-form-item> <c-input
v-model="model.wfetsk.refno"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
</c-col> </c-col>
<c-col :span="24" <!-- ================中=============== -->
><el-form-item <c-col :span="8">
label="Initialization File" <c-col :span="24"
prop="wfetsk.tsklist.ininam" ><el-form-item
> label="Initialization File"
<c-input prop="wfetsk.tsklist.ininam"
v-model="model.wfetsk.tsklist.ininam" style="width: 100%"
placeholder="" >
></c-input> <c-input
</el-form-item> v-model="model.wfetsk.tsklist.ininam"
</c-col> placeholder=""
</c-col> style="width: 100%"
></c-input>
</el-form-item>
</c-col>
<!-- ================右=============== --> <c-col :span="24">
<c-col :span="12"> <el-form-item
<c-col :span="14"> label="Restart Period"
<el-form-item prop="wfetsk.tsklist.redotime"
label="Started"
prop="wfetsk.tsklist.jobstrdat"
>
<c-date-picker
type="date"
v-model="model.wfetsk.tsklist.jobstrdat"
disabled
style="width: 100%" style="width: 100%"
placeholder="请选择" >
></c-date-picker> <c-input
</el-form-item> v-model="model.wfetsk.tsklist.redotime"
</c-col> placeholder="请输入Redotime"
<c-col :span="4" :offset="1"> style="width: 100%"
<el-form-item ></c-input>
label="h" </el-form-item>
prop="wfetsk.tsklist.jobstrtimhh" </c-col>
label-width="20px"
>
<c-input
v-model="model.wfetsk.tsklist.jobstrtimhh"
disabled
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
<c-col :span="4" :offset="1">
<el-form-item label="min" label-width="20px">
<c-input
v-model="model.wfetsk.tsklist.jobstrtimmm"
placeholder="请输入"
disabled
></c-input>
</el-form-item>
</c-col> </c-col>
<c-col :span="14"> <!-- ================右=============== -->
<el-form-item <c-col :span="8">
label="Termination" <c-col :span="14">
prop="wfetsk.tsklist.terflg" <el-form-item
> label="Started"
<c-select prop="wfetsk.tsklist.jobstrdat"
v-model="model.wfetsk.tsklist.terflg" style="width: 100%"
>
<c-date-picker
type="date"
v-model="model.wfetsk.tsklist.jobstrdat"
disabled
style="width: 100%"
placeholder="请选择"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="4" :offset="1">
<el-form-item
label="h"
prop="wfetsk.tsklist.jobstrtimhh"
label-width="20px"
style="width: 100%"
>
<c-input
v-model="model.wfetsk.tsklist.jobstrtimhh"
disabled
placeholder="请输入"
style="width: 100%"
></c-input>
</el-form-item>
</c-col>
<c-col :span="4" :offset="1">
<el-form-item
label="min"
label-width="20px"
style="width: 100%"
>
<c-input
v-model="model.wfetsk.tsklist.jobstrtimmm"
placeholder="请输入"
disabled
style="width: 100%"
></c-input>
</el-form-item>
</c-col>
<c-col :span="14">
<el-form-item
label="Termination"
prop="wfetsk.tsklist.terflg"
style="width: 100%" style="width: 100%"
placeholder="请选择Automatic Termination Flag"
> >
<el-option <c-select
v-for="item in codes.terflg" v-model="model.wfetsk.tsklist.terflg"
:key="item.value" style="width: 100%"
:label="item.label" placeholder="请选择Automatic Termination Flag"
:value="item.value"
> >
</el-option> <el-option
</c-select> v-for="item in codes.terflg"
</el-form-item> :key="item.value"
</c-col> :label="item.label"
<c-col :span="4" :offset="1"> :value="item.value"
<el-form-item >
label="h" </el-option>
prop="wfetsk.tsklist.downtimehh" </c-select>
label-width="20px" </el-form-item>
> </c-col>
<c-input <c-col :span="4" :offset="1">
v-model="model.wfetsk.tsklist.downtimehh" <el-form-item
disabled label="h"
placeholder="请输入" prop="wfetsk.tsklist.downtimehh"
></c-input> label-width="20px"
</el-form-item> >
</c-col> <c-input
v-model="model.wfetsk.tsklist.downtimehh"
disabled
placeholder="请输入"
></c-input>
</el-form-item>
</c-col>
<c-col :span="4" :offset="1"> <c-col :span="4" :offset="1">
<el-form-item label="min" prop="" label-width="20px"> <el-form-item label="min" prop="" label-width="20px">
<c-input <c-input
v-model="model.wfetsk.tsklist.downtimemm" v-model="model.wfetsk.tsklist.downtimemm"
disabled disabled
placeholder="" placeholder=""
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col>
</c-col> </c-col>
</c-col>
<c-col :span="24" style="text-align: right">
<c-button
size="small"
type="primary"
style="margin-left: 0"
:disabled="buttonFlag"
@click="Update"
>Update</c-button
>
<c-button
size="small"
type="primary"
style="margin-left: 0"
:disabled="buttonFlag"
@click="Start"
>Start</c-button
>
<c-button
size="small"
type="primary"
style="margin-left: 0"
:disabled="!buttonFlag"
@click="Stop"
>Stop</c-button
>
</c-col>
</el-form>
<c-col :span="24" style="margin-top:12px">
<div style="border-bottom: 10px solid rgb(232, 232, 232)"></div>
</c-col>
<!-- <c-col :span="16"> <!-- <c-col :span="16">
<span <span
v-text="model.wfetsk.tsklist.ininam" v-text="model.wfetsk.tsklist.ininam"
data-path=".wfetsk.tsklist.ininam" data-path=".wfetsk.tsklist.ininam"
...@@ -176,21 +209,6 @@ ...@@ -176,21 +209,6 @@
Initialization File Initialization File
</span> </span>
</c-col> --> </c-col> -->
<c-col :span="24">
<el-form-item
label="Restart Period"
prop="wfetsk.tsklist.redotime"
>
<c-input
v-model="model.wfetsk.tsklist.redotime"
placeholder="请输入Redotime"
></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
<!-- <c-col :span="12"> <!-- <c-col :span="12">
<el-form-item label="Automatic Start Flag" prop="wfetsk.tsklist.strflg"> <el-form-item label="Automatic Start Flag" prop="wfetsk.tsklist.strflg">
<c-select <c-select
...@@ -300,8 +318,8 @@ ...@@ -300,8 +318,8 @@
<el-button <el-button
size="mini" size="mini"
type="primary" type="primary"
:disabled = "buttonFlag" :disabled="buttonFlag"
@click="Entry(scope.row.index, scope.row)" @click="Entry(scope.$index, scope.row)"
>Entry</el-button >Entry</el-button
> >
</template> </template>
...@@ -315,6 +333,7 @@ import Api from "~/service/Api"; ...@@ -315,6 +333,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/Mgrtsk/Event"; import Event from "~/model/Mgrtsk/Event";
import Utils from "~/utils/index";
export default { export default {
inject: ["root"], inject: ["root"],
...@@ -334,17 +353,32 @@ export default { ...@@ -334,17 +353,32 @@ export default {
], ],
data: [], data: [],
}, },
buttonFlag:false, buttonFlag: false,
timer: null timer: null,
}; };
}, },
methods: { methods: {
...Event, ...Event,
Entry() { Entry(idx, row) {
let rtnmsg = this.executeRule("wfetsk.tsklist.butexe"); const selIds = [idx + 1];
if (rtnmsg.respCode == SUCCESS) { const selDst = "wfetsk.wfestm"; //列表对应后台模型中的stream
//TODO 处理数据逻辑 let params = { selDst, selIds };
} this.executeRule("wfetsk.tsklist.butexe", params).then((res) => {
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data);
} else {
const h = this.$createElement;
const msg = res.respMsg || "请求执行失败!";
this.$notify.error({
title: "错误",
message: h(
"p",
{ style: "word-break:break-all;" },
msg
),
});
}
});
}, },
Update() { Update() {
let rtnmsg = this.executeRule("wfetsk.tsklist.butupd"); let rtnmsg = this.executeRule("wfetsk.tsklist.butupd");
...@@ -361,11 +395,11 @@ export default { ...@@ -361,11 +395,11 @@ export default {
//定时任务 //定时任务
var timeVal = this.model.wfetsk.tsklist.redotime * 1000; var timeVal = this.model.wfetsk.tsklist.redotime * 1000;
var that = this; var that = this;
this.timer = setInterval(function(){ this.timer = setInterval(function () {
let rtnmsg = that.executeRule("wfetsk.tsklist.butstr"); let rtnmsg = that.executeRule("wfetsk.tsklist.butstr");
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
}, timeVal); }, timeVal);
}, },
Stop() { Stop() {
...@@ -385,5 +419,8 @@ export default { ...@@ -385,5 +419,8 @@ export default {
}, },
}; };
</script> </script>
<style> <style scope>
/* .m-table-search-form .el-form-item__content {
width: calc(100% - 110px);
} */
</style> </style>
...@@ -128,8 +128,9 @@ export default { ...@@ -128,8 +128,9 @@ export default {
{inifrm:"gitsel",ininam:"进口保函查询",pntmiu:"13"}, {inifrm:"gitsel",ininam:"进口保函查询",pntmiu:"13"},
{inifrm:"gitset",ininam:"进口保函赔付",pntmiu:"13"}, {inifrm:"gitset",ininam:"进口保函赔付",pntmiu:"13"},
{inifrm:"gitcrq",ininam:"进口保函索赔登记",pntmiu:"13"}, {inifrm:"gitcrq",ininam:"进口保函索赔登记",pntmiu:"13"},
{ inifrm: "14",ininam: "Switsk", pntmiu: "" }, { inifrm: "14",ininam: "服务管理", pntmiu: "" },
{ inifrm: "switsk", ininam: "Switsk", pntmiu: "14" }, { inifrm: "switsk", ininam: "Switsk", pntmiu: "14" },
{ inifrm: "mgrtsk", ininam: "Mgrtsk", pntmiu: "14" },
], ],
menus: [], menus: [],
menusHeight: 0 menusHeight: 0
......
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