Browse Source

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

hella_online_20240829
chenfang 4 months ago
parent
commit
6a1d15f340
  1. 4
      README.md
  2. 26
      src/components/ChangeRecord/src/ChangeRecord.vue
  3. 2
      src/views/qms/counter/index.vue
  4. 16
      src/views/qms/inspectionJob/addForm.vue
  5. 33
      src/views/qms/inspectionJob/inspectionJobMain.data.ts
  6. 28
      src/views/qms/inspectionRecord/inspectionRecordMain.data.ts
  7. 174
      src/views/qms/inspectionRequest/inspectionRequestMain.data.ts
  8. 4
      src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts
  9. 20
      src/views/wms/basicDataManage/subject/mstr/mstr.data.ts
  10. 6
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts
  11. 22
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts
  12. 109
      src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts
  13. 66
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts
  14. 135
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts
  15. 4
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue
  16. 5
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  17. 43
      src/views/wms/issueManage/repleinsh/repleinshRecordMain/repleinshRecordMain.data.ts
  18. 44
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts
  19. 48
      src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts
  20. 20
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptReport/index.vue
  21. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
  22. 73
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue

4
README.md

@ -48,7 +48,9 @@ form: {
isMainValue: false // 表示查询条件不是主表的字段的值 isMainValue: false // 表示查询条件不是主表的字段的值
} }
], ],
isRepeat: true,//是否可以重复添加该条数据 verificationPage: ItembasicApi.getItemListByCodes, // tableForm下方输入框校验失去焦点之后是否正确的方法
isShowTableFormSearch: true, //tableForm下方是否出现输入框
isRepeat: true,//tableForm下方输入框是否可以重复添加该条数据
// 失去焦点校验参数 // 失去焦点校验参数
verificationParams: [{ verificationParams: [{
key: 'code', key: 'code',

26
src/components/ChangeRecord/src/ChangeRecord.vue

@ -10,7 +10,7 @@
<template #icon> <template #icon>
<slot> <slot>
<Icon color="#9e9e9e" <Icon color="#9e9e9e"
:icon="item.type == 1 ? 'ep:document-add' : item.type == 2 ? 'ep:edit' : item.type == 3 ? 'ep:delete' : item.type == 4 ? 'fa:edit' : item.type == 5 ? 'ep:upload' : item.type == 6 ? 'ep:document-delete' : item.type == 7 ? 'ep:chat-line-square' : item.type == 8 ? 'ep:delete' : ''" :icon="item.type == 1 ? 'ep:document-add' : item.type == 2 ? 'ep:edit' : item.type == 3 ? 'ep:delete' : item.type == 4 ? 'fa:edit' : item.type == 5 ? 'ep:upload' : item.type == 6 ? 'ep:document-delete' : item.type == 7 ? 'ep:chat-line-square' : item.type == 8 ? 'ep:delete' : 'ep:edit'"
class="cursor-pointer" size="20" /> class="cursor-pointer" size="20" />
</slot> </slot>
</template> </template>
@ -21,31 +21,11 @@
</template> </template>
<template #description> <template #description>
<slot> <slot>
<div class="dic color-#303133" v-if="item.type == 1"> <div class="dic color-#303133">
{{ item.nickname }} {{ item.content }}
</div>
<div class="dic color-#303133" v-else-if="item.type == 2">
{{ item.nickname }} {{ item.content }}
</div>
<div class="dic color-#303133" v-else-if="item.type == 3">
{{ item.nickname }} {{ item.content }}
</div>
<div class="dic color-#303133" v-else-if="item.type == 4">
{{ item.nickname }} {{ item.content }}
</div>
<div class="dic color-#303133" v-else-if="item.type == 5">
{{ item.nickname }} {{ item.content }}
</div>
<div class="dic color-#303133" v-else-if="item.type == 6">
{{ item.nickname }} {{ item.content }}
</div>
<div class="dic color-#303133" v-else-if="item.type == 7">
{{ item.nickname }} {{ item.content }}
</div>
<div class="dic color-#303133" v-else-if="item.type == 8">
{{ item.nickname }} {{ item.content }} {{ item.nickname }} {{ item.content }}
</div> </div>
<!-- <div class="tips" v-if="item.type == 2"> <!-- <div class="tips" v-if="item.type == 2">
<span class="color-#f56c6c" style="text-decoration:line-through">原值</span>><span <span class="color-#f56c6c" style="text-decoration:line-through">原值</span>><span
class="color-#67c23a">新值</span> class="color-#67c23a">新值</span>

2
src/views/qms/counter/index.vue

@ -101,7 +101,7 @@ const { getList, setSearchParams } = tableMethods
const HeadButttondata = [ const HeadButttondata = [
// defaultButtons.defaultAddBtn({hasPermi:'qms:counter:create'}), // // defaultButtons.defaultAddBtn({hasPermi:'qms:counter:create'}), //
// defaultButtons.defaultImportBtn({hasPermi:'qms:counter:import'}), // // defaultButtons.defaultImportBtn({hasPermi:'qms:counter:import'}), //
// defaultButtons.defaultExportBtn({hasPermi:'qms:counter:export'}), // defaultButtons.defaultExportBtn({hasPermi:'qms:counter:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //

16
src/views/qms/inspectionJob/addForm.vue

@ -1012,10 +1012,10 @@ const submitForm = async () => {
message.error('检验工序和检验特性有字段未填写完全') message.error('检验工序和检验特性有字段未填写完全')
return return
} }
if (isOutweigh?.length > 0) { // if (isOutweigh?.length > 0) {
message.error('检验特性中有开始时间大于结束时间') // message.error('')
return // return
} // }
if (isParseFloat) { if (isParseFloat) {
message.error('合格数量和不合格数量之和不可以是小数') message.error('合格数量和不合格数量之和不可以是小数')
return return
@ -1141,10 +1141,10 @@ const staging = async () => {
message.error('检验工序和检验特性有字段未填写完全') message.error('检验工序和检验特性有字段未填写完全')
return return
} }
if (isOutweigh?.length > 0) { // if (isOutweigh?.length > 0) {
message.error('检验特性中有开始时间大于结束时间') // message.error('')
return // return
} // }
if (isParseFloat) { if (isParseFloat) {
message.error('合格数量和不合格数量之和不可以是小数') message.error('合格数量和不合格数量之和不可以是小数')
return return

33
src/views/qms/inspectionJob/inspectionJobMain.data.ts

@ -280,7 +280,7 @@ export const InspectionJobMain = useCrudSchemas(
isDetail: false, isDetail: false,
isSearch: true, isSearch: true,
isTableForm: false, isTableForm: false,
isForm: false, isForm: false
}, },
// { // {
// label: '检验批来源', // label: '检验批来源',
@ -485,6 +485,35 @@ export const InspectionJobMain = useCrudSchemas(
} }
}, },
{
label: '收货时间',
field: 'deliveryTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
},
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 175
}
},
{ {
label: '完成人', label: '完成人',
field: 'completeUserName', field: 'completeUserName',
@ -493,7 +522,7 @@ export const InspectionJobMain = useCrudSchemas(
}, },
isForm: false, isForm: false,
isTable: true, isTable: true,
isDetail:true isDetail: true
}, },
{ {
label: '完成时间', label: '完成时间',

28
src/views/qms/inspectionRecord/inspectionRecordMain.data.ts

@ -364,6 +364,34 @@ export const InspectionRecordMain = useCrudSchemas(
width: 175 width: 175
} }
}, },
{
label: '收货时间',
field: 'deliveryTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
},
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 175
}
},
{ {
label: '检验水平', label: '检验水平',
field: 'inspectionLevel', field: 'inspectionLevel',

174
src/views/qms/inspectionRequest/inspectionRequestMain.data.ts

@ -169,6 +169,34 @@ export const InspectionMain = useCrudSchemas(
width: 175 width: 175
} }
}, },
{
label: '收货时间',
field: 'deliveryTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
},
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 175
}
},
{ {
label: '完成时间', label: '完成时间',
field: 'finishTime', field: 'finishTime',
@ -388,79 +416,79 @@ export const InspectionMain = useCrudSchemas(
} }
}, },
{ {
      label: '创建时间', label: '创建时间',
      field: 'createTime', field: 'createTime',
      isForm: false, isForm: false,
      table: { table: {
        width: 180 width: 180
      }, },
      formatter: dateFormatter, formatter: dateFormatter,
      detail: { detail: {
        dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
      }, },
      form: { form: {
        component: 'DatePicker', component: 'DatePicker',
        componentProps: { componentProps: {
          style: { width: '100%' }, style: { width: '100%' },
          type: 'datetime', type: 'datetime',
          dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
          valueFormat: 'x' valueFormat: 'x'
        } }
      } }
    }, },
    { {
      label: '创建者', label: '创建者',
      field: 'creator', field: 'creator',
      table: { table: {
        width: 130 width: 130
      }, },
      isForm: false, isForm: false,
      isTable: true isTable: true
    }, },
    { {
      label: '最后更新时间', label: '最后更新时间',
      field: 'updateTime', field: 'updateTime',
      sort: 'custom', sort: 'custom',
      isDetail: true, isDetail: true,
      isForm: false, isForm: false,
      isTable: false, isTable: false,
      formatter: dateFormatter, formatter: dateFormatter,
      detail: { detail: {
        dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
      }, },
      table: { table: {
        width: 180 width: 180
      }, },
      form: { form: {
        component: 'DatePicker', component: 'DatePicker',
        componentProps: { componentProps: {
          style: { width: '100%' }, style: { width: '100%' },
          type: 'datetime', type: 'datetime',
          dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
          valueFormat: 'x' valueFormat: 'x'
        } }
      } }
    }, },
    { {
      label: '最后更新者', label: '最后更新者',
      field: 'updater', field: 'updater',
      isDetail: true, isDetail: true,
      isForm: false, isForm: false,
      isTable: false, isTable: false,
      table: { table: {
        width: 150 width: 150
      } }
    }, },
    { {
      label: '操作', label: '操作',
      field: 'action', field: 'action',
      isForm: false, isForm: false,
      isDetail: false, isDetail: false,
      table: { table: {
        width: 300, width: 300,
        fixed: 'right' fixed: 'right'
      } }
    } }
]) ])
) )

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

