Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
陈薪名 8 months ago
parent
commit
da64c665a4
  1. 2
      src/components/BasicForm/src/BasicForm.vue
  2. 9
      src/views/mes/workstation/index.vue
  3. 5
      src/views/mes/workstation/workstation.data.ts
  4. 17
      src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts
  5. 3
      src/views/wms/basicDataManage/documentSetting/businesstype/index.vue
  6. 19
      src/views/wms/basicDataManage/itemManage/itemarea/index.vue
  7. 48
      src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts
  8. 1
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts
  9. 6
      src/views/wms/deliversettlementManage/stockup/stockupMainJob/stockupMainJob.data.ts
  10. 9
      src/views/wms/deliversettlementManage/stockup/stockupMainRecord/stockupMainRecord.data.ts
  11. 7
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue
  12. 32
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts
  13. 2
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

2
src/components/BasicForm/src/BasicForm.vue

@ -252,7 +252,7 @@ const { t } = useI18n() // 国际化
const message = useMessage() // const message = useMessage() //
const dialogWidth = ref() const dialogWidth = ref()
if (props.basicFormWidth) { if (props.basicFormWidth) {
dialogWidth.value = props.basicFormWidth dialogWidth.value = props.basicFormWidth + '%'
} else { } else {
dialogWidth.value = props.isBusiness ? '60%' : '40%' dialogWidth.value = props.isBusiness ? '60%' : '40%'
} }

9
src/views/mes/workstation/index.vue

@ -65,7 +65,6 @@ 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 {mainBindBtn} from "@/utils/disposition/defaultButtons";
defineOptions({ name: 'Workstation' }) defineOptions({ name: 'Workstation' })
@ -136,7 +135,7 @@ const buttonBaseClick = (val, item) => {
const butttondata = [ const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:workstation:update'}), // defaultButtons.mainListEditBtn({hasPermi:'wms:workstation:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:workstation:delete'}), // defaultButtons.mainListDeleteBtn({hasPermi:'wms:workstation:delete'}), //
defaultButtons.mainListBindBtn({hasPermi:'wms:workstation:update'}), // defaultButtons.mainListBindBtn({hasPermi:'wms:workstation:update'}), //
] ]
// - // -
@ -144,9 +143,9 @@ const buttonTableClick = async (val, row) => {
if (val == 'edit') { // if (val == 'edit') { //
openForm('update', row) openForm('update', row)
} else if (val == 'delete') { // } else if (val == 'delete') { //
handleDelete(row.id) await handleDelete(row.id)
}else if (val == 'bind') { // }else if (val == 'bind') { //
detailRef.value.openDetail(row, row.name, "绑定", 'mesWorkstation') await detailRef.value.openDetail(row, '绑定', row.name, 'mesWorkstation')
} }
} }

5
src/views/mes/workstation/workstation.data.ts

@ -1,12 +1,13 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
// 表单校验 // 表单校验
export const WorkstationRules = reactive({ export const WorkstationRules = reactive({
code: [required], code: [required]
name: [required]
}) })
export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([ export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '代码', label: '代码',
field: 'code', field: 'code',

17
src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts

@ -39,14 +39,7 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '描述',
field: 'description',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '可用物料类型范围', label: '可用物料类型范围',
field: 'itemTypes', field: 'itemTypes',
@ -291,6 +284,14 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
isTable: false, isTable: false,
isForm: false, isForm: false,
}, },
{
label: '描述',
field: 'description',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',

3
src/views/wms/basicDataManage/documentSetting/businesstype/index.vue

@ -52,10 +52,11 @@
:apiCreate="BusinesstypeApi.createBusinesstype" :apiCreate="BusinesstypeApi.createBusinesstype"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
:isBusiness="false" :isBusiness="false"
:basicFormWidth="75"
/> />
<!-- 详情 --> <!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Businesstype.allSchemas" /> <Detail ref="detailRef" :isBasic="true" :allSchemas="Businesstype.allSchemas" />
<!-- 导入 --> <!-- 导入 -->
<ImportForm <ImportForm

19
src/views/wms/basicDataManage/itemManage/itemarea/index.vue

@ -56,6 +56,7 @@
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@submitForm="submitForm" @submitForm="submitForm"
:isShowButton = isShowButton :isShowButton = isShowButton
:basicFormWidth="75"
/> />
<!-- 详情 --> <!-- 详情 -->
@ -114,18 +115,22 @@ const updataTableColumns = (val) => {
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => { nextTick(() => {
if (type == 'tableForm') { if (type == 'tableForm') {
if(formField == 'locationGroupCode') { if(formField == 'locationCode') {
row['locationGroupCode'] = val[0]['code']
}else if(formField == 'locationCode') {
row['locationCode'] = val[0]['code'] row['locationCode'] = val[0]['code']
}else{ }else{
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
} }
}else{
const setV = {}
if(formField == 'areaCode') {
console.log(val[0]);
setV['areaCode'] = val[0]['code']
setV['areaType'] = val[0]['type']
}else{
setV[formField] = setV[0][searchField]
}
formRef.setValues(setV)
} }
const setV = {}
setV[formField] = val[0][searchField]
formRef.setValues(setV)
}) })
} }
// //

48
src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts

