Browse Source

Merge remote-tracking branch 'origin/master_hella' into master_hella

master_hella_20240701
gaojs 6 months ago
parent
commit
7ef1338751
  1. 8
      src/api/system/tenant/index.ts
  2. 2
      src/api/wms/balance/index.ts
  3. 10
      src/api/wms/location/index.ts
  4. 5
      src/api/wms/package/index.ts
  5. 20
      src/components/Form/src/Form.vue
  6. 5
      src/components/Form/src/components/useRenderSelect.tsx
  7. 7
      src/components/Form/src/helper.ts
  8. 5
      src/components/Table/src/Table.vue
  9. 4
      src/utils/disposition/defaultButtons.ts
  10. 2
      src/views/login/components/LoginForm.vue
  11. 4
      src/views/mes/holiday/holiday.data.ts
  12. 6
      src/views/mes/hrPersonAbility/hrPersonAbility.data.ts
  13. 4
      src/views/mes/item/index.vue
  14. 57
      src/views/mes/item/item.data.ts
  15. 15
      src/views/mes/ordermonthplan/mesOrderMonthMain.data.ts
  16. 31
      src/views/mes/qualityclass/qualityclass.data.ts
  17. 21
      src/views/mes/qualitygroup/qualitygroup.data.ts
  18. 4
      src/views/mes/workstation/workstation.data.ts
  19. 4
      src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts
  20. 3
      src/views/wms/basicDataManage/factoryModeling/location/location.data.ts
  21. 45
      src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts
  22. 7
      src/views/wms/basicDataManage/labelManage/callmaterials/index.vue
  23. 6
      src/views/wms/basicDataManage/labelManage/locationLabel/index.vue
  24. 118
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue
  25. 18
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue
  26. 5
      src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts
  27. 32
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts
  28. 49
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  29. 58
      src/views/wms/inventoryManage/balance/index.vue
  30. 35
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts
  31. 7
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue
  32. 9
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts
  33. 26
      src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/inventorychangeRecordMain.data.ts
  34. 8
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue
  35. 48
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts
  36. 96
      src/views/wms/purchasereceiptManage/putaway/putawayJobMain/putawayJobMain.data.ts
  37. 12
      src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/putawayRecordMain.data.ts
  38. 12
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts
  39. 47
      src/views/wms/supplierManage/supplierinvoiceInvoiced/supplierinvoiceInvoiced.data.ts

8
src/api/system/tenant/index.ts

