Commit ecdd524f by 李少勇

oftopn和oftsel交易优化

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