Browse Source

no message

develop
杜贤金 3 years ago
parent
commit
b339620ab0
  1. 8
      src/api/communication/basiccard.js
  2. 34
      src/views/communicationmanage/basiccard/basiccard.vue
  3. 20
      src/views/communicationmanage/targetflowpool/targetflowpool.vue
  4. 95
      src/views/financial/telecomCheckBill.vue

8
src/api/communication/basiccard.js

@ -62,6 +62,14 @@ export const tenant = () => {
method: 'get',
})
}
//流量池名称
export const flowPoolName = () => {
return request({
url: "/api/iot-sim/flowpool/fillData?isSource=" + 2,
method: 'get',
})
}
//分拨操作
export const simdeliver = (params) => {
return request({

34
src/views/communicationmanage/basiccard/basiccard.vue

@ -170,7 +170,25 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item
label="目标流量池"
prop="flowPoolId"
v-if="distitle == '分拨' || distitle == '出库'"
>
<el-select
v-model="distribution.flowPoolId"
placeholder="请选择目标流量池"
size="mini"
style="width: 90%"
>
<el-option
v-for="(item, index) in flowPoolNameArr"
:label="item.name"
:value="item.id"
:key="item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label="开始/结束号码"
prop="numbers"
@ -225,6 +243,7 @@ import {
simCallback,
deliver,
dataplangroup,
flowPoolName,
} from "@/api/communication/basiccard";
import { mapGetters } from "vuex";
import { getToken } from "@/util/auth";
@ -381,6 +400,7 @@ export default {
numEnd: "", //
dataPlanId: "",
dataPlanGroupId: "", //
flowPoolId: "", //
}, //
redistribution: {
numStart: null, //
@ -406,6 +426,7 @@ export default {
],
},
channellist: [], //
flowPoolNameArr: [], //
ruleForm: {}, //
dialogVisible: false, //
dialogVisibles: false, //
@ -683,7 +704,7 @@ export default {
created() {
this.allocatelist(); //
this.tenantlists(); //
this.flowPoolIds(); //
this.basicpackgesgroup(); //
},
watch: {
@ -920,7 +941,14 @@ export default {
}
});
},
//
flowPoolIds() {
flowPoolName().then((res) => {
if (res.data.code == 200) {
this.flowPoolNameArr = res.data.data;
}
});
},
//
tenantlists() {
tenant().then((res) => {

20
src/views/communicationmanage/targetflowpool/targetflowpool.vue

@ -84,6 +84,22 @@ export default {
},
],
},
{
label: "客户名称",
prop: "tenantId",
type: "select",
dicUrl: "/api/iot-system/tenant/fillData",
props: {
label: "tenantName",
value: "tenantId",
},
dataType: "String",
span: 12,
search: true,
rules: [
{ required: true, message: "请选择客户名称", trigger: "change" },
],
},
{
label: "目标流量池编号",
prop: "code",
@ -119,6 +135,7 @@ export default {
prop: "total",
span: 12,
searchLabelWidth: 90,
width: 115,
search: false,
addDisplay: false,
editDisplay: false,
@ -163,10 +180,11 @@ export default {
],
},
{
label: "提醒阈值",
label: "提醒阈值(%)",
prop: "remindRatio",
span: 12,
searchLabelWidth: 90,
width: "90",
search: false,
hide: false,
type: "number",

95
src/views/financial/telecomCheckBill.vue

@ -0,0 +1,95 @@
<template>
<basic-container>
<div style="width: 50%; margin: 0 auto">
<div class="downloads">
<div>
<el-link type="primary" @click="handleTemplate">下载模板</el-link>
并按照模板提示输入数据后上传
</div>
</div>
<div class="tip">
温馨提示
<div>1请选择模板下载</div>
<div>2导入必须是xlsxlsx文件</div>
<div>3文件大小最大为10MB</div>
<div>4号码最多10000个</div>
</div>
<avue-form :option="auditoptions" :upload-after="uploadAfter"></avue-form>
</div>
</basic-container>
</template>
<script>
import { getToken } from "@/util/auth";
export default {
data() {
return {
auditoptions: {
menuBtn: false,
labelWidth: 95,
size: "medium",
column: [
{
label: "电信对账单",
prop: "excelFile",
type: "upload",
drag: true,
loadText: "上传中,请稍等",
showFileList: false,
propsHttp: {
res: "data",
},
tip: "请上传模板格式文件",
action: "/api/iot-sim/telecomCheckBill/import-checkBill",
rules: [
{
required: true,
message: "请选择文件",
trigger: "change",
},
],
},
],
},
};
},
methods: {
//
handleTemplate() {
window.open(
`${this.baseUrl}/${
this.apis
}iot-sim/telecomCheckBill/export-checkBill?${
this.website.tokenHeader
}=${getToken()}`
);
},
uploadAfter(res, done, loading, column) {
done();
window.open(
`${this.baseUrl}/${
this.apis
}iot-sim/telecomCheckBill/export-checkBillInfo?${
this.website.tokenHeader
}=${getToken()}`
);
},
},
};
</script>
<style>
.downloads {
display: flex;
align-items: center;
padding-bottom: 30px;
font-size: 16px;
}
.tip {
padding-bottom: 50px;
color: #a8a8a8;
font-size: 15px;
}
</style>
Loading…
Cancel
Save