|
|
@ -65,6 +65,7 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
|
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
|
|
|
|
|
|
|
|
// 这个obj用来识别父组件的业务名字,也就是父组件的moduleName,这样展示提交信息的框中就可以展示父组件的名字。这个组件被下列组件复用着。 |
|
|
|
// 这个obj用来识别父组件的业务名字,也就是父组件的moduleName,这样展示提交信息的框中就可以展示父组件的名字。这个组件被下列组件复用着。 |
|
|
|
const obj = { |
|
|
|
const obj = { |
|
|
@ -121,7 +122,32 @@ const nameMap = { |
|
|
|
116: '现金支票' |
|
|
|
116: '现金支票' |
|
|
|
}, |
|
|
|
}, |
|
|
|
currency: { |
|
|
|
currency: { |
|
|
|
12: 'CNY人民币' |
|
|
|
12: 'CNY人民币', |
|
|
|
|
|
|
|
153: '美元 现汇', |
|
|
|
|
|
|
|
163: '美元', |
|
|
|
|
|
|
|
164: '澳大利亚元', |
|
|
|
|
|
|
|
165: '加拿大元', |
|
|
|
|
|
|
|
166: '港币', |
|
|
|
|
|
|
|
167: '英镑', |
|
|
|
|
|
|
|
168: '欧元', |
|
|
|
|
|
|
|
169: '日元', |
|
|
|
|
|
|
|
170: '新西兰元', |
|
|
|
|
|
|
|
171: '新加坡元', |
|
|
|
|
|
|
|
172: '泰国铢', |
|
|
|
|
|
|
|
173: '韩元', |
|
|
|
|
|
|
|
174: '新台币(不支持跨进汇款)', |
|
|
|
|
|
|
|
175: '瑞土法郎', |
|
|
|
|
|
|
|
176: '瑞典克朗', |
|
|
|
|
|
|
|
177: '丹麦克朗', |
|
|
|
|
|
|
|
178: '卢布', |
|
|
|
|
|
|
|
179: '挪威克朗', |
|
|
|
|
|
|
|
180: '菲律宾比索(不支持跨进汇款)', |
|
|
|
|
|
|
|
181: '澳门元', |
|
|
|
|
|
|
|
182: '印尼卢比 (不支持跨进汇款)', |
|
|
|
|
|
|
|
183: '巴西里亚尔(不支持跨进汇款)', |
|
|
|
|
|
|
|
184: '阿联酋迪拉姆(不支持跨进汇款)', |
|
|
|
|
|
|
|
185: '印度卢比(不支持跨进汇款)', |
|
|
|
|
|
|
|
186: '印度卢比(南非兰特)', |
|
|
|
}, |
|
|
|
}, |
|
|
|
goldLogo: { |
|
|
|
goldLogo: { |
|
|
|
13: '钞户', |
|
|
|
13: '钞户', |
|
|
@ -309,6 +335,17 @@ const nameMap = { |
|
|
|
201: '其他服务', |
|
|
|
201: '其他服务', |
|
|
|
202: '其他经常转移', |
|
|
|
202: '其他经常转移', |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
fundingSource: { |
|
|
|
|
|
|
|
154: '职工报酬和赡家款', |
|
|
|
|
|
|
|
155: '旅游', |
|
|
|
|
|
|
|
156: '金融和保险服务', |
|
|
|
|
|
|
|
157: '专有权利使用费和特许费', |
|
|
|
|
|
|
|
158: '咨询服务', |
|
|
|
|
|
|
|
159: '其他服务', |
|
|
|
|
|
|
|
160: '投资收益', |
|
|
|
|
|
|
|
161: '其他经常转移', |
|
|
|
|
|
|
|
162: '运输', |
|
|
|
|
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
props: { |
|
|
|
props: { |
|
|
@ -335,14 +372,30 @@ export default { |
|
|
|
moduleName: { |
|
|
|
moduleName: { |
|
|
|
type: String, |
|
|
|
type: String, |
|
|
|
default: 'spacial' |
|
|
|
default: 'spacial' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
spare: { |
|
|
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
|
|
default: true |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
data () { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
flow: 1, // 影响页面展示授权或者不授权页面 |
|
|
|
|
|
|
|
disForm: { // 展示授权柜员号和密码 |
|
|
|
|
|
|
|
name: '002288', |
|
|
|
|
|
|
|
pass: '123456' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
leftObj: {}, // 左边展示的项目列表 |
|
|
|
|
|
|
|
rightObj: {} // 右边展示的项目列表 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
created () { |
|
|
|
created () { |
|
|
|
// 如果不需要授权,flow就是4,页面展示那个不需要授权的界面。 |
|
|
|
// 如果不需要授权,flow就是4,页面展示那个不需要授权的界面。 |
|
|
|
if (!this.needAuth) { |
|
|
|
if (!this.needAuth) { |
|
|
|
this.flow = 4 |
|
|
|
this.flow = 4 |
|
|
|
} |
|
|
|
} |
|
|
|
let num = 0; |
|
|
|
let num = 0 |
|
|
|
// 这个遍历可以让表单左右两边的展示的数量相差不大于1 |
|
|
|
// 这个遍历可以让表单左右两边的展示的数量相差不大于1 |
|
|
|
for (const key in this.showForm) { |
|
|
|
for (const key in this.showForm) { |
|
|
|
if (!this.showForm[key]) { |
|
|
|
if (!this.showForm[key]) { |
|
|
@ -383,51 +436,39 @@ export default { |
|
|
|
return str; |
|
|
|
return str; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.spare) { |
|
|
|
if (num % 2 === 1) { |
|
|
|
if (num % 2 === 1) { |
|
|
|
// 如果左边的项目数量和右边的一样,则每边加多两个 |
|
|
|
// 如果左边的项目数量和右边的一样,则每边加多两个 |
|
|
|
this.leftObj['流水号'] = tmpFunc2() |
|
|
|
this.leftObj['流水号'] = tmpFunc2() |
|
|
|
this.leftObj['经办机构'] = '国税支行营业部' |
|
|
|
this.leftObj['经办机构'] = '国税支行营业部' |
|
|
|
this.rightObj['经办柜员'] = '002110' |
|
|
|
this.rightObj['经办柜员'] = '002110' |
|
|
|
if (this.depositNumber) { |
|
|
|
if (this.depositNumber) { |
|
|
|
this.rightObj['定存编号'] = this.depositNumber |
|
|
|
this.rightObj['定存编号'] = this.depositNumber |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// 如果左边的项目数量比右边少,则左边加3个右边加1个 |
|
|
|
// 如果左边的项目数量比右边少,则左边加3个右边加1个 |
|
|
|
this.leftObj['流水号'] = tmpFunc2() |
|
|
|
this.leftObj['流水号'] = tmpFunc2() |
|
|
|
this.leftObj['经办机构'] = '国税支行营业部' |
|
|
|
this.leftObj['经办机构'] = '国税支行营业部' |
|
|
|
this.rightObj['经办柜员'] = '002110' |
|
|
|
this.rightObj['经办柜员'] = '002110' |
|
|
|
if (this.depositNumber) { |
|
|
|
if (this.depositNumber) { |
|
|
|
this.leftObj['定存编号'] = this.depositNumber |
|
|
|
this.leftObj['定存编号'] = this.depositNumber |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 拿到当天日期 |
|
|
|
// 拿到当天日期 |
|
|
|
const tmpFunc = () => { |
|
|
|
const tmpFunc = () => { |
|
|
|
const date = new Date() |
|
|
|
const date = new Date() |
|
|
|
var y = date.getFullYear(); |
|
|
|
var y = date.getFullYear(); |
|
|
|
var m = date.getMonth() + 1; |
|
|
|
var m = date.getMonth() + 1; |
|
|
|
m = m < 10 ? '0' + m : m; |
|
|
|
m = m < 10 ? '0' + m : m; |
|
|
|
var d = date.getDate(); |
|
|
|
var d = date.getDate(); |
|
|
|
d = d < 10 ? ('0' + d) : d; |
|
|
|
d = d < 10 ? ('0' + d) : d; |
|
|
|
return y + '-' + m + '-' + d; |
|
|
|
return y + '-' + m + '-' + d; |
|
|
|
} |
|
|
|
} |
|
|
|
this.rightObj['会计时间'] = tmpFunc() |
|
|
|
this.rightObj['会计时间'] = tmpFunc() |
|
|
|
if (this.leftObj['支取方式'] == 114) this.leftObj['支取方式'] = '印鉴' |
|
|
|
if (this.leftObj['支取方式'] == 114) this.leftObj['支取方式'] = '印鉴' |
|
|
|
console.log("🚀 ~ file: index.vue ~ line 393 ~ created ~ this.rightObj", this.leftObj, this.rightObj, this.showForm, this.formName) |
|
|
|
// 流水号(研发自定义号码生成规则)、经办柜员(002110)、经办机构:国税支行营业部、会计时间:展示操作当日日期 |
|
|
|
// 流水号(研发自定义号码生成规则)、经办柜员(002110)、经办机构:国税支行营业部、会计时间:展示操作当日日期 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
data () { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
flow: 1, // 影响页面展示授权或者不授权页面 |
|
|
|
|
|
|
|
disForm: { // 展示授权柜员号和密码 |
|
|
|
|
|
|
|
name: '002288', |
|
|
|
|
|
|
|
pass: '123456' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
leftObj: {}, // 左边展示的项目列表 |
|
|
|
|
|
|
|
rightObj: {} // 右边展示的项目列表 |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
cancel () { |
|
|
|
cancel () { |
|
|
@ -464,7 +505,10 @@ export default { |
|
|
|
// 展示父组件名字+成功 |
|
|
|
// 展示父组件名字+成功 |
|
|
|
successName () { |
|
|
|
successName () { |
|
|
|
return obj[this.moduleName] + '成功' |
|
|
|
return obj[this.moduleName] + '成功' |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
...mapGetters({ |
|
|
|
|
|
|
|
getSelectList: 'system/getSelectList' |
|
|
|
|
|
|
|
}), |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|