Browse Source

Merge branch 'hella_online_20240803' into master_hella

hella_online_20240829
陈薪名 3 months ago
parent
commit
1f61a41166
  1. 12
      src/components/SearchTable/src/SearchTable.vue
  2. 123
      src/locales/en-US.ts
  3. 119
      src/locales/zh-CN.ts
  4. 29
      src/views/qms/inspectionJob/addForm.vue
  5. 20
      src/views/qms/inspectionRecord/addForm.vue
  6. 50
      src/views/qms/inspectionRecordFirst/addForm.vue
  7. 47
      src/views/qms/inspectionScheme/addForm.vue
  8. 1
      src/views/wms/basicDataManage/documentSetting/switch/index.vue
  9. 2
      src/views/wms/basicDataManage/itemManage/itembasic/index.vue
  10. 5
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue
  11. 25
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts
  12. 78
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue
  13. 24
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue
  14. 6
      src/views/wms/buttMesManage/mesBarCode/index.vue
  15. 4
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue
  16. 3
      src/views/wms/issueManage/issue/issueRequestMain/index.vue
  17. 58
      src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue
  18. 66
      src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts
  19. 4
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  20. 4
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts
  21. 43
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
  22. 6
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts
  23. 18
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  24. 1
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data.ts
  25. 3
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

12
src/components/SearchTable/src/SearchTable.vue

@ -93,7 +93,7 @@ const tableObjectRef = ref()
const getPage: any = ref() const getPage: any = ref()
const searchSchema = ref() const searchSchema = ref()
const tableColumns = ref() const tableColumns = ref()
const formFieldRef = ref() const formFieldRef = ref('')
const searchFieldRef = ref() const searchFieldRef = ref()
const typeRef = ref() const typeRef = ref()
const rowRef = ref() const rowRef = ref()
@ -102,6 +102,10 @@ const searchConditionRef = ref()
const searchTableSelectionsList = ref() // const searchTableSelectionsList = ref() //
const searchQuery = ref(false) const searchQuery = ref(false)
const hiddenFilterBtn = ref(false) const hiddenFilterBtn = ref(false)
const updateData = (list:any)=>{
tableObjectRef.value.tableList = list
searchTableRef.value.clearSelection()
}
const openData = (titleName: any, tableObject:any ,allSchemas: any,multiple: any) => { const openData = (titleName: any, tableObject:any ,allSchemas: any,multiple: any) => {
dialogWidth.value = '80%' dialogWidth.value = '80%'
multipleBol.value = multiple multipleBol.value = multiple
@ -110,10 +114,10 @@ const openData = (titleName: any, tableObject:any ,allSchemas: any,multiple: any
defaultButtons.defaultWhenPageBtn(null), // defaultButtons.defaultWhenPageBtn(null), //
defaultButtons.defaultUnselectPageBtn(null), // defaultButtons.defaultUnselectPageBtn(null), //
// defaultButtons.defaultDeselectAllBtn(null), // // defaultButtons.defaultDeselectAllBtn(null), //
defaultButtons.defaultFilterBtn(null) // // defaultButtons.defaultFilterBtn(null) //
] ]
: [ : [
defaultButtons.defaultFilterBtn(null) // // defaultButtons.defaultFilterBtn(null) //
] ]
dialogTitle.value = t(`ts.${titleName}`).replace('ts.', '') dialogTitle.value = t(`ts.${titleName}`).replace('ts.', '')
tableObjectRef.value = tableObject tableObjectRef.value = tableObject
@ -238,7 +242,7 @@ const buttonBaseClick = (val, item) => {
} }
defineExpose({ open,openData,hiddenFilterButton ,changeDialogWidth,searchFormClick}) // open defineExpose({ open,openData,updateData,hiddenFilterButton ,changeDialogWidth,searchFormClick}) // open
// Table ref // Table ref
const searchTableRef = ref() const searchTableRef = ref()

123
src/locales/en-US.ts

@ -1157,6 +1157,129 @@ export default {
:'Planner', :'Planner',
:'Min', :'Min',
:'Max', :'Max',
:'FAWAY HELLA Supplier System',
:'System Management',
:'Infrastructure Construction',
:'Report Management',
:'Report',
:'Material packaging information',
:'store management',
:'reservoir region management',
:'Warehouse location group management',
:'Warehouse location management',
:'Platform management',
:'Procurement Planning Strategy',
:'Demand forecasting cycle management',
:'Spread data view',
:'Invoicing data query',
:'Document number to be invoiced',
:'unreviewed',
:'pass',
:'Invoiced out',
:'Under procurement approval',
:'Approval of procurement',
:'Send invoice',
:'Rejection of procurement approval',
:'Rejection of financial approval',
:'number of a cargo waybill',
:'Range of price difference',
:'Vendor creation time',
:'Amount not taxed',
:'Total amount of value and tax',
:'Is there a price difference',
:'tax difference',
:'Total difference between price and tax',
:'System tax amount',
:'Total system price and tax',
:'System untaxed amount',
:'invoice date',
:'Reasons for rejection of procurement',
:'Reasons for financial Rejection',
:'Name of package',
:'packaging type',
:'Default packaging specifications',
:'item',
:'time',
:'set',
:'year',
:'root',
:'batch',
:'default',
:'Management accuracy',
:'Is it a functional area',
:'exponential quantity',
:'By batch',
:'By package',
ID:'By unique ID',
:'Receiving goods for inspection area',
:'Raw material storage area',
:'Chemical area',
:'Super urban area',
线:'Line edge area',
:'Storage area for semi-finished products',
:'Finished product storage area',
:'Shipment preparation area',
:'The shipment is in transit',
:'Three party reservoir area',
:'Customer consignment area',
:'Isolation area inside the factory',
退:'Customer return quarantine area',
:'Scrap area',
:'storage area',
:'Difference adjustment',
:'Area in transit',
:'overflow area',
:'Appliance warehouse area',
:'Finished equipment warehouse area',
线:'Line edge appliance warehouse area',
:'Customer equipment warehouse area',
:'Scrap equipment storage area',
ERP库位类型:'ERP location type',
QAD库位代码:'QAD library bit code',
:'roadway',
:'goods shelf',
:'line',
:'column',
:'Inventory priority',
:'maximum load bearing',
:'maximum area',
:'maximum volume',
:'Default library bit code',
:'Port of receip',
:'port of dispatch',
:'Monday',
:'Tuesday',
:'Wednesday',
:'Thursday',
:'Friday',
:'Saturday',
:'Sunday',
:'Policy name',
:'Policy code',
:'Policy Description',
:'priority',
:'Please enter a policy name',
:'Please enter the priority',
:'rule',
:'Please enter a name',
:'Please enter description',
:'Rule condition',
:'supplier type',
:'Please select the supplier type',
:'what day',
:'Please enter the code',
:'Please select a start time',
:'Please select the end time',
:'warehouse',
:'please choose',
:'platform',
:'Please select the platform',
:'in transit',
:'Please select the location in transit',
:'Please enter the name of consignee',
:'Rule configuration',
:'Please enter a contact number',
:'Please enter a name',
}, },

