|
|
@ -50,7 +50,6 @@ |
|
|
|
>出 库</el-button> --> |
|
|
|
>出 库</el-button> --> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</avue-crud> |
|
|
|
</avue-crud> |
|
|
|
<!-- 导出 :upload-after="uploadAfter"--> |
|
|
|
|
|
|
|
<el-dialog |
|
|
|
<el-dialog |
|
|
|
title="导入" |
|
|
|
title="导入" |
|
|
|
append-to-body |
|
|
|
append-to-body |
|
|
@ -114,6 +113,21 @@ |
|
|
|
></el-option> |
|
|
|
></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="基础套餐" prop="dataPlanId"> |
|
|
|
|
|
|
|
<el-select |
|
|
|
|
|
|
|
v-model="distribution.dataPlanId" |
|
|
|
|
|
|
|
placeholder="请选择基础套餐" |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
style="width: 90%" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<el-option |
|
|
|
|
|
|
|
v-for="(item, index) in basicpackge" |
|
|
|
|
|
|
|
:label="item.name" |
|
|
|
|
|
|
|
:value="item.id" |
|
|
|
|
|
|
|
:key="item.id" |
|
|
|
|
|
|
|
></el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="开始/结束号码" prop="numbers"> |
|
|
|
<el-form-item label="开始/结束号码" prop="numbers"> |
|
|
|
<el-col :span="10"> |
|
|
|
<el-col :span="10"> |
|
|
|
<el-form-item prop="numStart"> |
|
|
|
<el-form-item prop="numStart"> |
|
|
@ -160,7 +174,7 @@ import { |
|
|
|
allocate, |
|
|
|
allocate, |
|
|
|
tenant, |
|
|
|
tenant, |
|
|
|
simdeliver, |
|
|
|
simdeliver, |
|
|
|
channelfillData, |
|
|
|
dataplan, |
|
|
|
} from "@/api/communication/basiccard"; |
|
|
|
} from "@/api/communication/basiccard"; |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
import { getToken } from "@/util/auth"; |
|
|
|
import { getToken } from "@/util/auth"; |
|
|
@ -191,6 +205,7 @@ export default { |
|
|
|
excelForm: { |
|
|
|
excelForm: { |
|
|
|
tenantId: "", |
|
|
|
tenantId: "", |
|
|
|
isCovered: 0, |
|
|
|
isCovered: 0, |
|
|
|
|
|
|
|
dataPlanId: "", |
|
|
|
}, |
|
|
|
}, |
|
|
|
excelOption: { |
|
|
|
excelOption: { |
|
|
|
submitBtn: false, |
|
|
|
submitBtn: false, |
|
|
@ -200,7 +215,7 @@ export default { |
|
|
|
label: "通道名称", |
|
|
|
label: "通道名称", |
|
|
|
prop: "tenantId", |
|
|
|
prop: "tenantId", |
|
|
|
type: "select", |
|
|
|
type: "select", |
|
|
|
dataType: "Number", |
|
|
|
dataType: "String", |
|
|
|
span: 20, |
|
|
|
span: 20, |
|
|
|
dicUrl: "/api/iot-sim/channel/fillData", |
|
|
|
dicUrl: "/api/iot-sim/channel/fillData", |
|
|
|
props: { |
|
|
|
props: { |
|
|
@ -215,6 +230,25 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "元套餐", |
|
|
|
|
|
|
|
prop: "dataPlanId", |
|
|
|
|
|
|
|
type: "select", |
|
|
|
|
|
|
|
dicUrl: "/api/iot-sim/dataplan/fillData?isSource=" + 1, |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
label: "name", |
|
|
|
|
|
|
|
value: "id", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
dataType: "String", |
|
|
|
|
|
|
|
span: 20, |
|
|
|
|
|
|
|
rules: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
|
|
message: "请选择元套餐", |
|
|
|
|
|
|
|
trigger: "change", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "模板上传", |
|
|
|
label: "模板上传", |
|
|
|
prop: "excelFile", |
|
|
|
prop: "excelFile", |
|
|
@ -268,8 +302,10 @@ export default { |
|
|
|
deliverType: null, //分拨类型 |
|
|
|
deliverType: null, //分拨类型 |
|
|
|
numStart: null, //开始号码 |
|
|
|
numStart: null, //开始号码 |
|
|
|
numEnd: null, //结束号码 |
|
|
|
numEnd: null, //结束号码 |
|
|
|
|
|
|
|
dataPlanId: "", |
|
|
|
}, //分拨 |
|
|
|
}, //分拨 |
|
|
|
distributionlist: [], //分拨类型下拉 |
|
|
|
distributionlist: [], //分拨类型下拉 |
|
|
|
|
|
|
|
basicpackge: [], //基础套餐下拉 |
|
|
|
tenantlist: [], //租户下拉 |
|
|
|
tenantlist: [], //租户下拉 |
|
|
|
distrules: { |
|
|
|
distrules: { |
|
|
|
tenantId: [ |
|
|
|
tenantId: [ |
|
|
@ -279,6 +315,9 @@ export default { |
|
|
|
{ required: true, message: "请选择分拨类型", trigger: "change" }, |
|
|
|
{ required: true, message: "请选择分拨类型", trigger: "change" }, |
|
|
|
], |
|
|
|
], |
|
|
|
numbers: [{ required: true, validator: starts, trigger: "blur" }], |
|
|
|
numbers: [{ required: true, validator: starts, trigger: "blur" }], |
|
|
|
|
|
|
|
dataPlanId: [ |
|
|
|
|
|
|
|
{ required: true, message: "请选择基础套餐", trigger: "change" }, |
|
|
|
|
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
channellist: [], //通道下拉 |
|
|
|
channellist: [], //通道下拉 |
|
|
|
ruleForm: {}, //导入 |
|
|
|
ruleForm: {}, //导入 |
|
|
@ -303,12 +342,21 @@ export default { |
|
|
|
addBtn: true, |
|
|
|
addBtn: true, |
|
|
|
viewBtn: true, |
|
|
|
viewBtn: true, |
|
|
|
delBtn: true, |
|
|
|
delBtn: true, |
|
|
|
excelBtn: false, //导出 |
|
|
|
excelBtn: false, |
|
|
|
columnBtn: false, |
|
|
|
columnBtn: false, |
|
|
|
selection: false, |
|
|
|
selection: false, |
|
|
|
dialogClickModal: false, |
|
|
|
dialogClickModal: false, |
|
|
|
dialogWidth: "60%", |
|
|
|
dialogWidth: "60%", |
|
|
|
column: [ |
|
|
|
column: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "id", |
|
|
|
|
|
|
|
prop: "id", |
|
|
|
|
|
|
|
type: "input", |
|
|
|
|
|
|
|
search: false, |
|
|
|
|
|
|
|
addDisplay:false, |
|
|
|
|
|
|
|
editDisplay:false, |
|
|
|
|
|
|
|
width:170, |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "通道名称", |
|
|
|
label: "通道名称", |
|
|
|
prop: "channelId", |
|
|
|
prop: "channelId", |
|
|
@ -316,6 +364,7 @@ export default { |
|
|
|
dataType: "String", |
|
|
|
dataType: "String", |
|
|
|
span: 12, |
|
|
|
span: 12, |
|
|
|
labelWidth: 130, |
|
|
|
labelWidth: 130, |
|
|
|
|
|
|
|
width:100, |
|
|
|
search: true, |
|
|
|
search: true, |
|
|
|
dicUrl: "/api/iot-sim/channel/fillData", |
|
|
|
dicUrl: "/api/iot-sim/channel/fillData", |
|
|
|
props: { |
|
|
|
props: { |
|
|
@ -338,6 +387,7 @@ export default { |
|
|
|
span: 12, |
|
|
|
span: 12, |
|
|
|
labelWidth: 130, |
|
|
|
labelWidth: 130, |
|
|
|
searchLabelWidth: 110, |
|
|
|
searchLabelWidth: 110, |
|
|
|
|
|
|
|
width: 110, |
|
|
|
search: true, |
|
|
|
search: true, |
|
|
|
display: true, |
|
|
|
display: true, |
|
|
|
dicUrl: "/api/iot-sim/flowpool/fillData?isSource=" + 1, |
|
|
|
dicUrl: "/api/iot-sim/flowpool/fillData?isSource=" + 1, |
|
|
@ -360,12 +410,35 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "元套餐", |
|
|
|
|
|
|
|
prop: "dataPlanId", |
|
|
|
|
|
|
|
type: "select", |
|
|
|
|
|
|
|
dicUrl: "/api/iot-sim/dataplan/fillData?isSource=" + 1, |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
label: "name", |
|
|
|
|
|
|
|
value: "id", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
dataType: "String", |
|
|
|
|
|
|
|
span: 12, |
|
|
|
|
|
|
|
labelWidth: 130, |
|
|
|
|
|
|
|
searchLabelWidth: 110, |
|
|
|
|
|
|
|
search: true, |
|
|
|
|
|
|
|
rules: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
|
|
message: "请选择元套餐", |
|
|
|
|
|
|
|
trigger: "change", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "批次号", |
|
|
|
label: "批次号", |
|
|
|
prop: "batchNum", |
|
|
|
prop: "batchNum", |
|
|
|
span: 12, |
|
|
|
span: 12, |
|
|
|
labelWidth: 130, |
|
|
|
labelWidth: 130, |
|
|
|
search: true, |
|
|
|
search: true, |
|
|
|
|
|
|
|
width:115, |
|
|
|
addDisplay: false, |
|
|
|
addDisplay: false, |
|
|
|
rules: [ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -410,6 +483,7 @@ export default { |
|
|
|
prop: "msisdn", |
|
|
|
prop: "msisdn", |
|
|
|
span: 12, |
|
|
|
span: 12, |
|
|
|
labelWidth: 130, |
|
|
|
labelWidth: 130, |
|
|
|
|
|
|
|
width:110, |
|
|
|
search: true, |
|
|
|
search: true, |
|
|
|
rules: [ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -448,6 +522,8 @@ export default { |
|
|
|
dataType: "number", |
|
|
|
dataType: "number", |
|
|
|
span: 12, |
|
|
|
span: 12, |
|
|
|
labelWidth: 130, |
|
|
|
labelWidth: 130, |
|
|
|
|
|
|
|
addDisplay:false, |
|
|
|
|
|
|
|
editDisplay:false, |
|
|
|
width: 70, |
|
|
|
width: 70, |
|
|
|
search: true, |
|
|
|
search: true, |
|
|
|
rules: [ |
|
|
|
rules: [ |
|
|
@ -513,18 +589,23 @@ export default { |
|
|
|
created() { |
|
|
|
created() { |
|
|
|
this.allocatelist(); //分拨列表 |
|
|
|
this.allocatelist(); //分拨列表 |
|
|
|
this.tenantlists(); //租户下拉 |
|
|
|
this.tenantlists(); //租户下拉 |
|
|
|
|
|
|
|
this.basicpackges(); //基础套餐下拉 |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
watch: { |
|
|
|
"excelForm.tenantId"() { |
|
|
|
"excelForm.tenantId"() { |
|
|
|
const column = this.findObject(this.excelOption.column, "excelFile"); |
|
|
|
const column = this.findObject(this.excelOption.column, "excelFile"); |
|
|
|
if (this.excelForm.tenantId != "") { |
|
|
|
if (this.excelForm.tenantId != "" && this.excelForm.dataPlanId != "") { |
|
|
|
if (process.env.NODE_ENV === "production") { |
|
|
|
|
|
|
|
column.display = true; |
|
|
|
column.display = true; |
|
|
|
column.action = `http://223.99.228.240:18081/iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}`; |
|
|
|
column.action = `${this.baseUrl}/${this.apis}iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}&dataPlanId=${this.excelForm.dataPlanId}`; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
column.display = true; |
|
|
|
column.display = false; |
|
|
|
column.action = `/api/iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}`; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"excelForm.dataPlanId"() { |
|
|
|
|
|
|
|
const column = this.findObject(this.excelOption.column, "excelFile"); |
|
|
|
|
|
|
|
if (this.excelForm.tenantId != "" && this.excelForm.dataPlanId != "") { |
|
|
|
|
|
|
|
column.display = true; |
|
|
|
|
|
|
|
column.action = `${this.baseUrl}/${this.apis}iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}&dataPlanId=${this.excelForm.dataPlanId}`; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
column.display = false; |
|
|
|
column.display = false; |
|
|
|
} |
|
|
|
} |
|
|
@ -532,11 +613,7 @@ export default { |
|
|
|
"excelForm.isCovered"() { |
|
|
|
"excelForm.isCovered"() { |
|
|
|
const column = this.findObject(this.excelOption.column, "excelFile"); |
|
|
|
const column = this.findObject(this.excelOption.column, "excelFile"); |
|
|
|
if (this.excelForm.isCovered !== "") { |
|
|
|
if (this.excelForm.isCovered !== "") { |
|
|
|
if (process.env.NODE_ENV === "production") { |
|
|
|
column.action = `${this.baseUrl}/${this.apis}iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}&dataPlanId=${this.excelForm.dataPlanId}`; |
|
|
|
column.action = `http://223.99.228.240:18081/iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}`; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
column.action = `/api/iot-sim/simcard/import-simCard?channelId=${this.excelForm.tenantId}&isCovered=${this.excelForm.isCovered}`; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
"form.$channelId"() { |
|
|
|
"form.$channelId"() { |
|
|
@ -678,19 +755,11 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
//导出 |
|
|
|
//导出 |
|
|
|
handleExport() { |
|
|
|
handleExport() { |
|
|
|
if (process.env.NODE_ENV === "production") { |
|
|
|
|
|
|
|
window.open( |
|
|
|
|
|
|
|
`http://223.99.228.240:18081/bd-core/tenant/dailybill/export-excel?${ |
|
|
|
|
|
|
|
this.website.tokenHeader |
|
|
|
|
|
|
|
}=${getToken()}` |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
window.open( |
|
|
|
window.open( |
|
|
|
`/api/iot-sim/simcard/export-simCard?${ |
|
|
|
`${this.baseUrl}/${this.apis}iot-sim/simcard/export-simCard?${ |
|
|
|
this.website.tokenHeader |
|
|
|
this.website.tokenHeader |
|
|
|
}=${getToken()}` |
|
|
|
}=${getToken()}` |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
//导入弹窗开启 |
|
|
|
//导入弹窗开启 |
|
|
|
handleImport() { |
|
|
|
handleImport() { |
|
|
@ -723,6 +792,14 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
//基础套餐下拉框 |
|
|
|
|
|
|
|
basicpackges() { |
|
|
|
|
|
|
|
dataplan().then((res) => { |
|
|
|
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
|
|
|
this.basicpackge = res.data.data; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
//租户下拉框 |
|
|
|
//租户下拉框 |
|
|
|
tenantlists() { |
|
|
|
tenantlists() { |
|
|
|
tenant().then((res) => { |
|
|
|
tenant().then((res) => { |
|
|
|