@ -33,8 +33,16 @@ export interface TenantExportReqVO {
// 查询租户列表 // 查询租户列表
export const getTenantPage = (params: TenantPageReqVO) => { export const getTenantPage = (params: TenantPageReqVO) => {
console.log(params)
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return request.post({ url: '/system/tenant/senior', data })
} else {
return request.get({ url: '/system/tenant/page', params }) return request.get({ url: '/system/tenant/page', params })
} }
// return request.get({ url: '/system/tenant/page', params })
}
// 查询租户详情 // 查询租户详情
export const getTenant = (id: number) => { export const getTenant = (id: number) => {

2
src/api/wms/balance/index.ts

@ -83,7 +83,7 @@ export const getBalancePageByBusinessType = async (params) => {
} }
// 查询库存余额列表根据业务类型 // 查询库存余额列表根据业务类型的物料类型
export const getBalancePageByBusinessTypeByItemType = async (params) => { export const getBalancePageByBusinessTypeByItemType = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch

10
src/api/wms/location/index.ts

@ -85,6 +85,16 @@ export const selectBusinessTypeToLocation = async (params) => {
} }
} }
export const selectBusinessTypeOutLocation = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/location/pageBusinessTypeOutLocationSenior', data })
} else {
return request.get({ url: `/wms/location/pageBusinessTypeOutLocation`, params })
}
}
export const selectPageItemAreaToLocation = async (params) => { export const selectPageItemAreaToLocation = async (params) => {
if (params.isSearch) { if (params.isSearch) {

5
src/api/wms/package/index.ts

@ -116,3 +116,8 @@ export const getLabelDetailPage = async (params) => {
export const getBalanceToPackage = async (packingNumber: String) => { export const getBalanceToPackage = async (packingNumber: String) => {
return await request.get({ url: `/wms/package/getBalanceToPackage?packingNumber=` + packingNumber}) return await request.get({ url: `/wms/package/getBalanceToPackage?packingNumber=` + packingNumber})
} }
// 根据库存余额获取包装信息进行打印标签--批量打印
export const getBalanceToPackageSelection = async (data: any) => {
return await request.post({ url: `/wms/balance/batchPrintLabel` ,data})
}

20
src/components/Form/src/Form.vue

@ -175,10 +175,7 @@ export default defineComponent({
const Com = componentMap['Divider'] as ReturnType<typeof defineComponent> const Com = componentMap['Divider'] as ReturnType<typeof defineComponent>
let labelName = item?.label || '' let labelName = item?.label || ''
if(item?.label){ if(item?.label){
labelName = t(`ts.${item?.label}`) labelName = t(`ts.${item?.label}`).replace('ts.','')
if(labelName === 'ts.' + item?.label){
labelName = item?.label
}
} }
return isDivider ? ( return isDivider ? (
<Com {...{ contentPosition: 'left', ...item.componentProps }}>{labelName}</Com> <Com {...{ contentPosition: 'left', ...item.componentProps }}>{labelName}</Com>
@ -227,18 +224,12 @@ export default defineComponent({
if (item?.labelMessage) { if (item?.labelMessage) {
let labelName = item.label || '' let labelName = item.label || ''
if(item.label){ if(item.label){
labelName = t(`ts.${item.label}`) labelName = t(`ts.${item.label}`).replace('ts.','')
if(labelName === 'ts.' + item.label){
labelName = item.label
}
} }
let labelMessage = item.labelMessage || '' let labelMessage = item.labelMessage || ''
if(item.labelMessage){ if(item.labelMessage){
labelMessage = t(`ts.${item.labelMessage}`) labelMessage = t(`ts.${item.labelMessage}`).replace('ts.','')
if(labelMessage === 'ts.' + item.labelMessage){
labelMessage = item.labelMessage
}
} }
formItemSlots.label = () => { formItemSlots.label = () => {
return ( return (
@ -367,10 +358,7 @@ export default defineComponent({
} }
let labelName = item.label || '' let labelName = item.label || ''
if(item.label){ if(item.label){
labelName = t(`ts.${item.label}`) labelName = t(`ts.${item.label}`).replace('ts.','')
if(labelName === 'ts.' + item.label){
labelName = item.label
}
} }
return ( return (
<ElFormItem {...(item.formItemProps || {})} prop={item.field} label={labelName}> <ElFormItem {...(item.formItemProps || {})} prop={item.field} label={labelName}>

5
src/components/Form/src/components/useRenderSelect.tsx

@ -35,10 +35,7 @@ export const useRenderSelect = (slots: Slots) => {
const { label, value, ...other } = option const { label, value, ...other } = option
const zhName = labelAlias ? option[labelAlias] : label;//中文名称 const zhName = labelAlias ? option[labelAlias] : label;//中文名称
let labelName = t(`ts.${zhName}`) let labelName = t(`ts.${zhName}`).replace('ts.','')
if(labelName === 'ts.' + zhName){
labelName = zhName
}
return ( return (
<ElOption <ElOption

7
src/components/Form/src/helper.ts

@ -17,12 +17,7 @@ export const setTextPlaceholder = (schema: FormSchema): PlaceholderModel => {
let labelName = schema.label || '' let labelName = schema.label || ''
if(schema.label){ if(schema.label){
labelName = t(`ts.${schema.label}`) labelName = ' '+t(`ts.${schema.label}`).replace('ts.','')
if(labelName === 'ts.' + schema.label){
labelName = ' '+schema.label
}else{
labelName = ' ' + labelName
}
} }
if (textMap.includes(schema?.component as string)) { if (textMap.includes(schema?.component as string)) {

5
src/components/Table/src/Table.vue

@ -283,10 +283,7 @@ export default defineComponent({
return [...[renderTableExpand()], ...[renderTableSelection()]].concat( return [...[renderTableExpand()], ...[renderTableSelection()]].concat(
(columnsChildren || columns).map((v) => { (columnsChildren || columns).map((v) => {
const zhName = v.label || '';// const zhName = v.label || '';//
let labelName = t(`ts.${v.label}`) let labelName = t(`ts.${v.label}`).replace('ts.','')
if(labelName === 'ts.' + zhName){
labelName = zhName
}
// //
if (v.type === 'index') { if (v.type === 'index') {
return ( return (

4
src/utils/disposition/defaultButtons.ts

@ -289,7 +289,7 @@ export function mainListDisableBtn(option:any) {
// 主列表-中止按钮1 // 主列表-中止按钮1
export function mainListSuspend1Btn(option:any) { export function mainListSuspend1Btn(option:any) {
return __defaultBtnOption(option,{ return __defaultBtnOption(option,{
label: t(`ts.中止`), label: t(`ts.中止`).replace('ts.',''),
name: 'suspend', name: 'suspend',
hide: false, hide: false,
type: 'danger', type: 'danger',
@ -624,7 +624,7 @@ export function mainListPurchasePlanModBtn(option:any) {
// 主列表-要货计划流程-下架按钮 // 主列表-要货计划流程-下架按钮
export function mainListPurchasePlanWitBtn(option:any) { export function mainListPurchasePlanWitBtn(option:any) {
return __defaultBtnOption(option,{ return __defaultBtnOption(option,{
label: t(`ts.下架`), label: t(`ts.下架`).replace('ts.',''),
name: 'mainPurPlanWit', name: 'mainPurPlanWit',
hide: false, hide: false,
type: 'danger', type: 'danger',

2
src/views/login/components/LoginForm.vue

@ -15,7 +15,7 @@
<el-option <el-option
v-for="item in tenantArray" v-for="item in tenantArray"
:key="item" :key="item"
:label="t(`ts.${item}`)" :label="t(`ts.${item}`).replace('ts.','')"
:value="item" :value="item"
/> />
</el-select> </el-select>

4
src/views/mes/holiday/holiday.data.ts

@ -89,7 +89,7 @@ export const Holiday = useCrudSchemas(reactive<CrudSchema[]>([
label: '状态', label: '状态',
field: 'status', field: 'status',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.QUALIFY_STATUS, dictType: DICT_TYPE.COMMON_STATUS,
dictClass: 'string', dictClass: 'string',
isForm: true, isForm: true,
isSearch: false, isSearch: false,
@ -98,7 +98,7 @@ export const Holiday = useCrudSchemas(reactive<CrudSchema[]>([
component: 'Switch', component: 'Switch',
value: '1', value: '1',
componentProps: { componentProps: {
inactiveValue: '2', inactiveValue: '0',
activeValue: '1' activeValue: '1'
} }
}, },

6
src/views/mes/hrPersonAbility/hrPersonAbility.data.ts

@ -123,10 +123,11 @@ export const HrPersonAbility = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '人员信息', // 查询弹窗标题 searchTitle: '人员信息', // 查询弹窗标题
searchAllSchemas: searchUser.allSchemas, // 查询弹窗所需类 searchAllSchemas: searchUser.allSchemas, // 查询弹窗所需类
searchField: 'username', // 查询弹窗赋值字段 searchField: 'username', // 查询弹窗赋值字段
searchListPlaceholder: '请选择 人员工号', // 输入框占位文本
searchPage: UserApi.getUserPage, // 查询弹窗所需分页方法 searchPage: UserApi.getUserPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [{
action: "==", action: '==',
column: 'userType', key: 'userType',
value: 'WORKER' value: 'WORKER'
}] }]
} }
@ -141,6 +142,7 @@ export const HrPersonAbility = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchTitle: '能力矩阵信息', // 查询弹窗标题 searchTitle: '能力矩阵信息', // 查询弹窗标题
searchListPlaceholder: '请选择 能力编号', // 输入框占位文本
searchAllSchemas: AbilityInfo.allSchemas, // 查询弹窗所需类 searchAllSchemas: AbilityInfo.allSchemas, // 查询弹窗所需类
searchField: 'ablityCode', // 查询弹窗赋值字段 searchField: 'ablityCode', // 查询弹窗赋值字段
searchPage: AbilityInfoApi.getAbilityInfoPage, // 查询弹窗所需分页方法 searchPage: AbilityInfoApi.getAbilityInfoPage, // 查询弹窗所需分页方法

4
src/views/mes/item/index.vue

@ -81,7 +81,11 @@ const tableColumns = ref(Item.allSchemas.tableColumns)
const searchTableSuccess = (formField, searchField, val, formRef) => { const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
//console.log("item-search-success-84-val",val)
//console.log("item-search-success-84-formField",formField)
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
setV["itemType"] = val[0]["groupCode"]
//setV[] = val[0][searchField]
formRef.setValues(setV) formRef.setValues(setV)
}) })
} }

57
src/views/mes/item/item.data.ts

@ -1,14 +1,15 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as QualitygroupApi from '@/api/mes/qualitygroup' import * as QualityclassApi from '@/api/mes/qualityclass'
import { Qualitygroup } from '../qualitygroup/qualitygroup.data' import { Qualityclass } from '@/views/mes/qualityclass/qualityclass.data'
// import * as QualitygroupApi from '@/api/mes/qualitygroup'
// import { Qualitygroup } from '@/views/mes/qualitygroup/qualitygroup.data'
// 表单校验 // 表单校验
export const ItemRules = reactive({ export const ItemRules = reactive({
concurrencyStamp: [required], itemCode: [{ required: true, message: '请输入项目编码', trigger: 'blur' }],
itemCode: [{ required: true, message: '请输入编码', trigger: 'blur' }], itemName: [{ required: true, message: '请输入项目名称', trigger: 'blur' }],
itemType: [required], qmsClass: [{ required: true, message: '请选择一个质检类别', trigger: 'blur' }],
dataType: [required] dataType:[{ required: true, message: '请选择一个数据类型!', trigger: 'blur' }],
}) })
export const Item = useCrudSchemas(reactive<CrudSchema[]>([ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
@ -111,19 +112,40 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
// {
// label: '分组编码',
// field: 'itemType',
// sort: 'custom',
// isSearch: true,
// // form: {
// // componentProps: {
// // isSearchList: true, // 开启查询弹窗
// // searchTitle: '质检分组', // 查询弹窗标题
// // searchListPlaceholder: '请选择质检分组', // 输入框占位文本
// // searchAllSchemas: Qualitygroup.allSchemas, // 查询弹窗所需类
// // searchField: 'code', // 查询弹窗赋值字段
// // searchPage: QualitygroupApi.getQualitygroupPage, // 查询弹窗所需分页方法
// // searchCondition: [{
// // key: 'status',
// // value: '1',
// // action: '=='
// // }]
// // }
// // }
// },
{ {
label: '类别编码', label: '质检科目编码',
field: 'itemType', field: 'qmsClass',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
componentProps: { componentProps: {
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchTitle: '质检科目信息', // 查询弹窗标题 searchTitle: '质检分组', // 查询弹窗标题
searchListPlaceholder: '请选择 类别编码', // 输入框占位文本 searchListPlaceholder: '请选择质检分组', // 输入框占位文本
searchAllSchemas: Qualitygroup.allSchemas, // 查询弹窗所需类 searchAllSchemas: Qualityclass.allSchemas, // 查询弹窗所需类
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
searchPage: QualitygroupApi.getQualitygroupPage, // 查询弹窗所需分页方法 searchPage: QualityclassApi.getQualityclassPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [{
key: 'status', key: 'status',
value: '1', value: '1',
@ -132,13 +154,6 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '质检科目编码',
field: 'qmsClass',
sort: 'custom',
isSearch: true,
},
{ {
label: '数据类型', label: '数据类型',
field: 'dataType', field: 'dataType',
@ -187,7 +202,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
isForm: true, isForm: true,
form: { form: {
component: 'Switch', component: 'Switch',
value: '2', value: '1',
componentProps: { componentProps: {
inactiveValue: '2', inactiveValue: '2',
activeValue: '1' activeValue: '1'

15
src/views/mes/ordermonthplan/mesOrderMonthMain.data.ts

@ -46,12 +46,13 @@ export const MesOrderMonthMain = useCrudSchemas(reactive<CrudSchema[]>([
searchAllSchemas: FactoryList.allSchemas, // 查询弹窗所需类 searchAllSchemas: FactoryList.allSchemas, // 查询弹窗所需类
searchPage: TenantApi.getTenantPage, // 查询弹窗所需分页方法 searchPage: TenantApi.getTenantPage, // 查询弹窗所需分页方法
isHideFilterButton: true, isHideFilterButton: true,
searchCondition: [{ // searchCondition: [{
key: 'available', // key: 'available',
value: 'TRUE', // value: 'TRUE',
isMainValue: false // action: '==',
} // // isMainValue: false
] // }
// ]
} }
} }
}, },
@ -79,7 +80,7 @@ export const MesOrderMonthMain = useCrudSchemas(reactive<CrudSchema[]>([
isTable: false isTable: false
}, },
{ {
label: '创建者用户名', label: '创建者ID',
field: 'creator', field: 'creator',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,

31
src/views/mes/qualityclass/qualityclass.data.ts

@ -1,11 +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'
import * as QualitygroupApi from '@/api/mes/qualitygroup'
import { Qualitygroup } from '@/views/mes/qualitygroup/qualitygroup.data'
// 表单校验 // 表单校验
export const QualityclassRules = reactive({ export const QualityclassRules = reactive({
concurrencyStamp: [required],
code: [{ required: true, message: '请输入代码', trigger: 'blur' }], code: [{ required: true, message: '请输入编码', trigger: 'blur' }],
name: [required], name: [{ required: true, message: '请输入名称', trigger: 'blur' }],
groupCode: [{ required: true, message: '请选择一个分组', trigger: 'blur' }],
}) })
export const Qualityclass = useCrudSchemas(reactive<CrudSchema[]>([ export const Qualityclass = useCrudSchemas(reactive<CrudSchema[]>([
@ -108,10 +110,27 @@ export const Qualityclass = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
}, },
{ {
label: '分组类别', label: '分组',
field: 'groupCode', field: 'groupCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择一个分组', // 输入框占位文本
multiple:false,
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '分组编码', // 查询弹窗标题
searchAllSchemas: Qualitygroup.allSchemas, // 查询弹窗所需类
searchPage: QualitygroupApi.getQualitygroupPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'status',
value: '1',
isMainValue: false
}]
}
}
}, },
{ {
label: '状态', label: '状态',
@ -124,7 +143,7 @@ export const Qualityclass = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true, isTable: true,
form: { form: {
component: 'Switch', component: 'Switch',
value: '2', value: '1',
componentProps: { componentProps: {
inactiveValue: '2', inactiveValue: '2',
activeValue: '1' activeValue: '1'

21
src/views/mes/qualitygroup/qualitygroup.data.ts

@ -3,9 +3,8 @@ import { dateFormatter } from '@/utils/formatTime'
// 表单校验 // 表单校验
export const QualitygroupRules = reactive({ export const QualitygroupRules = reactive({
concurrencyStamp: [required], code: [{ required: true, message: '请输入编码', trigger: 'blur' }],
code: [required], name: [{ required: true, message: '请输入名称', trigger: 'blur' }],
name: [required],
}) })
export const Qualitygroup = useCrudSchemas(reactive<CrudSchema[]>([ export const Qualitygroup = useCrudSchemas(reactive<CrudSchema[]>([
@ -102,17 +101,17 @@ export const Qualitygroup = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
}, },
{ {
label: '编码名称', label: '分组名称',
field: 'name', field: 'name',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ // {
label: '分组类别', // label: '分组类别',
field: 'groupCode', // field: 'groupCode',
sort: 'custom', // sort: 'custom',
isSearch: true, // isSearch: true,
}, // },
{ {
label: '状态', label: '状态',
field: 'status', field: 'status',
@ -124,7 +123,7 @@ export const Qualitygroup = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true, isTable: true,
form: { form: {
component: 'Switch', component: 'Switch',
value: '2', value: '1',
componentProps: { componentProps: {
inactiveValue: '2', inactiveValue: '2',
activeValue: '1' activeValue: '1'

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

@ -319,8 +319,8 @@ export const abilityPopList = useCrudSchemas(reactive<CrudSchema[]>([
searchAllSchemas: AbilityInfo.allSchemas, // 查询弹窗所需类 searchAllSchemas: AbilityInfo.allSchemas, // 查询弹窗所需类
searchPage: AbilityInfoApi.getAbilityInfoPage, // 查询弹窗所需分页方法 searchPage: AbilityInfoApi.getAbilityInfoPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [{
key: 'available', key: 'status',
value: 'TRUE', value: '1',
isMainValue: false isMainValue: false
}] }]
} }

4
src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts

@ -215,10 +215,10 @@ export const Saleprice = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验 //表单校验
export const SalepriceRules = reactive({ export const SalepriceRules = reactive({
customercode: [ customerCode: [
{ required: true, message: '请输入客户代码', trigger: 'blur' } { required: true, message: '请输入客户代码', trigger: 'blur' }
], ],
itemcode: [ itemCode: [
{ required: true, message: '请输入物料代码', trigger: 'blur' } { required: true, message: '请输入物料代码', trigger: 'blur' }
], ],
currency: [ currency: [

3
src/views/wms/basicDataManage/factoryModeling/location/location.data.ts

@ -396,6 +396,9 @@ export const LocationRules = reactive({
warehouseCode: [ warehouseCode: [
{ required: true, message: '请输入仓库代码', trigger: 'change' } { required: true, message: '请输入仓库代码', trigger: 'change' }
], ],
qadLocationCode: [
{ required: true, message: '请QAD库位代码', trigger: 'change' }
],
areaCode: [ areaCode: [
{ required: true, message: '请输入库区代码', trigger: 'change' } { required: true, message: '请输入库区代码', trigger: 'change' }
], ],

45
src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts

@ -29,8 +29,13 @@ const confgiDataOne = await confgiApi.queryByKey("WorkStation-IN")
// 表单校验 // 表单校验
export const CallmaterialsRules = reactive({ export const CallmaterialsRules = reactive({
itemCode: [required], itemCode: [required],
itemName: [required], packUnit: [required],
barcodeString: [required] qty: [required],
productionLineCode: [required],
callmaterialQtySum: [required],
warehouseCode: [required],
workshopCode: [required],
workStationCode: [required],
}) })
export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([
@ -72,7 +77,7 @@ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
isSearch:true, isSearch:true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择物料代码', // 输入框占位文本 searchListPlaceholder: '请选择包装规格', // 输入框占位文本
searchField: 'itemCode', // 查询弹窗赋值字段 searchField: 'itemCode', // 查询弹窗赋值字段
searchTitle: '物料包装信息', // 查询弹窗标题 searchTitle: '物料包装信息', // 查询弹窗标题
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类 searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
@ -90,6 +95,23 @@ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '叫料包装数量',
field: 'callmaterialQty',
sort: 'custom',
table: {
width: 120
},
form: {
component: 'InputNumber',
componentProps: {
disabled: true,
style: {width:'100%'},
min: 0,
precision: 6
}
}
},
{ {
label: '包装数量', label: '包装数量',
field: 'qty', field: 'qty',
@ -106,6 +128,23 @@ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '叫料总数量',
field: 'callmaterialQtySum',
sort: 'custom',
table: {
width: 120
},
form: {
component: 'InputNumber',
componentProps: {
disabled: true,
style: {width:'100%'},
min: 0,
precision: 6
}
}
},
{ {
label: '计量单位', // 发料申请 与当前物料计量单位做匹配 : 原PACK_UNIT 修改:UOM label: '计量单位', // 发料申请 与当前物料计量单位做匹配 : 原PACK_UNIT 修改:UOM
field: 'uom', field: 'uom',

7
src/views/wms/basicDataManage/labelManage/callmaterials/index.vue

@ -49,6 +49,12 @@
:apiCreate="CallmaterialsApi.createCallmaterials" :apiCreate="CallmaterialsApi.createCallmaterials"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
:isBusiness="false" :isBusiness="false"
:sumFormDataByForm ="(formRef,formModel)=>{
const {qty=0,callmaterialQty=0} = formModel
formRef.value.setValues({
callmaterialQtySum:qty*callmaterialQty,
})
}"
/> />
<!-- 详情 --> <!-- 详情 -->
@ -90,6 +96,7 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
} else if (formField == 'packUnit') { } else if (formField == 'packUnit') {
setV['uom'] = val[0]['uom'] setV['uom'] = val[0]['uom']
setV['packUnit'] = val[0]['packUnit'] setV['packUnit'] = val[0]['packUnit']
setV['callmaterialQty'] = val[0]['packQty']
}else { }else {
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
} }

6
src/views/wms/basicDataManage/labelManage/locationLabel/index.vue

@ -187,17 +187,17 @@ const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const src = ref(BASE_URL + '/jmreport/view/929174607016689664?token=' + getAccessToken()) const src = ref(BASE_URL + '/jmreport/view/929174607016689664?token=' + getAccessToken())
// //
const handlePoint = async (row) => { const handlePoint = async (row) => {
window.open(src.value+'&id='+row.id) window.open(src.value+'&relateNumber='+row.id)
} }
const srcPoint = ref(BASE_URL + '/jmreport/view/953469704945139712?token=' + getAccessToken()) // const srcPoint = ref(BASE_URL + '/jmreport/view/929174607016689664?token=' + getAccessToken())
const handleSelectionPoint = async ()=>{ const handleSelectionPoint = async ()=>{
let rows:any = [] let rows:any = []
selectionRows.value.forEach(item=>{ selectionRows.value.forEach(item=>{
rows = [...rows,...item.selectionRows.map(item1=>item1.id)] rows = [...rows,...item.selectionRows.map(item1=>item1.id)]
}) })
console.log('批量打印',rows.join(',')) console.log('批量打印',rows.join(','))
window.open(srcPoint.value+'&relateNumber='+rows.join(',')) window.open(src.value+'&relateNumber='+rows.join(','))
} }
// //

118
src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue

@ -16,7 +16,7 @@
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="代码" prop="strategyCode"> <el-form-item label="代码" prop="strategyCode">
<el-input <el-input key="strategyCode"
v-model="formData.strategyCode" v-model="formData.strategyCode"
placeholder="请输入代码" placeholder="请输入代码"
clearable clearable
@ -26,38 +26,38 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="名称" prop="name"> <el-form-item label="名称" prop="name">
<el-input v-model="formData.name" placeholder="请输入名称" clearable /> <el-input key="name" v-model="formData.name" placeholder="请输入名称" clearable />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="描述" prop="description"> <el-form-item label="描述" prop="description">
<el-input v-model="formData.description" placeholder="请输入描述" clearable /> <el-input key="description" v-model="formData.description" placeholder="请输入描述" clearable />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="优先级" prop="priority"> <el-form-item label="优先级" prop="priority">
<el-input-number v-model="formData.priority" :min="0" /> <el-input-number key="priority" v-model="formData.priority" :min="0" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="状态" prop="status"> <el-form-item label="状态" prop="status">
<el-switch v-model="formData.status" /> <el-switch key="status" v-model="formData.status" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<!-- 规则条件 --> <!-- 规则条件 -->
<div class="item mt-20px"> <div key="规则条件" class="item mt-20px">
<div class="title">规则条件</div> <div key="规则条件title" class="title">规则条件</div>
<el-row> <el-row key="规则条件row">
<el-col :span="24" v-for="(item, index) in formData.condition" :key="index"> <el-col :span="24" v-for="(item, index) in formData.condition" :key="'规则条件row'+index">
<!-- 供应商类型 --> <!-- 供应商类型 -->
<el-form-item <el-form-item key="供应商类型formItem"
v-if="item.ParamCode == 'SupplierType'" v-if="item.ParamCode == 'SupplierType'"
label="供应商类型" label="供应商类型"
class="flex-top err-120" class="flex-top err-120"
> >
<el-select <el-select key="供应商类型Operator"
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
@ -66,10 +66,10 @@
:label="cur.label" :label="cur.label"
:value="cur.value" :value="cur.value"
v-for="cur in options.supplierTypeRangeOptions" v-for="cur in options.supplierTypeRangeOptions"
:key="cur.value" :key="'供应商类型Operator'+cur.value"
/> />
</el-select> </el-select>
<el-select <el-select key="供应商类型Value"
v-model="item.Value" v-model="item.Value"
placeholder="请选择供应商类型" placeholder="请选择供应商类型"
style="flex: 1" style="flex: 1"
@ -78,19 +78,19 @@
> >
<el-option <el-option
v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)" v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)"
:key="dict.value" :key="'供应商类型Value'+dict.value"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 供应商 --> <!-- 供应商 -->
<el-form-item <el-form-item key="供应商formItem"
v-else-if="item.ParamCode == 'SupplierCode'" v-else-if="item.ParamCode == 'SupplierCode'"
label="供应商" label="供应商"
class="err-120" class="err-120"
> >
<el-select <el-select key="供应商Operator"
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
@ -99,10 +99,10 @@
:label="cur.label" :label="cur.label"
:value="cur.value" :value="cur.value"
v-for="cur in options.supplierRangeOptions" v-for="cur in options.supplierRangeOptions"
:key="cur.value" :key="'供应商Operator'+cur.value"
/> />
</el-select> </el-select>
<el-select <el-select key="供应商Value"
v-model="item.Value" v-model="item.Value"
placeholder="请选择供应商" placeholder="请选择供应商"
style="flex: 1" style="flex: 1"
@ -112,19 +112,19 @@
> >
<el-option <el-option
v-for="cur in options.supplierList" v-for="cur in options.supplierList"
:key="cur.code" :key="'供应商Value'+cur.code"
:label="cur.name" :label="cur.name"
:value="cur.code" :value="cur.code"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 星期几 --> <!-- 星期几 -->
<el-form-item <el-form-item key="星期几formItem"
v-else-if="item.ParamCode == 'Weekday'" v-else-if="item.ParamCode == 'Weekday'"
label="星期几" label="星期几"
class="flex-top err-120" class="flex-top err-120"
> >
<el-select <el-select key="星期几Operator"
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
@ -133,7 +133,7 @@
:label="cur.label" :label="cur.label"
:value="cur.value" :value="cur.value"
v-for="cur in options.weekRangeOptions" v-for="cur in options.weekRangeOptions"
:key="cur.value" :key="'星期几Operator'+cur.value"
/> />
</el-select> </el-select>
<div class="checkbox"> <div class="checkbox">
@ -141,7 +141,7 @@
<el-checkbox <el-checkbox
:label="cur.label" :label="cur.label"
v-for="cur in options.weekOptions" v-for="cur in options.weekOptions"
:key="cur.value" :key="'星期几Value'+cur.value"
/> />
</el-checkbox-group> </el-checkbox-group>
</div> </div>
@ -150,14 +150,14 @@
</el-row> </el-row>
</div> </div>
<!-- 规则配置 --> <!-- 规则配置 -->
<div class="item mt-20px"> <div class="item mt-20px" key="规则配置">
<div class="title">规则配置</div> <div class="title" key="规则配置title">规则配置</div>
<el-row> <el-row key="规则配置Row">
<!-- 开始时间 --> <!-- 开始时间 -->
<el-col :span="24"> <el-col :span="24" key="规则配置Col">
<!-- 开始时间 --> <!-- 开始时间 -->
<el-form-item label="开始时间" prop="BeginTime"> <el-form-item key="开始时间formItem" label="开始时间" prop="BeginTime">
<el-time-select <el-time-select key="开始时间time"
v-model="formData.configuration.BeginTime" v-model="formData.configuration.BeginTime"
start="00:00" start="00:00"
end="23:59" end="23:59"
@ -167,8 +167,8 @@
/> />
</el-form-item> </el-form-item>
<!-- 结束时间 --> <!-- 结束时间 -->
<el-form-item label="结束时间" prop="EndTime"> <el-form-item key="结束时间formItem" label="结束时间" prop="EndTime">
<el-time-select <el-time-select key="结束时间time"
v-model="formData.configuration.EndTime" v-model="formData.configuration.EndTime"
start="00:00" start="00:00"
end="23:59" end="23:59"
@ -178,8 +178,8 @@
/> />
</el-form-item> </el-form-item>
<!-- 仓库 --> <!-- 仓库 -->
<el-form-item label="仓库" prop="WarehouseCode"> <el-form-item key="仓库formItem" label="仓库" prop="WarehouseCode">
<el-select <el-select key="仓库"
v-model="formData.configuration.WarehouseCode" v-model="formData.configuration.WarehouseCode"
:placeholder="`请选择${ :placeholder="`请选择${
formData.configuration.WarehouseCode == 'WarehouseCode' formData.configuration.WarehouseCode == 'WarehouseCode'
@ -196,49 +196,51 @@
> >
<el-option <el-option
v-for="cur in options.warehouseList" v-for="cur in options.warehouseList"
:key="cur.code" :key="'仓库'+cur.code"
:label="cur.code" :label="cur.code"
:value="cur.code" :value="cur.code"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 月台 --> <!-- 月台 -->
<el-form-item label="月台" prop="DockCode"> <el-form-item key="月台formItem" label="月台" prop="DockCode">
<el-select <el-select key="月台"
v-model="formData.configuration.DockCode" v-model="formData.configuration.DockCode"
placeholder="请选择月台" placeholder="请选择月台"
clearable clearable
> >
<el-option <el-option
v-for="cur in options.dockList" v-for="cur in options.dockList"
:key="cur.code" :key="'月台'+cur.code"
:label="cur.code" :label="cur.code"
:value="cur.code" :value="cur.code"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 在途库位 --> <!-- 在途库位 -->
<el-form-item label="在途库位" prop="OnTheWayLocationCode"> <el-form-item key="在途库位formItem" label="在途库位" prop="OnTheWayLocationCode">
<el-select <el-select key="在途库位"
v-model="formData.configuration.OnTheWayLocationCode" v-model="formData.configuration.OnTheWayLocationCode"
placeholder="请选择在途库位" placeholder="请选择在途库位"
clearable clearable
filterable
:filter-method="filterMethodFromLocation"
> >
<el-option <el-option
v-for="cur in options.locationList" v-for="cur in options.locationList"
:key="cur.code" :key="'在途库位'+cur.code"
:label="cur.code" :label="cur.code"
:value="cur.code" :value="cur.code"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 收货人 --> <!-- 收货人 -->
<el-form-item label="收货人" prop="Receiver"> <el-form-item key="收货人formItem" label="收货人" prop="Receiver">
<el-input v-model="formData.configuration.Receiver" placeholder="请输入收货人名称" clearable /> <el-input key="收货人" v-model="formData.configuration.Receiver" placeholder="请输入收货人名称" clearable />
</el-form-item> </el-form-item>
<!-- 在途库位 --> <!-- 在途库位 -->
<el-form-item label="联系电话" prop="configuration.PhoneNumber"> <el-form-item key="联系电话formItem" label="联系电话" prop="configuration.PhoneNumber">
<el-input v-model="formData.configuration.PhoneNumber" placeholder="请输入联系电话" clearable /> <el-input key="联系电话" v-model="formData.configuration.PhoneNumber" placeholder="请输入联系电话" clearable />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -363,7 +365,8 @@ const options = reactive({
// //
dockList: [], dockList: [],
// //
locationList: [] locationList: [],
originLocationList: []
}) })
// //
const Butttondata = ref([ const Butttondata = ref([
@ -407,15 +410,35 @@ const getFormWarehouseList = async () => {
const getFormDockList = async () => { const getFormDockList = async () => {
options.dockList = await getDockList() options.dockList = await getDockList()
} }
const filterMethodFromLocation = (query: string) => {
if (query) {
options.locationList = options.originLocationList.filter((item) => {
return item?.code.includes(query)
})
} else {
options.locationList = [...options.originLocationList]
}
}
// //
const getFormLocationList = async () => { const getFormLocationList = async () => {
options.locationList = await getLocationList({ type: 'TRANSPORT' }) if(!options.locationList || options.locationList.length==0){
options.originLocationList = await getLocationList({ type: 'TRANSPORT' })
options.locationList = [...options.originLocationList]
}else{
options.locationList = []
let timer = setTimeout(()=>{
options.locationList = [...options.originLocationList]
if(timer){
clearTimeout(timer)
}
},2000)
}
} }
getFormSupplierList() getFormSupplierList()
getFormWarehouseList() getFormWarehouseList()
getFormDockList() getFormDockList()
getFormLocationList()
/** 打开弹窗 */ /** 打开弹窗 */
const open = async (type: string, strategyCode: string, id?: number) => { const open = async (type: string, strategyCode: string, id?: number) => {
@ -469,6 +492,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ]
} }
getFormLocationList()
} }
defineExpose({ open }) // open defineExpose({ open }) // open

18
src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue

@ -628,7 +628,7 @@ const options = reactive({
], ],
// //
supplierList: [], supplierList: [],
orignSupplierList: [], originSupplierList: [],
// //
itemTypeOptions: [ itemTypeOptions: [
{ value: 'ItemType', label: '物料类型' }, { value: 'ItemType', label: '物料类型' },
@ -673,21 +673,23 @@ const buttonBaseClick = (val, item) => {
} }
// //
const getFormSupplierList = async () => { const getFormSupplierList = async () => {
options.orignSupplierList = await getSupplierList()
options.supplierList = [...options.orignSupplierList] options.originSupplierList = await getSupplierList()
options.supplierList = [...options.originSupplierList]
} }
// //
const getFormCustomerList = async () => { const getFormCustomerList = async () => {
options.supplierList = await getCustomerList()
options.supplierList = [...options.orignSupplierList] options.originSupplierList = await getCustomerList()
options.supplierList = [...options.originSupplierList]
} }
const filterMethod = (query: string) => { const filterMethod = (query: string) => {
if (query) { if (query) {
options.supplierList = options.orignSupplierList.filter((item) => { options.supplierList = options.originSupplierList.filter((item) => {
return item.name.includes(query) return item.name.includes(query)
}) })
} else { } else {
options.supplierList = [...options.orignSupplierList] options.supplierList = [...options.originSupplierList]
} }
} }
@ -744,7 +746,7 @@ const filterMethodWarehouseList = (query: string) => {
return item.code.includes(query) return item.code.includes(query)
}) })
} else { } else {
options.warehouseList = [] options.warehouseList = options.originWarehouseList
} }
} }
// /// // ///

5
src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts

@ -9,13 +9,10 @@ import { QadProject } from '../qadProject/qadProject.data'
export const SubjectAccountRules = reactive({ export const SubjectAccountRules = reactive({
code: [required], code: [required],
usageDescription: [required], usageDescription: [required],
costecentreId: [required],
costecentreCode: [required], costecentreCode: [required],
costecentreType: [required],
projectId: [required], projectId: [required],
projectCode: [required], projectCode: [required],
available: [required], available: [required],
concurrencyStamp: [required],
}) })
export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([
@ -61,7 +58,7 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择物料代码', // 输入框占位文本 searchListPlaceholder: '请选择物料代码', // 输入框占位文本
searchField: 'costcentreCode', // 查询弹窗赋值字段 searchField: 'costcentreCode', // 查询弹窗赋值字段
searchTitle: '物料基础信息', // 查询弹窗标题 searchTitle: '成本中心信息', // 查询弹窗标题
searchAllSchemas: QadCostcentre.allSchemas, // 查询弹窗所需类 searchAllSchemas: QadCostcentre.allSchemas, // 查询弹窗所需类
searchPage: QadCostcentreApi.getQadCostcentrePage, // 查询弹窗所需分页方法 searchPage: QadCostcentreApi.getQadCostcentrePage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [{

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

@ -5,7 +5,9 @@ import { dateFormatter, formatDate } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain' import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain'
import { DeliverRecordMain } from '../../deliver/deliverRecordMain/deliverRecordMain.data' import * as DeliverRecordDetailApi from '@/api/wms/deliverRecordDetail'
import { DeliverRecordMain,DeliverRecordDetail } from '../../deliver/deliverRecordMain/deliverRecordMain.data'
import * as CustomerApi from '@/api/wms/customer' import * as CustomerApi from '@/api/wms/customer'
import { Customer } from '../../../basicDataManage/customerManage/customer/customer.data' import { Customer } from '../../../basicDataManage/customerManage/customer/customer.data'
@ -23,6 +25,8 @@ import { Itempackaging } from '@/views/wms/basicDataManage/itemManage/itempackag
import * as ItemPackageApi from '@/api/wms/itempackage/index' import * as ItemPackageApi from '@/api/wms/itempackage/index'
import * as CustomerreturnRequestApi from '@/api/wms/customerreturnRequestMain' import * as CustomerreturnRequestApi from '@/api/wms/customerreturnRequestMain'
import * as LocationApi from '@/api/wms/location'
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
const dateTime = new Date().getTime() const dateTime = new Date().getTime()
@ -48,6 +52,7 @@ const userDeptArray:any = [userDept]
/** /**
* @returns {Array} 退 * @returns {Array} 退
*/ */
export const CustomerreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ export const CustomerreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '单据号', label: '单据号',
@ -87,8 +92,10 @@ export const CustomerreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
searchListPlaceholder: '请选择发货记录单号', // 输入框占位文本 searchListPlaceholder: '请选择发货记录单号', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段 searchField: 'number', // 查询弹窗赋值字段
searchTitle: '发货记录信息', // 查询弹窗标题 searchTitle: '发货记录信息', // 查询弹窗标题
isConcatDetailSchemas:true, // 是否主子表合并
searchAllSchemas: DeliverRecordMain.allSchemas, // 查询弹窗所需类 searchAllSchemas: DeliverRecordMain.allSchemas, // 查询弹窗所需类
searchPage: DeliverRecordMainApi.getDeliverRecordMainPage, // 查询弹窗所需分页方法 searchDetailSchemas: DeliverRecordDetail.allSchemas, // 查询弹窗所需类
searchPage: DeliverRecordDetailApi.getDeliverRecordDetailPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
@ -893,14 +900,20 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
isSearch: true,
tableForm:{ tableForm:{
disabled: true isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择到库位代码',
searchField: 'toLocationCode',
searchTitle: '到库位代码',
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.selectBusinessTypeOutLocation, // 查询弹窗所需分页方法
searchCondition: [{
key: 'businessType',
value: 'CustomerReject',
isMainValue: false
}]
}, },
form: {
componentProps: {
disabled: true
}
}
}, },
{ {
label: '库存状态', label: '库存状态',
@ -1062,6 +1075,9 @@ export const CustomerreturnRequestDetailRules = reactive({
itemCode: [ itemCode: [
{ required: true, message: '请选择物料代码', trigger: 'change' } { required: true, message: '请选择物料代码', trigger: 'change' }
], ],
toLocationCode: [
{ required: true, message: '请选择到库位代码', trigger: 'blur' }
],
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],

49
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

@ -292,6 +292,17 @@ const butttondata = (row,$index) => {
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:customerreturn-request-main:agree'}), // defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:customerreturn-request-main:agree'}), //
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:customerreturn-request-main:handle'}), // defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:customerreturn-request-main:handle'}), //
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:customerreturn-request-main:update'}), // defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:customerreturn-request-main:update'}), //
{
label: '生成标签',
name: 'ssbq',
hide: isShowMainButton(row, ['3']),
type: 'primary',
icon: '',
color: '',
hasPermi: '',
link: true //
},
defaultButtons.mainListPointBtn({ hide: isShowMainButton(row, ['3','6']) }), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:customerreturn-request-main:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:customerreturn-request-main:delete'}), //
] ]
} }
@ -406,27 +417,33 @@ const submitFormLabel = async (formType, data) => {
} }
} }
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) const labelType = ref('') //
// //
const showLabelRef = ref() const showLabelRef = ref()
const labelPrint = async (row) => { const labelPrint = async (row) => {
tableObject.loading = true console.log(row.packingNumber,445555555555555);
const defaultParams = {'moduleName':'supplier','recordNumber':row.number} PackageApi.getBalanceToPackage(row.packingNumber).then(res => {
const {tableObject:tableObjectPrint ,tableMethods} = useTable({ console.log(777,res);
defaultParams, if (res.productionLineCode != null) {
getListApi: PackageApi.getLabelDetailPage // labelType.value = 'zz'
} else {
labelType.value = 'cg'
}
PackageApi.batchPrintingLable((res.number)).then((resLable) =>{
console.log(159,resLable )
//
if (labelType.value == 'cg') {
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
console.log(159,resLable )
window.open(src.value+'&asn_number='+resLable)
} else {
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
window.open(src.value+'&asn_number='+resLable)
}
}) })
}).catch(err => {
// console.log(err)
const { getList:getListPrint } = tableMethods
getListPrint()
tableObject.loading = false
const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns
tableColumns.forEach((item) => {
item.width = item.table?.width || 150
}) })
showLabelRef.value.openData("标签信息",tableObjectPrint,{tableColumns},true)
} }
/** 添加/修改操作 */ /** 添加/修改操作 */

58
src/views/wms/inventoryManage/balance/index.vue

@ -16,7 +16,8 @@
<!-- 列表 --> <!-- 列表 -->
<ContentWrap> <ContentWrap>
<Table v-clientTable <Table ref="tableRef" v-clientTable
:selection="true"
:columns="tableColumns" :columns="tableColumns"
:data="tableObject.tableList" :data="tableObject.tableList"
:loading="tableObject.loading" :loading="tableObject.loading"
@ -26,6 +27,7 @@
v-model:pageSize="tableObject.pageSize" v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
@getSelectionRows="getSelectionRows"
> >
<template #itemCode="{row}"> <template #itemCode="{row}">
<el-button type="primary" link @click="openDetail(row, '物料代码', row.itemCode)"> <el-button type="primary" link @click="openDetail(row, '物料代码', row.itemCode)">
@ -96,6 +98,7 @@ const HeadButttondata = [
// defaultButtons.defaultAddBtn({hasPermi:'wms:balance:create'}), // // defaultButtons.defaultAddBtn({hasPermi:'wms:balance:create'}), //
// defaultButtons.defaultImportBtn({hasPermi:'wms:balance:import'}), // // defaultButtons.defaultImportBtn({hasPermi:'wms:balance:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:balance:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:balance:export'}), //
defaultButtons.mainLisSelectiontPointBtn(null), //
defaultButtons.defaultFreshBtn(null),// defaultButtons.defaultFreshBtn(null),//
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -126,11 +129,64 @@ const buttonBaseClick = (val, item) => {
getList() getList()
} }
} else if (val == 'filtrate') { // } else if (val == 'filtrate') { //
} else if (val=='selection_point'){//
handleSelectionPoint()
} else { // } else { //
console.log('其他按钮', item) console.log('其他按钮', item)
} }
} }
watch(
() => tableObject.tableList,
() => {
const currentRows = selectionRows.value.find(item=>item.currentPage==tableObject.currentPage)
if(currentRows){
nextTick(() => {
currentRows.selectionRows.forEach(item=>{
tableRef.value.toggleRowSelection(item,true)
})
})
}
}
)
const selectionRows = ref<any>([])
const tableRef = ref()
const getSelectionRows = (currentPage,currentPageSelectionRows) => {
console.log("getSelectionRows",currentPage,currentPageSelectionRows)
const currentRows = selectionRows.value.find(item=>item.currentPage==currentPage)
if(currentRows){
currentRows.selectionRows = currentPageSelectionRows
}else{
selectionRows.value.push({
currentPage,
selectionRows:currentPageSelectionRows
})
}
}
const handleSelectionPoint = async ()=>{
let rows:any = []
selectionRows.value.forEach(item=>{
rows = [...rows,...item.selectionRows.map(item1=>item1.packingNumber)]
})
console.log('批量打印',rows.join(','))
PackageApi.getBalanceToPackageSelection(rows).then(res => {
console.log('res',res);
if(res.zzLabel){
//
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
window.open(src.value+'&asn_number='+res.zzLabel)
}
if (res.cgLabel) {
//
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
window.open(src.value+'&asn_number='+res.cgLabel)
}
}).catch(err => {
console.log(err)
})
// window.open(srcPoint.value+'&relateNumber='+rows.join(','))
}
// - // -
const butttondata = [ const butttondata = [
// { // {

35
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts

@ -5,6 +5,9 @@ import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
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'
import * as SubjectAccountApi from '@/api/wms/subjectAccount'
import { SubjectAccount } from '@/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
@ -59,6 +62,35 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '领用代码',
field: 'usageCode',
sort: 'custom',
table: {
width: 150
},
isForm: false,
isTable:false,
},
{
label: '领用描述',
field: 'usageDescription',
sort: 'custom',
table: {
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请科目账户信息',
searchField: 'usageDescription',
searchTitle: '科目账户信息',
searchAllSchemas: SubjectAccount.allSchemas,
searchPage: SubjectAccountApi.getSubjectAccountPage
}
}
},
{ {
label: '原因', label: '原因',
field: 'reason', field: 'reason',
@ -490,6 +522,9 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
label: '器具号', label: '器具号',
field: 'containerNumber', field: 'containerNumber',
sort: 'custom', sort: 'custom',
isTable:false,
isDetail:false,
isTableForm:false,
table: { table: {
width: 150 width: 150
}, },

7
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -111,6 +111,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
// //
if (formField == 'itemCode') { if (formField == 'itemCode') {
row['itemCode'] = val[0]['componentItemCode'] row['itemCode'] = val[0]['componentItemCode']
row['uom'] = val[0]['componentUom']
} else { } else {
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
row['toLocationCode'] = val[0]['rawLocationCode'] row['toLocationCode'] = val[0]['rawLocationCode']
@ -151,9 +152,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
if(item.field == 'planQty') { if(item.field == 'planQty') {
item.tableForm.disabled = true item.tableForm.disabled = true
} }
if(item.field == 'uom') {
item.tableForm.disabled = true
}
if(item.field == 'available') { if(item.field == 'available') {
item.tableForm.disabled = true item.tableForm.disabled = true
} }
@ -498,9 +496,6 @@ const resetShow = async () => {
if(item.field == 'planQty') { if(item.field == 'planQty') {
item.tableForm.disabled = false item.tableForm.disabled = false
} }
if(item.field == 'uom') {
item.tableForm.disabled = false
}
if(item.field == 'available') { if(item.field == 'available') {
item.tableForm.disabled = false item.tableForm.disabled = false
} }

9
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts

@ -580,11 +580,18 @@ export const PreparetoissueDetail = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
disabled: true
}
},
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm:{
type: 'Select' type: 'Select',
disabled: true
}, },
}, },
{ {

26
src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/inventorychangeRecordMain.data.ts

@ -613,6 +613,32 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
}, },
{
label: '是否冻结',
field: 'frozen',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
table: {
width: 120
},
tableForm: {
type: 'Switch',
default: 'FALSE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
form: {
component: 'Switch',
value: 'FALSE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',

8
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue

@ -94,7 +94,6 @@ const route = useRoute() // 路由信息
const routeName = ref() const routeName = ref()
routeName.value = route.name routeName.value = route.name
const tableColumns = ref([...InventorychangeRequestMain.allSchemas.tableColumns,...InventorychangeRequestDetail.allSchemas.tableMainColumns]) const tableColumns = ref([...InventorychangeRequestMain.allSchemas.tableColumns,...InventorychangeRequestDetail.allSchemas.tableMainColumns])
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: InventorychangeRequestDetailApi.getInventorychangeRequestDetailPage // getListApi: InventorychangeRequestDetailApi.getInventorychangeRequestDetailPage //
}) })
@ -110,6 +109,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
nextTick(() => { nextTick(() => {
if (type == 'tableForm') { if (type == 'tableForm') {
// //
if(formField=='toOwnerCode'){
//
row['toOwnerCode'] = val[0]['code']
}else{
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
row['fromPackingNumber'] = val[0]['packingNumber'] row['fromPackingNumber'] = val[0]['packingNumber']
row['toPackingNumber'] = val[0]['packingNumber'] row['toPackingNumber'] = val[0]['packingNumber']
@ -122,7 +125,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['fromQty'] = val[0]['qty'] row['fromQty'] = val[0]['qty']
row['toQty'] = val[0]['qty'] row['toQty'] = val[0]['qty']
row['fromOwnerCode'] = val[0]['ownerCode'] row['fromOwnerCode'] = val[0]['ownerCode']
row['toOwnerCode'] = val[0]['ownerCode']
row['fromAltBatch'] = val[0]['altBatch'] row['fromAltBatch'] = val[0]['altBatch']
row['toAltBatch'] = val[0]['altBatch'] row['toAltBatch'] = val[0]['altBatch']
row['fromArriveDate'] = val[0]['arriveDate'] row['fromArriveDate'] = val[0]['arriveDate']
@ -134,6 +136,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['itemCode'] = val[0]['itemCode'] row['itemCode'] = val[0]['itemCode']
row['locationCode'] = val[0]['locationCode'] row['locationCode'] = val[0]['locationCode']
row['uom'] = val[0]['uom'] row['uom'] = val[0]['uom']
}
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]

48
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts

@ -4,7 +4,7 @@ import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
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'
import * as getBusinessTypeApi from '@/api/wms/businesstype/index'
import * as OwnerApi from '@/api/wms/owner' import * as OwnerApi from '@/api/wms/owner'
import { Owner } from '@/views/wms/basicDataManage/orderManage/owner/owner.data' import { Owner } from '@/views/wms/basicDataManage/orderManage/owner/owner.data'
@ -15,10 +15,16 @@ const queryParams = {
pageSize:10, pageSize:10,
pageNo:1, pageNo:1,
code:'InventoryChangeRequest' code:'InventoryChangeRequest'
}
const businessTypeQueryParams = {
pageSize:10,
pageNo:1,
code:'Change'
} }
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsettingData =data?.list[0]||{} const requestsettingData =data?.list[0]||{}
const businessTypeValue = await getBusinessTypeApi.getBusinesstypePage(businessTypeQueryParams)
const businessTypeData =businessTypeValue?.list[0]||{}
// 获取当前操作人的部门 // 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
@ -374,7 +380,11 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
searchField: 'packingNumber', searchField: 'packingNumber',
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePage searchPage: BalanceApi.getBalancePageByBusinessTypeByItemType,
searchCondition: [{
key: 'businessType',
value: businessTypeData.code,
}]
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
@ -384,7 +394,11 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
searchField: 'packingNumber', searchField: 'packingNumber',
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePage searchPage: BalanceApi.getBalancePageByBusinessTypeByItemType,
searchCondition: [{
key: 'businessType',
value: businessTypeData.code,
}]
} }
} }
}, },
@ -839,6 +853,32 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{
label: '是否冻结',
field: 'frozen',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
table: {
width: 120
},
tableForm: {
type: 'Switch',
default: 'FALSE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
form: {
component: 'Switch',
value: 'FALSE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{ {
label: '项目代码', label: '项目代码',
field: 'projectCode', field: 'projectCode',

96
src/views/wms/purchasereceiptManage/putaway/putawayJobMain/putawayJobMain.data.ts

@ -289,33 +289,33 @@ export const PutawayJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTable: false, isTable: false,
}, },
{ // {
label: '到仓库代码', // label: '到仓库代码',
field: 'toWarehouseCode', // field: 'toWarehouseCode',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
isTable: false, // isTable: false,
}, // },
{ // {
label: '从库区代码范围', // label: '从库区代码范围',
field: 'fromAreaCodes', // field: 'fromAreaCodes',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
isTable: false, // isTable: false,
}, // },
{ // {
label: '到库区代码范围', // label: '到库区代码范围',
field: 'toAreaCodes', // field: 'toAreaCodes',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
isTable: false, // isTable: false,
}, // },
{ {
label: '自动完成', label: '自动完成',
field: 'autoComplete', field: 'autoComplete',
@ -506,15 +506,15 @@ export const PutawayJobMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ // {
label: '物料号', // label: '物料号',
field: 'code', // field: 'code',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
isTable: false, // isTable: false,
}, // },
{ {
label: '来源库位', label: '来源库位',
field: 'fromLocationCode', field: 'fromLocationCode',
@ -542,18 +542,18 @@ export const PutawayJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTable: false, isTable: false,
}, },
{ // {
label: '单位', // label: '单位',
field: 'unit', // field: 'unit',
sort: 'custom', // sort: 'custom',
dictType: DICT_TYPE.PACK_UNIT, // dictType: DICT_TYPE.PACK_UNIT,
dictClass: 'string', // dictClass: 'string',
isSearch: false, // isSearch: false,
table: { // table: {
width: 150 // width: 150
}, // },
isTable: false, // isTable: false,
}, // },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

12
src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/putawayRecordMain.data.ts

@ -16,18 +16,6 @@ export const PutawayRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
sortSearchDefault:1, sortSearchDefault:1,
isSearch: true isSearch: true
}, },
{
label: '状态',
field: 'status',
dictType: DICT_TYPE.JOB_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
sortTableDefault:1,
},
{ {
label: '申请单号', label: '申请单号',
field: 'requestNumber', field: 'requestNumber',

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

@ -9,6 +9,7 @@ import { validateHanset, validateEmail } from '@/utils/validator'
import { Itempackaging } from '@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data' import { Itempackaging } from '@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data'
import * as ItemPackageApi from '@/api/wms/itempackage/index' import * as ItemPackageApi from '@/api/wms/itempackage/index'
import {validateInteger} from '@/utils/validator'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
@ -1101,7 +1102,8 @@ export const SupplierdeliverRequestDetailRules = reactive({
{ required: true, message: '请输入生产日期', trigger: 'blur' } { required: true, message: '请输入生产日期', trigger: 'blur' }
], ],
packQty: [ packQty: [
{ required: true, message: '请输入包装数量', trigger: 'blur' } { required: true, message: '请输入包装数量', trigger: 'blur' },
{ validator: validateInteger, message: '请输入正确的整数', trigger: 'blur' }
], ],
poNumber: [ poNumber: [
{ required: true, message: '请选择订单号', trigger: 'change' } { required: true, message: '请选择订单号', trigger: 'change' }
@ -1121,6 +1123,8 @@ export const SupplierdeliverRequestDetailRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
secondPackQty:[required,{ validator:validateInteger, message: '请输入正确的整数', trigger: 'blur'}]
}) })
export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSchema[]>([ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSchema[]>([
@ -1520,11 +1524,10 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch
}, },
form: { form: {
componentProps: { componentProps: {
disabled: true
} }
}, },
tableForm: { tableForm: {
disabled: true, // disabled: true,
} }
}, },
{ {
@ -1590,11 +1593,10 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch
}, },
form: { form: {
componentProps: { componentProps: {
disabled:true
} }
}, },
tableForm: { tableForm: {
disabled: true, // disabled: true,
} }
}, },
{ {

47
src/views/wms/supplierManage/supplierinvoiceInvoiced/supplierinvoiceInvoiced.data.ts

@ -68,57 +68,60 @@ export const SupplierinvoiceInvoiced = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '状态', label: '供应商代码',
field: 'status', field: 'supplierCode',
dictType: DICT_TYPE.SUPPLIERINVOICE_STATUS,
dictClass: 'string',
isTable: true,
isForm:false,
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 150 width: 150
}, },
isSearch: true,
form: {
value: '1',
componentProps: {
disabled: true
}
}
}, },
{ {
label: '物流单据号', label: '订单号',
field: 'recvBillNum', field: 'poNumber',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '发货单号', label: '物流单据号',
field: 'asnBillNum', field: 'recvBillNum',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '供应商代码', label: '发货单号',
field: 'supplierCode', field: 'asnBillNum',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '订单号', label: '状态',
field: 'poNumber', field: 'status',
dictType: DICT_TYPE.SUPPLIERINVOICE_STATUS,
dictClass: 'string',
isTable: true,
isForm:false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isSearch: true,
form: {
value: '1',
componentProps: {
disabled: true
}
}
}, },
{ {
label: '订单行', label: '订单行',
field: 'poLine', field: 'poLine',

Loading…
Cancel
Save