119
src/locales/zh-CN.ts

@ -1157,7 +1157,124 @@ export default {
:'计划员', :'计划员',
:'最小值', :'最小值',
:'最大值', :'最大值',
:'富维海拉供应商系统',
:'物料包装信息',
:'仓库管理',
:'库区管理',
:'库位组管理',
:'库位管理',
:'月台管理',
:'采购计划策略',
:'要货预测周期管理',
:'价差数据查看',
:'待开票数据查询',
:'未审核',
:'通过',
:'已开票',
:'采购审批中',
:'采购审批通过',
:'发票寄出',
:'采购审批驳回',
:'财务审批驳回',
:'货运单号',
:'差价范围',
:'供应商创建时间',
:'未税金额',
:'价税合计金额',
:'是否有价差',
:'税额差异',
:'价税合计差额',
:'系统税额',
:'系统价税合计',
:'系统未税金额',
:'开票日期',
:'采购驳回原因',
:'财务驳回原因',
:'包装名称',
:'包装类型',
:'默认包装规格',
:'项',
:'次',
:'套',
:'年',
:'根',
:'批',
:'默认',
:'管理精度',
:'是否是功能区',
:'按数量',
:'按批次',
:'按包装',
ID:'按唯一ID',
:'收货待检区',
:'原料存储区',
:'化学品区',
:'超市区',
线:'线边区',
:'半成品存储区',
:'成品存储区',
:'发货准备区',
:'发货在途区',
:'三方库区',
:'客户寄售区',
:'厂内隔离区',
退:'客户退货隔离区',
:'报废区',
:'备货区',
:'差异调整',
:'在途区',
:'溢出区',
:'器具库区',
:'成品器具库区',
线:'线边器具库区',
:'客户器具库区',
:'报废器具库区',
ERP库位类型:'ERP库位类型',
QAD库位代码:'QAD库位代码',
:'巷道',
:'货架',
:'行',
:'列',
:'备货优先级',
:'最大承重',
:'最大面积',
:'最大体积',
:'默认库位代码',
:'收货口',
:'发货口',
:'星期一',
:'星期二',
:'星期三',
:'星期四',
:'星期五',
:'星期六',
:'星期日',
:'策略名称',
:'策略代码',
:'策略描述',
:'优先级',
:'请输入策略名称',
:'请输入优先级',
:'规则',
:'请输入名称',
:'请输入描述',
:'规则条件',
:'供应商类型',
:'请选择供应商类型',
:'星期几',
:'请输入代码',
:'请选择开始时间',
:'请选择结束时间',
:'仓库',
:'请选择',
:'月台',
:'请选择月台',
:'在途库位',
:'请选择在途库位',
:'请输入收货人名称',
:'规则配置',
:'请输入联系电话',
:'请选择范围',
}, },
} }

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

