addEdit.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <el-dialog
  3. :title="'公司详情'"
  4. :center="true"
  5. align="left"
  6. top="20vh"
  7. width="600px"
  8. @close="showModelThis = false"
  9. :close-on-click-modal="false"
  10. :visible.sync="showModelThis"
  11. v-loading="loading"
  12. element-loading-text="拼命加载中"
  13. element-loading-spinner="el-icon-loading"
  14. element-loading-background="rgba(0, 0, 0, 0.8)"
  15. >
  16. <el-card style="margin-top:-20px">
  17. <el-row :gutter="10">
  18. <el-col :span="24">
  19. <el-form
  20. label-position="right" :size="'mini'" label-width="110px"
  21. :model="ruleForm"
  22. ref="ruleForm"
  23. >
  24. <el-row>
  25. <el-col :span="24">
  26. <el-form-item label="公司名称:" style="margin:0 0 10px 0">
  27. <div>{{ ruleForm.companyName }}</div>
  28. </el-form-item>
  29. </el-col>
  30. <el-col :span="24">
  31. <el-form-item label="纳税人识别号:" style="margin:0 0 10px 0">
  32. <div>{{ ruleForm.invoice_code }}</div>
  33. </el-form-item>
  34. </el-col>
  35. <el-col :span="24">
  36. <el-form-item label="银行名称:" style="margin:0 0 10px 0">
  37. <div>{{ ruleForm.invoice_bank }}</div>
  38. </el-form-item>
  39. </el-col>
  40. <el-col :span="24">
  41. <el-form-item label="银行卡号:" style="margin:0 0 10px 0">
  42. <div>{{ ruleForm.invoice_bankNo }}</div>
  43. </el-form-item>
  44. </el-col>
  45. <el-col :span="24">
  46. <el-form-item label="发票纳税人:" style="margin:0 0 10px 0">
  47. <div>{{ ruleForm.invoice_people }}</div>
  48. </el-form-item>
  49. </el-col>
  50. <el-col :span="24">
  51. <el-form-item label="联系电话:" style="margin:0 0 10px 0">
  52. <div>{{ ruleForm.invoice_mobile }}</div>
  53. </el-form-item>
  54. </el-col>
  55. <el-col :span="24">
  56. <el-form-item label="联系地址:" style="margin: 0">
  57. <div >{{ ruleForm.invoice_addr }}</div>
  58. </el-form-item>
  59. </el-col>
  60. </el-row>
  61. </el-form>
  62. </el-col>
  63. </el-row>
  64. </el-card>
  65. </el-dialog>
  66. </template>
  67. <script>
  68. import resToken from "@/mixins/resToken";
  69. export default {
  70. name: "goodsBack",
  71. props: ["showModel", "sitem"],
  72. mixins: [resToken],
  73. data() {
  74. return {
  75. loading: false,
  76. showModelThis: this.showModel,
  77. ruleForm: {},
  78. };
  79. },
  80. watch: {
  81. showModel: function (val) {
  82. this.showModelThis = val;
  83. if (val) {
  84. this.initForm();
  85. }
  86. },
  87. showModelThis(val) {
  88. if (!val) {
  89. this.$emit("cancel");
  90. }
  91. },
  92. },
  93. methods: {
  94. async initForm() {
  95. this.loading = true;
  96. await this.resetForm();
  97. this.loading = false;
  98. },
  99. async resetForm() {
  100. await this.$nextTick(() => {
  101. if (this.$refs.ruleForm) {
  102. this.$refs.ruleForm.resetFields();
  103. this.$refs.ruleForm.clearValidate();
  104. this.ruleForm = this.sitem;
  105. }
  106. });
  107. },
  108. },
  109. };
  110. </script>
  111. <style lang="scss" scoped>
  112. .storeAnomaly {
  113. // width: calc( 100% - 110px);
  114. }
  115. </style>