@ -38,7 +38,7 @@ export const CallmaterialsRules = reactive({
workStationCode: [required], workStationCode: [required],
uom: [required], uom: [required],
callmaterialQty: [required], callmaterialQty: [required],
project: [{ max: 50, message: '最多50字符', trigger: 'blur'}] project: [{ max: 64, message: '最多50字符', trigger: 'blur'}]
}) })
export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([
@ -361,7 +361,7 @@ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([
} , } ,
form: { form: {
componentProps:{ componentProps:{
maxlength: 64, maxlength: 50,
type:'textarea', type:'textarea',
showWordLimit:true showWordLimit:true
} }

20
src/views/wms/basicDataManage/subject/mstr/mstr.data.ts

@ -52,6 +52,26 @@ export const Mstr = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{
label: '物料差异账户成本中心',
field: 'plMvarCc',
sort: 'custom',
},
{
label: '废品账户成本中心',
field: 'plScrpCc',
sort: 'custom',
},
{
label: '成本重估账户成本中心',
field: 'plCchgCc',
sort: 'custom',
},
{
label: '盘点差异账户成本中心',
field: 'plDscrCc',
sort: 'custom',
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

6
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts

@ -314,7 +314,7 @@ export const DeliverRequestMain = useCrudSchemas(
table: { table: {
width: 150 width: 150
}, },
isTable: false isTable: true
}, },
{ {
label: '申请时间', label: '申请时间',
@ -350,7 +350,7 @@ export const DeliverRequestMain = useCrudSchemas(
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -567,7 +567,7 @@ export const DeliverRequestMain = useCrudSchemas(
table: { table: {
width: 150 width: 150
}, },
isTable: false isTable: true
}, },
{ {
label: '创建时间', label: '创建时间',

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

@ -114,6 +114,7 @@ export const ScrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isSearch: true, isSearch: true,
tableForm: { tableForm: {
enterSearch: true,
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择仓库代码', searchListPlaceholder: '请选择仓库代码',
searchField: 'code', searchField: 'code',
@ -124,11 +125,20 @@ export const ScrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本 searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
@ -139,7 +149,15 @@ export const ScrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },

109
src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts

@ -82,6 +82,7 @@ export const TransferissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择承运商代码', // 输入框占位文本 searchListPlaceholder: '请选择承运商代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
@ -92,7 +93,15 @@ export const TransferissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },
@ -165,6 +174,7 @@ export const TransferissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
tableForm: { tableForm: {
enterSearch: true,
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择仓库代码', searchListPlaceholder: '请选择仓库代码',
searchField: 'code', searchField: 'code',
@ -175,11 +185,20 @@ export const TransferissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本 searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
@ -190,7 +209,15 @@ export const TransferissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },
@ -202,16 +229,26 @@ export const TransferissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
tableForm: { tableForm: {
enterSearch: true,
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择仓库代码', searchListPlaceholder: '请选择仓库代码',
searchField: 'code', searchField: 'code',
searchTitle: '仓库信息', searchTitle: '仓库信息',
searchAllSchemas: Warehouse.allSchemas, searchAllSchemas: Warehouse.allSchemas,
searchPage: WarehouseApi.getWarehousePage searchPage: WarehouseApi.getWarehousePage,
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本 searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
@ -222,7 +259,15 @@ export const TransferissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },
@ -279,6 +324,7 @@ export const TransferissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch:true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择从月台代码', // 输入框占位文本 searchListPlaceholder: '请选择从月台代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
@ -289,7 +335,15 @@ export const TransferissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },
@ -632,11 +686,20 @@ export const TransferissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
value: 'fromWarehouseCode', value: 'fromWarehouseCode',
message: '请填写从仓库代码!', message: '请填写从仓库代码!',
isMainValue: true, isMainValue: true,
}] }],
verificationParams: [{
key: 'packingNumber',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装号', searchListPlaceholder: '请选择包装号',
searchField: 'packingNumber', searchField: 'packingNumber',
@ -648,7 +711,15 @@ export const TransferissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
value: 'fromWarehouseCode', value: 'fromWarehouseCode',
message: '请填写从仓库代码!', message: '请填写从仓库代码!',
isMainValue: true, isMainValue: true,
}] }],
verificationParams: [{
key: 'packingNumber',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },
@ -732,6 +803,7 @@ export const TransferissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
tableForm: { tableForm: {
enterSearch: true,
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码', searchListPlaceholder: '请选择库位代码',
searchField: 'code', searchField: 'code',
@ -747,11 +819,20 @@ export const TransferissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
value: 'toWarehouseCode', value: 'toWarehouseCode',
message: '请填写到仓库代码!', message: '请填写到仓库代码!',
isMainValue: true, isMainValue: true,
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码', // 输入框占位文本 searchListPlaceholder: '请选择库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
@ -767,7 +848,15 @@ export const TransferissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
value: 'toWarehouseCode', value: 'toWarehouseCode',
message: '请填写到仓库代码!', message: '请填写到仓库代码!',
isMainValue: true, isMainValue: true,
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },

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

@ -133,16 +133,26 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
tableForm: { tableForm: {
enterSearch: true,
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择成本中心代码', searchListPlaceholder: '请选择成本中心代码',
searchField: 'costcentreCode', searchField: 'costcentreCode',
searchTitle: '成本中心代码', searchTitle: '成本中心代码',
searchAllSchemas: QadCostcentre.allSchemas, searchAllSchemas: QadCostcentre.allSchemas,
searchPage: QadCostcentreApi.getQadCostcentrePage searchPage: QadCostcentreApi.getQadCostcentrePage,
verificationParams: [{
key: 'costcentreCode',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本 searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本
searchField: 'costcentreCode', // 查询弹窗赋值字段 searchField: 'costcentreCode', // 查询弹窗赋值字段
@ -153,7 +163,15 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'costcentreCode',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },
@ -178,6 +196,7 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
tableForm: { tableForm: {
enterSearch: true,
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择成领用原因代码', searchListPlaceholder: '请选择成领用原因代码',
searchField: 'code', searchField: 'code',
@ -193,11 +212,20 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
value: 'costCenterType', value: 'costCenterType',
message: '成本中心类型不能为空!', message: '成本中心类型不能为空!',
isMainValue: true isMainValue: true
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本 searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
@ -213,7 +241,15 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
value: 'costCenterType', value: 'costCenterType',
message: '成本中心类型不能为空!', message: '成本中心类型不能为空!',
isMainValue: true isMainValue: true
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },
@ -225,16 +261,26 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
tableForm: { tableForm: {
enterSearch: true,
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择QAD项目信息', searchListPlaceholder: '请选择QAD项目信息',
searchField: 'projectCode', searchField: 'projectCode',
searchTitle: '领用原因代码', searchTitle: '领用原因代码',
searchAllSchemas: QadProject.allSchemas, searchAllSchemas: QadProject.allSchemas,
searchPage: QadProjectApi.getQadProjectPage searchPage: QadProjectApi.getQadProjectPage,
verificationParams: [{
key: 'projectCode',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择QAD项目信息', // 输入框占位文本 searchListPlaceholder: '请选择QAD项目信息', // 输入框占位文本
searchField: 'projectCode', // 查询弹窗赋值字段 searchField: 'projectCode', // 查询弹窗赋值字段
@ -245,7 +291,15 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'projectCode',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },

135
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts

@ -133,16 +133,26 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
tableForm: { tableForm: {
enterSearch: true,
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择成本中心代码', searchListPlaceholder: '请选择成本中心代码',
searchField: 'costcentreCode', searchField: 'costcentreCode',
searchTitle: '成本中心代码', searchTitle: '成本中心代码',
searchAllSchemas: QadCostcentre.allSchemas, searchAllSchemas: QadCostcentre.allSchemas,
searchPage: QadCostcentreApi.getQadCostcentrePage searchPage: QadCostcentreApi.getQadCostcentrePage,
verificationParams: [{
key: 'costcentreCode',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本 searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本
searchField: 'costcentreCode', // 查询弹窗赋值字段 searchField: 'costcentreCode', // 查询弹窗赋值字段
@ -153,7 +163,15 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'costcentreCode',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },
@ -178,6 +196,7 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
tableForm: { tableForm: {
enterSearch: true,
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择成领用原因代码', searchListPlaceholder: '请选择成领用原因代码',
searchField: 'code', searchField: 'code',
@ -193,11 +212,20 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
value: 'costCenterType', value: 'costCenterType',
message: '成本中心类型不能为空!', message: '成本中心类型不能为空!',
isMainValue: true isMainValue: true
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本 searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
@ -213,7 +241,15 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
value: 'costCenterType', value: 'costCenterType',
message: '成本中心类型不能为空!', message: '成本中心类型不能为空!',
isMainValue: true isMainValue: true
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },
@ -225,16 +261,26 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
tableForm: { tableForm: {
enterSearch: true,
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择QAD项目信息', searchListPlaceholder: '请选择QAD项目信息',
searchField: 'projectCode', searchField: ' ',
searchTitle: '领用原因代码', searchTitle: '领用原因代码',
searchAllSchemas: QadProject.allSchemas, searchAllSchemas: QadProject.allSchemas,
searchPage: QadProjectApi.getQadProjectPage searchPage: QadProjectApi.getQadProjectPage,
verificationParams: [{
key: 'projectCode',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择QAD项目信息', // 输入框占位文本 searchListPlaceholder: '请选择QAD项目信息', // 输入框占位文本
searchField: 'projectCode', // 查询弹窗赋值字段 searchField: 'projectCode', // 查询弹窗赋值字段
@ -245,7 +291,15 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'projectCode',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },
@ -265,16 +319,26 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
tableForm: { tableForm: {
enterSearch: true,
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择仓库代码', searchListPlaceholder: '请选择仓库代码',
searchField: 'code', searchField: 'code',
searchTitle: '仓库信息', searchTitle: '仓库信息',
searchAllSchemas: Warehouse.allSchemas, searchAllSchemas: Warehouse.allSchemas,
searchPage: WarehouseApi.getWarehousePage searchPage: WarehouseApi.getWarehousePage,
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch:true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本 searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
@ -285,7 +349,15 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },
@ -618,7 +690,6 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
tableForm:{ tableForm:{
multiple:true,//多选 multiple:true,//多选
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
isShowTableFormSearch: true,
searchListPlaceholder: '请选择物料代码',// 输入框占位文本 searchListPlaceholder: '请选择物料代码',// 输入框占位文本
searchField: 'code',// 查询弹窗赋值字段 searchField: 'code',// 查询弹窗赋值字段
searchTitle: '物料基础信息', searchTitle: '物料基础信息',
@ -636,7 +707,17 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
action: '==', action: '==',
isSearch: true, isSearch: true,
isMainValue: false isMainValue: false
}] }],
verificationPage: ItembasicApi.getItemListByCodes, // tableForm下方输入框校验失去焦点之后是否正确的方法
isShowTableFormSearch: true, //tableForm下方是否出现输入框
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
componentProps: { componentProps: {
@ -658,7 +739,15 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
action: '==', action: '==',
isSearch: true, isSearch: true,
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },
@ -829,6 +918,7 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
width: 150 width: 150
}, },
tableForm: { tableForm: {
enterSearch: true,
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码', searchListPlaceholder: '请选择库位代码',
searchField: 'code', searchField: 'code',
@ -853,11 +943,20 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
key: 'isIn', key: 'isIn',
value: 'in', value: 'in',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!!', // labelMessage: '信息提示说明!!!!',
componentProps: { componentProps: {
enterSearch:true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码', // 输入框占位文本 searchListPlaceholder: '请选择库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
@ -882,7 +981,15 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
key: 'isIn', key: 'isIn',
value: 'in', value: 'in',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },

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

@ -113,6 +113,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
if (type == 'tableForm') { if (type == 'tableForm') {
// //
if (formField == 'itemCode') { if (formField == 'itemCode') {
if(tableData.value.find(item1=>item1['itemCode'] == val[0]['componentItemCode'])){
message.warning(`物料${val[0]['componentItemCode']}已经存在`)
return
}
row['itemCode'] = val[0]['componentItemCode'] row['itemCode'] = val[0]['componentItemCode']
row['uom'] = val[0]['componentUom'] row['uom'] = val[0]['componentUom']
} else if(formField == 'workStation'){ } else if(formField == 'workStation'){

5
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue

@ -188,6 +188,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
if (type == 'tableForm') { if (type == 'tableForm') {
// //
if(formField == 'itemCode') { if(formField == 'itemCode') {
if(tableData.value.find(item1=>item1['itemCode'] == val[0]['itemCode'])){
message.warning(`物料${val[0]['itemCode']}已经存在`)
return
}
const isType = await isItemType(val[0]['itemCode'], labelType.value) const isType = await isItemType(val[0]['itemCode'], labelType.value)
if(!isType){ if(!isType){
message.warning('当前物料可制造与其他数据不一致,请重新选择!') message.warning('当前物料可制造与其他数据不一致,请重新选择!')

43
src/views/wms/issueManage/repleinsh/repleinshRecordMain/repleinshRecordMain.data.ts

@ -46,15 +46,15 @@ export const RepleinshRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTable: false, isTable: false,
}, },
{ // {
label: '供应商代码', // label: '供应商代码',
field: 'supplierCode', // field: 'supplierCode',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
isTable: false, // isTable: false,
}, // },
{ {
label: '出库事务类型', label: '出库事务类型',
field: 'outTransactionType', field: 'outTransactionType',
@ -460,6 +460,19 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
sortTableDefault:8, sortTableDefault:8,
}, },
{
label: '补料数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
// hiddenInMain:true,
form: {
component: 'InputNumber',
},
sortTableDefault:8,
},
{ {
label: '计量单位', label: '计量单位',
field: 'uom', field: 'uom',
@ -696,18 +709,6 @@ export const RepleinshRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTable:false, isTable:false,
hiddenInMain:true, hiddenInMain:true,
}, },
{
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
form: {
component: 'InputNumber',
}
},
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',

44
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

@ -72,23 +72,41 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm: {
enterSearch: true,
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择从仓库代码', searchListPlaceholder: '请选择从仓库代码',
searchField: 'code', searchField: 'code',
searchTitle: '仓库基础信息', searchTitle: '仓库基础信息',
searchAllSchemas: Warehouse.allSchemas, searchAllSchemas: Warehouse.allSchemas,
searchPage: WarehouseApi.pageBusinessTypeToWarehouse, searchPage: WarehouseApi.pageBusinessTypeToWarehouse,
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, isSearchList: true,
searchListPlaceholder: '请选择从仓库代码', searchListPlaceholder: '请选择从仓库代码',
searchField: 'code', searchField: 'code',
searchTitle: '仓库基础信息', searchTitle: '仓库基础信息',
searchAllSchemas: Warehouse.allSchemas, searchAllSchemas: Warehouse.allSchemas,
searchPage: WarehouseApi.pageBusinessTypeToWarehouse, searchPage: WarehouseApi.pageBusinessTypeToWarehouse,
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },
@ -673,7 +691,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm: {
enterSearch: true,
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择到库位代码', searchListPlaceholder: '请选择到库位代码',
searchField: 'code', searchField: 'code',
@ -689,11 +708,20 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
key: 'isIn', key: 'isIn',
value: 'in', value: 'in',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择到库位代码', searchListPlaceholder: '请选择到库位代码',
searchField: 'code', searchField: 'code',
@ -709,7 +737,15 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
key: 'isIn', key: 'isIn',
value: 'in', value: 'in',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },

48
src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts

@ -846,7 +846,7 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '合格数量', label: '完工数量',
field: 'goodQty', field: 'goodQty',
sort: 'custom', sort: 'custom',
table: { table: {
@ -868,29 +868,29 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
{ // {
label: '不合格数量', // label: '不合格数量',
field: 'notGoodQty', // field: 'notGoodQty',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
hiddenInMain: true, // hiddenInMain: true,
form: { // form: {
component: 'InputNumber', // component: 'InputNumber',
componentProps: { // componentProps: {
min: 1, // min: 1,
precision: 6 // precision: 6
} // }
}, // },
tableForm: { // tableForm: {
type: 'InputNumber', // type: 'InputNumber',
min: 1, // min: 1,
precision: 6 // precision: 6
}, // },
isTableForm: false, // isTableForm: false,
isForm: false // isForm: false
}, // },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',

20
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptReport/index.vue

@ -3,7 +3,7 @@
<ContentWrap > <ContentWrap >
<Annex <Annex
:annexData="reportAnnex" :annexData="reportAnnex"
:showDownload = "false" :showDownload = "true"
:showPreview="true" :showPreview="true"
:hiddenDelete = "true" :hiddenDelete = "true"
:upData="{ :upData="{
@ -21,7 +21,11 @@
:columns="subDetailTableData.tableColumns" :columns="subDetailTableData.tableColumns"
:data="subDetailTableData.tableList" :data="subDetailTableData.tableList"
:loading="false" :loading="false"
/> >
<template #uomName="scope">
<el-tag>{{scope.row.uomName}}</el-tag>
</template>
</Table>
</ContentWrap> </ContentWrap>
</div> </div>
@ -30,7 +34,7 @@
import { DictTag } from '@/components/DictTag' import { DictTag } from '@/components/DictTag'
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
// // purchasereceiptReport
import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import {queryQualityInspection} from '@/api/wms/supplierdeliverInspectionDetail' import {queryQualityInspection} from '@/api/wms/supplierdeliverInspectionDetail'
import Annex from '@/components/Annex/src/Annex.vue' import Annex from '@/components/Annex/src/Annex.vue'
@ -101,15 +105,7 @@ const getAnnexList = async () => {
{ {
"width": 150, "width": 150,
"label": "计量单位", "label": "计量单位",
"field": "uom", "field": "uomName",
"dictType": "uom",
"dictClass": "string",
formatter : (_: Recordable, __: TableColumn, cellValue: any) => {
return h(DictTag, {
type: "uom", // !
value: cellValue
})
},
"isTable": true, "isTable": true,
"isForm": false, "isForm": false,
"sort": "custom", "sort": "custom",

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

@ -1015,7 +1015,7 @@ const { getList: getDetailList } = detatableMethods
// //
const submitFormLabel = async (list) => { const submitFormLabel = async (list) => {
try { try {
let data = { const data = {
subList: list subList: list
} }
await message.confirm(t('ts.是否为此数据生成标签?')) await message.confirm(t('ts.是否为此数据生成标签?'))

73
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue

@ -139,7 +139,9 @@
<el-button <el-button
type="warning" type="warning"
link link
@click="removeX(scope.row, scope.$index, item, index,scope1.row, scope1.$index )" @click="
removeX(scope.row, scope.$index, item, index, scope1.row, scope1.$index)
"
>移出</el-button >移出</el-button
> >
</template> </template>
@ -177,7 +179,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as accuracyFun from "@/utils/calculate" import * as accuracyFun from '@/utils/calculate'
const message = useMessage() // const message = useMessage() //
const { t } = useI18n() // const { t } = useI18n() //
@ -220,9 +222,8 @@ const intData = async () => {
}) })
} }
const expandChange = (row: any, expandedRows: any[]) => { const expandChange = (row: any, expandedRows: any[]) => {
// //
if (row.secondPackUnit && row.secondPackQty&&row.packUnit && row.packQty) { if (row.secondPackUnit && row.secondPackQty && row.packUnit && row.packQty) {
// //
row.allXiangQty = Math.ceil(parseFloat(row.qty) / parseFloat(row.packQty)) row.allXiangQty = Math.ceil(parseFloat(row.qty) / parseFloat(row.packQty))
// //
@ -234,16 +235,16 @@ const expandChange = (row: any, expandedRows: any[]) => {
// //
row.manTuoQty = Math.floor(parseFloat(row.manXiangQty) / parseFloat(row.otherNumber)) row.manTuoQty = Math.floor(parseFloat(row.manXiangQty) / parseFloat(row.otherNumber))
// ** // **
let num1 = accuracyFun.multiply(parseFloat(row.manTuoQty ),parseFloat(row.otherNumber)) let num1 = accuracyFun.multiply(parseFloat(row.manTuoQty), parseFloat(row.otherNumber))
row.tuoInManNumber = accuracyFun.multiply(num1, parseFloat(row.packQty)) row.tuoInManNumber = accuracyFun.multiply(num1, parseFloat(row.packQty))
console.log(11,row.tuoInManNumber ) console.log(11, row.tuoInManNumber)
// //
row.lastNumber = row.lastNumber =
parseFloat(row.qty) >= parseFloat(row.tuoInManNumber) parseFloat(row.qty) >= parseFloat(row.tuoInManNumber)
? accuracyFun.subtract( parseFloat(row.qty),parseFloat(row.tuoInManNumber)) ? accuracyFun.subtract(parseFloat(row.qty), parseFloat(row.tuoInManNumber))
: parseFloat(row.qty) : parseFloat(row.qty)
// //
row.packageList =[] row.packageList = []
for (let i = 0; i < row.allTuoQty; i++) { for (let i = 0; i < row.allTuoQty; i++) {
oneId.value++ oneId.value++
// //
@ -269,7 +270,10 @@ const expandChange = (row: any, expandedRows: any[]) => {
} else { } else {
// , // ,
row.packageList[i].xNumber = row.otherNumber row.packageList[i].xNumber = row.otherNumber
row.packageList[i].qtyOne = accuracyFun.multiply( parseFloat(row.otherNumber),parseFloat(row.packQty)) row.packageList[i].qtyOne = accuracyFun.multiply(
parseFloat(row.otherNumber),
parseFloat(row.packQty)
)
} }
} }
// //
@ -282,7 +286,7 @@ const expandChange = (row: any, expandedRows: any[]) => {
for (let j = 0; j < cur.xNumber; j++) { for (let j = 0; j < cur.xNumber; j++) {
twoId.value++ twoId.value++
cur.children[j] = { cur.children[j] = {
id: twoId.value, id: twoId.value
// xPoNumber: j + 1 // xPoNumber: j + 1
} }
// //
@ -303,7 +307,7 @@ const expandChange = (row: any, expandedRows: any[]) => {
} }
} }
// //
if(!row.secondPackUnit && row.packUnit && row.packQty){ if (!row.secondPackUnit && row.packUnit && row.packQty) {
// % // %
row.allXiangQty = Math.ceil(parseFloat(row.qty) / parseFloat(row.packQty)) row.allXiangQty = Math.ceil(parseFloat(row.qty) / parseFloat(row.packQty))
row.packageList = [] row.packageList = []
@ -325,7 +329,7 @@ const expandChange = (row: any, expandedRows: any[]) => {
for (let j = 0; j < row.allXiangQty; j++) { for (let j = 0; j < row.allXiangQty; j++) {
twoId.value++ twoId.value++
cur.children[j] = { cur.children[j] = {
id: twoId.value, id: twoId.value
// xPoNumber: j + 1 // xPoNumber: j + 1
} }
// //
@ -377,8 +381,8 @@ const submitForm = () => {
if (cur.qtyOne == '' || cur.qtyOne == 0) { if (cur.qtyOne == '' || cur.qtyOne == 0) {
isZ = true isZ = true
} }
cur?.children?.forEach((ele,i) => { cur?.children?.forEach((ele, i) => {
ele.xPoNumber = i+1 ele.xPoNumber = i + 1
if (ele.qtyTwo == '' || ele.qtyTwo == 0) { if (ele.qtyTwo == '' || ele.qtyTwo == 0) {
isZ = true isZ = true
} }
@ -392,9 +396,14 @@ const submitForm = () => {
let obj = tableData.value.find((item) => { let obj = tableData.value.find((item) => {
item.allNumber = 0 item.allNumber = 0
item.packageList.forEach((cur) => { item.packageList.forEach((cur) => {
item.allNumber = accuracyFun.add(item.allNumber , parseFloat(cur.qtyOne)?parseFloat(cur.qtyOne):0) item.allNumber = accuracyFun.add(
item.allNumber,
parseFloat(cur.qtyOne) ? parseFloat(cur.qtyOne) : 0
)
// item.allNumber += parseFloat(cur.qtyOne) || 0 // item.allNumber += parseFloat(cur.qtyOne) || 0
}) })
console.log(111, item.allNumber)
console.log(222, parseFloat(item.qty))
return item.allNumber != parseFloat(item.qty) return item.allNumber != parseFloat(item.qty)
}) })
console.log(222, obj) console.log(222, obj)
@ -427,7 +436,7 @@ const addT = (oneRow) => {
} }
// //
const removeT = (oneRow, oneIndex, twoRow, twoIndex) => { const removeT = (oneRow, oneIndex, twoRow, twoIndex) => {
oneRow.packageList= oneRow.packageList.filter(item=>item.id!=twoRow.id) oneRow.packageList = oneRow.packageList.filter((item) => item.id != twoRow.id)
oneRow.allTuoQty = oneRow.packageList.length oneRow.allTuoQty = oneRow.packageList.length
} }
// //
@ -447,18 +456,22 @@ const addX = (oneRow, oneIndex, twoRow, twoIndex, type) => {
twoRow.xNumber = twoRow.children.length twoRow.xNumber = twoRow.children.length
let num = 0 let num = 0
twoRow.children.forEach((item) => { twoRow.children.forEach((item) => {
num = accuracyFun.add( parseFloat(num),parseFloat(item.qtyTwo) || 0) num = accuracyFun.add(parseFloat(num), parseFloat(item.qtyTwo) || 0)
}) })
twoRow.qtyOne = num twoRow.qtyOne = num
} else { } else {
// //
oneRow.isTuo= 1 // oneRow.isTuo = 1 //
twoRow.children.push({ twoRow.children.push({
id: twoId.value, id: twoId.value,
// xPoNumber:
// twoRow.children.length > 0 ? twoRow.children[twoRow.children.length - 1].xPoNumber + 1 : 1,
qtyTwo: oneRow.packQty qtyTwo: oneRow.packQty
}) })
//
let num = 0
twoRow.children.forEach((item) => {
num = accuracyFun.add(parseFloat(num), parseFloat(item.qtyTwo))
})
twoRow.qtyOne = num
} }
} }
// //
@ -466,15 +479,21 @@ const removeX = (oneRow, oneIndex, twoRow, twoIndex, threeRow, threeIndex, type)
// //
if (type == 1) { if (type == 1) {
// //
twoRow.children= twoRow.children.filter(item=>item.id!=threeRow.id) twoRow.children = twoRow.children.filter((item) => item.id != threeRow.id)
let num = 0 let num = 0
twoRow.children.forEach((item) => { twoRow.children.forEach((item) => {
num = accuracyFun.add( parseFloat(num),parseFloat(item.qtyTwo) || 0) num = accuracyFun.add(parseFloat(num), parseFloat(item.qtyTwo) || 0)
}) })
twoRow.qtyOne = num twoRow.qtyOne = num
twoRow.xNumber = twoRow.children.length twoRow.xNumber = twoRow.children.length
} else { } else {
twoRow.children= twoRow.children.filter(item=>item.id!=threeRow.id) twoRow.children = twoRow.children.filter((item) => item.id != threeRow.id)
//
let num = 0
twoRow.children.forEach((item) => {
num = accuracyFun.add(parseFloat(num), parseFloat(item.qtyTwo) || 0)
})
twoRow.qtyOne = num
} }
} }
// //
@ -494,8 +513,8 @@ const blurOne = (oneRow, twoRow) => {
// twoRow.children = [] // twoRow.children = []
// twoRow.qtyOne = parseFloat(twoRow.xNumber) * parseFloat(oneRow.packQty) // twoRow.qtyOne = parseFloat(twoRow.xNumber) * parseFloat(oneRow.packQty)
// } // }
twoRow.qtyOne = parseFloat(twoRow.xNumber) ? twoRow.qtyOne = parseFloat(twoRow.xNumber)
accuracyFun.multiply( parseFloat(twoRow.xNumber),parseFloat(oneRow.packQty)) ? accuracyFun.multiply(parseFloat(twoRow.xNumber), parseFloat(oneRow.packQty))
: '' : ''
// let num = 0 // let num = 0
// oneRow.packageList.forEach((item) => { // oneRow.packageList.forEach((item) => {
@ -554,7 +573,7 @@ const blurTwo = (oneRow, twoRow, threeRow) => {
// } // }
let num = 0 let num = 0
twoRow.children.forEach((item) => { twoRow.children.forEach((item) => {
num = accuracyFun.add( parseFloat(num),parseFloat(item.qtyTwo)) num = accuracyFun.add(parseFloat(num), parseFloat(item.qtyTwo))
}) })
twoRow.qtyOne = num twoRow.qtyOne = num
} }
@ -566,7 +585,7 @@ const blurThree = (oneRow, twoRow, thereeRow) => {
// } // }
let num = 0 let num = 0
twoRow.children.forEach((item) => { twoRow.children.forEach((item) => {
num = accuracyFun.add( parseFloat(num),parseFloat(item.qtyTwo)) num = accuracyFun.add(parseFloat(num), parseFloat(item.qtyTwo))
}) })
twoRow.qtyOne = num twoRow.qtyOne = num
} }

Loading…
Cancel
Save