@ -478,10 +478,10 @@
" "
> >
<el-form-item label="检验值" required> <el-form-item label="检验值" required>
<el-input <el-input-number
v-model="cur.inspectionValue" v-model="cur.inspectionValue"
placeholder="请输入检验值" :min="0"
type="number" @change="inspectionValueInput(item, cur)"
@blur="inspectionValueInput(item, cur)" @blur="inspectionValueInput(item, cur)"
/> />
</el-form-item> </el-form-item>
@ -643,7 +643,7 @@ const formProcessRef = ref()
const formSchema = ref(props.formAllSchemas?.formSchema) const formSchema = ref(props.formAllSchemas?.formSchema)
const tableAllSchemas = ref(props.tableAllSchemas) const tableAllSchemas = ref(props.tableAllSchemas)
const tableFormRules = ref(props.tableFormRules) const tableFormRules = ref(props.tableFormRules)
const collapseShow = ref(['1','2','3']) const collapseShow = ref(['1', '2', '3'])
const data = ref({ const data = ref({
code: '', code: '',
@ -773,12 +773,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
inspectionValue: '', // inspectionValue: '', //
qualitativeCode: '', // qualitativeCode: '', //
defectLevel: '', // defectLevel: '', //
qualifiedQuantity: parseFloat( qualifiedQuantity: parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.sampleQty), //
(
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.sampleQty) *
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.samplePieceSize)
).toFixed(6)
), //
unqualifiedQuantity: '0' // unqualifiedQuantity: '0' //
}) })
} }
@ -1484,22 +1479,22 @@ const inspectionValueInput = (item, cur) => {
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget &&
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i] item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i]
.inspectionValue && .inspectionValue &&
(parseFloat(cur.inspectionValue) > (parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) >
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) || parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) ||
parseFloat(cur.inspectionValue) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) <
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget)) parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget))
) { ) {
item.isPass = false item.isPass = false
return return
} }
// , // ,
if ( if (
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && !item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping &&
!item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit &&
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget &&
(parseFloat(cur.inspectionValue) > (parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) >
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget) || parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget) ||
parseFloat(cur.inspectionValue) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) <
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit)) parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit))
) { ) {
item.isPass = false item.isPass = false

20
src/views/qms/inspectionRecord/addForm.vue

@ -478,10 +478,10 @@
" "
> >
<el-form-item label="检验值" required> <el-form-item label="检验值" required>
<el-input <el-input-number
v-model="cur.inspectionValue" v-model="cur.inspectionValue"
placeholder="请输入检验值" :min="0"
type="number" @change="inspectionValueInput(item, cur)"
@blur="inspectionValueInput(item, cur)" @blur="inspectionValueInput(item, cur)"
/> />
</el-form-item> </el-form-item>
@ -1492,22 +1492,22 @@ const inspectionValueInput = (item, cur) => {
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget &&
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i] item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i]
.inspectionValue && .inspectionValue &&
(parseFloat(cur.inspectionValue) > (parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) >
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) || parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) ||
parseFloat(cur.inspectionValue) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) <
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget)) parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget))
) { ) {
item.isPass = false item.isPass = false
return return
} }
// , // ,
if ( if (
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && !item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping &&
!item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit &&
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget &&
(parseFloat(cur.inspectionValue) > (parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) >
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget) || parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget) ||
parseFloat(cur.inspectionValue) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) <
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit)) parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit))
) { ) {
item.isPass = false item.isPass = false

50
src/views/qms/inspectionRecordFirst/addForm.vue

@ -257,7 +257,7 @@
<el-input <el-input
v-model="data.samplePieceSize" v-model="data.samplePieceSize"
disabled disabled
placeholder="请输入样品份数" placeholder="请输入每份样品量"
/> />
</div> </div>
</el-form-item> </el-form-item>
@ -535,10 +535,10 @@
v-if="item.inspectionJobCharacteristicsUpdateReqVO.featureType == '0'" v-if="item.inspectionJobCharacteristicsUpdateReqVO.featureType == '0'"
> >
<el-form-item label="检验值" required> <el-form-item label="检验值" required>
<el-input <el-input-number
v-model="cur.inspectionValue" v-model="cur.inspectionValue"
placeholder="请输入检验值" :min="0"
type="number" @change="inspectionValueInput(item, cur)"
@blur="inspectionValueInput(item, cur)" @blur="inspectionValueInput(item, cur)"
/> />
</el-form-item> </el-form-item>
@ -693,7 +693,7 @@ const formMainRef = ref()
const formFeaturesRef = ref() const formFeaturesRef = ref()
const formProcessRef = ref() const formProcessRef = ref()
const formSchema = ref(props.formAllSchemas?.formSchema) const formSchema = ref(props.formAllSchemas?.formSchema)
const collapseShow = ref(['1','2','3']) const collapseShow = ref(['1', '2', '3'])
const data = ref({ const data = ref({
code: '', code: '',
@ -842,12 +842,7 @@ const processList = async (InspectionSchemeObj, list) => {
inspectionValue: '', // inspectionValue: '', //
qualitativeCode: '', // qualitativeCode: '', //
defectLevel: '', // defectLevel: '', //
qualifiedQuantity: parseFloat( qualifiedQuantity: parseFloat(item.samplingProcessRespVO.sampleQty), //
(
parseFloat(item.samplingProcessRespVO.sampleQty) *
parseFloat(InspectionSchemeObj.samplePieceSize)
).toFixed(6)
), //
unqualifiedQuantity: '0' // unqualifiedQuantity: '0' //
}) })
} }
@ -1250,12 +1245,7 @@ const searchTableSuccess = async (formField, searchField, val, type, row) => {
inspectionValue: '', // inspectionValue: '', //
qualitativeCode: '', // qualitativeCode: '', //
defectLevel: '', // defectLevel: '', //
qualifiedQuantity: parseFloat( qualifiedQuantity: parseFloat(item.samplingProcessRespVO.sampleQty), //
(
parseFloat(item.samplingProcessRespVO.sampleQty) *
parseFloat(InspectionSchemeObj.samplePieceSize)
).toFixed(6)
), //
unqualifiedQuantity: '0' // unqualifiedQuantity: '0' //
}) })
} }
@ -1329,12 +1319,7 @@ const searchTableSuccess = async (formField, searchField, val, type, row) => {
inspectionValue: '', // inspectionValue: '', //
qualitativeCode: '', // qualitativeCode: '', //
defectLevel: '', // defectLevel: '', //
qualifiedQuantity: parseFloat( qualifiedQuantity: parseFloat(item.samplingProcessRespVO.sampleQty), //
(
parseFloat(item.samplingProcessRespVO.sampleQty) *
parseFloat(InspectionSchemeObj.samplePieceSize)
).toFixed(6)
), //
unqualifiedQuantity: '0' // unqualifiedQuantity: '0' //
}) })
} }
@ -1500,22 +1485,22 @@ const inspectionValueInput = (item, cur) => {
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget &&
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i] item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i]
.inspectionValue && .inspectionValue &&
(parseFloat(cur.inspectionValue) > (parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) >
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) || parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) ||
parseFloat(cur.inspectionValue) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) <
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget)) parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget))
) { ) {
item.isPass = false item.isPass = false
return return
} }
// , // ,
if ( if (
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && !item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping &&
!item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit &&
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget &&
(parseFloat(cur.inspectionValue) > (parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) >
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget) || parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget) ||
parseFloat(cur.inspectionValue) < parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) <
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit)) parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit))
) { ) {
item.isPass = false item.isPass = false
@ -1560,11 +1545,6 @@ const onItemBlur = async (field, pageApi) => {
column: 'code', column: 'code',
action: '==', action: '==',
value: data.value[field]?.trim() value: data.value[field]?.trim()
},
{
column: 'status',
action: 'in',
value: 'ENABLE'
} }
) )
// //

47
src/views/qms/inspectionScheme/addForm.vue

