|
@@ -85,7 +85,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { ref, onMounted, toRefs, toRef ,watch} from 'vue';
|
|
|
-import { AcquireOrdertariff, DistributionCard } from '@/api/path/order'
|
|
|
+import { AcquireOrdertariff, DistributionCard,TariffOrderCard } from '@/api/path/order'
|
|
|
import { Message } from '@arco-design/web-vue';
|
|
|
import Upload from "@/components/upload/index.vue";
|
|
|
import { Getdictionary } from '@/mixins/index.js'
|
|
@@ -113,24 +113,7 @@ const state = ref({
|
|
|
const { tariffForm, showCard,res1,res2,res3,userType } = toRefs(state.value)
|
|
|
const columnsDetail = [{ title: 'ICCID', dataIndex: 'iccid' }
|
|
|
]
|
|
|
-const dataDetail = ref([{
|
|
|
- iccid: '8986061800002054589N',
|
|
|
- nameAndId: '泰国监控40G共享/53357981207',
|
|
|
- status: '沉默期'
|
|
|
-},
|
|
|
-{
|
|
|
- iccid: '8986061800002054588N',
|
|
|
- nameAndId: '泰国监控40G共享/53357981207',
|
|
|
- status: '沉默期'
|
|
|
-}, {
|
|
|
- iccid: '8986061800002054587N',
|
|
|
- nameAndId: '泰国监控40G共享/53357981207',
|
|
|
- status: '沉默期'
|
|
|
-}, {
|
|
|
- iccid: '8986061800002054586N',
|
|
|
- nameAndId: '泰国监控40G共享/53357981207',
|
|
|
- status: '沉默期'
|
|
|
-},])
|
|
|
+const dataDetail = ref([])
|
|
|
|
|
|
// 分配卡号
|
|
|
const customRequest = (options) => {
|
|
@@ -139,6 +122,9 @@ const customRequest = (options) => {
|
|
|
formData.append('orderId', FormDataList.value.id);
|
|
|
DistributionCard(formData).then(res => {
|
|
|
Message.success(res.message)
|
|
|
+ res.data[0].forEach(val=>[
|
|
|
+ dataDetail.value.push({iccid:val})
|
|
|
+ ])
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -155,6 +141,9 @@ watch(() => FormDataList.value, val => {
|
|
|
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 () => {
|