|
|
@ -72,6 +72,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
|
import { getTenantId }from '@/utils/auth' |
|
|
|
|
|
|
|
|
|
|
|
defineOptions({ name: 'MesBarCode' }) |
|
|
|
|
|
|
@ -83,6 +85,9 @@ const routeName = ref() |
|
|
|
routeName.value = route.name |
|
|
|
const tableColumns = ref(MesBarCode.allSchemas.tableColumns) |
|
|
|
|
|
|
|
let names =[{"text":"1379","value":1},{"text":"1397","value":2},{"text":"2379","value":3}] |
|
|
|
let tenant = names.find(item=>item.value == getTenantId()) |
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
nextTick(() => { |
|
|
@ -165,6 +170,7 @@ const formsSuccess = async (formType,data) => { |
|
|
|
basicFormRef.value.formLoading = true |
|
|
|
try { |
|
|
|
if (formType === 'create') { |
|
|
|
data.plnt = tenant?.text |
|
|
|
await MesBarCodeApi.createMesBarCode(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
} else { |
|
|
|