Commit ecdd524f by 李少勇

oftopn和oftsel交易优化

parent c4e70f82
...@@ -2,7 +2,7 @@ import Api from "~/service/Api"; ...@@ -2,7 +2,7 @@ import Api from "~/service/Api";
import moment from "moment"; import moment from "moment";
import getSubtyp from '~/page/Frontend/Rcvsel/event/getSubtyp.js'; import getSubtyp from '~/page/Frontend/Rcvsel/event/getSubtyp.js';
import Oftopn from '../model'; import Oftopn from '../model';
import Utils from "~/utils";
export default { export default {
mixins: [getSubtyp], mixins: [getSubtyp],
methods: { methods: {
...@@ -52,7 +52,9 @@ export default { ...@@ -52,7 +52,9 @@ export default {
this.load = false; this.load = false;
}, },
async handleReset () { async handleReset () {
this.model = new Oftopn().data; let resetModel = new Oftopn().data
Utils.copyValueFromVoData(this.model, resetModel);
this.handleSearch();
}, },
// pageSize改变 // pageSize改变
handleSizeChange (val) { handleSizeChange (val) {
......
...@@ -108,11 +108,11 @@ ...@@ -108,11 +108,11 @@
</c-list-search> </c-list-search>
<el-col :span="24" style="margin-top: 2px;margin-bottom: 1px;"> <el-col :span="24" style="margin-top: 2px;margin-bottom: 1px;">
<c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0" type="primary">{{ <c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0" type="primary">
$t('public.归档') }} {{ $t('public.归档') }}
</c-button> </c-button>
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium" style="margin-left: 20" <c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium" style="margin-left: 20" type="primary">
type="primary">ReRouting ReRouting
</c-button> </c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary"> <c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary">
{{ $t('public.导出Excel') }} {{ $t('public.导出Excel') }}
...@@ -149,6 +149,7 @@ ...@@ -149,6 +149,7 @@
<c-select-value-to-label v-else-if="item.prop == 'multimsg'" v-model="scope.row.multimsg" :code="codes.chncod"></c-select-value-to-label> <c-select-value-to-label v-else-if="item.prop == 'multimsg'" v-model="scope.row.multimsg" :code="codes.chncod"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'chk'" v-model="scope.row.chk" :code="codes.chncod"></c-select-value-to-label> <c-select-value-to-label v-else-if="item.prop == 'chk'" v-model="scope.row.chk" :code="codes.chncod"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'kpatyp'" v-model="scope.row.kpatyp" :code="codes.chncod"></c-select-value-to-label> <c-select-value-to-label v-else-if="item.prop == 'kpatyp'" v-model="scope.row.kpatyp" :code="codes.chncod"></c-select-value-to-label>
<span v-else-if="item.prop == 'amt'">{{ moneyFormat(scope.row.amt, scope.row.cur) }}</span>
<span v-else>{{ scope.row[item.prop] }}</span> <span v-else>{{ scope.row[item.prop] }}</span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -206,13 +207,13 @@ export default { ...@@ -206,13 +207,13 @@ export default {
width: "120px" width: "120px"
}, },
{ {
label: "金额",
prop: "amt",
width: "120px"
},
{
label: "币种", label: "币种",
prop: "cur", prop: "cur",
width: "80px"
},
{
label: "金额",
prop: "amt",
width: "120px" width: "120px"
}, },
{ {
......
import Api from "~/service/Api"; import Api from "~/service/Api";
import getSubtyp from '~/page/Frontend/Rcvsel/event/getSubtyp.js'; import getSubtyp from '~/page/Frontend/Rcvsel/event/getSubtyp.js';
import moment from "moment"; import moment from "moment";
import Utils from "../../../../utils"; import Oftsel from '../model';
import Utils from "~/utils";
export default { export default {
mixins: [getSubtyp], mixins: [getSubtyp],
...@@ -52,7 +53,9 @@ export default { ...@@ -52,7 +53,9 @@ export default {
this.load = false; this.load = false;
}, },
async handleReset () { async handleReset () {
this.model = new Oftsel().data; let resetModel = new Oftsel().data
Utils.copyValueFromVoData(this.model, resetModel);
this.handleSearch();
}, },
async dbClickRow (row) { async dbClickRow (row) {
let rtnmsg = await Api.post("/frontend/oftsel/storeDate", { let rtnmsg = await Api.post("/frontend/oftsel/storeDate", {
......
...@@ -138,6 +138,7 @@ ...@@ -138,6 +138,7 @@
<c-select-value-to-label v-else-if="item.prop == 'multimsg'" v-model="scope.row.multimsg" :code="codes.chncod"></c-select-value-to-label> <c-select-value-to-label v-else-if="item.prop == 'multimsg'" v-model="scope.row.multimsg" :code="codes.chncod"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'chk'" v-model="scope.row.chk" :code="codes.chncod"></c-select-value-to-label> <c-select-value-to-label v-else-if="item.prop == 'chk'" v-model="scope.row.chk" :code="codes.chncod"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'kpatyp'" v-model="scope.row.kpatyp" :code="codes.chncod"></c-select-value-to-label> <c-select-value-to-label v-else-if="item.prop == 'kpatyp'" v-model="scope.row.kpatyp" :code="codes.chncod"></c-select-value-to-label>
<span v-else-if="item.prop == 'amt'">{{ moneyFormat(scope.row.amt, scope.row.cur) }}</span>
<span v-else>{{ scope.row[item.prop] }}</span> <span v-else>{{ scope.row[item.prop] }}</span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -195,13 +196,13 @@ export default { ...@@ -195,13 +196,13 @@ export default {
width: "120px" width: "120px"
}, },
{ {
label: "金额",
prop: "amt",
width: "120px"
},
{
label: "币种", label: "币种",
prop: "cur", prop: "cur",
width: "80px"
},
{
label: "金额",
prop: "amt",
width: "120px" width: "120px"
}, },
{ {
......
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