代理业务

20240205
yujialong 5 months ago
parent 45dfe32c87
commit e5239c3c53
  1. 3
      src/components/dialog/index.vue
  2. 21
      src/pages/counter/list/myConfig.js
  3. 5
      src/pages/manage/list/agent/electricRate.vue
  4. 253
      src/pages/manage/list/agent/telRate.vue
  5. 4
      src/pages/manage/list/agent/waterRate.vue

@ -98,6 +98,9 @@ const obj = {
'onlineBank/openAccount': '网上银行开户', 'onlineBank/openAccount': '网上银行开户',
'foreignExchange/puchasing': '外汇业务购汇', 'foreignExchange/puchasing': '外汇业务购汇',
'foreignExchange/settlement': '外汇业务结汇', 'foreignExchange/settlement': '外汇业务结汇',
'agent/waterRate': '代收水费',
'agent/electricRate': '代收电费',
'agent/telRate': '代收电话费',
'spacial': '提交' 'spacial': '提交'
} }

@ -392,6 +392,27 @@ const myConfig = {
parentId: '5,706,710', parentId: '5,706,710',
isPassword: true isPassword: true
}, },
'732': {
nbm: 732,
name: 'telRateIdCard',
parentId: '5,706,711',
isPassword: false,
machine: '身份证扫描仪'
},
'733': {
nbm: 733,
name: 'telRateBankCard',
parentId: '5,706,711',
isPassword: false,
machine: '刷卡器'
},
'740': {
nbm: 740,
name: 'telRatePassword',
parentId: '5,706,711',
isPassword: true
},
} }
export { export {

@ -348,6 +348,11 @@ export default {
const { form } = this const { form } = this
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,706,710' const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,706,710'
formList.push( formList.push(
{ answerId: 721, emptyOne: 19, emptyTwo: form.certificateType, operationIds: preId + ',721', type: 1 },
{ answerId: 722, emptyOne: '', emptyTwo: '', operationIds: preId + ',722', type: '' },
{ answerId: 724, emptyOne: 84, emptyTwo: form.voucherNumber, operationIds: preId + ',724', type: 3 },
{ answerId: 723, emptyOne: 7, emptyTwo: form.customerName, operationIds: preId + ',723', type: 3 },
{ answerId: 725, emptyOne: 111, emptyTwo: form.paymentUnit, operationIds: preId + ',725', type: 3 }, { answerId: 725, emptyOne: 111, emptyTwo: form.paymentUnit, operationIds: preId + ',725', type: 3 },
{ answerId: 726, emptyOne: 112, emptyTwo: form.houseId, operationIds: preId + ',726', type: 3 }, { answerId: 726, emptyOne: 112, emptyTwo: form.houseId, operationIds: preId + ',726', type: 3 },
{ answerId: 730, emptyOne: '', emptyTwo: '', operationIds: preId + ',730', type: '' }, { answerId: 730, emptyOne: '', emptyTwo: '', operationIds: preId + ',730', type: '' },

@ -14,24 +14,21 @@
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else> <div v-else>
<el-input @blur="getDataBlur" maxlength="20" ref="voucherNumber" disabled :value="form.voucherNumber" <el-input maxlength="20" ref="voucherNumber" disabled :value="form.voucherNumber"
@input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input>
</div> </div>
<!-- <el-input @blur="getDataBlur" maxlength="20" ref="voucherNumber" :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> -->
</el-form-item> </el-form-item>
<el-form-item label="缴费单位" required> <el-form-item label="缴费单位" prop="paymentUnit">
<el-input :value="form.mailbox" @input="val => mailBoxListen(val, form, 'mailbox')" maxlength="30" <el-input v-model="form.paymentUnit" />
ref="mailbox"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="缴费号码" required> <el-form-item label="缴费号码" prop="paymentNum">
<el-input :value="form.mailbox" @input="val => mailBoxListen(val, form, 'mailbox')" maxlength="30" <el-input v-model="form.paymentNum" maxlength="30"></el-input>
ref="mailbox"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="每月代扣" prop="extendPeriod" required> <el-form-item label="每月代扣" prop="monthlyWithholding" required>
<el-radio-group v-model.trim="form.extendPeriod" ref="extendPeriod"> <el-radio-group v-model.trim="form.monthlyWithholding">
<el-radio :label="90"></el-radio> <el-radio :label="142"></el-radio>
<el-radio :label="91"></el-radio> <el-radio :label="143"></el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -49,16 +46,15 @@
@input="(val) => checkName(val, form, 'customerName')"></el-input> @input="(val) => checkName(val, form, 'customerName')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="号码类型" prop="goldLogo"> <el-form-item label="号码类型" prop="numType">
<el-select v-model.trim="form.goldLogo" placeholder="请选择" ref="goldLogo"> <el-select v-model.trim="form.numType" placeholder="请选择">
<el-option v-for="item in getSelectList.goldLogoSelectList" :label="item.options" :value="item.itemId" <el-option label="手机号码" :value="144"></el-option>
:key="item.itemId"> </el-option> <el-option label="座机号码" :value="145"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="缴费金额" prop="monthDeposit" required> <el-form-item label="缴费金额" prop="paymentMoney">
<!-- :value="form.monthDeposit" --> <el-input :value="form.paymentMoney" maxlength="15"
<el-input :value="form.monthDeposit" maxlength="15" @input="val => ismoney(val, form, 'monthDeposit')" @input="val => ismoney(val, form, 'paymentMoney')"></el-input>
ref="monthDeposit"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="支取密码" required> <el-form-item label="支取密码" required>
<div v-if='!form.drawPassword' class="idCard" @click="popUp3('密码器')"> <div v-if='!form.drawPassword' class="idCard" @click="popUp3('密码器')">
@ -80,8 +76,9 @@
<script> <script>
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen, messageIdCard, messageCard, messagePassword } from '@/utils/utilFunction.js'; import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen, messageIdCard, messageCard, messagePassword } from '@/utils/utilFunction.js';
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { addOperation, getOperation } from '@/api/http';
const moduleName = 'usefulPhrases/openAccount' const moduleName = 'agent/telRate'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore' import NeedBefore from '@/components/needBefore'
import MyDialog from '@/components/dialog' import MyDialog from '@/components/dialog'
@ -95,124 +92,112 @@ export default {
}, },
mixins: [TipsBefore], mixins: [TipsBefore],
created () { created () {
if (sessionStorage.getItem('nomUsefulPhrasesOpenPassword')) { if (sessionStorage.getItem('telRatePassword')) {
this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesOpenPassword') this.form.drawPassword = sessionStorage.getItem('telRatePassword')
} }
// if(sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) { if (sessionStorage.getItem('telRateIdCard')) {
// this.idNumberJudge = true
// this.form.idNumber = this.dataFlow.idNumber || '441515199812064569'
// }
// if(sessionStorage.getItem('nomUsefulPhrasesOpenCard')) {
// this.cardNumberJudge = true
// this.form.voucherNumber = this.dataFlow.voucherNumber || '159753'
// }
if (sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) {
this.idNumberJudge = true this.idNumberJudge = true
// const { idNumber, userName } = this.dataFlow
const { idNumber, userName, peopleNumber, currency, goldLogo } = this.dataFlow
this.form.clientNumber = peopleNumber
this.form.idNumber = idNumber this.form.idNumber = idNumber
this.form.customerName = userName this.form.customerName = userName
this.form.currency = currency
this.form.goldLogo = goldLogo
this.form.voucherType = 127
} }
if (sessionStorage.getItem('nomUsefulPhrasesOpenCard')) { if (sessionStorage.getItem('telRateBankCard')) {
this.cardNumberJudge = true this.cardNumberJudge = true
const { voucherNumber } = this.dataFlow const { voucherNumber } = this.dataFlow
this.form.voucherNumber = voucherNumber this.form.voucherNumber = voucherNumber
} }
// this.getFormData()
this.getFormData()
}, },
data () { data () {
return { return {
moduleName: 'usefulPhrases/openAccount', moduleName,
visible: false, visible: false,
cardNumberJudge: false, cardNumberJudge: false,
idNumberJudge: false, idNumberJudge: false,
form: { form: {
// certificateType: 83,
// identityCard: '', //
idNumber: '', idNumber: '',
customerName: '', // voucherNumber: '',
currency: '', // customerName: '',
goldLogo: '', // paymentUnit: '',
voucherType: '', // numType: '',
monthDeposit: '', // paymentNum: '',
depositTerm: '', // paymentMoney: '',
extendDepositTarget: '', // monthlyWithholding: '',
voucherNumber: '', // drawPassword: '',
drawPassword: '', //
//
clientNumber: '', //
certificateType: 83, //
}, },
formName: { formName: {
// certificateType: '证件类型',
// identityCard: '', // idNumber: '证件号码',
idNumber: '身份证', voucherNumber: '账号',
customerName: '客户姓名', // customerName: '客户姓名',
currency: '币种', // paymentUnit: '缴费单位',
goldLogo: '钞汇标识', // numType: '号码类型',
voucherType: '凭证类型', // paymentNum: '缴费号码',
monthDeposit: '月存金额', // paymentMoney: '缴费金额',
depositTerm: '存期', // monthlyWithholding: '每月代扣',
extendDepositTarget: '续存标识', // drawPassword: '支付密码',
voucherNumber: '凭证号码', //
drawPassword: '支付密码', //
//
clientNumber: '客户号', //
certificateType: '证件类型', //
}, },
rules: { rules: {
customerName: vercustomer, customerName: vercustomer,
currency: [ idNumber: [
{ {
required: true, required: true,
message: '请选择币种', message: '请输入证件号码',
trigger: 'blur' trigger: 'blur'
} }
], ],
goldLogo: [ voucherNumber: [
{ {
required: true, required: true,
message: '请选择钞汇标识', message: '请输入账号',
trigger: 'blur' trigger: 'blur'
} }
], ],
voucherType: [ customerName: [
{ {
required: true, required: true,
message: '请选择凭证类型', message: '请输入客户姓名',
trigger: 'blur' trigger: 'blur'
} }
], ],
monthDeposit: [ paymentUnit: [
{ {
required: true, required: true,
message: '请输入月存金额', message: '请输入缴费单位',
trigger: 'blur' trigger: 'blur'
} }
], ],
depositTerm: [ numType: [
{ {
required: true, required: true,
message: '请选择存期', message: '请选择号码类型',
trigger: 'change'
}
],
paymentNum: [
{
required: true,
message: '请输入缴费号码',
trigger: 'blur' trigger: 'blur'
} }
], ],
extendDepositTarget: [ paymentMoney: [
{ {
required: true, required: true,
message: '请选择续存标识', message: '请输入缴费金额',
trigger: 'blur' trigger: 'blur'
} }
], ],
extendDepomonthlyWithholdingsitTarget: [
{
required: true,
message: '请选择每月代扣',
trigger: 'change'
}
],
}, },
myTable2: { myTable2: {
158: { 158: {
@ -284,11 +269,6 @@ export default {
}, },
methods: { methods: {
// userName,
// peopleNumber,
// idNumber,
// currency:'CNY',
// goldLogo:'',
...mapMutations({ ...mapMutations({
changeShowGoods: 'system/changeShowGoods', changeShowGoods: 'system/changeShowGoods',
setDataFlow: 'system/setDataFlow', setDataFlow: 'system/setDataFlow',
@ -296,24 +276,21 @@ export default {
setPopId: 'system/setPopId', setPopId: 'system/setPopId',
setTipsOperate: 'system/setTipsOperate' setTipsOperate: 'system/setTipsOperate'
}), }),
getDataBlur () {
// console.log('???')
},
popUp1 (text) { popUp1 (text) {
this.setTipsOperate('请刷身份证'); this.setTipsOperate('请刷身份证');
this.setPopId('1399') this.setPopId('732')
sessionStorage.setItem('computerPath', this.$route.fullPath) sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
popUp2 (text) { popUp2 (text) {
this.setTipsOperate('请刷银行卡'); this.setTipsOperate('请刷银行卡');
this.setPopId('166') this.setPopId('733')
sessionStorage.setItem('computerPath', this.$route.fullPath) sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
popUp3 (text) { popUp3 (text) {
this.setTipsOperate('请在密码器输入密码'); this.setTipsOperate('请在密码器输入密码');
this.setPopId('167') this.setPopId('740')
sessionStorage.setItem('computerPath', this.$route.fullPath) sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
@ -341,30 +318,6 @@ export default {
if (this.submited) return this.$message.error('已提交!') if (this.submited) return this.$message.error('已提交!')
if (!this.form.idNumber) { if (!this.form.idNumber) {
messageIdCard() messageIdCard()
// let projectId = sessionStorage.getItem('projectId')
// let startTime = sessionStorage.getItem('startTime')
// let formList = [
// {
// "answerId":'159',
// "emptyOne": "",
// "emptyTwo": "",
// "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,26,59,155,159,13",
// "type": ""
// }
// ]
// let params= {
// parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,155,159',
// lcJudgmentRuleReq:formList,
// projectId:+projectId,
// startTime:startTime,
// }
// addOperation(params).then((data)=>{
// this.$message({
// message: '',
// type: 'success'
// });
// }).catch((error)=>{
// })
return return
} }
if (!this.form.voucherNumber) { if (!this.form.voucherNumber) {
@ -382,34 +335,44 @@ export default {
}, this.$refs)); }, this.$refs));
}, },
submitForm2 () { submitForm2 () {
// let nomUsefulPhrasesOpenCard = sessionStorage.getItem('nomUsefulPhrasesOpenCard') let projectId = sessionStorage.getItem('projectId')
// let nomUsefulPhrasesOpenCard2 = sessionStorage.getItem('nomUsefulPhrasesOpenCard2') let startTime = sessionStorage.getItem('startTime')
// let nomUsefulPhrasesOpenPassword = sessionStorage.getItem('nomUsefulPhrasesOpenPassword') let formList = [];
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,155' const { form } = this
const cards = [ const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,706,711'
{ formList.push(
key: '159,13' { answerId: 731, emptyOne: 19, emptyTwo: form.certificateType, operationIds: preId + ',731', type: 1 },
{ answerId: 732, emptyOne: '', emptyTwo: '', operationIds: preId + ',732', type: '' },
{ answerId: 734, emptyOne: 84, emptyTwo: form.voucherNumber, operationIds: preId + ',734', type: 3 },
{ answerId: 733, emptyOne: 7, emptyTwo: form.customerName, operationIds: preId + ',733', type: 3 },
{ answerId: 735, emptyOne: 111, emptyTwo: form.paymentUnit, operationIds: preId + ',735', type: 3 },
{ answerId: 736, emptyOne: 115, emptyTwo: form.numType, operationIds: preId + ',736', type: 1 },
{ answerId: 737, emptyOne: 116, emptyTwo: form.paymentNum, operationIds: preId + ',737', type: 3 },
{ answerId: 738, emptyOne: 113, emptyTwo: form.paymentMoney, operationIds: preId + ',738', type: 3 },
{ answerId: 739, emptyOne: 114, emptyTwo: form.monthlyWithholding, operationIds: preId + ',739', type: 1 },
{ answerId: 740, emptyOne: 17, emptyTwo: form.drawPassword, operationIds: preId + ',740', type: 3 },
)
let params = {
parentId: preId,
lcJudgmentRuleReq: formList,
projectId: +projectId,
startTime: startTime,
} }
addOperation(params).then((data) => {
// { this.setDataFlow({ ...this.form })
// 1399: nomUsefulPhrasesOpenCard2
// },
// {
// 166: nomUsefulPhrasesOpenCard
// },
// {
// 167: nomUsefulPhrasesOpenPassword,
// "subjectId": 17,
// }
]
this.setDataFlow(this.form)
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
this.submited = 1 this.submited = 1
}).catch((error) => {
this.$message({
message: '服务器繁忙,提交失败。',
center: true,
type: 'info'
});
})
}, },
ismoney: ismoney, ismoney,
checkHanzi: checkHanzi, checkHanzi,
checkName: checkName, checkName,
inputListen: inputListen inputListen,
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({

@ -327,6 +327,10 @@ export default {
const { form } = this const { form } = this
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,706,709' const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,706,709'
formList.push( formList.push(
{ answerId: 712, emptyOne: 19, emptyTwo: form.certificateType, operationIds: preId + ',712', type: 1 },
{ answerId: 713, emptyOne: '', emptyTwo: '', operationIds: preId + ',713', type: '' },
{ answerId: 715, emptyOne: 84, emptyTwo: form.voucherNumber, operationIds: preId + ',715', type: 3 },
{ answerId: 714, emptyOne: 7, emptyTwo: form.customerName, operationIds: preId + ',714', type: 3 },
{ answerId: 716, emptyOne: 111, emptyTwo: form.paymentUnit, operationIds: preId + ',716', type: 3 }, { answerId: 716, emptyOne: 111, emptyTwo: form.paymentUnit, operationIds: preId + ',716', type: 3 },
{ answerId: 717, emptyOne: 112, emptyTwo: form.houseId, operationIds: preId + ',717', type: 3 }, { answerId: 717, emptyOne: 112, emptyTwo: form.houseId, operationIds: preId + ',717', type: 3 },
{ answerId: 718, emptyOne: 113, emptyTwo: form.paymentMoney, operationIds: preId + ',718', type: 3 }, { answerId: 718, emptyOne: 113, emptyTwo: form.paymentMoney, operationIds: preId + ',718', type: 3 },

Loading…
Cancel
Save