Browse Source

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

intex_online20241111
ljlong_2630 3 months ago
parent
commit
6011b8810f
  1. 2
      .env
  2. 46
      .env.wyf
  3. 6
      index.html
  4. 7
      src/api/wms/inventorymoveRequestDetail/index.ts
  5. BIN
      src/assets/imgs/login-bg.png
  6. BIN
      src/assets/imgs/logo1.png
  7. BIN
      src/assets/imgs/logo_white.png
  8. BIN
      src/assets/imgs/logo_white_blue.png
  9. BIN
      src/assets/imgs/logo_white_btn.png
  10. 2
      src/components/Detail/src/Detail.vue
  11. 6
      src/locales/en-US.ts
  12. 6
      src/locales/zh-CN.ts
  13. 2
      src/main.ts
  14. 2
      src/store/modules/permission.ts
  15. 4
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
  16. 19
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts
  17. 10
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue
  18. 15
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts
  19. 6
      src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRequest/index.vue
  20. 136
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMainWms/purchaseMain.data.ts
  21. 10
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  22. 1
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts
  23. 20
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
  24. 68
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

2
.env

@ -1,5 +1,5 @@
# 标题
VITE_APP_TITLE=富维海拉智慧工厂管理平台
VITE_APP_TITLE=天津英泰智慧工厂管理平台
# 项目本地运行端口号
VITE_PORT=80

46
.env.wyf

@ -0,0 +1,46 @@
# 开发环境
NODE_ENV=development
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://192.168.1.35:12080'
# 上传路径
VITE_UPLOAD_URL='http://192.168.1.35:12080/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=/dev-api
# 接口地址
VITE_API_URL=/admin-api
# 打包路径
VITE_BASE_PATH=/
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=false
# 是否sourcemap
VITE_SOURCEMAP=false
# 输出路径
VITE_OUT_DIR=dist
# 自定义接口路径
VITE_INTERFACE_URL='http://localhost:12080/magic/web/index.html'
# 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://localhost:12080'
# 租户配置
VITE_TENANT='["英泰"]'
# 查看质检报告环境
VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400'
# 是否需要验证码
VITE_NEED_CODE = false

6
index.html

@ -6,8 +6,8 @@
<link rel="icon" href="/src/assets/imgs/logo1.png" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="keywords" content="富维海拉智慧工厂管理平台" />
<meta name="description" content="富维海拉智慧工厂管理平台" />
<meta name="keywords" content="天津英泰智慧工厂管理平台" />
<meta name="description" content="天津英泰智慧工厂管理平台" />
<script src="/systemConfig.js"></script>
<title>%VITE_APP_TITLE%</title>
</head>
@ -44,7 +44,7 @@
}
.app-loading .app-loading-logo {
width: 100px;
width: 200px;
margin: 0 auto 15px auto;
}

7
src/api/wms/inventorymoveRequestDetail/index.ts

