|
@@ -1,8 +1,9 @@
|
|
|
<script setup lang="ts">
|
|
|
import {
|
|
|
+ stockInEditSort,
|
|
|
Storehouse_IOTNetworkCard_Add,
|
|
|
Storehouse_IOTNetworkCard_Del,
|
|
|
- Storehouse_IOTNetworkCard_Edit,
|
|
|
+ Storehouse_IOTNetworkCard_Edit, Storehouse_IOTNetworkCard_Edit_Device_Number,
|
|
|
Storehouse_IOTNetworkCard_Import,
|
|
|
Storehouse_IOTNetworkCard_List,
|
|
|
} from '@/api/storehouse/index'
|
|
@@ -40,11 +41,12 @@ const columns: ColumnProps[] = [
|
|
|
{prop: 'T_meal_type', label: '套餐类型'},
|
|
|
{prop: 'T_meal', label: '套餐'},
|
|
|
{prop: 'T_expire', label: '到期&欠费'},
|
|
|
- {prop: 'T_State', label: '状态'},
|
|
|
+ {prop: 'T_State', label: '状态',width: 85},
|
|
|
{prop: 'T_iccid', label: '串码', width: 220},
|
|
|
+ {prop: 'T_device_number', label: '移动端设备编号',name: 'T_device_number',width: 180},
|
|
|
{prop: 'T_MSISDN', label: 'MSISDN',width: 150},
|
|
|
{prop: 'T_out_date', label: '出库日期',width: 120},
|
|
|
- {prop: 'T_out_project', label: '出库项目'},
|
|
|
+ {prop: 'T_out_project', label: '出库项目',width: 120},
|
|
|
{prop: 'T_receive_name', label: '领用人'},
|
|
|
// {prop: 'T_remark', label: '备注'},
|
|
|
// {prop: 'operation', label: '操作', width: 150, fixed: 'right'}
|
|
@@ -124,6 +126,7 @@ const openDrawer = (type: string, row?: any) => {
|
|
|
form.value.T_meal_type = ''
|
|
|
form.value.T_meal = ''
|
|
|
form.value.T_expire = ''
|
|
|
+ form.value.T_device_number = ''
|
|
|
form.value.T_iccid = ''
|
|
|
form.value.T_MSISDN = ''
|
|
|
form.value.T_remark = ''
|
|
@@ -338,6 +341,15 @@ const preview = (list:any) => {
|
|
|
|
|
|
dialogTableVisible.value = true
|
|
|
}
|
|
|
+
|
|
|
+const onclickT_device_number = async (row:any)=>{
|
|
|
+ const result:any = await Storehouse_IOTNetworkCard_Edit_Device_Number({T_id:row.Id,T_device_number:row.T_device_number})
|
|
|
+ if(result.Code==200){
|
|
|
+ ElMessage.success('设备编号录入成功')
|
|
|
+ getIOTNetworkCard_List()
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
@@ -418,6 +430,19 @@ const preview = (list:any) => {
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
+ v-else-if="item.prop === 'T_device_number'"
|
|
|
+ :selectable="selectableDisable"
|
|
|
+ :label="item.label"
|
|
|
+ :width="item.width"
|
|
|
+ align="center"
|
|
|
+ >
|
|
|
+ <template v-slot="scope">
|
|
|
+<!-- <el-input v-model="scope.row.T_device_number" placeholder="请输入" class="input" />-->
|
|
|
+ <el-input v-model="scope.row.T_device_number" type="text" autocomplete="off" class="w-20"
|
|
|
+ placeholder="" @keyup.enter="onclickT_device_number(scope.row)"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
v-else
|
|
|
:selectable="selectableDisable"
|
|
|
:prop="item.prop"
|
|
@@ -498,6 +523,10 @@ const preview = (list:any) => {
|
|
|
<el-input v-model="form.T_iccid" type="text" autocomplete="off" class="w-50"
|
|
|
placeholder="请填写串码"/>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="移动端设备编号:" class="m-b-6" :label-width="formLabelWidth" prop="T_device_number">
|
|
|
+ <el-input v-model="form.T_device_number" type="text" autocomplete="off" class="w-50"
|
|
|
+ placeholder="请填写移动端设备编号"/>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="MSISDN:" class="m-b-6" :label-width="formLabelWidth" prop="T_MSISDN">
|
|
|
<el-input v-model="form.T_MSISDN" type="text" autocomplete="off" class="w-50"
|
|
|
placeholder="请填写MSISDN"/>
|
|
@@ -614,6 +643,9 @@ const preview = (list:any) => {
|
|
|
.w-50 {
|
|
|
width: 21.5rem
|
|
|
}
|
|
|
+ .w-20 {
|
|
|
+ width: 8.6rem
|
|
|
+ }
|
|
|
}
|
|
|
.pagination {
|
|
|
display: flex;
|