accountsDetails.vue 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <div class="borderless" v-loading="pageLoading">
  3. <div class="customer-head">
  4. <div class="customer-back">
  5. <el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left"
  6. @click="backToList">返回列表
  7. </el-button>
  8. </div>
  9. <div class="add-customer-btn">
  10. <el-button size="small" type="primary" style="margin-right: 8px"
  11. :loading="saveLoading" @click="bigSavefun" >保 存
  12. </el-button>
  13. </div>
  14. </div>
  15. <div style="margin: 55px 5px 0px 5px;'">
  16. <el-card class="box-card">
  17. <accounts-dialog :form="form"></accounts-dialog>
  18. </el-card>
  19. <el-card class="box-card" style="margin-top: 10px">
  20. <accitemsopenblc :form="form" :crudData="form.accItemsOpenblcList"></accitemsopenblc>
  21. </el-card>
  22. </div>
  23. </div>
  24. </template>
  25. <script>
  26. import accountsDialog from "@/views/iosBasicData/accounts/assembly/accountsDialog.vue";
  27. import accitemsopenblc from "@/views/iosBasicData/accounts/assembly/accitemsopenblc.vue";
  28. import {accountsSubmit} from "@/api/iosBasicData/accounts";
  29. export default {
  30. components: {accountsDialog,accitemsopenblc},
  31. data(){
  32. return{
  33. pageLoading:false,
  34. saveLoading:false,
  35. form:{
  36. accItemsOpenblcList:[]
  37. },
  38. }
  39. },
  40. methods:{
  41. // 大保存
  42. bigSavefun(){
  43. let sum = '请填写'
  44. if (!this.form.code) {
  45. sum += '科目编码'
  46. }
  47. if (!this.form.cnName) {
  48. sum += '科目名称'
  49. }
  50. if (!this.form.cnName) {
  51. sum += '科目英文'
  52. }
  53. if (!this.form.dc) {
  54. sum += '方向'
  55. }
  56. for(let i in this.form) {
  57. if (!this.form[i] && this.form[i] != 0) {
  58. }
  59. }
  60. },
  61. // 保存
  62. accountsSubmitfun(){
  63. console.log(this.form,46)
  64. // accountsSubmit().then(res=>{
  65. //
  66. // })
  67. },
  68. //返回列表
  69. backToList() {
  70. this.$emit('goBack')
  71. },
  72. }
  73. }
  74. </script>
  75. <style scoped>
  76. </style>