|
@@ -119,11 +119,9 @@ export default {
|
|
|
methods:{
|
|
|
onShow(){
|
|
|
this.dialogFormVisible = true
|
|
|
- console.log(this.data)
|
|
|
this.form = this.data
|
|
|
},
|
|
|
onSubmit(){
|
|
|
- console.log(this.form)
|
|
|
this.$refs['form'].validate(async (valid) => {
|
|
|
if (!valid) return false
|
|
|
const res = await this.$api.requested({
|
|
@@ -145,7 +143,6 @@ export default {
|
|
|
/*经销商列表*/
|
|
|
onEnterprise(data){
|
|
|
this.visibleEnterprise = false
|
|
|
- console.log("企业信息",data)
|
|
|
this.form.sys_enterpriseid = data.sys_enterpriseid
|
|
|
this.form.enterprisename = data.enterprisename
|
|
|
|
|
@@ -164,7 +161,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- console.log(res)
|
|
|
this.accountclass = res.data
|
|
|
},
|
|
|
/*分类*/
|
|
@@ -180,16 +176,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- console.log("支出凭证分类",res)
|
|
|
this.classData = res.data
|
|
|
- console.log(this.classData)
|
|
|
},
|
|
|
classChange(res){
|
|
|
- console.log("选择",res)
|
|
|
- console.log("明细",this.classData[res-1])
|
|
|
this.form.class = this.classData[res-1].value
|
|
|
this.subClass = this.classData[res-1].subvalues
|
|
|
- console.log("form",this.form)
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -198,7 +189,6 @@ export default {
|
|
|
},
|
|
|
watch:{
|
|
|
"form.sys_enterpriseid":function (val){
|
|
|
- console.log(val)
|
|
|
this.accountList(val)
|
|
|
}
|
|
|
}
|
|
@@ -207,4 +197,4 @@ export default {
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
-</style>
|
|
|
+</style>
|