浏览代码

团购,售后添加团长意见,开团添加状态查询

YY 2 年之前
父节点
当前提交
bfae41a771

+ 6 - 2
src/components/salesParts/guide_detail.vue

@@ -45,7 +45,11 @@
           </el-col>
           <el-col :span="24">
             <el-col :span="6">实付金额</el-col>
-            <el-col :span="18" class="other" style="color: red; font-size: 20px">{{ info.pay }}</el-col>
+            <el-col :span="18" class="other" style="color: red">{{ info.pay }}元</el-col>
+          </el-col>
+          <el-col :span="24" v-if="info.leader_suggest">
+            <el-col :span="6">团长意见</el-col>
+            <el-col :span="18" class="other">{{ info.leader_suggest == true ? '同意' : '不同意' }}</el-col>
           </el-col>
           <el-col :span="24">
             <el-col :span="6">申请时间</el-col>
@@ -61,7 +65,7 @@
           </el-col>
           <el-col :span="24" v-if="info.type == '1' || info.type == '2' || info.type == '4' || info.type == '5'">
             <el-col :span="6">退款金额</el-col>
-            <el-col :span="18" class="other" style="color: red">{{ info.money || '' }}</el-col>
+            <el-col :span="18" class="other" style="color: red; font-size: 20px">{{ info.money || '' }}</el-col>
           </el-col>
           <el-col :span="24">
             <el-col :span="6">售后状态</el-col>

+ 5 - 0
src/views/platGroup/group/index.vue

@@ -20,6 +20,9 @@
                 <el-option v-for="item in leaderList" :key="item._id" :label="item.name" :value="item._id"> </el-option>
               </el-select>
             </template>
+            <template #status>
+              <el-option v-for="i in statusList" :key="i.value" :label="i.label" :value="i.value"></el-option>
+            </template>
           </data-search>
           <data-btn :fields="btnList" @add="toAdd"></data-btn>
           <data-table
@@ -81,6 +84,7 @@ export default {
       searchFields: [
         { label: '商品名称', model: 'goods', custom: true },
         { label: '团长', model: 'leader', custom: true },
+        { label: '状态', model: 'status', type: 'select' },
       ],
       searchInfo: {},
       list: [],
@@ -105,6 +109,7 @@ export default {
     ...group(['query', 'delete', 'fetch', 'update', 'create']),
     // 查询
     async search({ skip = 0, limit = this.$limit, ...others } = {}) {
+      // others.status = '0';
       let query = { skip, limit, ...others };
       if (Object.keys(this.searchInfo).length > 0) query = { ...query, ...this.searchInfo };
       const res = await this.query(query);

+ 1 - 0
src/views/platGroup/sales/index.vue

@@ -71,6 +71,7 @@ export default {
         { label: '售后处理人', model: 'deal_person.name' },
         { label: '申请时间', model: 'apply_time' },
         { label: '结束时间', model: 'end_time' },
+        { label: '团长意见', model: 'leader_suggest', format: (i) => (i == true ? '同意' : i == false ? '不同意' : '') },
       ],
       typeList: [],
       statusList: [],