Commit 4e898428 by liushikai

调整

parent 372f0f5d
...@@ -103,13 +103,13 @@ export default { ...@@ -103,13 +103,13 @@ export default {
const res = await this.executeDefault("sptstm") const res = await this.executeDefault("sptstm")
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.stmData.data = res.data.sptstm.rows; this.stmData.data = res.data.sptstm.rows;
if(res.data.sptstm.rows.length == 0){ // if(res.data.sptstm.rows.length == 0){
this.$notify({ // this.$notify({
title: '成功', // title: '成功',
message: '搜索完毕,无满足条件记录', // message: '搜索完毕,无满足条件记录',
type: 'success' // type: 'success'
}); // });
} // }
}, },
async sptfndHandleReset() { async sptfndHandleReset() {
...@@ -139,13 +139,13 @@ export default { ...@@ -139,13 +139,13 @@ export default {
// }) // })
const res = await this.executeDefault("sptstm") const res = await this.executeDefault("sptstm")
this.stmData.data = res.data.sptstm.rows; this.stmData.data = res.data.sptstm.rows;
if(res.data.sptstm.rows.length == 0){ // if(res.data.sptstm.rows.length == 0){
this.$notify({ // this.$notify({
title: '成功', // title: '成功',
message: '搜索完毕,无满足条件记录', // message: '搜索完毕,无满足条件记录',
type: 'success' // type: 'success'
}); // });
} // }
}, },
async onSptpButord(){ async onSptpButord(){
let rtnmsg = await this.executeRule("sptp.butord") let rtnmsg = await this.executeRule("sptp.butord")
......
...@@ -365,44 +365,15 @@ export default { ...@@ -365,44 +365,15 @@ export default {
// }) // })
// } // }
const res = await this.executeRule("searow") const res = await this.executeRule("searow")
const arr=[]; that.$refs.inftrnps.stmData.data = res.data.trncorco_trnstm.rows;
res.data.trncorco_trnstm.rows.forEach(element => {
switch (element.charAt(0)) {
case 'W':
arr.push("Waiting" + element.substring(1));
break;
case 'C':
arr.push("Correct" + element.substring(1));
break;
case 'P':
arr.push("Picked up" + element.substring(1));
break;
case 'N':
arr.push("Rejected" + element.substring(1));
break;
case 'E':
arr.push("Entered" + element.substring(1));
break;
case 'X':
arr.push("External" + element.substring(1));
break;
case 'M':
arr.push("Closed" + element.substring(1));
break;
default:
arr.push(element);
break;
}
});
that.$refs.inftrnps.stmData.data = arr;
this.model.trncorco.trnstm = res.data.trncorco_trnstm; this.model.trncorco.trnstm = res.data.trncorco_trnstm;
if (res.data.trncorco_trnstm.rows.length == 0) { // if (res.data.trncorco_trnstm.rows.length == 0) {
this.$notify({ // this.$notify({
title: '成功', // title: '成功',
message: '搜索完毕,无满足条件记录', // message: '搜索完毕,无满足条件记录',
type: 'success' // type: 'success'
}); // });
} // }
this.$refs.paramsForm.clearValidate(); this.$refs.paramsForm.clearValidate();
Utils.positioningErrorMsg(res.fieldErrors, this.$refs.paramsForm.fields) Utils.positioningErrorMsg(res.fieldErrors, this.$refs.paramsForm.fields)
}, },
......
...@@ -401,7 +401,7 @@ ...@@ -401,7 +401,7 @@
fixed="right" fixed="right"
prop="display" prop="display"
label="操作" label="操作"
width="auto" width="140px"
> >
<template slot="header"> <template slot="header">
<c-col :span="11" style="text-align:left"><span>操作</span></c-col> <c-col :span="11" style="text-align:left"><span>操作</span></c-col>
......
...@@ -390,7 +390,7 @@ ...@@ -390,7 +390,7 @@
fixed="right" fixed="right"
prop="display" prop="display"
label="操作" label="操作"
width="200px" width="140px"
> >
<template slot="header"> <template slot="header">
<c-col :span="11" style="text-align:left"><span>操作</span></c-col> <c-col :span="11" style="text-align:left"><span>操作</span></c-col>
...@@ -510,10 +510,10 @@ export default { ...@@ -510,10 +510,10 @@ export default {
'12 3 "币种" 70', '12 3 "币种" 70',
'13 4 "金额" 100', '13 4 "金额" 100',
'14 5 "创建时间" 170', '14 5 "创建时间" 170',
'9 6 "签名要求" 70', '9 6 "签名要求" 80',
'2 7 "签名状态" 70', '2 7 "签名状态" 80',
'16 8 "经办柜员" 70', '16 8 "经办柜员" 80',
'0 9 "业务状态" 70', '0 9 "业务状态" 80',
'15 10 "业务机构" 200', '15 10 "业务机构" 200',
], ],
data: [], 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