Commit c2d55dbb by liuxin

账务拆账

parent fc4abf0c
...@@ -267,7 +267,7 @@ ...@@ -267,7 +267,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="23" style="margin-left: 9px"> <c-col :span="23" style="margin-left: 9px">
<c-table style="text-align: center" :list="model.setmod.setglg.setgll" :paginationShow="false" <c-table style="text-align: center" :list="stmData3" :paginationShow="false"
:border="true"> :border="true">
<el-table-column label="Mod" prop="modflg" width="46px"> <el-table-column label="Mod" prop="modflg" width="46px">
</el-table-column> </el-table-column>
...@@ -284,6 +284,9 @@ ...@@ -284,6 +284,9 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="Amount Paid" prop="fmtaccamt" width="120px"> <el-table-column label="Amount Paid" prop="fmtaccamt" width="120px">
<template slot-scope="scope">
<c-input v-model="scope.row.fmtaccamt" @change="fmtaccamtChange(scope.$index)"/>
</template>
</el-table-column> </el-table-column>
<el-table-column label="Disp." width="101px"> <el-table-column label="Disp." width="101px">
<template #default="scope"> <template #default="scope">
...@@ -298,7 +301,7 @@ ...@@ -298,7 +301,7 @@
</el-table-column> </el-table-column>
<el-table-column label="Account" prop="act" width="auto"> <el-table-column label="Account" prop="act" width="auto">
<template slot-scope="scope"> <template slot-scope="scope">
<el-form-item label="0" :prop="'setmod.setglg.setgll.' + scope.$index + '.act'" > <el-form-item label="" label-width="0" :prop="'setmod.setglg.setgll.' + scope.$index + '.act'" >
<c-select v-model="scope.row.act"> <c-select v-model="scope.row.act">
<el-option v-for="item in scope.act" :key="item.value" :label="item.label" <el-option v-for="item in scope.act" :key="item.value" :label="item.label"
:value="item.value"> :value="item.value">
...@@ -975,8 +978,23 @@ export default { ...@@ -975,8 +978,23 @@ export default {
}, },
}, },
ogiamt:{}, ogiamt:{},
stmData3:[],
}; };
}, },
watch: {
"model.setmod.setglg.setgll": {
handler(val, oldVal) {
var stm = [];
for (let i = 0; i < val.length; i++) {
if (val[i].rol != "") {
val[i]['idx'] = i
stm.push(val[i]);
}
}
this.stmData3 = stm
},
}
},
methods: { methods: {
//第一个表格 //第一个表格
addRowSetfol() { addRowSetfol() {
...@@ -1087,6 +1105,14 @@ export default { ...@@ -1087,6 +1105,14 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}, },
async fmtaccamtChange(index){
let rtnmsg = await this.executeRule("setmod.setglg.setgll("+(index + 1)+").fmtaccamt")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
}
}
}, },
created: function () { }, created: function () { },
}; };
......
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