@ -22,12 +22,13 @@ export interface InventorymoveRequestDetailVO {
itemDesc2: string
projectCode: string
qty: number
inventoryQty: number
uom: string
updateTime: Date
updater: string
itemCode: string
}
const message = useMessage() // 消息弹窗
// 查询库存转移申请子列表
export const getInventorymoveRequestDetailPage = async (params) => {
if (params.isSearch) {
@ -51,6 +52,10 @@ export const createInventorymoveRequestDetail = async (data: InventorymoveReques
// 修改库存转移申请子
export const updateInventorymoveRequestDetail = async (data: InventorymoveRequestDetailVO) => {
if(parseFloat(data.inventoryQty) < parseFloat(data.qty)){
message.warning("数量不能大于库存数量")
return
}
return await request.put({ url: `/wms/inventorymove-request-detail/update`, data })
}

BIN
src/assets/imgs/login-bg.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 607 KiB

After

Width:  |  Height:  |  Size: 2.5 MiB

BIN
src/assets/imgs/logo1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 39 KiB

BIN
src/assets/imgs/logo_white.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 103 KiB

BIN
src/assets/imgs/logo_white_blue.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 31 KiB

BIN
src/assets/imgs/logo_white_btn.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 162 KiB

2
src/components/Detail/src/Detail.vue

@ -723,7 +723,7 @@ const masterParmas = ref({
//
const HeadButttondata = ref()
const HeadButttondataBackups = ref()//
const HeadButttondataBackups = ref([])//
// -
const buttondata = ref()

6
src/locales/en-US.ts

@ -1121,7 +1121,7 @@ export default {
:'Check the quality inspection report',
:'ChangChun',
:'ChengDu',
:'FAWAY HELLA Smart Factory Management Platform',
:'TIANJIN YINGTAI Smart Factory Management Platform',
:'Purchase unreceived record',
:'Please select the desired shipment tracking number',
:'Not more in size',
@ -1141,7 +1141,7 @@ export default {
// 基础设施:'infrastructure',
// 报表管理:'report manager',
// 报表:'statement',
// 富维海拉供应商管理系统:'vendor management system',
// 天津英泰供应商管理系统:'vendor management system',
:'Please enter your username',
:'Please enter email',
:'Forget Password',
@ -1170,7 +1170,7 @@ export default {
:'Planner',
:'Min',
:'Max',
:'FAWAY HELLA Supplier System',
:'TIANJIN YINGTAI Supplier System',
:'System Management',
:'Infrastructure Construction',
:'Report Management',

6
src/locales/zh-CN.ts

@ -1127,7 +1127,7 @@ export default {
:'查看质检报告',
:'长春',
:'成都',
:'富维海拉智慧工厂管理平台',
:'天津英泰智慧工厂管理平台',
:'采购未收货记录',
:'请选择要货计划单号',
:'大小不超过',
@ -1147,7 +1147,7 @@ export default {
:'基础设施',
:'报表管理',
:'报表',
:'富维海拉供应商管理系统',
:'天津英泰供应商管理系统',
:'请输入用户名',
:'请输入邮箱',
:'忘记密码',
@ -1176,7 +1176,7 @@ export default {
:'计划员',
:'最小值',
:'最大值',
:'富维海拉供应商系统',
:'天津英泰供应商系统',
:'物料包装信息',
:'仓库管理',
:'库区管理',

2
src/main.ts

@ -78,7 +78,7 @@ const setupAll = async () => {
// 多语言相关
const localeStore = useLocaleStore()
if(localeStore&&localeStore.currentLocale&&localeStore.currentLocale.lang.indexOf('en')>-1&&document.querySelector('#app-loading-title')){
document.querySelector('#app-loading-title').innerHTML = 'FAWAY HELLA Smart Factory Management Platform' // 富维海拉智慧工厂管理平台
document.querySelector('#app-loading-title').innerHTML = 'FAWAY HELLA Smart Factory Management Platform' // 天津英泰智慧工厂管理平台
}
setupAll()

2
src/store/modules/permission.ts

@ -41,7 +41,7 @@ export const usePermissionStore = defineStore('permission', {
if (wsCache.get(CACHE_KEY.ROLE_ROUTERS)) {
res = wsCache.get(CACHE_KEY.ROLE_ROUTERS) as AppCustomRouteRecordRaw[]
// res.forEach(item=>{
// if(item.name == '富维海拉供应商系统'&&tenant){
// if(item.name == '天津英泰供应商系统'&&tenant){
// item.name = item.name + tenant['text']
// }
// })

4
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue

@ -54,7 +54,7 @@
<BasicForm
ref="formRef"
:isOpenSearchTable="true"
fieldTableColumn="packingNumber"
fieldTableColumn="batch"
@success="getList"
:rules="ScrapRequestMainRules"
:formAllSchemas="ScrapRequestMain.allSchemas"
@ -179,7 +179,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
// tableData.value.push(newRow)
// })
//
if (formField == 'packingNumber') {
if (formField == 'batch') {
val = val.filter(
(item) =>
!tableData.value.find(

19
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts

@ -963,22 +963,11 @@ export const ScrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
tableForm: {
disabled: true
}
},
{
label: '包装号',
field: 'packingNumber',
sort: 'custom',
table: {
width: 150
},
tableForm:{
multiple:true,
isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装号',
searchField: 'packingNumber',
searchListPlaceholder: '请选择批次',
searchField: 'batch',
searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalanceItemPage,
@ -1009,8 +998,8 @@ export const ScrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装号',
searchField: 'packingNumber',
searchListPlaceholder: '请选择批次',
searchField: 'batch',
searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalanceItemPage,

10
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue

@ -332,7 +332,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['fromContainerNumber'] = item['containerNumber']
newRow['itemCode'] = item['itemCode']
newRow['fromBatch'] = item['batch']
newRow['inventoryQty'] = item['qty']
//
await ruleApi.getManagementPrecision({
itemCodes: [item['itemCode']],
@ -704,6 +705,13 @@ const submitForm = async (formType, submitData) => {
return
}
data.subList = tableData.value //
const cmdExists = data.subList.some(filter =>
parseFloat(filter.inventoryQty) < parseFloat(filter.qty)
);
if(cmdExists){
message.warning("数量不能大于库存数量")
return
}
let isExist = false
tableData.value.forEach(item => {
item['toLocationCode'] = toLocationCode

15
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts

@ -1230,6 +1230,21 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
// isTableForm: false,
// isForm: false,
// },
{
label: '库存数量 ',
field: 'inventoryQty',
sort: 'custom',
isSearch: false,
isTable: false,
tableForm: {
disabled: true
},
form:{
componentProps:{
disabled:true
}
}
},
{
label: '数量',
field: 'qty',

6
src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRequest/index.vue

@ -256,9 +256,9 @@ const butttondata = (row,$index) => {
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchase-barter-request-main:submit'}), //
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:purchase-barter-request-main:refused'}), //
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:purchase-barter-request-main:agree'}), //
defaultButtons.outBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:unplannedreceipt-request-main:out'}), //
defaultButtons.inBtn({hide:isShowMainButton(row,['11']),hasPermi:'wms:unplannedreceipt-request-main:in'}), //
defaultButtons.mainListSuspend1Btn({hide:isShowMainButton(row,['11']),hasPermi:'wms:unplannedreceipt-request-main:suspend'}), //
defaultButtons.outBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:purchase-barter-request-main:out'}), //
defaultButtons.inBtn({hide:isShowMainButton(row,['11']),hasPermi:'wms:purchase-barter-request-main:in'}), //
defaultButtons.mainListSuspend1Btn({hide:isShowMainButton(row,['11']),hasPermi:'wms:purchase-barter-request-main:suspend'}), //
// defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchase-barter-request-main:update'}), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchase-barter-request-main:delete'}), //
]

136
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMainWms/purchaseMain.data.ts

@ -56,7 +56,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
{
label: '订单类型',
field: 'type',
dictType: DICT_TYPE.PURCHASE_ORDER_TYPE,
@ -69,19 +69,14 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
},
},
{
label: '物料类型',
field: 'itemTypeList',
dictType: DICT_TYPE.ITEM_TYPE,
dictClass: 'string',
isTable: false,
isForm: false,
label: '行类型',
field: 'poLineType',
isTable: true,
isSearch: true,
sort: 'custom',
search: {
componentProps: {
multiple: true,//多选
}
}
table: {
width: 150
},
},
{
label: '状态',
@ -291,7 +286,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '创建时间',
field: 'createTime',
isTable:true,
isTable:false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -554,6 +549,26 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
precision: 6
},
},
{
label: '默认收货库区',
field: 'defaultAreaCode',
table: {
width: 150
},
isTableForm: false,
isForm: false,
isTable: true,
},
{
label: '库区描述',
field: 'areaDescription',
table: {
width: 150
},
isTableForm: false,
isForm: false,
isTable: true,
},
// {
// label: 'ERP库位',
// field: 'erpLocationCode',
@ -821,16 +836,6 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
min: 0
}
},
{
label: '创建者',
field: 'creator',
isTableForm: false,
table: {
width: 150
},
hiddenInMain:true,
isForm: false,
},
{
label: '创建时间',
field: 'createTime',
@ -843,7 +848,7 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 180
},
hiddenInMain:true,
hiddenInMain:false,
isForm: false,
form: {
component: 'DatePicker',
@ -856,48 +861,58 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
}
},
{
label: '最后更新者',
field: 'updater',
isTableForm: false,
table: {
width: 150
},
hiddenInMain:true,
isForm: false,
// form: {
// component: 'DatePicker',
// componentProps: {
// style: {width:'100%'},
// type: 'datetime',
// dateFormat: 'YYYY-MM-DD HH:mm:ss',
// valueFormat: 'x',
// }
// }
},
{
label: '最后更新时间',
field: 'updateTime',
label: '创建者',
field: 'creator',
isTableForm: false,
isTable: true,
hiddenInMain:true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 150
},
hiddenInMain:false,
isForm: false,
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
// {
// label: '最后更新时间',
// field: 'updateTime',
// isTableForm: false,
// isTable: true,
// hiddenInMain:false,
// formatter: dateFormatter,
// detail: {
// dateFormat: 'YYYY-MM-DD HH:mm:ss'
// },
// table: {
// width: 150
// },
// isForm: false,
// form: {
// component: 'DatePicker',
// componentProps: {
// style: {width:'100%'},
// type: 'datetime',
// dateFormat: 'YYYY-MM-DD HH:mm:ss',
// valueFormat: 'x',
// }
// }
// },
// {
// label: '最后更新者',
// field: 'updater',
// isTableForm: false,
// table: {
// width: 150
// },
// hiddenInMain:false,
// isForm: false,
// // form: {
// // component: 'DatePicker',
// // componentProps: {
// // style: {width:'100%'},
// // type: 'datetime',
// // dateFormat: 'YYYY-MM-DD HH:mm:ss',
// // valueFormat: 'x',
// // }
// // }
// },
{
label: '备注',
hiddenInMain:true,
@ -912,6 +927,7 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'action',
isDetail: false,
isForm: false ,
isTable: false ,
table: {
width: 150,
fixed: 'right'

10
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -511,6 +511,11 @@ const getSearchTableData = async (number,formField,searchField)=>{
if(item.field == 'deliveryDate'){
item.componentProps.disabled = false
}
if (item.field == 'poNumber') {
item.componentProps.isSearchList = true
item.componentProps.disabled = false
item.componentProps.enterSearch = true
}
})
}else if('update'==type){
PurchasePlanMain.allSchemas.formSchema.forEach((item) => {
@ -519,6 +524,11 @@ const getSearchTableData = async (number,formField,searchField)=>{
item.componentProps.disabled = true
item.componentProps.isSearchList = false
}
if (item.field == 'poNumber') {
item.componentProps.isSearchList = false
item.componentProps.disabled = true
item.componentProps.enterSearch = false
}
// if(item.field == 'deliveryDate'){
// item.componentProps.disabled = true
// }

1
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

@ -159,6 +159,7 @@ export const PurchasePlanMain = useCrudSchemas(
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
disabled:true,
enterSearch: true,
dialogWidth: '1085px', //搜索出来弹窗的宽度
isSearchList: true,

20
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -537,16 +537,16 @@ const butttondata = (row, $index) => {
// hide: isShowMainButton(row, ['1', '2', '3']),
// hasPermi: 'wms:supplierdeliver-request-main:uploadCheck'
// }), //
{
label: t('ts.上传履历表'),
name: 'mainPlanCurriculumVitae',
hide: row.status==5,
type: 'primary',
icon: '',
color: '',
hasPermi: '',
link: true //
}, //
// {
// label: t('ts.'),
// name: 'mainPlanCurriculumVitae',
// hide: row.status==5,
// type: 'primary',
// icon: '',
// color: '',
// hasPermi: '',
// link: true //
// }, //
defaultButtons.mainListPlanSubBtn({
hide: isShowMainButton(row, ['1']),
hasPermi: 'wms:supplierdeliver-request-main:sub'

68
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

@ -116,9 +116,8 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
},
sortTableDefault:9,
form: {
// labelMessage: '信息提示说明!!!',
// labelMessage: '信息提示说明!!!',
componentProps: {
disabled:true,
enterSearch:true,
dialogWidth:'1055px',//搜索出来弹窗的宽度
isSearchList: true, // 开启查询弹窗
@ -1702,39 +1701,38 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch
disabled:true
}
},
{
label: '托规格',
field: 'secondPackUnit',
isTable: true,
sort: 'custom',
form: {
},
tableForm: {
type: 'Select',
labelField: 'packName',
valueField: 'packUnit',
initOptions: [{
label: '',
value: ''
}]
}
},
{
label: '托规格数量',
field: 'secondPackQty',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
}
},
tableForm: {
disabled:true
}
},
// {
// label: '托规格',
// field: 'secondPackUnit',
// isTable: true,
// sort: 'custom',
// form: {
// },
// tableForm: {
// type: 'Select',
// labelField: 'packName',
// valueField: 'packUnit',
// initOptions: [{
// label: '',
// value: ''
// }]
// }
// },
// {
// label: '托规格数量',
// field: 'secondPackQty',
// sort: 'custom',
// table: {
// width: 150
// },
// form: {
// componentProps: {
// }
// },
// tableForm: {
// disabled:true
// }
// },
{
label: '物料名称',
field: 'itemName',

Loading…
Cancel
Save