refund.php 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template id="refund">
  2. <div style="float: right">
  3. <el-button type="primary" size="small" style="margin-bottom: 20px !important;" @click="showPop">添加地址
  4. </el-button>
  5. </div>
  6. <el-table :key="reloadData" :data="ruleForm.return_address.return_address.value" border v-loading="loading" size="small" style="margin-bottom: 15px;">
  7. <el-table-column label="退货名称" prop="describe">
  8. <template slot-scope="scope">
  9. <div>{{scope.row.name}}</div>
  10. </template>
  11. </el-table-column>
  12. <el-table-column label="联系人" prop="describe">
  13. <template slot-scope="scope">
  14. <div>{{scope.row.consignee}}</div>
  15. </template>
  16. </el-table-column>
  17. <el-table-column label="退/换货手机号" prop="describe">
  18. <template slot-scope="scope">
  19. <div>{{scope.row.mobile}}</div>
  20. </template>
  21. </el-table-column>
  22. <el-table-column label="退/换货地址" prop="describe">
  23. <template slot-scope="scope">
  24. <div>{{scope.row.address}}</div>
  25. </template>
  26. </el-table-column>
  27. <el-table-column label="操作" width="300px" align="center">
  28. <template slot-scope="scope">
  29. <el-button type="text" size="mini" circle style="margin-left: 10px;margin-top: 10px"
  30. @click.native="editAddress(scope.$index, scope.row)">
  31. <el-tooltip class="item" effect="dark" content="编辑地址" placement="top">
  32. <img src="resources/img/common/edit.png" alt="">
  33. </el-tooltip>
  34. </el-button>
  35. <el-button circle size="mini" type="text" @click="delAddress(scope.$index)">
  36. <el-tooltip class="item" effect="dark" content="删除" placement="top">
  37. <img src="resources/img/common/del.png" alt="">
  38. </el-tooltip>
  39. </el-button>
  40. </template>
  41. </el-table-column>
  42. </el-table>
  43. <!--弹窗添加-->
  44. <el-dialog title="添加退款地址" :visible.sync="settingPop" width="35%" :close-on-click-modal="false">
  45. <el-form v-loading="loading" v-model="addressForm" label-width="10rem" label-position="right">
  46. <el-form-item label="退货名称" prop="name">
  47. <el-input v-model="addressForm.name" style="width: 250px;" ></el-input>
  48. </el-form-item>
  49. <el-form-item label="联系人" prop="consignee">
  50. <el-input v-model="addressForm.consignee" style="width: 250px;" ></el-input>
  51. </el-form-item>
  52. <el-form-item label="退/换货手机号" prop="mobile">
  53. <el-input v-model="addressForm.mobile" style="width: 250px;" ></el-input>
  54. </el-form-item>
  55. <el-form-item label="退/换货地址" prop="address">
  56. <el-input v-model="addressForm.address" style="width: 250px;" ></el-input>
  57. </el-form-item>
  58. <el-form-item style="margin-bottom: 0">
  59. <el-button type="primary" size="small" style="float: right;width: 80px;margin-right: 20px;" :loading="loading" @click="addAddress">提交</el-button>
  60. </el-form-item>
  61. </el-form>
  62. </el-dialog>
  63. <!-- <el-card shadow="never" style="border:0" class="box-card" body-style="padding: 20px 0 0;" class="box-card">
  64. <el-button @click="addAddress" size="small" type="text">
  65. <i class="el-icon-plus" style="font-weight: bolder;margin-left: 5px;"></i>
  66. <span style="color: #353535;font-size: 14px">新增退货地址</span>
  67. </el-button>
  68. <el-card shadow="never" v-if="ruleForm.return_address.return_address.value && ruleForm.return_address.return_address.value.length > 0" v-for="(item, index) in ruleForm.return_address.return_address.value">
  69. <el-col>
  70. <el-row>
  71. <el-col><el-form-item label="名称"><span style="color: red;">*</span>
  72. <el-input v-model="item.name" style="width: 250px;" ></el-input>
  73. </el-form-item>
  74. </el-col>
  75. <el-col><el-form-item label="联系人"><span style="color: red;">*</span>
  76. <el-input v-model="item.consignee" style="width: 250px;"></el-input>
  77. </el-form-item>
  78. </el-col>
  79. <el-col><el-form-item label="退/换货手机号"><span style="color: red;">*</span>
  80. <el-input v-model="item.mobile" style="width: 250px;"></el-input>
  81. </el-form-item>
  82. </el-col>
  83. <el-col><el-form-item label="退/换货地址"><span style="color: red;">*</span>
  84. <el-input v-model="item.address" style="width: 250px;"></el-input>
  85. </el-form-item></el-col>
  86. <el-col>
  87. <el-form-item>
  88. <el-button size="small" type="text" @click="delAddress(index)">
  89. <el-tooltip class="item" effect="dark" content="删除" placement="top">
  90. <img src="resources/img/mall/del.png" alt="">
  91. </el-tooltip>
  92. </el-button>
  93. </el-form-item>
  94. </el-col>
  95. </el-row>
  96. </el-col>
  97. </el-card>
  98. </div>
  99. </el-card> -->
  100. <!-- <el-row>
  101. <el-col :span="24">
  102. <el-form-item label="收货人">
  103. <el-col :span="12">
  104. <el-input v-model="ruleForm.return_address.consignee.value"></el-input>
  105. <div class="tips-text" v-if="ruleForm.return_address.consignee.remark">{{ruleForm.return_address.consignee.remark}}</div>
  106. </el-col>
  107. </el-form-item>
  108. <el-form-item label="退/换货手机号">
  109. <el-col :span="12">
  110. <el-input v-model="ruleForm.return_address.mobile.value"></el-input>
  111. <div class="tips-text" v-if="ruleForm.return_address.mobile.remark">{{ruleForm.return_address.mobile.remark}}</div>
  112. </el-col>
  113. </el-form-item>
  114. <el-form-item label="退/换货地址">
  115. <el-col :span="12">
  116. <el-input v-model="ruleForm.return_address.address.value"></el-input>
  117. <div class="tips-text" v-if="ruleForm.return_address.address.remark">{{ruleForm.return_address.address.remark}}</div>
  118. </el-col>
  119. </el-form-item>
  120. </el-col>
  121. </el-row> -->
  122. </template>