|
@@ -121,7 +121,7 @@ export default {
|
|
|
{ required: true, message: '未选择账户类型', trigger: 'change'},
|
|
|
],
|
|
|
source_hrcashbill:[
|
|
|
- { required: false, message: '未选择收入凭证', trigger: 'blur'},
|
|
|
+ { required: true, message: '未选择收入凭证', trigger: 'blur'},
|
|
|
],
|
|
|
amount:[
|
|
|
{ required: true, message: '金额不可为空', trigger: 'change'},
|
|
@@ -169,6 +169,7 @@ export default {
|
|
|
onShow(){
|
|
|
this.form = Object.assign({},this.form,this.data)
|
|
|
this.income.list = this.data.detail
|
|
|
+ this.form.source_hrcashbill = this.income.list
|
|
|
},
|
|
|
/*可选业务员*/
|
|
|
async listData(){
|
|
@@ -212,8 +213,10 @@ export default {
|
|
|
},
|
|
|
onSubmit(){
|
|
|
console.log(this.form)
|
|
|
+
|
|
|
this.$refs.formRef.validate(async (valid)=>{
|
|
|
if (!valid) return false
|
|
|
+ this.form.source_hrcashbill = []
|
|
|
const res = await this.$api.requested({
|
|
|
"id": 20240111085604,
|
|
|
"content": this.form
|