@ -68,6 +68,23 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '库区类型',
field: 'areaType',
dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
}
},
{ {
label: '入库包装规格', label: '入库包装规格',
field: 'inPackUnit', field: 'inPackUnit',
@ -118,6 +135,19 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '管理精度',
field: 'manageMode',
sort: 'custom',
isSearch: false,
dictType: DICT_TYPE.MANAGEMENT_MODE,
dictClass: 'string',
// colorType: 'danger',
isTable: true,
table: {
width: 150
},
},
{ {
label: '最高库存数量', label: '最高库存数量',
field: 'maxQty', field: 'maxQty',
@ -223,19 +253,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '管理精度',
field: 'manageMode',
sort: 'custom',
isSearch: false,
dictType: DICT_TYPE.MANAGEMENT_MODE,
dictClass: 'string',
// colorType: 'danger',
isTable: true,
table: {
width: 150
},
},
{ {
label: '入库自动转为出库包装规格', label: '入库自动转为出库包装规格',
field: 'newlyToOutpackunit', field: 'newlyToOutpackunit',
@ -255,6 +273,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
activeValue: 'TRUE' activeValue: 'TRUE'
} }
}, },
isTable:false
}, },
{ {
label: '出库自动转为出库包装规格', label: '出库自动转为出库包装规格',
@ -275,6 +294,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
activeValue: 'TRUE' activeValue: 'TRUE'
} }
}, },
isTable:false
}, },
{ {
label: '需要接收确认', label: '需要接收确认',
@ -331,6 +351,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
activeValue: 'TRUE' activeValue: 'TRUE'
} }
}, },
isTable:false
}, },
{ {
label: '超过高储是否允许叫料', label: '超过高储是否允许叫料',
@ -346,6 +367,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
activeValue: 'TRUE' activeValue: 'TRUE'
} }
}, },
isTable:false
}, },
{ {
label: '优先空库位', label: '优先空库位',

1
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts

@ -801,6 +801,7 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
tableForm: { tableForm: {
type: 'Select',
disabled: true disabled: true
}, },
form: { form: {

6
src/views/wms/deliversettlementManage/stockup/stockupMainJob/stockupMainJob.data.ts

@ -19,12 +19,6 @@ export const StockupMainJob = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
}, },
{
label: '发货计划单号',
field: 'deliverPlanNumber',
sort: 'custom',
isForm: false,
},
{ {
label: '从仓库代码', label: '从仓库代码',
field: 'fromWarehouseCode', field: 'fromWarehouseCode',

9
src/views/wms/deliversettlementManage/stockup/stockupMainRecord/stockupMainRecord.data.ts

@ -34,15 +34,6 @@ export const StockupMainRecord = useCrudSchemas(reactive<CrudSchema[]>([
width: 180 width: 180
}, },
}, },
{
label: '发货计划单号',
field: 'deliverPlanNumber',
sort: 'custom',
isSearch: true,
table: {
width: 180
},
},
{ {
label: '从仓库代码', label: '从仓库代码',
field: 'fromWarehouseCode', field: 'fromWarehouseCode',

7
src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue

@ -89,7 +89,7 @@ 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 * as DeliverPlanDetailApi from '@/api/wms/deliverPlanDetail'
// //
defineOptions({ name: 'StockupMainRequest' }) defineOptions({ name: 'StockupMainRequest' })
@ -124,9 +124,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['inventoryStatus'] = val[0]['inventoryStatus'] row['inventoryStatus'] = val[0]['inventoryStatus']
row['itemCode'] = val[0]['itemCode'] row['itemCode'] = val[0]['itemCode']
row['uom'] = val[0]['uom'] row['uom'] = val[0]['uom']
} else if(formField == 'toLocationCode'){ }
console.log(row,111); if(formField == 'toLocationCode'){
row['toLocationCode'] = val[0]['code'] row['toLocationCode'] = val[0]['code']
}else{ }else{
row[formField] = val[0][searchField] row[formField] = val[0][searchField]

32
src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts

@ -4,9 +4,6 @@ import { TableColumn } from '@/types/table'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as DeliverPlanMainApi from '@/api/wms/deliverPlanMain'
import { DeliverPlanMain } from '../../deliverplan/deliverPlanMain/deliverPlanMain.data'
import * as BalanceApi from '@/api/wms/balance' import * as BalanceApi from '@/api/wms/balance'
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' import { Balance } from '@/views/wms/inventoryManage/balance/balance.data'
@ -51,35 +48,6 @@ export const StockupMainRequest = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
}, },
{
label: '发货计划单号',
field: 'deliverPlanNumber',
sort: 'custom',
table: {
width: 140
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择发货计划单号', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段
searchTitle: '发货计划信息', // 查询弹窗标题
searchAllSchemas: DeliverPlanMain.allSchemas, // 查询弹窗所需类
searchPage: DeliverPlanMainApi.getDeliverPlanMainPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
},
{
key: 'status',
value: '6',
isMainValue: false
}]
}
}
},
{ {
label: '从仓库代码', label: '从仓库代码',
field: 'fromWarehouseCode', field: 'fromWarehouseCode',

2
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -597,6 +597,8 @@ const submitForm = async (formType, data) => {
let isExist = false let isExist = false
tableData.value.forEach(item => { tableData.value.forEach(item => {
let rs = tableData.value.filter(filterItem => (filterItem.packingNumber == item.packingNumber)) let rs = tableData.value.filter(filterItem => (filterItem.packingNumber == item.packingNumber))
console.log(rs);
if(rs.length > 1) isExist = true if(rs.length > 1) isExist = true
}) })
if (isExist) { if (isExist) {

Loading…
Cancel
Save