|
|
@ -1,24 +1,49 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class=" wrap2 myPadding"> |
|
|
|
<div class=" wrap2 myPadding"> |
|
|
|
<my-title :titleArr="['日终管理', '网点日终轧帐']"/> |
|
|
|
<my-title :titleArr="['日终管理', '网点日终轧帐']" /> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 存款 --> |
|
|
|
|
|
|
|
<div class="body"> |
|
|
|
|
|
|
|
<el-row :gutter="20" style="margin: 0"> |
|
|
|
|
|
|
|
<el-form ref="form" :model="form" label-width="120px" label-position="right" :rules="rules"> |
|
|
|
|
|
|
|
<el-form-item label="主管柜员号" prop="username" style="width: 40vw;"> |
|
|
|
|
|
|
|
<el-input placeholder="请输入账号" :value="form.username" @input="val => checkHanzi(val, form, 'username')" ref="username"></el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="登录密码" prop="password" style="width: 40vw;"> |
|
|
|
|
|
|
|
<el-input placeholder="请输入密码" type="password" :value="form.password" @input="val => checkHanzi(val, form, 'password')" ref="password"></el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
<my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" /> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<el-button @click="submitIt()" type="primary" class="submitBtn" v-throttle>提交</el-button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 存款 --> |
|
|
|
|
|
|
|
<div class="body"> |
|
|
|
|
|
|
|
<el-row :gutter="20" |
|
|
|
|
|
|
|
style="margin: 0"> |
|
|
|
|
|
|
|
<el-form ref="form" |
|
|
|
|
|
|
|
:model="form" |
|
|
|
|
|
|
|
label-width="120px" |
|
|
|
|
|
|
|
label-position="right" |
|
|
|
|
|
|
|
:rules="rules"> |
|
|
|
|
|
|
|
<el-form-item label="主管柜员号" |
|
|
|
|
|
|
|
prop="username" |
|
|
|
|
|
|
|
style="width: 40vw;"> |
|
|
|
|
|
|
|
<el-input placeholder="请输入账号" |
|
|
|
|
|
|
|
:value="form.username" |
|
|
|
|
|
|
|
@input="val => checkHanzi(val, form, 'username')" |
|
|
|
|
|
|
|
ref="username"></el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="登录密码" |
|
|
|
|
|
|
|
prop="password" |
|
|
|
|
|
|
|
style="width: 40vw;"> |
|
|
|
|
|
|
|
<el-input placeholder="请输入密码" |
|
|
|
|
|
|
|
type="password" |
|
|
|
|
|
|
|
:value="form.password" |
|
|
|
|
|
|
|
@input="val => checkHanzi(val, form, 'password')" |
|
|
|
|
|
|
|
autocomplete=“new-password” |
|
|
|
|
|
|
|
ref="password"></el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
<my-dialog :moduleName="moduleName" |
|
|
|
|
|
|
|
v-if="visible" |
|
|
|
|
|
|
|
:visible.sync="visible" |
|
|
|
|
|
|
|
:showForm="form" |
|
|
|
|
|
|
|
:formName="formName" |
|
|
|
|
|
|
|
@submitIt="submitForm2" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<el-button @click="submitIt()" |
|
|
|
|
|
|
|
type="primary" |
|
|
|
|
|
|
|
class="submitBtn" |
|
|
|
|
|
|
|
v-throttle>提交</el-button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
@ -28,107 +53,106 @@ import MyTitle from '@/components/myTitle' |
|
|
|
import MyDialog from '@/components/dialogTwo' |
|
|
|
import MyDialog from '@/components/dialogTwo' |
|
|
|
import { addOperation, getOperation } from '@/api/http'; |
|
|
|
import { addOperation, getOperation } from '@/api/http'; |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'index', |
|
|
|
name: 'index', |
|
|
|
components:{ |
|
|
|
components: { |
|
|
|
MyTitle, |
|
|
|
MyTitle, |
|
|
|
MyDialog |
|
|
|
MyDialog |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
return { |
|
|
|
visible: false, |
|
|
|
visible: false, |
|
|
|
moduleName: 'branchDayEnd', |
|
|
|
moduleName: 'branchDayEnd', |
|
|
|
form:{ |
|
|
|
form: { |
|
|
|
username: '', |
|
|
|
username: '180623', |
|
|
|
password: '' |
|
|
|
password: '621229' |
|
|
|
}, |
|
|
|
}, |
|
|
|
formName: { |
|
|
|
formName: { |
|
|
|
username: '主管柜员号', |
|
|
|
username: '主管柜员号', |
|
|
|
password: '登录密码' |
|
|
|
password: '登录密码' |
|
|
|
}, |
|
|
|
}, |
|
|
|
rules: { |
|
|
|
rules: { |
|
|
|
username: [ |
|
|
|
username: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
message: '请输入主管柜员号', |
|
|
|
message: '请输入主管柜员号', |
|
|
|
trigger: 'blur' |
|
|
|
trigger: 'blur' |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
password: [ |
|
|
|
password: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
message: '请输入登录密码', |
|
|
|
message: '请输入登录密码', |
|
|
|
trigger: 'blur' |
|
|
|
trigger: 'blur' |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
submited: 0 |
|
|
|
submited: 0 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
created () { |
|
|
|
// 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.form.data = tmpFunc() |
|
|
|
// this.form.data = tmpFunc() |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted () { |
|
|
|
this.$refs.username.focus() |
|
|
|
this.$refs.username.focus() |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
|
|
|
|
...mapMutations({ |
|
|
|
|
|
|
|
setTipsOperate: 'system/setTipsOperate' |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
submitIt () { |
|
|
|
|
|
|
|
if (this.submited) return this.$message.error('已提交!') |
|
|
|
|
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
|
|
|
|
this.visible = true; |
|
|
|
|
|
|
|
}, this.$refs)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
submitForm2 () { |
|
|
|
...mapMutations({ |
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
setTipsOperate: 'system/setTipsOperate' |
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
}), |
|
|
|
const formList = [] |
|
|
|
submitIt() { |
|
|
|
formList.push({ "answerId": '546', "emptyOne": 101, "emptyTwo": this.form.username, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,32,543,546", "type": "3" }) |
|
|
|
if (this.submited) return this.$message.error('已提交!') |
|
|
|
formList.push({ "answerId": '547', "emptyOne": 102, "emptyTwo": this.form.password, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,32,543,547", "type": "3" }) |
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
let params = { |
|
|
|
this.visible = true; |
|
|
|
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,32,543', |
|
|
|
}, this.$refs)); |
|
|
|
lcJudgmentRuleReq: formList, |
|
|
|
}, |
|
|
|
projectId: +projectId, |
|
|
|
submitForm2() { |
|
|
|
startTime: startTime, |
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
} |
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
|
|
|
const formList = [] |
|
|
|
|
|
|
|
formList.push({"answerId":'546',"emptyOne": 101, "emptyTwo": this.form.username, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,32,543,546","type": "3"}) |
|
|
|
|
|
|
|
formList.push({"answerId":'547',"emptyOne": 102, "emptyTwo": this.form.password, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,32,543,547","type": "3"}) |
|
|
|
|
|
|
|
let params= { |
|
|
|
|
|
|
|
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,32,543', |
|
|
|
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
|
|
|
projectId:+projectId, |
|
|
|
|
|
|
|
startTime:startTime, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
addOperation(params).then((data) => { |
|
|
|
this.submited = 1 |
|
|
|
this.submited = 1 |
|
|
|
// this.$message({ |
|
|
|
// this.$message({ |
|
|
|
// message: '提交成功', |
|
|
|
// message: '提交成功', |
|
|
|
// type: 'success' |
|
|
|
// type: 'success' |
|
|
|
// }); |
|
|
|
// }); |
|
|
|
// this.setNeedsModule(moduleName) |
|
|
|
// this.setNeedsModule(moduleName) |
|
|
|
// this.setDataFlow({ ...this.form }) |
|
|
|
// this.setDataFlow({ ...this.form }) |
|
|
|
}).catch((error)=>{ |
|
|
|
}).catch((error) => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
checkHanzi: checkHanzi |
|
|
|
checkHanzi: checkHanzi |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
|
|
|
|
.myPadding { |
|
|
|
|
|
|
|
padding: 24px 0 24px 24px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.myPadding { |
|
|
|
// /deep/.el-input input { |
|
|
|
padding: 24px 0 24px 24px; |
|
|
|
// // width: 420px; |
|
|
|
} |
|
|
|
// } |
|
|
|
|
|
|
|
.body { |
|
|
|
// /deep/.el-input input { |
|
|
|
padding-top: 50px; |
|
|
|
// // width: 420px; |
|
|
|
padding-left: 50px; |
|
|
|
// } |
|
|
|
} |
|
|
|
.body { |
|
|
|
|
|
|
|
padding-top: 50px; |
|
|
|
|
|
|
|
padding-left: 50px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
</style> |
|
|
|
</style> |
|
|
|