@ -21,7 +21,7 @@
<el-input <el-input
v-model="data.itemCode" v-model="data.itemCode"
placeholder="请选择物料编码" placeholder="请选择物料编码"
@blur="onBlur('item', ItemBasicApi.getItembasicPage)" @blur="onItemBlur('item', ItemBasicApi.getItembasicPage)"
@focus="onFocus" @focus="onFocus"
/> />
<el-button <el-button
@ -1448,6 +1448,51 @@ const changeIsTarget = (e, item) => {
rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = false rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = false
} }
} }
//
const onItemBlur= async (field, pageApi, item) => {
const dataObj = item ? item.inspectionCharacteristicsBaseVO : data.value
if (dataObj[field + 'Code']) {
const _searchCondition = {}
const filters: any[] = []
filters.push(
{
action: '==',
column: 'available',
value: 'TRUE'
},
{
column: 'code',
action: '==',
value: dataObj[field + 'Code']?.trim()
}
)
//
_searchCondition.isSearch = true
_searchCondition.filters = filters
const array = await pageApi(_searchCondition)
Butttondata = [
defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) //
]
count.value++
const obj = array.list[0]
if (obj) {
dataObj['itemName'] = obj.name
dataObj['description'] = obj.desc1
} else {
message.alert('暂无数据')
dataObj[field + 'Code'] = ''
dataObj[field + 'Name'] = ''
}
} else {
dataObj[field + 'Name'] = ''
Butttondata = [
defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) //
]
count.value++
}
}
// //
const onBlur = async (field, pageApi, item) => { const onBlur = async (field, pageApi, item) => {
const dataObj = item ? item.inspectionCharacteristicsBaseVO : data.value const dataObj = item ? item.inspectionCharacteristicsBaseVO : data.value

1
src/views/wms/basicDataManage/documentSetting/switch/index.vue

@ -133,7 +133,6 @@ const buttonBaseClick = (val, item) => {
const butttondata = (row, $index)=>{ const butttondata = (row, $index)=>{
const hiddenArray = ['CreatePutawayRequestAfterInspectRecordCreated', const hiddenArray = ['CreatePutawayRequestAfterInspectRecordCreated',
'CreateBackflushRecordAfterProductreceiptRecordCreated', 'CreateBackflushRecordAfterProductreceiptRecordCreated',
'CreateProductputawayRequestAfterProductreceiptRecordCreated',
'CreatePurchasePlanAfterDiscretePurchaseOrderPublished', 'CreatePurchasePlanAfterDiscretePurchaseOrderPublished',
'ExemptItemCreatePutawayRequestAfterPurchaseReceiptRecordCreated', 'ExemptItemCreatePutawayRequestAfterPurchaseReceiptRecordCreated',
'CreatePurchaseReceiptRequestAfterSupplierDeliverRecordCreated' 'CreatePurchaseReceiptRequestAfterSupplierDeliverRecordCreated'

2
src/views/wms/basicDataManage/itemManage/itembasic/index.vue

@ -317,7 +317,7 @@ const changeTabs = (item) => {
} else if(item.prop == 'InventoryBalance'){ } else if(item.prop == 'InventoryBalance'){
tabsExtend.value = true tabsExtend.value = true
apiPage.value = BalanceApi.getBalancePage apiPage.value = BalanceApi.getBalancePage
detailAllSchemas.value = Balance.allSchemas detailAllSchemas.value = JSON.parse(JSON.stringify(Balance.allSchemas))
} else if(item.prop == 'ExpectedIn'){ } else if(item.prop == 'ExpectedIn'){
tabsExtend.value = true tabsExtend.value = true
apiPage.value = ExpectinApi.getExpectinPage apiPage.value = ExpectinApi.getExpectinPage

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

@ -187,6 +187,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
newRow['fromPackingNumber'] = item['packingNumber'] newRow['fromPackingNumber'] = item['packingNumber']
newRow['toBatch'] = item['batch'] newRow['toBatch'] = item['batch']
newRow['fromLocationCode'] = item['locationCode'] newRow['fromLocationCode'] = item['locationCode']
newRow['toLocationCode'] = item['locationCode']
newRow['inventoryStatus'] = item['inventoryStatus'] newRow['inventoryStatus'] = item['inventoryStatus']
newRow['packUnit'] = item['packUnit'] newRow['packUnit'] = item['packUnit']
newRow['packQty'] = item['packQty'] newRow['packQty'] = item['packQty']
@ -227,9 +228,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
// console.log(row['itemCode']); // console.log(row['itemCode']);
// ItembasicApi.getItemListByCodes(row['itemCode']) // ItembasicApi.getItemListByCodes(row['itemCode'])
row['downItemCode'] = val[0]['code'] row['downItemCode'] = val[0]['code']
} else if (formField == 'toLocationCode') { } else {
row['toLocationCode'] = val[0]['code']
} else {
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
} }
} else { } else {

25
src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts

@ -491,28 +491,17 @@ export const RelegateRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '库位代码', label: '库位代码',
field: 'toLocationCode', field: 'toLocationCode',
sort: 'custom', sort: 'custom',
tableForm:{ table: {
isInpuFocusShow: true, // 开启查询弹窗 width: 100
searchListPlaceholder: '请选择到库位代码', },
searchField: 'code', tableForm: {
searchTitle: '库位信息', disabled: true
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.selectBusinessTypeToLocation,
}, },
form: { form: {
// labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
isSearchList: true, // 开启查询弹窗 disabled: true
searchListPlaceholder: '请选择到库位代码',
searchField: 'code',
searchTitle: '库位信息',
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.selectBusinessTypeToLocation,
} }
}, }
table: {
width: 120
},
}, },
{ {
label: '到包装号', label: '到包装号',

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

@ -12,35 +12,35 @@
> >
<!-- 规则 --> <!-- 规则 -->
<div class="item"> <div class="item">
<div class="title">规则</div> <div class="title">{{t('ts.规则').replace('ts.','')}}</div>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="代码" prop="strategyCode"> <el-form-item :label="t('ts.代码').replace('ts.','')" prop="strategyCode">
<el-input key="strategyCode" <el-input key="strategyCode"
v-model="formData.strategyCode" v-model="formData.strategyCode"
placeholder="请输入代码" :placeholder="t('ts.请输入代码').replace('ts.','')"
clearable clearable
disabled disabled
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="名称" prop="name"> <el-form-item :label="t('ts.名称').replace('ts.','')" prop="name">
<el-input key="name" v-model="formData.name" placeholder="请输入名称" clearable /> <el-input key="name" v-model="formData.name" :placeholder="t('ts.请输入名称').replace('ts.','')" 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="t('ts.描述').replace('ts.','')" prop="description">
<el-input key="description" v-model="formData.description" placeholder="请输入描述" clearable /> <el-input key="description" v-model="formData.description" :placeholder="t('ts.请输入描述').replace('ts.','')" 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="t('ts.优先级').replace('ts.','')" prop="priority">
<el-input-number key="priority" 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="t('ts.状态').replace('ts.','')" prop="status">
<el-switch key="status" v-model="formData.status" /> <el-switch key="status" v-model="formData.status" />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -48,22 +48,22 @@
</div> </div>
<!-- 规则条件 --> <!-- 规则条件 -->
<div key="规则条件" class="item mt-20px"> <div key="规则条件" class="item mt-20px">
<div key="规则条件title" class="title">规则条件</div> <div key="规则条件title" class="title">{{t('ts.规则条件').replace('ts.','')}}</div>
<el-row key="规则条件row"> <el-row key="规则条件row">
<el-col :span="24" v-for="(item, index) in formData.condition" :key="'规则条件row'+index"> <el-col :span="24" v-for="(item, index) in formData.condition" :key="'规则条件row'+index">
<!-- 供应商类型 --> <!-- 供应商类型 -->
<el-form-item key="供应商类型formItem" <el-form-item key="供应商类型formItem"
v-if="item.ParamCode == 'SupplierType'" v-if="item.ParamCode == 'SupplierType'"
label="供应商类型" :label="t('ts.供应商类型').replace('ts.','')"
class="flex-top err-120" class="flex-top err-120"
> >
<el-select key="供应商类型Operator" <el-select key="供应商类型Operator"
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" :placeholder="t('ts.请选择范围').replace('ts.','')"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
> >
<el-option <el-option
:label="cur.label" :label="t(`ts.${cur.label}`).replace('ts.','')"
:value="cur.value" :value="cur.value"
v-for="cur in options.supplierTypeRangeOptions" v-for="cur in options.supplierTypeRangeOptions"
:key="'供应商类型Operator'+cur.value" :key="'供应商类型Operator'+cur.value"
@ -71,7 +71,7 @@
</el-select> </el-select>
<el-select key="供应商类型Value" <el-select key="供应商类型Value"
v-model="item.Value" v-model="item.Value"
placeholder="请选择供应商类型" :placeholder="t('ts.请选择供应商类型').replace('ts.','')"
style="flex: 1" style="flex: 1"
clearable clearable
@change="changeSupplierType" @change="changeSupplierType"
@ -79,7 +79,7 @@
<el-option <el-option
v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)" v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)"
:key="'供应商类型Value'+dict.value" :key="'供应商类型Value'+dict.value"
:label="dict.label" :label="t(`ts.${dict.label}`).replace('ts.','')"
:value="dict.value" :value="dict.value"
/> />
</el-select> </el-select>
@ -87,16 +87,16 @@
<!-- 供应商 --> <!-- 供应商 -->
<el-form-item key="供应商formItem" <el-form-item key="供应商formItem"
v-else-if="item.ParamCode == 'SupplierCode'" v-else-if="item.ParamCode == 'SupplierCode'"
label="供应商" :label="t('ts.供应商').replace('ts.','')"
class="err-120" class="err-120"
> >
<el-select key="供应商Operator" <el-select key="供应商Operator"
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" :placeholder="t('ts.请选择范围').replace('ts.','')"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
> >
<el-option <el-option
:label="cur.label" :label="t(`ts.${cur.label}`).replace('ts.','')"
:value="cur.value" :value="cur.value"
v-for="cur in options.supplierRangeOptions" v-for="cur in options.supplierRangeOptions"
:key="'供应商Operator'+cur.value" :key="'供应商Operator'+cur.value"
@ -104,7 +104,7 @@
</el-select> </el-select>
<el-select key="供应商Value" <el-select key="供应商Value"
v-model="item.Value" v-model="item.Value"
placeholder="请选择供应商" :placeholder="t('ts.请选择供应商').replace('ts.','')"
style="flex: 1" style="flex: 1"
clearable clearable
multiple multiple
@ -113,7 +113,7 @@
<el-option <el-option
v-for="cur in options.supplierList" v-for="cur in options.supplierList"
:key="'供应商Value'+cur.code" :key="'供应商Value'+cur.code"
:label="cur.name" :label="t(`ts.${cur.name}`).replace('ts.','')"
:value="cur.code" :value="cur.code"
/> />
</el-select> </el-select>
@ -121,7 +121,7 @@
<!-- 星期几 --> <!-- 星期几 -->
<el-form-item key="星期几formItem" <el-form-item key="星期几formItem"
v-else-if="item.ParamCode == 'Weekday'" v-else-if="item.ParamCode == 'Weekday'"
label="星期几" :label="t('ts.星期几').replace('ts.','')"
class="flex-top err-120" class="flex-top err-120"
> >
<el-select key="星期几Operator" <el-select key="星期几Operator"
@ -130,8 +130,8 @@
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
> >
<el-option <el-option
:label="cur.label" :label="t(`ts.${cur.label}`).replace('ts.','')"
:value="cur.value" :value="cur.value"
v-for="cur in options.weekRangeOptions" v-for="cur in options.weekRangeOptions"
:key="'星期几Operator'+cur.value" :key="'星期几Operator'+cur.value"
/> />
@ -139,7 +139,7 @@
<div class="checkbox"> <div class="checkbox">
<el-checkbox-group v-model="item.Value"> <el-checkbox-group v-model="item.Value">
<el-checkbox <el-checkbox
:label="cur.label" :label="t(`ts.${cur.label}`).replace('ts.','')"
v-for="cur in options.weekOptions" v-for="cur in options.weekOptions"
:key="'星期几Value'+cur.value" :key="'星期几Value'+cur.value"
/> />
@ -151,37 +151,37 @@
</div> </div>
<!-- 规则配置 --> <!-- 规则配置 -->
<div class="item mt-20px" key="规则配置"> <div class="item mt-20px" key="规则配置">
<div class="title" key="规则配置title">规则配置</div> <div class="title" key="规则配置title">{{t('ts.规则配置').replace('ts.','')}}</div>
<el-row key="规则配置Row"> <el-row key="规则配置Row">
<!-- 开始时间 --> <!-- 开始时间 -->
<el-col :span="24" key="规则配置Col"> <el-col :span="24" key="规则配置Col">
<!-- 开始时间 --> <!-- 开始时间 -->
<el-form-item key="开始时间formItem" label="开始时间" prop="BeginTime"> <el-form-item key="开始时间formItem" :label="t('ts.开始时间').replace('ts.','')" prop="BeginTime">
<el-time-select key="开始时间time" <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"
step="00:15" step="00:15"
placeholder="请选择开始时间" :placeholder="t('ts.请选择开始时间').replace('ts.','')"
style="width: 100%" style="width: 100%"
/> />
</el-form-item> </el-form-item>
<!-- 结束时间 --> <!-- 结束时间 -->
<el-form-item key="结束时间formItem" label="结束时间" prop="EndTime"> <el-form-item key="结束时间formItem" :label="t('ts.结束时间').replace('ts.','')" prop="EndTime">
<el-time-select key="结束时间time" <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"
step="00:15" step="00:15"
placeholder="请选择结束时间" :placeholder="t('ts.请选择结束时间').replace('ts.','')"
style="width: 100%" style="width: 100%"
/> />
</el-form-item> </el-form-item>
<!-- 仓库 --> <!-- 仓库 -->
<el-form-item key="仓库formItem" label="仓库" prop="WarehouseCode"> <el-form-item key="仓库formItem" :label="t('ts.仓库').replace('ts.','')" prop="WarehouseCode">
<el-select key="仓库" <el-select key="仓库"
v-model="formData.configuration.WarehouseCode" v-model="formData.configuration.WarehouseCode"
:placeholder="`请选择${ :placeholder="`${t('ts.请选择').replace('ts.','')}${
formData.configuration.WarehouseCode == 'WarehouseCode' formData.configuration.WarehouseCode == 'WarehouseCode'
? '仓库' ? '仓库'
: formData.configuration.WarehouseCode == 'AreaCode' : formData.configuration.WarehouseCode == 'AreaCode'
@ -203,10 +203,10 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 月台 --> <!-- 月台 -->
<el-form-item key="月台formItem" label="月台" prop="DockCode"> <el-form-item key="月台formItem" :label="t('ts.月台').replace('ts.','')" prop="DockCode">
<el-select key="月台" <el-select key="月台"
v-model="formData.configuration.DockCode" v-model="formData.configuration.DockCode"
placeholder="请选择月台" :placeholder="t('ts.请选择月台').replace('ts.','')"
clearable clearable
> >
<el-option <el-option
@ -218,10 +218,10 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 在途库位 --> <!-- 在途库位 -->
<el-form-item key="在途库位formItem" label="在途库位" prop="OnTheWayLocationCode"> <el-form-item key="在途库位formItem" :label="t('ts.在途库位').replace('ts.','')" prop="OnTheWayLocationCode">
<el-select key="在途库位" <el-select key="在途库位"
v-model="formData.configuration.OnTheWayLocationCode" v-model="formData.configuration.OnTheWayLocationCode"
placeholder="请选择在途库位" :placeholder="t('ts.请选择在途库位').replace('ts.','')"
clearable clearable
filterable filterable
:filter-method="filterMethodFromLocation" :filter-method="filterMethodFromLocation"
@ -235,12 +235,12 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 收货人 --> <!-- 收货人 -->
<el-form-item key="收货人formItem" label="收货人" prop="Receiver"> <el-form-item key="收货人formItem" :label="t('ts.收货人').replace('ts.','')" prop="Receiver">
<el-input key="收货人" v-model="formData.configuration.Receiver" placeholder="请输入收货人名称" clearable /> <el-input key="收货人" v-model="formData.configuration.Receiver" :placeholder="t('ts.请输入收货人名称').replace('ts.','')" clearable />
</el-form-item> </el-form-item>
<!-- 在途库位 --> <!-- 在途库位 -->
<el-form-item key="联系电话formItem" label="联系电话" prop="configuration.PhoneNumber"> <el-form-item key="联系电话formItem" :label="t('ts.联系电话').replace('ts.','')" prop="configuration.PhoneNumber">
<el-input key="联系电话" v-model="formData.configuration.PhoneNumber" placeholder="请输入联系电话" clearable /> <el-input key="联系电话" v-model="formData.configuration.PhoneNumber" :placeholder="t('ts.请输入联系电话').replace('ts.','')" clearable />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>

24
src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue

@ -4,19 +4,19 @@
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
<ContentWrap> <ContentWrap>
<el-form class="-mb-15px" :model="queryParams" ref="queryFormRef" :inline="true" label-width="68px"> <el-form class="-mb-15px" :model="queryParams" ref="queryFormRef" :inline="true" label-width="68px">
<el-form-item label="策略名称" prop="name"> <el-form-item :label="t('ts.策略名称')" prop="name">
<el-input v-model="queryParams.name" placeholder="请输入策略名称" clearable @keyup.enter="handleQuery" <el-input v-model="queryParams.name" :placeholder="t('ts.请输入策略名称')" clearable @keyup.enter="handleQuery"
class="!w-240px" /> class="!w-240px" />
</el-form-item> </el-form-item>
<el-form-item label="优先级" prop="priority"> <el-form-item :label="t('ts.优先级')" prop="priority">
<el-input v-model.number="queryParams.priority" type="number" oninput ="value=value.replace(/[^\d]/g,'')" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" class="!w-240px" /> <el-input v-model.number="queryParams.priority" type="number" oninput ="value=value.replace(/[^\d]/g,'')" :placeholder="t('ts.请输入优先级')" clearable @keyup.enter="handleQuery" class="!w-240px" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="info" plain @click="handleQuery"> <el-button type="info" plain @click="handleQuery">
<Icon icon="ep:search" class="mr-5px" /> 搜索 <Icon icon="ep:search" class="mr-5px" /> {{t('ts.搜索')}}
</el-button> </el-button>
<el-button type="info" plain @click="resetQuery"> <el-button type="info" plain @click="resetQuery">
<Icon icon="ep:refresh" class="mr-5px" /> 重置 <Icon icon="ep:refresh" class="mr-5px" /> {{t('ts.重置')}}
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -26,16 +26,16 @@
<!-- 列表 --> <!-- 列表 -->
<ContentWrap> <ContentWrap>
<el-table v-clientTable v-loading="loading" :data="list" :default-sort="{ prop: 'priority', order: 'null' }"> <el-table v-clientTable v-loading="loading" :data="list" :default-sort="{ prop: 'priority', order: 'null' }">
<el-table-column align="center" label="策略代码" prop="strategyCode" /> <el-table-column align="center" :label="t('ts.策略代码')" prop="strategyCode" />
<el-table-column align="center" label="策略名称" prop="name" show-overflow-tooltip /> <el-table-column align="center" :label="t('ts.策略名称')" prop="name" show-overflow-tooltip />
<el-table-column align="center" label="策略描述" prop="description" /> <el-table-column align="center" :label="t('ts.策略描述')" prop="description" />
<el-table-column align="center" label="优先级" prop="priority" sortable/> <el-table-column align="center" :label="t('ts.优先级')" prop="priority" sortable/>
<el-table-column align="center" label="状态" prop="status"> <el-table-column align="center" :label="t('ts.状态')" prop="status">
<template #default="scope"> <template #default="scope">
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" /> <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="240"> <el-table-column align="center" :label="t('ts.操作')" fixed="right" width="240">
<template #default="scope"> <template #default="scope">
<ButtonBase :Butttondata="butttondata(scope.row)" @button-base-click="buttonTableClick($event, scope.row)" /> <ButtonBase :Butttondata="butttondata(scope.row)" @button-base-click="buttonTableClick($event, scope.row)" />
</template> </template>

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

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

4
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue

@ -143,7 +143,9 @@ const labelType = ref('') // 标签类别 采购还是制造等
const handlePoint = async (row) => { const handlePoint = async (row) => {
// //
await PackageApi.getPackagePage({ await PackageApi.getPackagePage({
requestNumber: row.number requestNumber: row.number,
pageSize: 500,
pageNo: 1
}).then((res) => { }).then((res) => {
if(res.list.length > 0) { if(res.list.length > 0) {
if (res.list[0].productionLineCode != null) { if (res.list[0].productionLineCode != null) {

3
src/views/wms/issueManage/issue/issueRequestMain/index.vue

@ -300,7 +300,8 @@ const butttondata = (row,$index) => {
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']), hasPermi:'wms:issue-request-main:submit'}), // defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']), hasPermi:'wms:issue-request-main:submit'}), //
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']), hasPermi:'wms:issue-request-main:refused'}), // defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']), hasPermi:'wms:issue-request-main:refused'}), //
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']), hasPermi:'wms:issue-request-main:handle'}), // defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']), hasPermi:'wms:issue-request-main:handle'}), //
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3','7']), hasPermi:'wms:issue-request-main:update'}), // // defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3','7']), hasPermi:'wms:issue-request-main:update'}), //
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']), hasPermi:'wms:issue-request-main:update'}), //
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']), hasPermi:'wms:issue-request-main:update'}), // defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']), hasPermi:'wms:issue-request-main:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:issue-request-main:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:issue-request-main:delete'}), //
] ]

58
src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue

@ -341,17 +341,17 @@ const butttondata = (row,$index) => {
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']), hasPermi:'wms:productionscrap-request-main:update'}), // defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']), hasPermi:'wms:productionscrap-request-main:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:productionreturn-request-main:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:productionreturn-request-main:delete'}), //
// //
{ // {
label: '创建标签', // label: '',
name: 'cjbq', // name: 'cjbq',
hide: isShowMainButton(row,['3']), // hide: isShowMainButton(row,['3']),
type: 'primary', // type: 'primary',
icon: '', // icon: '',
color: '', // color: '',
hasPermi: '', // hasPermi: '',
link: true, // // link: true, //
}, // },
defaultButtons.mainListPointBtn({hide:isShowMainButton(row,['3','6','8'])}), // // defaultButtons.mainListPointBtn({hide:isShowMainButton(row,['3','6','8'])}), //
] ]
} }
@ -483,19 +483,19 @@ const buttonTableClick = async (val, row) => {
}) })
} else if (val == 'mainHandle') { // } else if (val == 'mainHandle') { //
// // //
let isCreateLabel = false // let isCreateLabel = false
await PackageApi.getPackagePage({ // await PackageApi.getPackagePage({
requestNumber: row.number // requestNumber: row.number
}).then(res => { // }).then(res => {
if (res) { // if (res) {
if (res.list.length > 0) isCreateLabel = true // if (res.list.length > 0) isCreateLabel = true
} // }
}) // })
if (!isCreateLabel) { // if (!isCreateLabel) {
message.warning('请先创建标签') // message.warning('')
return // return
} // }
tableObject.loading = true tableObject.loading = true
ProductionscrapRequestMainApi.handle(row.masterId).then(() => { ProductionscrapRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
@ -654,11 +654,11 @@ const submitForm = async (formType, submitData) => {
isZC = false isZC = false
} }
}) })
if(!isZC) { // if(!isZC) {
formRef.value.formLoading = false // formRef.value.formLoading = false
await message.confirm('含有不整箱情况,是否继续?') // await message.confirm(',?')
formRef.value.formLoading = true // formRef.value.formLoading = true
} // }
// 退 isOK // 退 isOK
data.isOK = true data.isOK = true
try { try {

66
src/views/wms/issueManage/productionscrap/productionscrapRequestMain/productionscrapRequestMain.data.ts

@ -26,6 +26,9 @@ import { TableColumn } from '@/types/table'
import * as InspectionQ3Api from '@/api/qms/inspectionQ3' import * as InspectionQ3Api from '@/api/qms/inspectionQ3'
import { Q3 } from '@/views/qms/inspectionQ3/inspectionQ3.data' import { Q3 } from '@/views/qms/inspectionQ3/inspectionQ3.data'
// import * as LocationApi from '@/api/wms/location'
// import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
@ -697,6 +700,53 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}], // 失去焦点校验参数 }], // 失去焦点校验参数
}, },
}, },
// {
// label: '目标库位',
// field: 'toLocationCode',
// sort: 'custom',
// tableForm: {
// multiple: true,//多选
// isInpuFocusShow: true, // 开启查询弹窗
// searchListPlaceholder: '请选择库位代码', // 输入框占位文本
// searchField: 'code', // 查询弹窗赋值字段
// searchTitle: '库位基础信息', // 查询弹窗标题
// searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
// searchPage: LocationApi.selectBusinessTypeOutLocation, // 查询弹窗所需分页方法
// searchCondition: [{
// key: 'businessType',
// value: 'ProductionScrap', // 线边原料报废
// isMainValue: false
// },
// {
// key: 'isIn',
// value: 'in',
// isMainValue: false
// }
// ]
// },
// form: {
// // labelMessage: '信息提示说明!!!',
// componentProps: {
// isSearchList: true, // 开启查询弹窗
// multiple: true,//多选
// searchListPlaceholder: '请选择库位代码', // 输入框占位文本
// searchField: 'code', // 查询弹窗赋值字段
// searchTitle: '库位基础信息', // 查询弹窗标题
// searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
// searchPage: LocationApi.selectBusinessTypeOutLocation, // 查询弹窗所需分页方法
// searchCondition: [{
// key: 'businessType',
// value: 'ReturnToHold', // 隔离退料
// isMainValue: false
// },
// {
// key: 'isIn',
// value: 'in',
// isMainValue: false
// }]
// }
// }
// },
{ {
label: '原料库位', label: '原料库位',
field: 'fromLocationCode', field: 'fromLocationCode',
@ -953,12 +1003,12 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]
label: '包装规格', label: '包装规格',
field: 'packUnit', field: 'packUnit',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: false,
table: { table: {
width: 120 width: 120
}, },
isTable:true, isTable:false,
isTableForm: true, isTableForm: false,
tableForm: { tableForm: {
enterSearch:true, enterSearch:true,
isInpuFocusShow: true, isInpuFocusShow: true,
@ -1016,8 +1066,8 @@ export const ProductionscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]
table: { table: {
width: 120 width: 120
}, },
isTable:true, isTable:false,
isTableForm: true, isTableForm: false,
tableForm:{ tableForm:{
disabled: true disabled: true
}, },
@ -1152,9 +1202,9 @@ export const ProductionscrapRequestDetailRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
packUnit: [ // packUnit: [
{ required: true, message: '请选择包装规格', trigger: 'blur' } // { required: true, message: '请选择包装规格', trigger: 'blur' }
] // ]
}) })
/** /**

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

@ -706,8 +706,8 @@ const submitForm = async (formType, submitData) => {
data.subList = tableData.value // data.subList = tableData.value //
let isExist = false let isExist = false
tableData.value.forEach(item => { tableData.value.forEach(item => {
let rs = tableData.value.filter(filterItem => (filterItem.fromPackingNumber&&filterItem.fromPackingNumber == item.fromPackingNumber) ) let rs = tableData.value.filter(filterItem => (filterItem.fromPackingNumber&&filterItem.fromPackingNumber == item.fromPackingNumber) )
console.log(rs,5666); console.log(rs,5666);
if(rs.length > 1) isExist = true if(rs.length > 1) isExist = true
}) })
if (isExist) { if (isExist) {

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

@ -709,6 +709,7 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
value: 'in', value: 'in',
isMainValue: false isMainValue: false
}], }],
isRepeat:true,
verificationParams: [{ verificationParams: [{
key: 'code', key: 'code',
action: '==', action: '==',
@ -920,6 +921,9 @@ export const InventorymoveRequestDetailRules = reactive({
fromLocationCode: [ fromLocationCode: [
{ required: true, message: '请选择从库位代码', trigger: 'change' } { required: true, message: '请选择从库位代码', trigger: 'change' }
], ],
fromPackingNumber: [
{ required: true, message: '请选择从包装号', trigger: 'change' }
],
fromInventoryStatus: [ fromInventoryStatus: [
{ required: true, message: '请选择从库存状态', trigger: 'change' } { required: true, message: '请选择从库存状态', trigger: 'change' }
], ],

43
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -128,7 +128,23 @@
:isShowFooterButtton="false" :isShowFooterButtton="false"
/> />
<!-- 标签打印 --> <!-- 标签打印 -->
<SearchTable width="905px" ref="searchTableRef" @searchTableSuccess="searchTableSuccess1" /> <SearchTable width="905px" ref="searchTableRef" @searchTableSuccess="searchTableSuccess1" >
<template #searchQuery>
<el-form :inline="true">
<el-form-item>
<el-input v-model="printItemCode" placeholder="请输入物料代码"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="searchPrint">
<Icon class="mr-5px" icon="ep:search" />查询
</el-button>
<el-button type="primary" @click="resetPrint">
<Icon class="mr-5px" icon="ep:refresh" />重置
</el-button>
</el-form-item>
</el-form>
</template>
</SearchTable>
<el-dialog <el-dialog
v-model="showQualityReport" v-model="showQualityReport"
:title="t('质检明细')" :title="t('质检明细')"
@ -478,6 +494,27 @@ const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAcces
// //
const searchTableRef = ref() const searchTableRef = ref()
//
const printTableList = ref([])
const printItemCode = ref('')
const searchPrint = ()=>{
printItemCode.value = printItemCode.value.trim()
if(printItemCode.value == ''){
searchTableRef.value.updateData(printTableList.value)
}else{
console.log(printItemCode.value)
let printItemCodes = printItemCode.value.split(',')
console.log(printItemCodes)
let itemCodesList = printTableList.value.filter(item=>!!printItemCodes.find(item1=>item['itemCode']==item1))
searchTableRef.value.updateData(itemCodesList)
}
}
const resetPrint = ()=>{
printItemCode.value = ''
searchPrint()
}
const labelPrint = async (row) => { const labelPrint = async (row) => {
tableObject.loading = true tableObject.loading = true
const defaultParams = {'moduleName':'purchasereceipt_request','recordNumber':row.asnNumber} const defaultParams = {'moduleName':'purchasereceipt_request','recordNumber':row.asnNumber}
@ -488,12 +525,14 @@ const labelPrint = async (row) => {
// //
const { getList:getListPrint } = tableMethods const { getList:getListPrint } = tableMethods
getListPrint() await getListPrint()
tableObject.loading = false tableObject.loading = false
const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns
tableColumns.forEach((item) => { tableColumns.forEach((item) => {
item.width = item.table?.width item.width = item.table?.width
}) })
printItemCode.value = ''
printTableList.value = JSON.parse(JSON.stringify(tableObjectPrint.tableList))
searchTableRef.value.openData("标签信息",tableObjectPrint,{tableColumns},true) searchTableRef.value.openData("标签信息",tableObjectPrint,{tableColumns},true)
} }

6
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

@ -1574,9 +1574,9 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
//表单校验 //表单校验
export const PurchasereturnRequestDetailRules = reactive({ export const PurchasereturnRequestDetailRules = reactive({
packingNumber: [ // packingNumber: [
{ required: true, message: '请输入包装号', trigger: 'blur' } // { required: true, message: '请输入包装号', trigger: 'blur' }
], // ],
// batch: [ // batch: [
// { required: true, message: '请输入批次', trigger: 'blur' } // { required: true, message: '请输入批次', trigger: 'blur' }
// ], // ],

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

@ -96,6 +96,7 @@
editHasPermi="wms:purchase-plan-main:update" editHasPermi="wms:purchase-plan-main:update"
deleteHasPermi="wms:purchase-plan-main:delete" deleteHasPermi="wms:purchase-plan-main:delete"
:isOpenSearchTable="true" :isOpenSearchTable="true"
:mainSubmitCreateApi="true"
fieldTableColumn="poLine" fieldTableColumn="poLine"
/> />
@ -302,8 +303,23 @@ const getSearchTableData = async (number,formField,searchField)=>{
}) })
} }
// //
const searchTableSuccessDetail = (formField, searchField, val, formRef) => { const searchTableSuccessDetail = (formField, searchField, val, formRef,formModel) => {
console.log('searchTableSuccessDetail',formField, searchField, val, formRef,formModel)
nextTick(async () => { nextTick(async () => {
if(formModel){
console.log(formModel)
//
let data = {...val[0]}
data['planQty'] = val[0]['orderQty']
data['poLine'] = val[0]['lineNumber']
data['number'] = formModel['number']
data['poNumber'] = formModel['poNumber']
console.log('data',data)
await PurchasePlanDetailApi.createPurchasePlanDetail(data)
message.success(t('common.createSuccess'))
detailRef.value.updateList()
return
}
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
setV['poNumber'] = val[0]['number'] setV['poNumber'] = val[0]['number']

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

@ -39,6 +39,7 @@ export const SupplierdeliverRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isSearch: true
}, },
{ {
label: '供应商代码', label: '供应商代码',

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

@ -1261,6 +1261,9 @@ export const SupplierdeliverRequestDetailRules = reactive({
{ required: true, message: '请输入发货数量1', trigger: 'change' }, { required: true, message: '请输入发货数量1', trigger: 'change' },
// { validator: validateQty, trigger: 'change' }, // { validator: validateQty, trigger: 'change' },
], ],
supplierBatch: [
{ required: true, message: '请输入供应商批次', trigger: 'blur' }
],
batch: [ batch: [
{ required: true, message: '请输入批次', trigger: 'blur' }, { required: true, message: '请输入批次', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, { max: 50, message: '不得超过50个字符', trigger: 'blur' },

Loading…
Cancel
Save