|
|
@@ -126,11 +126,15 @@
|
|
|
import {getStandardByCode} from "@/api/bank/handoverstandard";
|
|
|
import ReturnsApproveBatch from "../../components/common/returns-approve-batch";
|
|
|
import {getDictValue} from "../../api/system/dict";
|
|
|
+ import {getDictByCodes} from "../../api/system/dict";
|
|
|
|
|
|
export default {
|
|
|
components: {ReturnsApproveBatch, ReturnsIssue, FlowSettings, ReturnsApprove, ReturnsComfire},
|
|
|
data() {
|
|
|
return {
|
|
|
+ dictReturnsStatus: [],
|
|
|
+ dictBusinessType: [],
|
|
|
+
|
|
|
personId: null,
|
|
|
personNo: null,
|
|
|
personName: null,
|
|
|
@@ -214,6 +218,7 @@
|
|
|
prop: "bankNo",
|
|
|
span: 24,
|
|
|
hide: true,
|
|
|
+ display: false,
|
|
|
search: true,
|
|
|
searchSpan: 4,
|
|
|
rules: [{
|
|
|
@@ -226,7 +231,7 @@
|
|
|
label: "機構號",
|
|
|
prop: "orgNo",
|
|
|
hide: true,
|
|
|
- viewDisplay: false,
|
|
|
+ display: false,
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: "請輸入機構號",
|
|
|
@@ -238,7 +243,7 @@
|
|
|
prop: "orgName",
|
|
|
hide: true,
|
|
|
disabled: true,
|
|
|
- viewDisplay: false,
|
|
|
+ display: false,
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: "請輸入機構號",
|
|
|
@@ -558,6 +563,19 @@
|
|
|
this.option.viewTitle = data.content;
|
|
|
}
|
|
|
});
|
|
|
+ if (this.dictReturnsStatus.length == 0){
|
|
|
+ getDictByCodes('returns_status').then(res => {
|
|
|
+ let data = res.data.data;
|
|
|
+ this.dictReturnsStatus = data;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (this.dictBusinessType.length == 0){
|
|
|
+ getDictByCodes('business_type').then(res => {
|
|
|
+ let data = res.data.data;
|
|
|
+ this.dictBusinessType = data;
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
settingCallback(row){
|
|
|
@@ -684,18 +702,31 @@
|
|
|
this.approveVisible = true;
|
|
|
this.approveForm = row;
|
|
|
},
|
|
|
+ getDictValueByLabel(dict, label){
|
|
|
+ for (let i = 0; i < dict.length; i++) {
|
|
|
+ let item = dict[i];
|
|
|
+ if (item.dictValue == label){
|
|
|
+ return item.dictKey;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ },
|
|
|
infoFormat(row){
|
|
|
- row.isPublic = row.isPublic == '對公' ? 1 : 0;
|
|
|
let arr = row.subBank.split(' ');
|
|
|
row.subOrgNo = arr[0];
|
|
|
row.subBank = arr[1];
|
|
|
+ /*row.isPublic = row.isPublic == '對公' ? 1 : 0;
|
|
|
if (row.status == '退件'){
|
|
|
row.status = '1';
|
|
|
}else if (row.status == 'HOLD'){
|
|
|
row.status = '2';
|
|
|
}else if (row.status == '完成'){
|
|
|
row.status = '3';
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ row.isPublic = this.getDictValueByLabel(this.dictBusinessType, row.isPublic);
|
|
|
+ row.status = this.getDictValueByLabel(this.dictReturnsStatus, row.status);
|
|
|
+ debugger
|
|
|
+
|
|
|
/*let userInfoStr = localStorage.getItem("saber-userInfo");
|
|
|
let userInfo = JSON.parse(userInfoStr);
|
|
|
row.bankConfirmNo = userInfo.content.user_ehr;
|