Browse Source

解决线上问题 新增生产条码清单管理提示是否可用不能为空

linshi20240813
chenfang 3 months ago
parent
commit
5688ab6d73
  1. 1
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue
  2. 6
      src/views/wms/buttMesManage/mesBarCode/index.vue

1
src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue

@ -187,6 +187,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
newRow['fromPackingNumber'] = item['packingNumber'] newRow['fromPackingNumber'] = item['packingNumber']
newRow['toBatch'] = item['batch'] newRow['toBatch'] = item['batch']
newRow['fromLocationCode'] = item['locationCode'] newRow['fromLocationCode'] = item['locationCode']
newRow['toLocationCode'] = item['locationCode']
newRow['inventoryStatus'] = item['inventoryStatus'] newRow['inventoryStatus'] = item['inventoryStatus']
newRow['packUnit'] = item['packUnit'] newRow['packUnit'] = item['packUnit']
newRow['packQty'] = item['packQty'] newRow['packQty'] = item['packQty']

6
src/views/wms/buttMesManage/mesBarCode/index.vue

@ -72,6 +72,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import { getTenantId }from '@/utils/auth'
defineOptions({ name: 'MesBarCode' }) defineOptions({ name: 'MesBarCode' })
@ -83,6 +85,9 @@ const routeName = ref()
routeName.value = route.name routeName.value = route.name
const tableColumns = ref(MesBarCode.allSchemas.tableColumns) 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) => { const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => { nextTick(() => {
@ -165,6 +170,7 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = true basicFormRef.value.formLoading = true
try { try {
if (formType === 'create') { if (formType === 'create') {
data.plnt = tenant?.text
await MesBarCodeApi.createMesBarCode(data) await MesBarCodeApi.createMesBarCode(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
} else { } else {

Loading…
Cancel
Save