Explorar el Código

fix:销售返利单

zh hace 2 años
padre
commit
377f65ff97
Se han modificado 2 ficheros con 16 adiciones y 22095 borrados
  1. 1 22090
      package-lock.json
  2. 15 5
      src/views/finance/components/rebate_list-edit.vue

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 1 - 22090
package-lock.json


+ 15 - 5
src/views/finance/components/rebate_list-edit.vue

@@ -142,7 +142,8 @@
           </el-table-column>
           <el-table-column align="left" label="返利类型" prop="customerWalletId" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
-              <el-select v-if="state2" v-model="scope.row.customerWalletId" placeholder="请选择">
+              <!-- v-if="state2"  -->
+              <el-select v-model="scope.row.customerWalletId" placeholder="请选择">
                 <el-option
                   v-for="item in scope.row.walletList"
                   :key="item.customerWalletId"
@@ -151,9 +152,9 @@
                 >
                 </el-option>
               </el-select>
-              <el-select v-else v-model="scope.row.walletName" placeholder="请选择">
+              <!-- <el-select v-else v-model="scope.row.walletName" placeholder="请选择">
                 <el-option :label="scope.row.walletName" value=""> </el-option>
-              </el-select>
+              </el-select> -->
             </template>
           </el-table-column>
           <el-table-column align="left" label="返利总金额" prop="amount" min-width="160" show-overflow-tooltip>
@@ -237,6 +238,8 @@
 <script>
 import { getRebateOrderDetail, getRebateOrderUpdate } from '@/api/finance/rebate_list'
 import { getCustomerList, getWalletCustomerList } from '@/api/finance/rebate_form'
+import { async } from 'q'
+import { tsThisType } from '@babel/types'
 export default {
   props: {
     detailId: {
@@ -277,14 +280,21 @@ export default {
     //获取详情数据
     async getDataList() {
       let res = await getRebateOrderDetail({ id: this.detailId })
-      console.log(res, 11111)
       //   this.searchForm.rebateOrderId = res.data.id;
       this.searchForm.theTime = res.data.theTime
       //   this.searchForm.createBy = res.data.createBy;
       //   this.searchForm.createTime = res.data.createTime;
       this.searchForm.remark = res.data.remark
-      this.dataList = res.data.items
       this.state = res.data.examineStatus
+      res.data.items.map(async(k)=>{
+        const wallet = await getWalletCustomerList({
+        customerId: k.customerId,
+        type: 'REBATE'
+      })
+      this.$set(k, 'walletList', wallet.data)
+    })
+        this.dataList = res.data.items
+      // this.$set(this.dataList, 'walletList', wallet.data)
     },
     //保存
     async addFn() {

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio