فهرست منبع

修改退卡订单操作

wxy 4 ماه پیش
والد
کامیت
179161a620

+ 26 - 16
src/api/path/order.js

@@ -1,41 +1,51 @@
 import service from "../../utils/axios";
 
 // 订单审核
-export function OrderCardStatus(data){
-     return service.post("/admin/sim/applyAudit", data);
+export function OrderCardStatus(data) {
+    return service.post("/admin/sim/applyAudit", data);
 }
 
 // 上传订单合同
-export function UploadOrderCardContract(data){
-     return service.post("/admin/sim/uploadContract", data);
+export function UploadOrderCardContract(data) {
+    return service.post("/admin/sim/uploadContract", data);
 }
 
 // 购卡
-export function CardPurchase(data){
-    return service.post('/admin/sim/apply',data)
+export function CardPurchase(data) {
+    return service.post('/admin/sim/apply', data)
 }
 
 // 分配卡号
-export function DistributionCard(data){
-     return service.post("/admin/sim/assignSim", data);
+export function DistributionCard(data) {
+    return service.post("/admin/sim/assignSim", data);
 }
 
 // 查看订单下的卡
-export function viewOrderCard(params){
-    return service.get("/admin/sim/orderCard", {params});
+export function viewOrderCard(params) {
+    return service.get("/admin/sim/orderCard", { params });
 }
 
 // 获取资费
-export function AcquireOrdertariff(params){
-     return service.get("/admin/platform/getTariffById", {params});
+export function AcquireOrdertariff(params) {
+    return service.get("/admin/platform/getTariffById", { params });
 }
 
 // 获取资费下的卡
-export function TariffOrderCard(params){
-     return service.get("/admin/platform/getTariffCard", {params});
+export function TariffOrderCard(params) {
+    return service.get("/admin/platform/getTariffCard", { params });
 }
 
 // 退卡
-export function ReturntheCard(data){
-     return service.post("/admin/sim/returnCard", data);
+export function ReturntheCard(data) {
+    return service.post("/admin/sim/returnCard", data);
+}
+
+// 获取购卡订单下的卡
+export function ReturntheOrderCard(params) {
+    return service.get('/admin/sim/orderCard', { params })
+}
+
+// 设置金额
+export function SettingPricing(data) {
+    return service.post('/admin/sim/setAmount', data)
 }

+ 7 - 7
src/views/order/BuyCard/detaile.vue

@@ -20,8 +20,8 @@
                     <div class="item-content">{{ FormDataList.sourceName }}</div>
                 </div>
                 <div class="detail-item">
-                    <div class="item-label">资费信息</div>
-                    <div class="item-content">{{ TariffInfomr }}</div>
+                    <div class="item-label">资费名称</div>
+                    <div class="item-content">{{ tariffForm.label }}</div>
                 </div>
             </div>
             <div class="detail-item-box">
@@ -47,7 +47,7 @@
             <div class="detail-item-box">
                 <div class="detail-item">
                     <div class="item-label">卡类型</div>
-                    <div class="item-content">{{ FormDataList.CardType }}</div>
+                    <div class="item-content">{{ FormDataList.cardType }}</div>
                 </div>
                 <div class="detail-item">
                     <div class="item-label">标准价格</div>
@@ -89,7 +89,7 @@
 
 <script setup>
 import { ref, onMounted, toRefs, toRef ,watch} from 'vue';
-import { AcquireOrdertariff, DistributionCard,TariffOrderCard } from '@/api/path/order'
+import { AcquireOrdertariff, DistributionCard,ReturntheOrderCard } from '@/api/path/order'
 import { Message } from '@arco-design/web-vue';
 import Upload from "@/components/upload/index.vue";
 import { Getdictionary } from '@/mixins/index.js'
@@ -115,7 +115,7 @@ const state = ref({
     userType: JSON.parse(localStorage.getItem('user_login_information'))?.userType, // 1平台 2用户
 })
 const { tariffForm, showCard,res1,res2,res3,userType } = toRefs(state.value)
-const columnsDetail = [{ title: 'ICCID', dataIndex: 'iccid' },{ title: '卡状态', dataIndex: 'status' },{ title: '创建时间', dataIndex: 'expireTime' }
+const columnsDetail = [{ title: 'ICCID', dataIndex: 'iccid' },{ title: '卡状态', dataIndex: 'status' },{ title: '创建时间', dataIndex: 'createdAt' }
 ]
 const dataDetail = ref([])
 
@@ -150,8 +150,8 @@ watch(() => FormDataList.value, val => {
         tariffForm.value.pricingName = tariffForm.value.pricing !== '' ? tariffForm.value.pricing + '/' + res3.value.filter(val => val.value == res.data.currency)[0]?.label : '';
     })
     dataDetail.value = []
-    TariffOrderCard({id:val.trafficId}).then(res=>{
-        dataDetail.value = res.data
+    ReturntheOrderCard({id:val.id}).then(res=>{
+        dataDetail.value = res.data.map(val=>({...val,status:val.status==1?'正常':'退订'}))
     })
 },{deep: true})
 

+ 38 - 4
src/views/order/BuyCard/index.vue

@@ -46,6 +46,7 @@
             <a-button type="text" @click="adminCancel(record)"
               v-if="record.moderationStatus == 2 && userType !== 1">退订</a-button>
           </div>
+          <a-button @click="openPriceing(record)" type="text" v-if="record.moderationStatus==2">上传金额</a-button>
           <a-button @click="openDetail(record)" type="text">查看</a-button>
         </div>
       </template>
@@ -67,6 +68,15 @@
       </a-form>
     </a-modal>
 
+    <a-modal v-model:visible="showPrning"  title="上传金额"
+      @cancel="closeModal(showPrning, formPreing)" @ok="handelPriceing" okText="保存" cancelText="关闭">
+      <a-form :model="formPreing" auto-label-width>
+        <a-form-item  label="采购金额">
+          <a-input v-model="formPreing.amount" placeholder="请输入采购金额" />
+        </a-form-item>
+      </a-form>
+    </a-modal>
+
     <Card v-model:modelValue="showAudit" @submit="intData()" />
     <Status v-model:modelValue="showStatus" @submit="intData()" :FormDataList="FormDataList" />
     <Detaile v-model:modelValue="showDetail" @submit="intData()" :FormDataList="FormDataList" />
@@ -78,7 +88,7 @@
 import { ref, onMounted, toRefs } from 'vue';
 import { Message } from '@arco-design/web-vue';
 import { purchaseOrderList, platformUpdate, adminUpdate } from '@/api/path/purchase';
-import { UploadOrderCardContract, TariffOrderCard } from '@/api/path/order'
+import { UploadOrderCardContract, TariffOrderCard,SettingPricing } from '@/api/path/order'
 import { Getdictionary } from '@/mixins/index.js'
 import Upload from "@/components/upload/index.vue";
 import Card from './Card.vue'
@@ -108,7 +118,12 @@ const state = ref({
   uploadContract: false,
   showReturn: false,
   ReturnData: [],
-  id: null
+  id: null,
+  showPrning:false,
+  formPreing:{
+    id:'',
+    amount:''
+  }
 });
 
 const {
@@ -123,7 +138,9 @@ const {
   uploadContract,
   showReturn,
   ReturnData,
-  id
+  id,
+  showPrning,
+  formPreing
 } = toRefs(state.value);
 
 const columns = [
@@ -137,7 +154,7 @@ const columns = [
   { title: '卡类型', dataIndex: 'cardType', align: 'center', ellipsis: true },
   { title: '运营商名称', dataIndex: 'sourceName', align: 'center', ellipsis: true },
   { title: '资费', dataIndex: 'trafficName', align: 'center', ellipsis: true },
-  { title: '支付金额', dataIndex: 'priceing', align: 'center', ellipsis: true },
+  { title: '采购金额', dataIndex: 'amount', align: 'center', ellipsis: true },
   { title: '合同照片', slotName: 'image', align: 'center', ellipsis: true },
   { title: '下单时间', dataIndex: 'createdAt', align: 'center', ellipsis: true },
   { title: '操作', slotName: 'operate', align: 'center', ellipsis: true }
@@ -223,6 +240,23 @@ const closeModal = (items, obj) => {
   })
 }
 
+const openPriceing = (data)=>{
+  showPrning.value = true;
+  formPreing.value.id = data.id
+}
+
+const handelPriceing = async()=>{
+  if(formPreing.value.amount=='' || formPreing.value.amount==0){
+    return Message.error('输入有误')
+  }
+  formPreing.value.amount = Number(formPreing.value.amount)
+  let res = await SettingPricing(formPreing.value)
+  if(res.code===200){
+    Message.success(res.message)
+    closeModal(showPrning.value, formPreing.value)
+  }
+}
+
 onMounted(() => {
   intData();
 })

+ 0 - 161
src/views/order/ReturnCard/detaile.vue

@@ -1,161 +0,0 @@
-<template>
-    <a-modal v-model:visible="modelValue" width="800px" title="订单详情" @cancel="cancel" @ok="showDetail = false">
-        <div class="detail-box">
-            <div class="detail-item-box">
-                <div class="detail-item">
-                    <div class="item-label">订单编号</div>
-                    <div class="item-content">{{ FormDataList.id }}</div>
-                </div>
-                <div class="detail-item">
-                    <div class="item-label">订单状态</div>
-                    <div class="item-content">
-                        <a-tag color="#168cff" v-if="FormDataList.tmsStatus == 1">未发货</a-tag>
-                        <a-tag color="#00b42a" v-if="FormDataList.tmsStatus == 2">已发货</a-tag>
-                    </div>
-                </div>
-            </div>
-            <div class="detail-item-box">
-                <div class="detail-item">
-                    <div class="item-label">运营商</div>
-                    <div class="item-content">{{ FormDataList.sourceName }}</div>
-                </div>
-                <div class="detail-item">
-                    <div class="item-label">资费信息</div>
-                    <div class="item-content">{{ TariffInfomr }}</div>
-                </div>
-            </div>
-            <div class="detail-item-box">
-                <div class="detail-item">
-                    <div class="item-label">最短订阅周期</div>
-                    <div class="item-content">{{ tariffForm.settlementCycle?.split('~')[0] }}个月</div>
-                </div>
-                <div class="detail-item">
-                    <div class="item-label">最长订阅周期</div>
-                    <div class="item-content">{{ tariffForm.settlementCycle?.split('~')[1] }}个月</div>
-                </div>
-            </div>
-            <div class="detail-item-box">
-                <div class="detail-item">
-                    <div class="item-label">计费方式</div>
-                    <div class="item-content">{{ tariffForm.billingMethodName }}</div>
-                </div>
-                <div class="detail-item">
-                    <div class="item-label">结算周期</div>
-                    <div class="item-content">{{ tariffForm.billingcycleName }}</div>
-                </div>
-            </div>
-            <div class="detail-item-box">
-                <div class="detail-item">
-                    <div class="item-label">卡类型</div>
-                    <div class="item-content">{{ FormDataList.CardType }}</div>
-                </div>
-                <div class="detail-item">
-                    <div class="item-label">标准价格</div>
-                    <div class="item-content">{{ tariffForm.pricingName }}</div>
-                </div>
-            </div>
-            <div class="detail-item-box">
-                <div class="detail-item">
-                    <div class="item-label">流量池</div>
-                    <div class="item-content">{{ FormDataList.isTrafficPool == 1 ? '是' : '否' }}</div>
-                </div>
-            </div>
-            <div class="detail-item-box">
-                <div class="detail-item">
-                    <div class="item-label">退卡数量</div>
-                    <div class="item-content">{{ dataDetail.length }}
-                    </div>
-                </div>
-            </div>
-        </div>
-        <div class="detail-table">
-            <a-table :columns="columnsDetail" :data="dataDetail" />
-        </div>
-    </a-modal>
-</template>
-
-<script setup>
-import { ref, onMounted, toRefs, toRef ,watch} from 'vue';
-import { AcquireOrdertariff,TariffOrderCard } from '@/api/path/order'
-import { Getdictionary } from '@/mixins/index.js'
-const props = defineProps({
-    modelValue: {
-        type: Boolean,
-        default: false
-    },
-    FormDataList: {
-        type: Object,
-        default: () => ({})
-    }
-})
-const modelValue = toRef(props, 'modelValue')
-const FormDataList = toRef(props, 'FormDataList')
-const emit = defineEmits(['update:modelValue', 'submit'])
-const state = ref({
-    tariffForm: {},
-    res1:[],
-    res2:[],
-    res3:[],
-})
-const { tariffForm,res1,res2,res3 } = toRefs(state.value)
-const columnsDetail = [{ title: 'ICCID', dataIndex: 'iccid' },{ title: '卡状态', dataIndex: 'status' },{ title: '创建时间', dataIndex: 'expireTime' }
-]
-const dataDetail = ref([])
-
-const cancel = () => {
-    emit('update:modelValue', false)
-}
-
-watch(() => FormDataList.value, val => {
-    if (Object.keys(val).length === 0) return
-    AcquireOrdertariff({ id: val.trafficId }).then(res => {
-        tariffForm.value = res.data
-        tariffForm.value.billingcycleName = res1.value.filter(val => val.value == res.data.billingCycle)[0]?.label;
-        tariffForm.value.billingMethodName = res2.value.filter(val => val.value == res.data.billingMethod)[0]?.label;
-        tariffForm.value.TariffInfomr = res.data.trafficBilling + '/' + res.data.trafficBillingType
-        tariffForm.value.pricingName = tariffForm.value.pricing !== '' ? tariffForm.value.pricing + '/' + res3.value.filter(val => val.value == res.data.currency)[0]?.label : '';
-    })
-    TariffOrderCard({id:val.trafficId}).then(res=>{
-        dataDetail.value = res.data
-    })
-},{deep: true})
-
-onMounted(async () => {
-    res1.value = await Getdictionary('Billingcycle')
-    res2.value = await Getdictionary('billingMethod')
-    res3.value = await Getdictionary('currencyType')
-})
-</script>
-<style scoped lang="less">
-.detail-box {
-    .detail-item-box {
-        display: flex;
-        justify-content: space-between;
-        align-items: center;
-        margin-bottom: 10px;
-
-        .detail-item {
-            //styleName: Body/Medium;
-            font-family: PingFang SC;
-            font-size: 14px;
-            font-weight: 400;
-            line-height: 22px;
-            text-align: left;
-            display: flex;
-            align-items: center;
-            min-width: 350px;
-
-            .item-label {
-                color: rgba(0, 0, 0, 0.4);
-                width: 120px;
-                text-align: right;
-                margin-right: 10px;
-            }
-
-            .item-content {
-                color: rgba(51, 51, 51, 1);
-            }
-        }
-    }
-}
-</style>

+ 138 - 126
src/views/order/ReturnCard/index.vue

@@ -1,130 +1,169 @@
-<!-- 退卡订单 -->
+<!-- 卡订单 -->
 <template>
   <div class="silent-expire-alarm">
     <!-- 搜索条件区 -->
     <div class="search-section">
-      <Search/>
+      <Search />
     </div>
     <!-- 数据表格 -->
-    <a-table :columns="columns" :data="tableData" :pagination="pagination" :scroll="{ x: '100%', y: '400px' }">
-      <template #detail="{ record }">
-        <a-button @click="openDetail(record)" type="text">订单详情</a-button>
-      </template>
-      <template #orderStatus="{ record }">
-        <a-tag color="orangered" v-if="record.moderationStatus == 1">待审核</a-tag>
-        <a-tag color="arcoblue" v-if="record.moderationStatus == 2">审核通过</a-tag>
-        <a-tag color="#f53f3f" v-if="record.moderationStatus == 3">已驳回</a-tag>
+    <a-table :data="tableData" :pagination="pageData" :columns="columns" @page-change="evChangePage"
+      :scroll="{ x: 'auto' }">
+      <template #image="{ record }">
+        <a-image width="60" height="60" :src="record.contractImg" :preview-props="{
+          actionsLayout: ['rotateRight', 'zoomIn', 'zoomOut'],
+        }">
+        </a-image>
       </template>
       <template #id="{ record }">
         <div class="line_heis" @click="openDetail(record)">{{ record.id }}</div>
       </template>
+      <template #statusType="{ record }">
+        <a-tag color="#ff7d00" v-if="record.moderationStatus == 1">待审核</a-tag>
+        <a-tag color="#00b42a" v-if="record.moderationStatus == 2">审核通过</a-tag>
+        <a-tag color="#f53f3f" v-if="record.moderationStatus == 3">已驳回</a-tag>
+      </template>
+      <template #LogisticsStatus="{ record }">
+        <a-tag color="#168cff" v-if="record.tmsStatus == 1">未发货</a-tag>
+        <a-tag color="#00b42a" v-if="record.tmsStatus == 2">已发货</a-tag>
+      </template>
       <template #operate="{ record }">
-        <a-button type="primary" @click="showAudit = true" v-if="record.moderationStatus==1 && record.status==2">审核</a-button>
+        <div class="setting">
+          <div v-if="userType == 1">
+            <a-button type="text" v-if="record.moderationStatus == 1 && record.status == 1"
+              @click="statusOrder(record)">审核</a-button>
+          </div>
+          <a-button @click="openPriceing(record)" type="text" v-if="record.moderationStatus == 2">上传金额</a-button>
+        </div>
       </template>
     </a-table>
 
+    <a-modal v-model:visible="showPrning" title="上传金额" @cancel="closeModal(showPrning, formPreing)" @ok="handelPriceing"
+      okText="保存" cancelText="关闭">
+      <a-form :model="formPreing" auto-label-width>
+        <a-form-item label="退货金额">
+          <a-input v-model="formPreing.returnAmount" placeholder="请输入退货金额" />
+        </a-form-item>
+      </a-form>
+    </a-modal>
+
 
-    <Status v-model:modelValue="showAudit" @submit="intData()" />
-    <<Detaile v-model:modelValue="showDetail" @submit="intData()" :FormDataList="FormDataList" />
   </div>
 </template>
 
 <script setup>
-import { ref, reactive, onMounted, toRefs } from 'vue';
+import { ref, onMounted, toRefs } from 'vue';
 import { Message } from '@arco-design/web-vue';
 import { cancelOrderList } from '@/api/path/purchase';
-import { enum_dict } from "@/hooks/enum";
-import { Getdictionary } from "@/mixins/index.js";
-import Status from './status.vue'
+import { SettingPricing } from '@/api/path/order'
+import { Getdictionary } from '@/mixins/index.js'
 import Search from '@/components/Search/index.vue'
+// 数据层
 const state = ref({
-  searchForm: {
-    cardNumber: '',
-    customerName: '',
-  },
+  userName: localStorage.getItem('user_login_information')?.username,
+  userType: JSON.parse(localStorage.getItem('user_login_information'))?.userType, // 1平台 2用户
   tableData: [],
-  pagination: {
+  FormDataList: {},
+  pageData: {
     total: 0,
-    current: 1,
     size: 10,
+    current: 1,
   },
-  showDetail: false,
-  showAudit: false,
-  FormDataList: {}
-})
-
-const { searchForm, tableData, pagination, showDetail, showAudit, FormDataList } = toRefs(state.value)
+  showStatus: false,
+  showPrning: false,
+  formPreing: {
+    id: '',
+    returnAmount: ''
+  }
+});
+
+const {
+  userType,
+  tableData,
+  FormDataList,
+  pageData,
+  showStatus,
+  showPrning,
+  formPreing
+} = toRefs(state.value);
 
 const columns = [
-  { title: '序号', dataIndex: 'index', align: 'center', render: ({ rowIndex }) => rowIndex + 1 },
-  {
-    title: '订单编号', slotName: 'id', ellipsis: true,
-    tooltip: true,
-  },
-  {
-    title: '客户名称', dataIndex: 'userName', ellipsis: true,
-    tooltip: true,
-  },
-  { title: '订单状态', slotName: 'orderStatus', ellipsis: true },
-  {
-    title: '供应商名称', dataIndex: 'sourceName', ellipsis: true,
-    tooltip: true,
-  },
-  { title: '退卡张数', dataIndex: 'quantity', ellipsis: true },
-  { title: '剩余时长', dataIndex: 'period_of_silence', ellipsis: true },
-  { title: '退回金额', dataIndex: 'payment_amount', ellipsis: true },
+  { title: '序号', dataIndex: 'index', align: 'center', ellipsis: true },
+  { title: '订单编号', slotName: 'id', align: 'center', ellipsis: true },
+  { title: '审核状态', slotName: 'statusType', align: 'center', ellipsis: true },
+  { title: '物流状态', slotName: 'LogisticsStatus', align: 'center', ellipsis: true },
+  { title: '客户名称', dataIndex: 'userName', align: 'center', ellipsis: true },
+  { title: '购卡数', dataIndex: 'quantity', align: 'center', ellipsis: true },
+  { title: '静默期(月)', dataIndex: 'periodOfSilence', align: 'center', ellipsis: true },
+  { title: '卡类型', dataIndex: 'cardType', align: 'center', ellipsis: true },
+  { title: '运营商名称', dataIndex: 'sourceName', align: 'center', ellipsis: true },
+  { title: '资费', dataIndex: 'trafficName', align: 'center', ellipsis: true },
+  { title: '采购金额', dataIndex: 'amount', align: 'center', ellipsis: true },
+  { title: '合同照片', slotName: 'image', align: 'center', ellipsis: true },
+  { title: '下单时间', dataIndex: 'createdAt', align: 'center', ellipsis: true },
   { title: '操作', slotName: 'operate', align: 'center', ellipsis: true }
 ];
 
-// 查看订单详情
-const openDetail = (item) => {
-  showDetail.value = true;
-  FormDataList.value = item;
-}
-
-const resetSearch = () => {
-  Object.keys(searchForm).forEach(key => {
-    if (Array.isArray(searchForm[key])) {
-      searchForm[key] = [];
-    } else {
-      searchForm[key] = null;
-    }
-    intData()
-  });
-  Message.success('搜索条件已重置');
-};
-
-// 列表-------------------------------------
 // 订单列表
 const intData = async () => {
   const param = {
-    current: pagination.value.current,
-    size: pagination.value.size,
+    current: pageData.value.current,
+    size: pageData.value.size,
   }
-  const one = await Getdictionary('source')
-  const two = await Getdictionary('cardType')
-  const tree = await Getdictionary('subscriptionRelationshipStatus')
-  const tive = await Getdictionary('orderAuditStatus')
+  const simTypeList = await Getdictionary('cardType')
+  let sourceList = await Getdictionary('source')
   cancelOrderList(param).then(res => {
-    tableData.value = (res.data.records || []).map(item => {
-
-      const sourceName = one.filter((item) => item.typeKey == enum_dict.SOURCE)?.find(val => item.source == val.value)?.label
-      const cardTypeName = two.filter((item) => item.typeKey == enum_dict.CARD_TYPE)?.find(val => item.card_type == val.value)?.label
-      const statusName = tree.filter((item) => item.typeKey == enum_dict.SUBSCRIPTION_RELATIONSHIP_STATUS)?.find(val => item.status == val.value)?.label
-      const moderationStatusName = tive.filter((item) => item.typeKey == enum_dict.ORDER_AUDIT_STATUS)?.find(val => item.moderation_status == val.value)?.label
-
+    tableData.value = (res.data.records || []).map((item, key) => {
+      const sourceName = sourceList.find(val => val.value == item.source)?.label
+      const cardType = simTypeList.find(val => val.value == item.simType)?.label
       return {
         ...item,
-        moderationStatusName,
-        statusName,
-        cardTypeName,
-        sourceName
+        index: key + 1,
+        sourceName,
+        cardType
       }
     });
-    pagination.value.total = res.data.total;
+    pageData.value.total = res.data.total;
+  })
+
+}
+// 分页
+const evChangePage = (page) => {
+  pageData.value.current = page
+  intData()
+}
+
+// 订单审核
+const statusOrder = (items) => {
+  FormDataList.value = items
+  showStatus.value = true
+}
+// 模态框取消
+const closeModal = (items, obj) => {
+  items = false
+  Object.keys(obj).forEach(key => {
+    if (obj.key) {
+      obj[key] = '';
+    }
   })
+}
+
+const openPriceing = (data) => {
+  showPrning.value = true;
+  formPreing.value.id = data.id
+}
 
+const handelPriceing = async () => {
+  if (formPreing.value.returnAmount == '' || formPreing.value.returnAmount == 0) {
+    return Message.error('输入有误')
+  }
+  formPreing.value.returnAmount = Number(formPreing.value.returnAmount)
+  let res = await SettingPricing(formPreing.value)
+  if (res.code === 200) {
+    Message.success(res.message)
+    closeModal(showPrning.value, formPreing.value)
+  }
 }
+
 onMounted(() => {
   intData();
 })
@@ -136,6 +175,12 @@ onMounted(() => {
   // background: #fcf;
 }
 
+.setting {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+}
+
 .search-section {
   margin-bottom: 20px;
 }
@@ -146,20 +191,17 @@ onMounted(() => {
 
 .audit-txt {
   display: flex;
-  justify-content: center;
-  align-items: center;
+  flex-wrap: wrap;
 
   .audit-tag {
-    margin-left: 20px;
-    background: #63c2c6;
-    color: #fff;
-    font-size: 12px;
-    display: flex;
-    justify-content: center;
-    align-items: center;
-    padding: 0 10px;
-    box-sizing: border-box;
-    border-radius: 50px;
+    width: 180px;
+    color: #b2b2b2;
+    margin-right: 20px;
+
+    span {
+      color: #000;
+      margin-left: 20px;
+    }
   }
 }
 
@@ -167,37 +209,7 @@ onMounted(() => {
   margin-bottom: 10px;
 }
 
-.detail-box {
-  .detail-item-box {
-    display: flex;
-    justify-content: space-between;
-    align-items: center;
-    margin-bottom: 10px;
-
-    .detail-item {
-      //styleName: Body/Medium;
-      font-family: PingFang SC;
-      font-size: 14px;
-      font-weight: 400;
-      line-height: 22px;
-      text-align: left;
-      display: flex;
-      align-items: center;
-      min-width: 350px;
-
-      .item-label {
-        color: rgba(0, 0, 0, 0.4);
-        width: 120px;
-        text-align: right;
-        margin-right: 10px;
-      }
 
-      .item-content {
-        color: rgba(51, 51, 51, 1);
-      }
-    }
-  }
-}
 
 .detail-table {
   margin-top: 20px;
@@ -212,4 +224,4 @@ onMounted(() => {
 .line_heis:hover {
   color: #168cff;
 }
-</style>
+</style>

+ 0 - 81
src/views/order/ReturnCard/status.vue

@@ -1,81 +0,0 @@
-<template>
-    <div class="">
-        <a-modal v-model:visible="modelValue" title="审核" @cancel="cancel" @before-ok="submitAudit" okText="确定审核"
-            cancelText="关闭">
-            <a-form :model="formAudit" auto-label-width>
-                <a-form-item field="customerName" label="客户">
-                    <!-- <a-input v-model="formAudit.customerName" placeholder="请输入客户" /> -->
-                    <div class="audit-txt" style="color:#418035;">演示账号02</div>
-                </a-form-item>
-                <a-form-item field="cardType" label="卡类型">
-                    <!-- <a-input v-model="formAudit.cardType" placeholder="请输入单号" /> -->
-                    <div class="audit-txt">普通卡切卡普通卡MP1,1元/涨
-                        <div class="audit-tag">共1张卡</div>
-                    </div>
-                </a-form-item>
-                <a-form-item field="money" label="资费">
-                    <!-- <a-input v-model="formAudit.money" placeholder="请输入单号" /> -->
-                    <div class="audit-txt">“移动100M月包”
-                        <div class="audit-tag">订购12个月</div>
-                    </div>
-                </a-form-item>
-                <a-form-item field="orderStatus" label="订单状态">
-                    <!-- <a-input v-model="formAudit.orderStatus" placeholder="请输入单号" /> -->
-                    <a-radio-group v-model="formAudit.orderStatus" :options="options" />
-                </a-form-item>
-                <a-form-item field="auditOpinion" label="审核意见">
-                    <!-- <a-input v-model="formAudit.auditOpinion" placeholder="请输入单号" /> -->
-                    <a-textarea placeholder="您填写的审核意见会直接投送给用户,请认真填写!" v-model="formAudit.auditOpinion" allow-clear />
-                </a-form-item>
-                <a-form-item field="fileList" label="销售合同">
-                    <a-upload action="/" :default-file-list="formAudit.fileList" />
-                </a-form-item>
-            </a-form>
-        </a-modal>
-    </div>
-</template>
-
-<script setup>
-import { ref, onMounted, toRefs, toRef, watch } from 'vue';
-const props = defineProps({
-    modelValue: {
-        type: Boolean,
-        default: false
-    },
-    FormDataList: {
-        type: Object,
-        default: () => ({})
-    }
-})
-const modelValue = toRef(props, 'modelValue')
-const FormDataList = toRef(props, 'FormDataList')
-const emit = defineEmits(['update:modelValue', 'submit'])
-
-const state = ref({
-    options: [
-        { label: '发货', value: '1' },
-        { label: '退回', value: '2' },
-    ],
-    formAudit: {
-        customerName: '',
-        cardType: '',
-        money: '',
-        orderStatus: '',
-        auditOpinion: '',
-        fileList: []
-    },
-    
-})
-
-const { options, formAudit } = toRefs(state.value)
-
-const cancel = () => {
-    emit('update:modelValue', false)
-}
-
-// 确认审核
-const submitAudit = () => {
-   emit('submit',true)
-}
-</script>
-<style scoped></style>