Commit 1ae2f004 by fukai

修改

parent d1095966
...@@ -28,6 +28,7 @@ export default { ...@@ -28,6 +28,7 @@ export default {
message: '保存成功', message: '保存成功',
type: 'success' type: 'success'
}); });
this.$history.push("/business/trnrel")
} else { } else {
this.$notify({ this.$notify({
title: '失败', title: '失败',
...@@ -39,6 +40,20 @@ export default { ...@@ -39,6 +40,20 @@ export default {
async pedding(){ async pedding(){
let result = await this.getVM().pedding() let result = await this.getVM().pedding()
console.log(result) console.log(result)
if (result.respCode == SUCCESS) {
this.$notify({
title: '成功',
message: '暂存成功',
type: 'success'
});
this.$history.push("/business/sptsel")
} else {
this.$notify({
title: '失败',
message: '暂存失败',
type: 'error'
});
}
}, },
async check(){ async check(){
let result = await this.getVM().checkAll() let result = await this.getVM().checkAll()
...@@ -63,7 +78,13 @@ export default { ...@@ -63,7 +78,13 @@ export default {
} }
}, },
exit(){ exit(){
this.$history.push("/home") this.$confirm('您有未保存的数据,确定退出吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(()=>{
this.$router.history.push("/business/office")
})
}, },
getVM(){ getVM(){
return this.$pntvm return this.$pntvm
......
<template> <template>
<el-date-picker :id="id" :class="{'highlight': highlight}" v-model="model" v-bind="$attrs" v-on="$listeners" v-bind:disabled="isDisable" :value-format="valueFormat" :format="format"></el-date-picker> <el-date-picker :id="id" :class="{'highlight': highlight}" v-model="model" v-bind="attrs" v-on="$listeners" v-bind:disabled="isDisable" :value-format="valueFormat" :format="format"></el-date-picker>
</template> </template>
<script> <script>
...@@ -44,6 +44,14 @@ export default { ...@@ -44,6 +44,14 @@ export default {
}, },
highlight () { highlight () {
return this.$store.state.Status.highlights.indexOf(this.id) !== -1 return this.$store.state.Status.highlights.indexOf(this.id) !== -1
},
attrs(){
if(this.mode === 'display' || this.disabled)
{
let {placeholder,...rest} = this.$attrs
return rest
}
return this.$attrs
} }
} }
} }
......
<template> <template>
<el-input :id="id" ref="form-item" v-model="model" v-bind="$attrs" v-on="$listeners" v-bind:disabled="isDisable"/> <el-input :id="id" ref="form-item" v-model="model" v-bind="attrs" v-on="$listeners" v-bind:disabled="isDisable"/>
</template> </template>
<script> <script>
...@@ -40,6 +40,14 @@ export default { ...@@ -40,6 +40,14 @@ export default {
}, },
highlightChanges () { highlightChanges () {
return this.$store.state.Status.highlightChanges.indexOf(this.id) !== -1 return this.$store.state.Status.highlightChanges.indexOf(this.id) !== -1
},
attrs(){
if(this.mode === 'display' || this.disabled)
{
let {placeholder,...rest} = this.$attrs
return rest
}
return this.$attrs
} }
} }
} }
......
<template> <template>
<el-select <el-select
:id="id" v-model="model" v-bind="$attrs" :id="id" v-model="model" v-bind="attrs"
v-on="$listeners" v-bind:disabled="isDisable" :clearable="clearable" @click.native="handleClick" > v-on="$listeners" v-bind:disabled="isDisable" :clearable="clearable" @click.native="handleClick" >
<slot></slot> <slot></slot>
</el-select> </el-select>
...@@ -45,6 +45,15 @@ export default { ...@@ -45,6 +45,15 @@ export default {
}, },
highlight () { highlight () {
return this.$store.state.Status.highlights.indexOf(this.id) !== -1 return this.$store.state.Status.highlights.indexOf(this.id) !== -1
},
attrs(){
if(this.mode === 'display' || this.disabled)
{
let {placeholder,...rest} = this.$attrs
rest = {placeholder:" ",...rest}
return rest
}
return this.$attrs
} }
}, },
methods: { methods: {
......
...@@ -177,9 +177,16 @@ export default class Ditopn{ ...@@ -177,9 +177,16 @@ export default class Ditopn{
xreflg:"", // Recalculate Rates .setmod.xreflg xreflg:"", // Recalculate Rates .setmod.xreflg
setglg:{ setglg:{
labdspflg:"", // Label for Type of Settlement .setmod.setglg.labdspflg labdspflg:"", // Label for Type of Settlement .setmod.setglg.labdspflg
setgll:[]
}, },
zmqacclab:"", // 主�'�号LABEL .setmod.zmqacclab zmqacclab:"", // 主�'�号LABEL .setmod.zmqacclab
zmqacc:"", // 自�'�区主�'�号 .setmod.zmqacc zmqacc:"", // 自�'�区主�'�号 .setmod.zmqacc
setfog:{
setfol:[]
},
setfeg:{
setfel:[]
}
}, },
liaall:{ liaall:{
misamt:"", // Amount not yet assigned .liaall.misamt misamt:"", // Amount not yet assigned .liaall.misamt
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" style="margin-bottom: 18px;"> <el-col :span="24" style="margin-bottom: 18px;">
<c-table style="text-align:center" :data="model.setmod.setfog.setfol" :paginationShow="false"> <c-table style="text-align:center" :list="model.setmod.setfog.setfol" :paginationShow="false">
<el-table-column label="Payer" prop="ptydbt" width="auto"> <el-table-column label="Payer" prop="ptydbt" width="auto">
</el-table-column> </el-table-column>
<el-table-column label="Payee" prop="ptypay" width="auto"> <el-table-column label="Payee" prop="ptypay" width="auto">
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" style="margin-bottom: 18px;"> <el-col :span="24" style="margin-bottom: 18px;">
<c-table style="text-align:center" :data="model.setmod.setfeg.setfel" :paginationShow="false"> <c-table style="text-align:center" :list="model.setmod.setfeg.setfel" :paginationShow="false">
<el-table-column label="Role" prop="rol" width="auto"> <el-table-column label="Role" prop="rol" width="auto">
</el-table-column> </el-table-column>
<el-table-column label="Code" prop="feecod" width="auto"> <el-table-column label="Code" prop="feecod" width="auto">
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" style="margin-bottom: 18px;"> <el-col :span="24" style="margin-bottom: 18px;">
<c-table style="text-align:center" :data="model.setmod.setglg.setgll" :paginationShow="false"> <c-table style="text-align:center" :list="model.setmod.setglg.setgll" :paginationShow="false">
<el-table-column label="Mod" prop="modflg" width="auto"> <el-table-column label="Mod" prop="modflg" width="auto">
</el-table-column> </el-table-column>
<el-table-column label="Role" prop="rol" width="auto"> <el-table-column label="Role" prop="rol" width="auto">
......
...@@ -183,8 +183,11 @@ export default { ...@@ -183,8 +183,11 @@ export default {
// console.log(0) // console.log(0)
// } // }
// }) // })
if(this.isInDisplay){
return
}
const label = vm.label const label = vm.label
if (label === "务") { if (label === "务") {
this.executeRule("setmod.setpan").then(res => { this.executeRule("setmod.setpan").then(res => {
const data = res.data; const data = res.data;
Utils.copyValueFromVO(this.model, data) Utils.copyValueFromVO(this.model, data)
......
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