添加序列号

main
mhsnet 7 months ago
parent ef2f7cb842
commit 76c62c0b28

@ -0,0 +1,8 @@
import request from '@/config/axios'
// 获取系统序列号
export const getSystemSerialNo = async () => {
return await request.post({ url: `/DistributionBoxTesting/GetSystemSerialNo` }).then((res) => {
return res.SerialNo
})
}

@ -50,7 +50,7 @@ const gridOptionsA: any = reactive({
{ field: 'SupplierCode', title: '国网侧供应商编码', sortable: true, width: '160px' },
{ field: 'ModelCode', title: '规格型号编码', width: '140px' },
{ field: 'CategoryType', title: '物资种类编码', width: '120px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '110px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '210px' },
{ field: 'RmibNumber', title: '原材料检验批次号', sortable: true, width: '160px' },
{ field: 'RmbNumber', title: '原材料批次号', sortable: true, width: '130px' },
{ field: 'BorMaterials', title: '原材料品牌', sortable: true, width: '180px' },
@ -65,7 +65,7 @@ const gridOptionsA: any = reactive({
{ field: 'IsQualify', title: '检验结果是否合格', width: '140px', slots: { default: 'slotIsQualify' } },
{ field: 'Ecode', title: 'ecode码', width: '110px' },
{ field: 'SgEntityId', title: '国网实物Id', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '250px' },
{ field: 'ModelSpecification', title: '规格型号', width: '160px' },
{ field: 'PressureValue', title: '额定电压(kV)', width: '120px' },
{ title: '操作', width: 250, fixed: 'right', slots: { default: 'operate' } }
@ -143,7 +143,6 @@ const gridOptionsA: any = reactive({
if (o1.order == "asc") {
isAscending = true;
}
console.log(o1)
return {
"field": o1.field,
"isAscending": (() => {
@ -152,7 +151,6 @@ const gridOptionsA: any = reactive({
}
})
}
// console.log(queryParams)
const data = await BiLeiQiApi.getBiLeiQiPaging(queryParamsA)
return data
// //
@ -172,7 +170,6 @@ const gridOptionsA: any = reactive({
// save
save: ({ body }:any) => { },
add: ({ body }: any) => {
console.log(body)
},
}
}

@ -1,5 +1,6 @@
<template>
<vxe-modal class-name="csty-bi-lei-qi-form" v-model="refShow" width="1200" height="770" show-zoom show-footer :mask-closable=true>
<vxe-modal class-name="csty-bi-lei-qi-form" v-model="refShow" width="1200" height="770" show-zoom show-footer
:mask-closable=true>
<template #title>
<span style="color:#ffffff">{{ modalTitle }}</span>
</template>
@ -44,12 +45,12 @@
<span>{{ params.data.CategoryType }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="序列号" field="SerialNo" span="12">
<!-- <vxe-form-item title="序列号" field="SerialNo" span="12">
<template #default="params">
<vxe-input v-model="params.data.SerialNo" placeholder="请输入序列号" clearable
@change="fnChangeA(params)"></vxe-input>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="原材料检验批次号" field="RmibNumber" span="12">
<template #default="params">
<vxe-input v-model="params.data.RmibNumber" placeholder="请输入原材料检验批次号" clearable
@ -113,7 +114,7 @@
<span>{{ params.data.PdCode }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="感知过程" field="ProcessType" span="12">
<!-- <vxe-form-item title="感知过程" field="ProcessType" span="12">
<template #default="params">
<vxe-select v-model="params.data.ProcessType" clearable filterable :disabled="true">
<template v-for="(item) in dictProcessType">
@ -121,7 +122,7 @@
</template>
</vxe-select>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="检验结果是否合格" field="IsQualify" span="12">
<template #default="params">
<vxe-select v-model="params.data.IsQualify" clearable>
@ -257,6 +258,7 @@ import type { UploadProps, UploadChangeParam } from 'ant-design-vue'
import { config } from '@/config/axios/config'
import XEUtils from 'xe-utils'
import * as FileUploadApi from '@/api/gw/fileUpload'
import * as comApi from '@/api/gw/com'
//
const dictStore = useDictStore()
const { dictProcessType } = storeToRefs(dictStore)
@ -383,6 +385,7 @@ const open = async (type: string, row?: any) => {
case 'add':
refShow.value = true
modalTitle.value = '新增避雷器'
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'edit':
refShow.value = true
@ -424,12 +427,13 @@ const open = async (type: string, row?: any) => {
}
const rowInfoB = await BiLeiQiApi.getBiLeiQi(paramsB)
rowInfoB.Data.ID = 0
rowInfoB.Data.ManufactureDate = dayjs().format("YYYY-MM-DD"),
rowInfoB.Data.IncomDate = dayjs().format("YYYY-MM-DD"),
rowInfoB.Data.ManufactureDate = dayjs().format("YYYY-MM-DD")
rowInfoB.Data.IncomDate = dayjs().format("YYYY-MM-DD")
rowInfoB.Data.CheckTime = dayjs().format("YYYY-MM-DD HH:mm:ss")
rowInfoB.Data.PutCenterTime = dayjs().format("YYYY-MM-DD HH:mm:ss")
rowInfoB.Data.Sended = 0
formDataA.value = rowInfoB.Data
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'delete':
modalTitle.value = '删除避雷器'
@ -488,40 +492,45 @@ const fnDeleteA = async (row: any) => {
}
//
const fnSubmitA = async () => {
switch (formTypeA.value) {
case 'add':
const paramsA = {
data: formDataA.value
refFormA.value.validate().then(async (res: any) => {
if (!res) {
formDataA.value.Sended = 0
switch (formTypeA.value) {
case 'add':
const paramsA = {
data: formDataA.value
}
await BiLeiQiApi.saveBiLeiQi(paramsA)
await fnSubmitB()
VXETable.modal.message({ content: '新增成功', status: 'success' })
break;
case 'edit':
let setVal: any = _map(formDataA.value, (o1, k1) => {
return { field: k1, value: o1 }
})
const paramsB = {
filter: {
field: 'ID',
value: formDataA.value.ID
},
set: setVal
}
await BiLeiQiApi.editBiLeiQi(paramsB)
await fnSubmitB()
VXETable.modal.message({ content: '编辑成功', status: 'success' })
break;
case 'copy':
const paramsC = {
data: formDataA.value
}
await BiLeiQiApi.saveBiLeiQi(paramsC)
VXETable.modal.message({ content: '复制成功', status: 'success' })
break;
}
await BiLeiQiApi.saveBiLeiQi(paramsA)
await fnSubmitB()
VXETable.modal.message({ content: '新增成功', status: 'success' })
break;
case 'edit':
let setVal: any = _map(formDataA.value, (o1, k1) => {
return { field: k1, value: o1 }
})
const paramsB = {
filter: {
field: 'ID',
value: formDataA.value.ID
},
set: setVal
}
await BiLeiQiApi.editBiLeiQi(paramsB)
await fnSubmitB()
VXETable.modal.message({ content: '编辑成功', status: 'success' })
break;
case 'copy':
const paramsC = {
data: formDataA.value
}
await BiLeiQiApi.saveBiLeiQi(paramsC)
VXETable.modal.message({ content: '复制成功', status: 'success' })
break;
}
refShow.value = false
emit('success')
refShow.value = false
emit('success')
}
})
}
// B -
const fnSubmitB = async () => {
@ -538,6 +547,7 @@ const fnSubmitB = async () => {
formDataB.value.DataUniqueIdentifier = formDataA.value.DataUniqueIdentifier
formDataB.value.CheckTime = formDataA.value.CheckTime
formDataB.value.PutCenterTime = formDataA.value.PutCenterTime
formDataB.value.Sended = 0
const queryParamsA: any = {
"filter": {
"field": 'SerialNo',

@ -57,7 +57,7 @@ const gridOptionsA: any = reactive({
{ field: 'SupplierCode', title: '国网侧供应商编码', sortable: true, width: '160px' },
{ field: 'ModelCode', title: '规格型号编码', width: '140px' },
{ field: 'CategoryType', title: '物资种类编码', width: '120px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '110px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '210px' },
{ field: 'RmibNumber', title: '原材料检验批次号', sortable: true, width: '160px' },
{ field: 'RmbNumber', title: '原材料批次号', sortable: true, width: '130px' },
{ field: 'BorMaterials', title: '原材料品牌', sortable: true, width: '180px' },
@ -75,7 +75,7 @@ const gridOptionsA: any = reactive({
{ field: 'IsQualify', title: '检验结果是否合格', width: '140px', slots: { default: 'slotIsQualify' } },
{ field: 'Ecode', title: 'ecode码', width: '110px' },
{ field: 'SgEntityId', title: '国网实物Id', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '250px' },
{ field: 'Texture', title: '材质', width: '110px' },
{ field: 'Thickness', title: '公称厚度(mm)', width: '120px' },
{ field: 'Size', title: '尺寸(宽*深*高)', width: '220px' },

@ -45,12 +45,12 @@
<span>{{ params.data.CategoryType }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="序列号" field="SerialNo" span="12">
<!-- <vxe-form-item title="序列号" field="SerialNo" span="12">
<template #default="params">
<vxe-input v-model="params.data.SerialNo" placeholder="请输入序列号" clearable
@change="fnChangeA(params)"></vxe-input>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="原材料检验批次号" field="RmibNumber" span="12">
<template #default="params">
<vxe-input v-model="params.data.RmibNumber" placeholder="请输入原材料检验批次号" clearable
@ -114,7 +114,7 @@
<span>{{ params.data.PdCode }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="感知过程" field="ProcessType" span="12">
<!-- <vxe-form-item title="感知过程" field="ProcessType" span="12">
<template #default="params">
<vxe-select v-model="params.data.ProcessType" clearable filterable :disabled="true">
<template v-for="item in dictProcessType">
@ -122,7 +122,7 @@
</template>
</vxe-select>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="检验结果是否合格" field="IsQualify" span="12">
<template #default="params">
<vxe-select v-model="params.data.IsQualify" clearable>
@ -264,6 +264,7 @@ import { storeToRefs } from 'pinia'
import type { UploadProps, UploadChangeParam } from 'ant-design-vue';
import { config } from '@/config/axios/config'
import * as FileUploadApi from '@/api/gw/fileUpload'
import * as comApi from '@/api/gw/com'
//
const dictStore = useDictStore()
const { dictProcessType } = storeToRefs(dictStore)
@ -381,7 +382,6 @@ let formDataB: any = ref(formDataBInit)
// B -
const fileItems = computed(() => {
let FileItems: any = XEUtils.clone(formDataB.value.FileItems, true)
console.log(FileItems)
FileItems = JSON.parse(FileItems)
return FileItems
})
@ -404,6 +404,7 @@ const open = async (type: string, row?: any) => {
case 'add':
refShow.value = true
modalTitle.value = '新增柜体材质,厚度及尺寸'
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'edit':
refShow.value = true
@ -451,6 +452,7 @@ const open = async (type: string, row?: any) => {
rowInfoB.Data.PutCenterTime = dayjs().format("YYYY-MM-DD HH:mm:ss")
rowInfoB.Data.Sended = 0
formDataA.value = rowInfoB.Data
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'delete':
modalTitle.value = '删除柜体材质,厚度及尺寸'
@ -511,6 +513,7 @@ const fnDeleteA = async (row: any) => {
const fnSubmitA = async () => {
refFormA.value.validate().then(async (res: any) => {
if (!res) {
formDataA.value.Sended = 0
switch (formType.value) {
case 'add':
const paramsA = {
@ -563,6 +566,7 @@ const fnSubmitB = async () => {
formDataB.value.DataUniqueIdentifier = formDataA.value.DataUniqueIdentifier
formDataB.value.CheckTime = formDataA.value.CheckTime
formDataB.value.PutCenterTime = formDataA.value.PutCenterTime
formDataB.value.Sended = 0
const queryParamsA: any = {
"filter": {
"field": 'SerialNo',

@ -50,7 +50,7 @@ const gridOptionsA: any = reactive({
{ field: 'SupplierCode', title: '国网侧供应商编码', sortable: true, width: '160px' },
{ field: 'ModelCode', title: '规格型号编码', width: '140px' },
{ field: 'CategoryType', title: '物资种类编码', width: '120px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '110px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '210px' },
{ field: 'RmibNumber', title: '原材料检验批次号', sortable: true, width: '160px' },
{ field: 'RmbNumber', title: '原材料批次号', sortable: true, width: '130px' },
{ field: 'BorMaterials', title: '原材料品牌', sortable: true, width: '190px' },
@ -65,7 +65,7 @@ const gridOptionsA: any = reactive({
{ field: 'IsQualify', title: '检验结果是否合格', width: '140px', slots: { default: 'slotIsQualify' } },
{ field: 'Ecode', title: 'ecode码', width: '110px' },
{ field: 'SgEntityId', title: '国网实物Id', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '250px' },
{ field: 'ModelSpecification', title: '规格型号', width: '180px' },
{ field: 'Precision', title: '精度', width: '120px' },
{ title: '操作', width: 250, fixed: 'right', slots: { default: 'operate' } }
@ -143,7 +143,6 @@ const gridOptionsA: any = reactive({
if (o1.order == "asc") {
isAscending = true;
}
console.log(o1)
return {
"field": o1.field,
"isAscending": (() => {
@ -152,9 +151,7 @@ const gridOptionsA: any = reactive({
}
})
}
// console.log(queryParams)
const data = await DianLiuHuGanQiApi.getDianLiuHuGanQiPaging(queryParamsA)
console.log(data)
return data
// //
// const firstSort = sorts[0]
@ -173,7 +170,6 @@ const gridOptionsA: any = reactive({
// save
save: ({ body }: any) => { },
add: ({ body }: any) => {
console.log(body)
},
}
}

@ -45,12 +45,12 @@
<span>{{ params.data.CategoryType }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="序列号" field="SerialNo" span="12">
<!-- <vxe-form-item title="序列号" field="SerialNo" span="12">
<template #default="params">
<vxe-input v-model="params.data.SerialNo" placeholder="请输入序列号" clearable
@change="fnChangeA(params)"></vxe-input>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="原材料检验批次号" field="RmibNumber" span="12">
<template #default="params">
<vxe-input v-model="params.data.RmibNumber" placeholder="请输入原材料检验批次号" clearable
@ -114,7 +114,7 @@
<span>{{ params.data.PdCode }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="感知过程" field="ProcessType" span="12">
<!-- <vxe-form-item title="感知过程" field="ProcessType" span="12">
<template #default="params">
<vxe-select v-model="params.data.ProcessType" clearable filterable :disabled="true">
<template v-for="(item) in dictProcessType">
@ -122,7 +122,7 @@
</template>
</vxe-select>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="检验结果是否合格" field="IsQualify" span="12">
<template #default="params">
<vxe-select v-model="params.data.IsQualify" clearable>
@ -251,6 +251,7 @@ import type { UploadProps, UploadChangeParam } from 'ant-design-vue'
import { config } from '@/config/axios/config'
import XEUtils from 'xe-utils'
import * as FileUploadApi from '@/api/gw/fileUpload'
import * as comApi from '@/api/gw/com'
//
const dictStore = useDictStore()
const { dictProcessType } = storeToRefs(dictStore)
@ -377,6 +378,7 @@ const open = async (type: string, row?: any) => {
case 'add':
refShow.value = true
modalTitle.value = '新增电流互感器'
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'edit':
refShow.value = true
@ -424,6 +426,7 @@ const open = async (type: string, row?: any) => {
rowInfoB.Data.PutCenterTime = dayjs().format("YYYY-MM-DD HH:mm:ss")
rowInfoB.Data.Sended = 0
formDataA.value = rowInfoB.Data
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'delete':
modalTitle.value = '删除电流互感器'
@ -484,6 +487,7 @@ const fnDeleteA = async (row: any) => {
const fnSubmitA = async () => {
await refFormA.value.validate().then(async (res: any) => {
if (!res) {
formDataA.value.Sended = 0
switch (formType.value) {
case 'add':
const paramsA = {
@ -536,6 +540,7 @@ const fnSubmitB = async () => {
formDataB.value.DataUniqueIdentifier = formDataA.value.DataUniqueIdentifier
formDataB.value.CheckTime = formDataA.value.CheckTime
formDataB.value.PutCenterTime = formDataA.value.PutCenterTime
formDataB.value.Sended = 0
const queryParamsA: any = {
"filter": {
"field": 'SerialNo',

@ -57,7 +57,7 @@ const gridOptionsA: any = reactive({
{ field: 'SupplierCode', title: '国网侧供应商编码', sortable: true, width: '160px' },
{ field: 'ModelCode', title: '规格型号编码', width: '140px' },
{ field: 'CategoryType', title: '物资种类编码', width: '120px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '110px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '210px' },
{ field: 'RmibNumber', title: '原材料检验批次号', sortable: true, width: '160px' },
{ field: 'RmbNumber', title: '原材料批次号', sortable: true, width: '130px' },
{ field: 'BorMaterials', title: '原材料品牌', sortable: true, width: '180px' },
@ -72,7 +72,7 @@ const gridOptionsA: any = reactive({
{ field: 'IsQualify', title: '检验结果是否合格', width: '140px', slots: { default: 'slotIsQualify' } },
{ field: 'Ecode', title: 'ecode码', width: '110px' },
{ field: 'SgEntityId', title: '国网实物Id', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '250px' },
{ field: 'ModelSpecification', title: '规格型号', width: '160px' },
{ field: 'PressureValue', title: '额定电压(V)', width: '120px' },
{ field: 'CapacityUn', title: '电容器铭牌容量值(kvar)', width: '170px' },
@ -155,7 +155,6 @@ const gridOptionsA: any = reactive({
if (o1.order == "asc") {
isAscending = true;
}
console.log(o1)
return {
"field": o1.field,
"isAscending": (() => {
@ -164,9 +163,7 @@ const gridOptionsA: any = reactive({
}
})
}
// console.log(queryParams)
const data = await DianRongQiApi.getDianRongQiPaging(queryParamsA)
console.log(data)
return data
// //
// const firstSort = sorts[0]
@ -185,7 +182,6 @@ const gridOptionsA: any = reactive({
// save
save: ({ body }: any) => { },
add: ({ body }: any) => {
console.log(body)
},
}
}

@ -45,12 +45,12 @@
<span>{{ params.data.CategoryType }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="序列号" field="SerialNo" span="12">
<!-- <vxe-form-item title="序列号" field="SerialNo" span="12">
<template #default="params">
<vxe-input v-model="params.data.SerialNo" placeholder="请输入序列号" clearable
@change="fnChangeA(params)"></vxe-input>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="原材料检验批次号" field="RmibNumber" span="12">
<template #default="params">
<vxe-input v-model="params.data.RmibNumber" placeholder="请输入原材料检验批次号" clearable
@ -114,7 +114,7 @@
<span>{{ params.data.PdCode }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="感知过程" field="ProcessType" span="12">
<!-- <vxe-form-item title="感知过程" field="ProcessType" span="12">
<template #default="params">
<vxe-select v-model="params.data.ProcessType" clearable filterable :disabled="true">
<template v-for="(item) in dictProcessType">
@ -122,7 +122,7 @@
</template>
</vxe-select>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="检验结果是否合格" field="IsQualify" span="12">
<template #default="params">
<vxe-select v-model="params.data.IsQualify" clearable>
@ -287,6 +287,7 @@ import type { UploadProps, UploadChangeParam } from 'ant-design-vue'
import { config } from '@/config/axios/config'
import XEUtils from 'xe-utils'
import * as FileUploadApi from '@/api/gw/fileUpload'
import * as comApi from '@/api/gw/com'
//
const dictStore = useDictStore()
const { dictProcessType } = storeToRefs(dictStore)
@ -430,6 +431,7 @@ const open = async (type: string, row?: any) => {
case 'add':
refShow.value = true
modalTitle.value = '新增电容器'
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'edit':
refShow.value = true
@ -477,6 +479,7 @@ const open = async (type: string, row?: any) => {
rowInfoB.Data.PutCenterTime = dayjs().format("YYYY-MM-DD HH:mm:ss")
rowInfoB.Data.Sended = 0
formDataA.value = rowInfoB.Data
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'delete':
modalTitle.value = '删除电容器'
@ -537,6 +540,7 @@ const fnDeleteA = async (row: any) => {
const fnSubmitA = async () => {
await refFormA.value.validate().then(async (res: any) => {
if (!res) {
formDataA.value.Sended = 0
switch (formType.value) {
case 'add':
const paramsA = {
@ -589,6 +593,7 @@ const fnSubmitB = async () => {
formDataB.value.DataUniqueIdentifier = formDataA.value.DataUniqueIdentifier
formDataB.value.CheckTime = formDataA.value.CheckTime
formDataB.value.PutCenterTime = formDataA.value.PutCenterTime
formDataB.value.Sended = 0
const queryParamsA: any = {
"filter": {
"field": 'SerialNo',

@ -54,7 +54,7 @@ const gridOptionsA: any = reactive({
{ field: 'SupplierCode', title: '国网侧供应商编码', sortable: true, width: '160px' },
{ field: 'ModelCode', title: '规格型号编码', width: '140px' },
{ field: 'CategoryType', title: '物资种类编码', width: '120px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '110px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '210px' },
{ field: 'RmibNumber', title: '原材料检验批次号', sortable: true, width: '160px' },
{ field: 'RmbNumber', title: '原材料批次号', sortable: true, width: '130px' },
{ field: 'BorMaterials', title: '原材料品牌', sortable: true, width: '180px' },
@ -69,7 +69,7 @@ const gridOptionsA: any = reactive({
{ field: 'IsQualify', title: '检验结果是否合格', width: '140px', slots: { default: 'slotIsQualify' } },
{ field: 'Ecode', title: 'ecode码', width: '110px' },
{ field: 'SgEntityId', title: '国网实物Id', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '250px' },
{ field: 'ModelSpecification', title: '规格型号', width: '160px' },
{ field: 'TextDescription', title: '人力分合操作5次可靠动作', width: '200px', slots: { default: 'slotTextDescription' } },
{ field: 'InsulationVoltageUn', title: '额定绝缘电压(V)', width: '130px' },
@ -149,7 +149,6 @@ const gridOptionsA: any = reactive({
if (o1.order == "asc") {
isAscending = true;
}
console.log(o1)
return {
"field": o1.field,
"isAscending": (() => {
@ -158,9 +157,7 @@ const gridOptionsA: any = reactive({
}
})
}
// console.log(queryParams)
const data = await DuanLuQiApi.getDuanLuQiPaging(queryParamsA)
console.log(data)
return data
// //
// const firstSort = sorts[0]
@ -179,7 +176,6 @@ const gridOptionsA: any = reactive({
// save
save: ({ body }: any) => { },
add: ({ body }: any) => {
console.log(body)
},
}
}

@ -45,12 +45,12 @@
<span>{{ params.data.CategoryType }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="序列号" field="SerialNo" span="12">
<!-- <vxe-form-item title="序列号" field="SerialNo" span="12">
<template #default="params">
<vxe-input v-model="params.data.SerialNo" placeholder="请输入序列号" clearable
@change="fnChangeA(params)"></vxe-input>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="原材料检验批次号" field="RmibNumber" span="12">
<template #default="params">
<vxe-input v-model="params.data.RmibNumber" placeholder="请输入原材料检验批次号" clearable
@ -114,7 +114,7 @@
<span>{{ params.data.PdCode }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="感知过程" field="ProcessType" span="12">
<!-- <vxe-form-item title="感知过程" field="ProcessType" span="12">
<template #default="params">
<vxe-select v-model="params.data.ProcessType" clearable filterable :disabled="true">
<template v-for="(item) in dictProcessType">
@ -122,7 +122,7 @@
</template>
</vxe-select>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="检验结果是否合格" field="IsQualify" span="12">
<template #default="params">
<vxe-select v-model="params.data.IsQualify" clearable>
@ -271,6 +271,7 @@ import type { UploadProps, UploadChangeParam } from 'ant-design-vue'
import { config } from '@/config/axios/config'
import XEUtils from 'xe-utils'
import * as FileUploadApi from '@/api/gw/fileUpload'
import * as comApi from '@/api/gw/com'
//
const dictStore = useDictStore()
const { dictProcessType } = storeToRefs(dictStore)
@ -411,6 +412,7 @@ const open = async (type: string, row?: any) => {
case 'add':
refShow.value = true
modalTitle.value = '新增断路器'
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'edit':
refShow.value = true
@ -458,6 +460,7 @@ const open = async (type: string, row?: any) => {
rowInfoB.Data.PutCenterTime = dayjs().format("YYYY-MM-DD HH:mm:ss")
rowInfoB.Data.Sended = 0
formDataA.value = rowInfoB.Data
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'delete':
modalTitle.value = '删除断路器'
@ -518,6 +521,7 @@ const fnDeleteA = async (row: any) => {
const fnSubmitA = async () => {
await refFormA.value.validate().then(async (res: any) => {
if (!res) {
formDataA.value.Sended = 0
switch (formType.value) {
case 'add':
const paramsA = {
@ -570,6 +574,7 @@ const fnSubmitB = async () => {
formDataB.value.DataUniqueIdentifier = formDataA.value.DataUniqueIdentifier
formDataB.value.CheckTime = formDataA.value.CheckTime
formDataB.value.PutCenterTime = formDataA.value.PutCenterTime
formDataB.value.Sended = 0
const queryParamsA: any = {
"filter": {
"field": 'SerialNo',

@ -55,7 +55,7 @@ const gridOptionsA: any = reactive({
{ field: 'SupplierCode', title: '国网侧供应商编码', sortable: true, width: '160px' },
{ field: 'ModelCode', title: '规格型号编码', width: '140px' },
{ field: 'CategoryType', title: '物资种类编码', width: '120px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '110px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '210px' },
{ field: 'RmibNumber', title: '原材料检验批次号', sortable: true, width: '160px' },
{ field: 'RmbNumber', title: '原材料批次号', sortable: true, width: '130px' },
{ field: 'BorMaterials', title: '原材料品牌', sortable: true, width: '180px' },
@ -70,7 +70,7 @@ const gridOptionsA: any = reactive({
{ field: 'IsQualify', title: '检验结果是否合格', width: '140px', slots: { default: 'slotIsQualify' } },
{ field: 'Ecode', title: 'ecode码', width: '110px' },
{ field: 'SgEntityId', title: '国网实物Id', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '250px' },
{ field: 'TextDescription', title: '人力分合操作5次可靠动作', width: '210px', slots: { default: 'slotTextDescription' } },
{ field: 'InsulationVoltageUn', title: '额定绝缘电压(V)', width: '140px' },
{ field: 'PcurrentUn', title: '熔断器支持件的额定电流(A)', width: '200px' },
@ -150,7 +150,6 @@ const gridOptionsA: any = reactive({
if (o1.order == "asc") {
isAscending = true;
}
console.log(o1)
return {
"field": o1.field,
"isAscending": (() => {
@ -159,9 +158,7 @@ const gridOptionsA: any = reactive({
}
})
}
// console.log(queryParams)
const data = await FusedIsolationSwitchApi.getFusedIsolationSwitchPaging(queryParamsA)
console.log(data)
return data
// //
// const firstSort = sorts[0]
@ -180,7 +177,6 @@ const gridOptionsA: any = reactive({
// save
save: ({ body }: any) => { },
add: ({ body }: any) => {
console.log(body)
},
}
}

@ -45,12 +45,12 @@
<span>{{ params.data.CategoryType }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="序列号" field="SerialNo" span="12">
<!-- <vxe-form-item title="序列号" field="SerialNo" span="12">
<template #default="params">
<vxe-input v-model="params.data.SerialNo" placeholder="请输入序列号" clearable
@change="fnChangeA(params)"></vxe-input>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="原材料检验批次号" field="RmibNumber" span="12">
<template #default="params">
<vxe-input v-model="params.data.RmibNumber" placeholder="请输入原材料检验批次号" clearable
@ -114,7 +114,7 @@
<span>{{ params.data.PdCode }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="感知过程" field="ProcessType" span="12">
<!-- <vxe-form-item title="感知过程" field="ProcessType" span="12">
<template #default="params">
<vxe-select v-model="params.data.ProcessType" clearable filterable :disabled="true">
<template v-for="(item) in dictProcessType">
@ -122,7 +122,7 @@
</template>
</vxe-select>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="检验结果是否合格" field="IsQualify" span="12">
<template #default="params">
<vxe-select v-model="params.data.IsQualify" clearable>
@ -271,6 +271,7 @@ import type { UploadProps, UploadChangeParam } from 'ant-design-vue'
import { config } from '@/config/axios/config'
import XEUtils from 'xe-utils'
import * as FileUploadApi from '@/api/gw/fileUpload'
import * as comApi from '@/api/gw/com'
//
const dictStore = useDictStore()
const { dictProcessType } = storeToRefs(dictStore)
@ -411,6 +412,7 @@ const open = async (type: string, row?: any) => {
case 'add':
refShow.value = true
modalTitle.value = '新增熔断器式隔离开关'
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'edit':
refShow.value = true
@ -458,6 +460,7 @@ const open = async (type: string, row?: any) => {
rowInfoB.Data.PutCenterTime = dayjs().format("YYYY-MM-DD HH:mm:ss")
rowInfoB.Data.Sended = 0
formDataA.value = rowInfoB.Data
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'delete':
modalTitle.value = '删除熔断器式隔离开关'
@ -518,6 +521,7 @@ const fnDeleteA = async (row: any) => {
const fnSubmitA = async () => {
await refFormA.value.validate().then(async (res: any) => {
if (!res) {
formDataA.value.Sended = 0
switch (formType.value) {
case 'add':
const paramsA = {
@ -570,6 +574,7 @@ const fnSubmitB = async () => {
formDataB.value.DataUniqueIdentifier = formDataA.value.DataUniqueIdentifier
formDataB.value.CheckTime = formDataA.value.CheckTime
formDataB.value.PutCenterTime = formDataA.value.PutCenterTime
formDataB.value.Sended = 0
const queryParamsA: any = {
"filter": {
"field": 'SerialNo',

@ -50,7 +50,7 @@ const gridOptionsA: any = reactive({
{ field: 'SupplierCode', title: '国网侧供应商编码', sortable: true, width: '160px' },
{ field: 'ModelCode', title: '规格型号编码', width: '140px' },
{ field: 'CategoryType', title: '物资种类编码', width: '120px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '110px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '210px' },
{ field: 'RmibNumber', title: '原材料检验批次号', sortable: true, width: '160px' },
{ field: 'RmbNumber', title: '原材料批次号', sortable: true, width: '130px' },
{ field: 'BorMaterials', title: '原材料品牌', sortable: true, width: '180px' },
@ -65,7 +65,7 @@ const gridOptionsA: any = reactive({
{ field: 'IsQualify', title: '检验结果是否合格', width: '140px', slots: { default: 'slotIsQualify' } },
{ field: 'Ecode', title: 'ecode码', width: '110px' },
{ field: 'SgEntityId', title: '国网实物Id', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '250px' },
{ field: 'PressureValue', title: '电压保护水平(V)', width: '130px' },
{ field: 'DischargeCurrent', title: '标称最大放电电流(kA)', width: '160px' },
{ field: 'TestLevel', title: '试验等级', width: '120px' },
@ -144,7 +144,6 @@ const gridOptionsA: any = reactive({
if (o1.order == "asc") {
isAscending = true;
}
console.log(o1)
return {
"field": o1.field,
"isAscending": (() => {
@ -153,9 +152,7 @@ const gridOptionsA: any = reactive({
}
})
}
// console.log(queryParams)
const data = await LangYongBaoHuQiApi.getLangYongBaoHuQiPaging(queryParamsA)
console.log(data)
return data
// //
// const firstSort = sorts[0]
@ -174,7 +171,6 @@ const gridOptionsA: any = reactive({
// save
save: ({ body }: any) => { },
add: ({ body }: any) => {
console.log(body)
},
}
}

@ -1,5 +1,6 @@
<template>
<vxe-modal class-name="csty-dian-rong-qi-form" v-model="refShow" width="1200" height="770" show-zoom show-footer :mask-closable=true>
<vxe-modal class-name="csty-dian-rong-qi-form" v-model="refShow" width="1200" height="770" show-zoom show-footer
:mask-closable=true>
<template #title>
<span style="color:#ffffff">{{ modalTitle }}</span>
</template>
@ -44,12 +45,12 @@
<span>{{ params.data.CategoryType }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="序列号" field="SerialNo" span="12">
<!-- <vxe-form-item title="序列号" field="SerialNo" span="12">
<template #default="params">
<vxe-input v-model="params.data.SerialNo" placeholder="请输入序列号" clearable
@change="fnChangeA(params)"></vxe-input>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="原材料检验批次号" field="RmibNumber" span="12">
<template #default="params">
<vxe-input v-model="params.data.RmibNumber" placeholder="请输入原材料检验批次号" clearable
@ -113,7 +114,7 @@
<span>{{ params.data.PdCode }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="感知过程" field="ProcessType" span="12">
<!-- <vxe-form-item title="感知过程" field="ProcessType" span="12">
<template #default="params">
<vxe-select v-model="params.data.ProcessType" clearable filterable :disabled="true">
<template v-for="(item) in dictProcessType">
@ -121,7 +122,7 @@
</template>
</vxe-select>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="检验结果是否合格" field="IsQualify" span="12">
<template #default="params">
<vxe-select v-model="params.data.IsQualify" clearable>
@ -262,6 +263,7 @@ import type { UploadProps, UploadChangeParam } from 'ant-design-vue'
import { config } from '@/config/axios/config'
import XEUtils from 'xe-utils'
import * as FileUploadApi from '@/api/gw/fileUpload'
import * as comApi from '@/api/gw/com'
//
const dictStore = useDictStore()
const { dictProcessType } = storeToRefs(dictStore)
@ -389,6 +391,7 @@ const open = async (type: string, row?: any) => {
case 'add':
refShow.value = true
modalTitle.value = '新增浪涌保护器'
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'edit':
refShow.value = true
@ -436,6 +439,7 @@ const open = async (type: string, row?: any) => {
rowInfoB.Data.PutCenterTime = dayjs().format("YYYY-MM-DD HH:mm:ss")
rowInfoB.Data.Sended = 0
formDataA.value = rowInfoB.Data
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'delete':
modalTitle.value = '删除浪涌保护器'
@ -494,40 +498,45 @@ const fnDeleteA = async (row: any) => {
}
//
const fnSubmitA = async () => {
switch (formType.value) {
case 'add':
const paramsA = {
data: formDataA.value
refFormA.value.validate().then(async (res: any) => {
if (!res) {
formDataA.value.Sended = 0
switch (formType.value) {
case 'add':
const paramsA = {
data: formDataA.value
}
await LangYongBaoHuQiApi.saveLangYongBaoHuQi(paramsA)
await fnSubmitB()
VXETable.modal.message({ content: '新增成功', status: 'success' })
break;
case 'edit':
let setVal: any = _map(formDataA.value, (o1, k1) => {
return { field: k1, value: o1 }
})
const paramsB = {
filter: {
field: 'ID',
value: formDataA.value.ID
},
set: setVal
}
await LangYongBaoHuQiApi.editLangYongBaoHuQi(paramsB)
await fnSubmitB()
VXETable.modal.message({ content: '编辑成功', status: 'success' })
break;
case 'copy':
const paramsC = {
data: formDataA.value
}
await LangYongBaoHuQiApi.saveLangYongBaoHuQi(paramsC)
VXETable.modal.message({ content: '复制成功', status: 'success' })
break;
}
await LangYongBaoHuQiApi.saveLangYongBaoHuQi(paramsA)
await fnSubmitB()
VXETable.modal.message({ content: '新增成功', status: 'success' })
break;
case 'edit':
let setVal: any = _map(formDataA.value, (o1, k1) => {
return { field: k1, value: o1 }
})
const paramsB = {
filter: {
field: 'ID',
value: formDataA.value.ID
},
set: setVal
}
await LangYongBaoHuQiApi.editLangYongBaoHuQi(paramsB)
await fnSubmitB()
VXETable.modal.message({ content: '编辑成功', status: 'success' })
break;
case 'copy':
const paramsC = {
data: formDataA.value
}
await LangYongBaoHuQiApi.saveLangYongBaoHuQi(paramsC)
VXETable.modal.message({ content: '复制成功', status: 'success' })
break;
}
refShow.value = false
emit('success')
refShow.value = false
emit('success')
}
})
}
// B -
const fnSubmitB = async () => {
@ -544,6 +553,7 @@ const fnSubmitB = async () => {
formDataB.value.DataUniqueIdentifier = formDataA.value.DataUniqueIdentifier
formDataB.value.CheckTime = formDataA.value.CheckTime
formDataB.value.PutCenterTime = formDataA.value.PutCenterTime
formDataB.value.Sended = 0
const queryParamsA: any = {
"filter": {
"field": 'SerialNo',

@ -50,7 +50,7 @@ const gridOptionsA: any = reactive({
{ field: 'SupplierCode', title: '国网侧供应商编码', sortable: true, width: '160px' },
{ field: 'ModelCode', title: '规格型号编码', width: '140px' },
{ field: 'CategoryType', title: '物资种类编码', width: '120px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '110px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '210px' },
{ field: 'RmibNumber', title: '原材料检验批次号', sortable: true, width: '160px' },
{ field: 'RmbNumber', title: '原材料批次号', sortable: true, width: '130px' },
{ field: 'BorMaterials', title: '原材料品牌', sortable: true, width: '180px' },
@ -65,7 +65,7 @@ const gridOptionsA: any = reactive({
{ field: 'IsQualify', title: '检验结果是否合格', width: '140px', slots: { default: 'slotIsQualify' } },
{ field: 'Ecode', title: 'ecode码', width: '110px' },
{ field: 'SgEntityId', title: '国网实物Id', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '250px' },
{ field: 'Texture', title: '材质', width: '110px' },
{ field: 'Thickness', title: '公称厚度(mm)', width: '120px' },
{ field: 'Width', title: '公称宽度(mm)', width: '120px' },
@ -144,7 +144,6 @@ const gridOptionsA: any = reactive({
if (o1.order == "asc") {
isAscending = true;
}
console.log(o1)
return {
"field": o1.field,
"isAscending": (() => {
@ -153,9 +152,7 @@ const gridOptionsA: any = reactive({
}
})
}
// console.log(queryParams)
const data = await MuPaiApi.getMuPaiPaging(queryParamsA)
console.log(data)
return data
// //
// const firstSort = sorts[0]
@ -174,7 +171,6 @@ const gridOptionsA: any = reactive({
// save
save: ({ body }: any) => { },
add: ({ body }: any) => {
console.log(body)
},
}
}

@ -45,12 +45,12 @@
<span>{{ params.data.CategoryType }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="序列号" field="SerialNo" span="12">
<!-- <vxe-form-item title="序列号" field="SerialNo" span="12">
<template #default="params">
<vxe-input v-model="params.data.SerialNo" placeholder="请输入序列号" clearable
@change="fnChangeA(params)"></vxe-input>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="原材料检验批次号" field="RmibNumber" span="12">
<template #default="params">
<vxe-input v-model="params.data.RmibNumber" placeholder="请输入原材料检验批次号" clearable
@ -114,7 +114,7 @@
<span>{{ params.data.PdCode }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="感知过程" field="ProcessType" span="12">
<!-- <vxe-form-item title="感知过程" field="ProcessType" span="12">
<template #default="params">
<vxe-select v-model="params.data.ProcessType" clearable filterable :disabled="true">
<template v-for="(item) in dictProcessType">
@ -122,7 +122,7 @@
</template>
</vxe-select>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="检验结果是否合格" field="IsQualify" span="12">
<template #default="params">
<vxe-select v-model="params.data.IsQualify" clearable>
@ -263,6 +263,7 @@ import type { UploadProps, UploadChangeParam } from 'ant-design-vue'
import { config } from '@/config/axios/config'
import XEUtils from 'xe-utils'
import * as FileUploadApi from '@/api/gw/fileUpload'
import * as comApi from '@/api/gw/com'
//
const dictStore = useDictStore()
const { dictProcessType } = storeToRefs(dictStore)
@ -399,6 +400,7 @@ const open = async (type: string, row?: any) => {
case 'add':
refShow.value = true
modalTitle.value = '新增母排'
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'edit':
refShow.value = true
@ -446,6 +448,7 @@ const open = async (type: string, row?: any) => {
rowInfoB.Data.PutCenterTime = dayjs().format("YYYY-MM-DD HH:mm:ss")
rowInfoB.Data.Sended = 0
formDataA.value = rowInfoB.Data
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'delete':
modalTitle.value = '删除母排'
@ -506,6 +509,7 @@ const fnDeleteA = async (row: any) => {
const fnSubmitA = async () => {
await refFormA.value.validate().then(async (res: any) => {
if (!res) {
formDataA.value.Sended = 0
switch (formType.value) {
case 'add':
const paramsA = {
@ -558,6 +562,7 @@ const fnSubmitB = async () => {
formDataB.value.DataUniqueIdentifier = formDataA.value.DataUniqueIdentifier
formDataB.value.CheckTime = formDataA.value.CheckTime
formDataB.value.PutCenterTime = formDataA.value.PutCenterTime
formDataB.value.Sended = 0
const queryParamsA: any = {
"filter": {
"field": 'SerialNo',

@ -55,7 +55,7 @@ const gridOptionsA: any = reactive({
{ field: 'SupplierCode', title: '国网侧供应商编码', sortable: true, width: '160px' },
{ field: 'ModelCode', title: '规格型号编码', width: '140px' },
{ field: 'CategoryType', title: '物资种类编码', width: '120px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '110px' },
{ field: 'SerialNo', title: '序列号', sortable: true, width: '210px' },
{ field: 'RmibNumber', title: '原材料检验批次号', sortable: true, width: '160px' },
{ field: 'RmbNumber', title: '原材料批次号', sortable: true, width: '130px' },
{ field: 'BorMaterials', title: '原材料品牌', sortable: true, width: '180px' },
@ -70,7 +70,7 @@ const gridOptionsA: any = reactive({
{ field: 'IsQualify', title: '检验结果是否合格', width: '140px', slots: { default: 'slotIsQualify' } },
{ field: 'Ecode', title: 'ecode码', width: '110px' },
{ field: 'SgEntityId', title: '国网实物Id', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '110px' },
{ field: 'DataUniqueIdentifier', title: '数据唯一标识', width: '250px' },
{ field: 'ModelSpecification', title: '规格型号', width: '160px' },
{ field: 'TextDescription', title: '人力分合操作5次可靠动作', width: '200px', slots: { default: 'slotTextDescription' } },
{ field: 'InsulationVoltageUn', title: '额定绝缘电压(V)', width: '130px' },
@ -151,7 +151,6 @@ const gridOptionsA: any = reactive({
if (o1.order == "asc") {
isAscending = true;
}
console.log(o1)
return {
"field": o1.field,
"isAscending": (() => {
@ -160,9 +159,7 @@ const gridOptionsA: any = reactive({
}
})
}
// console.log(queryParams)
const data = await ShengYuDianLiuDongZuoBaoHuApi.getShengYuDianLiuDongZuoBaoHuPaging(queryParamsA)
console.log(data)
return data
// //
// const firstSort = sorts[0]
@ -181,7 +178,6 @@ const gridOptionsA: any = reactive({
// save
save: ({ body }: any) => { },
add: ({ body }: any) => {
console.log(body)
},
}
}

@ -45,12 +45,12 @@
<span>{{ params.data.CategoryType }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="序列号" field="SerialNo" span="12">
<!-- <vxe-form-item title="序列号" field="SerialNo" span="12">
<template #default="params">
<vxe-input v-model="params.data.SerialNo" placeholder="请输入序列号" clearable
@change="fnChangeA(params)"></vxe-input>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="原材料检验批次号" field="RmibNumber" span="12">
<template #default="params">
<vxe-input v-model="params.data.RmibNumber" placeholder="请输入原材料检验批次号" clearable
@ -114,7 +114,7 @@
<span>{{ params.data.PdCode }}</span>
</template>
</vxe-form-item> -->
<vxe-form-item title="感知过程" field="ProcessType" span="12">
<!-- <vxe-form-item title="感知过程" field="ProcessType" span="12">
<template #default="params">
<vxe-select v-model="params.data.ProcessType" clearable filterable :disabled="true">
<template v-for="(item) in dictProcessType">
@ -122,7 +122,7 @@
</template>
</vxe-select>
</template>
</vxe-form-item>
</vxe-form-item> -->
<vxe-form-item title="检验结果是否合格" field="IsQualify" span="12">
<template #default="params">
<vxe-select v-model="params.data.IsQualify" clearable>
@ -277,6 +277,7 @@ import type { UploadProps, UploadChangeParam } from 'ant-design-vue'
import { config } from '@/config/axios/config'
import XEUtils from 'xe-utils'
import * as FileUploadApi from '@/api/gw/fileUpload'
import * as comApi from '@/api/gw/com'
//
const dictStore = useDictStore()
const { dictProcessType } = storeToRefs(dictStore)
@ -423,6 +424,7 @@ const open = async (type: string, row?: any) => {
case 'add':
refShow.value = true
modalTitle.value = '新增剩余电流动作保护器'
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'edit':
refShow.value = true
@ -470,6 +472,7 @@ const open = async (type: string, row?: any) => {
rowInfoB.Data.PutCenterTime = dayjs().format("YYYY-MM-DD HH:mm:ss")
rowInfoB.Data.Sended = 0
formDataA.value = rowInfoB.Data
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'delete':
modalTitle.value = '删除剩余电流动作保护器'
@ -530,6 +533,7 @@ const fnDeleteA = async (row: any) => {
const fnSubmitA = async () => {
await refFormA.value.validate().then(async (res: any) => {
if (!res) {
formDataA.value.Sended = 0
switch (formType.value) {
case 'add':
const paramsA = {
@ -582,6 +586,7 @@ const fnSubmitB = async () => {
formDataB.value.DataUniqueIdentifier = formDataA.value.DataUniqueIdentifier
formDataB.value.CheckTime = formDataA.value.CheckTime
formDataB.value.PutCenterTime = formDataA.value.PutCenterTime
formDataB.value.Sended = 0
const queryParamsA: any = {
"filter": {
"field": 'SerialNo',

Loading…
Cancel
Save