代收水费

20240205
yujialong 5 months ago
parent 1cc5ac52bc
commit e48876d125
  1. 222
      src/pages/manage/list/agent/waterRate.vue
  2. 14
      src/pages/manage/list/foreignExchange/puchasing.vue
  3. 76
      src/store/modules/system.js

@ -5,7 +5,7 @@
<el-form ref="form" :model="form" label-width="120px" :rules="rules"> <el-form ref="form" :model="form" label-width="120px" :rules="rules">
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="证件类型" prop="certificateType"> <el-form-item label="证件类型" prop="certificateType">
<el-select v-model.trim="form.certificateType" placeholder="请选择" ref="certificateType"> <el-select v-model.trim="form.certificateType" placeholder="请选择" ref="certificateType" disabled>
<el-option label="身份证" :value="83"> </el-option> <el-option label="身份证" :value="83"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -14,20 +14,17 @@
<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"></el-input>
ref="mailbox"></el-input>
</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('密码器')">
@ -53,13 +50,12 @@
</el-form-item> </el-form-item>
<el-form-item label="户号" required> <el-form-item label="户号" required>
<el-input :value="form.mailbox" @input="val => mailBoxListen(val, form, 'mailbox')" maxlength="30" <el-input v-model="form.houseId"></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>
@ -69,12 +65,11 @@
</el-row> </el-row>
<el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button> <el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button>
</div> </div>
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> -->
</template> </template>
<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 = 'usefulPhrases/openAccount'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore' import NeedBefore from '@/components/needBefore'
@ -89,38 +84,24 @@ export default {
}, },
mixins: [TipsBefore], mixins: [TipsBefore],
created () { created () {
if (sessionStorage.getItem('nomUsefulPhrasesOpenPassword')) { if (sessionStorage.getItem('nomCurrentTransferPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesOpenPassword') this.form.drawPassword = sessionStorage.getItem('nomCurrentTransferPassword')
} }
// if(sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) {
// 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')) { if (sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) {
this.idNumberJudge = true this.idNumberJudge = true
// const { idNumber } = 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.currency = currency
this.form.goldLogo = goldLogo
this.form.voucherType = 127
} }
if (sessionStorage.getItem('nomUsefulPhrasesOpenCard')) { if (sessionStorage.getItem('nomUsefulPhrasesOpenCard')) {
this.cardNumberJudge = true this.cardNumberJudge = true
const { voucherNumber } = this.dataFlow const { voucherNumber, userName } = this.dataFlow
this.form.voucherNumber = voucherNumber this.form.voucherNumber = voucherNumber
this.form.customerName = userName
} }
this.getFormData() // this.getFormData()
}, },
data () { data () {
@ -130,83 +111,78 @@ export default {
cardNumberJudge: false, cardNumberJudge: false,
idNumberJudge: false, idNumberJudge: false,
form: { form: {
// certificateType: 83,
// identityCard: '', //
idNumber: '', idNumber: '',
customerName: '', // voucherNumber: '',
currency: '', // customerName: '',
goldLogo: '', // paymentUnit: '',
voucherType: '', // houseId: '',
monthDeposit: '', // paymentMoney: '',
depositTerm: '', // monthlyWithholding: '',
extendDepositTarget: '', // drawPassword: '',
voucherNumber: '', //
drawPassword: '', //
//
clientNumber: '', //
certificateType: 83, //
}, },
formName: { formName: {
// certificateType: '证件类型',
// identityCard: '', //
idNumber: '身份证', idNumber: '身份证',
customerName: '客户姓名', // voucherNumber: '账号',
currency: '币种', // customerName: '客户姓名',
goldLogo: '钞汇标识', // paymentUnit: '缴费单位',
voucherType: '凭证类型', // houseId: '户号',
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: [ houseId: [
{ {
required: true, required: true,
message: '请选择存期', 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: {
@ -278,11 +254,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',
@ -290,9 +261,6 @@ 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('1399')
@ -307,7 +275,7 @@ export default {
}, },
popUp3 (text) { popUp3 (text) {
this.setTipsOperate('请在密码器输入密码'); this.setTipsOperate('请在密码器输入密码');
this.setPopId('167') this.setPopId('99')
sessionStorage.setItem('computerPath', this.$route.fullPath) sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
@ -335,34 +303,10 @@ 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) {
messageCard('请填写凭证号码') messageCard('请填写账号')
return return
} }
@ -376,34 +320,38 @@ 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,709'
{ formList.push(
key: '159,13' { 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: 718, emptyOne: 113, emptyTwo: form.paymentMoney, operationIds: preId + ',718', type: 3 },
{ answerId: 719, emptyOne: 114, emptyTwo: form.monthlyWithholding, operationIds: preId + ',719', type: 1 },
)
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({

@ -44,7 +44,7 @@
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="币种" prop="currency"> <el-form-item label="币种" prop="currency">
<el-select v-model.trim="form.currency" placeholder="请选择" ref="currency"> <el-select v-model.trim="form.currency" placeholder="请选择" ref="currency">
<el-option v-for="item in getSelectList.currencySelectList" :label="item.options" :value="item.itemId" <el-option v-for="item in getSelectList.allCurrencyList" :label="item.options" :value="item.itemId"
:key="item.itemId"> </el-option> :key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -93,14 +93,14 @@ export default {
const { voucherNumber } = this.dataFlow const { voucherNumber } = this.dataFlow
this.form.voucherNumber = voucherNumber this.form.voucherNumber = voucherNumber
} }
if (sessionStorage.getItem('nomUsefulPhrasesOpenPassword')) { if (sessionStorage.getItem('nomCurrentTransferPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesOpenPassword') this.form.drawPassword = sessionStorage.getItem('nomCurrentTransferPassword')
} }
if (sessionStorage.getItem('foreignExchangePuchasingVoucher')) { if (sessionStorage.getItem('foreignExchangePuchasingVoucher')) {
this.cardNumberJudge = true this.cardNumberJudge = true
const { currency, goldLogo } = this.dataFlow const { voucherNumber, goldLogo } = this.dataFlow
this.form.currency = currency
this.form.goldLogo = goldLogo this.form.goldLogo = goldLogo
this.form.voucherNumber = voucherNumber
} }
this.getFormData() this.getFormData()
@ -246,13 +246,13 @@ export default {
}, },
popUp1 (text) { popUp1 (text) {
this.setTipsOperate('请刷银行卡'); this.setTipsOperate('请刷银行卡');
this.setPopId('166') this.setPopId('69')
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('64,2') this.setPopId('99')
sessionStorage.setItem('computerPath', this.$route.fullPath) sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },

@ -1347,6 +1347,37 @@ const myInitState = {
expireDate: '2022-12-29', // 到期日期 expireDate: '2022-12-29', // 到期日期
} }
}, },
'业务三十三': {
id: 703,
name: '代理业务',
data: [13, 16],
needs: [],
isStamp: {
// '业务专用章': [ 411 ]
},
backPeople: [],
// backPeople: [ ],
cultureArr: [],
moneyBox: [], // 钱箱
needBackMoney: false, // 需要钱箱取钱
peopleSign: [], // 客户签字
cultureIn: [], // 传票栏
sealBox: [], // 印章盒
currencyDetector: [], // 验钞机
printer: [], // 打印机
resource: [], // 资料
importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱
dataFlow: {
currency: 153,
goldLogo: 150,
voucherNumber,
idNumber,
userName,
}
},
'业务三十四': { '业务三十四': {
id: 704, id: 704,
name: '网上银行', name: '网上银行',
@ -1404,12 +1435,8 @@ const myInitState = {
commonArr: [], // 普通凭证箱 commonArr: [], // 普通凭证箱
dataFlow: { dataFlow: {
currency: 153, currency: 153,
goldLogo: 150,
voucherNumber, voucherNumber,
transMoney: 200000,
assignDate: '2022-12-29',
ticketNumber: '00242930',
drawDate: '2022-06-30', // 出票日期
expireDate: '2022-12-29', // 到期日期
} }
}, },
} }
@ -1454,6 +1481,7 @@ export default {
calculateWayList: [], calculateWayList: [],
fundingSourceList: [], fundingSourceList: [],
buyForeignPurposeList: [], buyForeignPurposeList: [],
allCurrencyList: [],
}, },
// (要保存的业务数据): // (要保存的业务数据):
@ -2611,6 +2639,37 @@ export default {
expireDate: '2022-12-29', // 到期日期 expireDate: '2022-12-29', // 到期日期
} }
}, },
'业务三十三': {
id: 703,
name: '代理业务',
data: [13, 16],
needs: [],
isStamp: {
// '业务专用章': [ 411 ]
},
backPeople: [],
// backPeople: [ ],
cultureArr: [],
moneyBox: [], // 钱箱
needBackMoney: false, // 需要钱箱取钱
peopleSign: [], // 客户签字
cultureIn: [], // 传票栏
sealBox: [], // 印章盒
currencyDetector: [], // 验钞机
printer: [], // 打印机
resource: [], // 资料
importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱
dataFlow: {
currency: 153,
goldLogo: 150,
voucherNumber,
idNumber,
userName,
}
},
'业务三十四': { '业务三十四': {
id: 704, id: 704,
name: '网上银行', name: '网上银行',
@ -2668,12 +2727,8 @@ export default {
commonArr: [], // 普通凭证箱 commonArr: [], // 普通凭证箱
dataFlow: { dataFlow: {
currency: 153, currency: 153,
goldLogo: 150,
voucherNumber, voucherNumber,
transMoney: 200000,
assignDate: '2022-12-29',
ticketNumber: '00242930',
drawDate: '2022-06-30', // 出票日期
expireDate: '2022-12-29', // 到期日期
} }
}, },
}, },
@ -2707,6 +2762,7 @@ export default {
39: 'calculateWayList', 39: 'calculateWayList',
119: 'banknoteRemittanceList', 119: 'banknoteRemittanceList',
122: 'fundingSourceList', 122: 'fundingSourceList',
123: 'allCurrencyList',
124: 'buyForeignPurposeList', 124: 'buyForeignPurposeList',
} }

Loading…
Cancel
Save