Browse Source

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

hella_online_20240919
zhaoxuebing 2 months ago
parent
commit
fd6df43c19
  1. 1
      src/locales/en-US.ts
  2. 1
      src/locales/zh-CN.ts
  3. 4
      src/views/system/passwordRule/index.vue
  4. 32
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue
  5. 2
      src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue
  6. 61
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  7. 5
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

1
src/locales/en-US.ts

@ -691,6 +691,7 @@ export default {
:'Forecast Date', :'Forecast Date',
:'Order Line', :'Order Line',
:'Planned Quantity', :'Planned Quantity',
0:'The number of plans must be greater than 0',
:'Last update time', :'Last update time',
:'Last Updater', :'Last Updater',
:'Demand plan', :'Demand plan',

1
src/locales/zh-CN.ts

@ -693,6 +693,7 @@ export default {
:'预测日期', :'预测日期',
:'订单行', :'订单行',
:'计划数量', :'计划数量',
0:'计划数量必须大于0',
:'最后更新时间', :'最后更新时间',
:'最后更新者', :'最后更新者',
:'要货计划', :'要货计划',

4
src/views/system/passwordRule/index.vue

@ -113,8 +113,8 @@ const passwordConfig = ref({
ruleDesc: "", ruleDesc: "",
tryCount: 3, tryCount: 3,
lockHours: 1, lockHours: 1,
updatePeriod: 30, updatePeriod: 180,
dayTryCount: 3, dayTryCount: 5,
updateRemind: 7, updateRemind: 7,
}) })
/** 查询配置 */ /** 查询配置 */

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

@ -1210,6 +1210,37 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗
/** 提交表单 */ /** 提交表单 */
const emit = defineEmits(['success']) // success const emit = defineEmits(['success']) // success
const submitForm = async () => { const submitForm = async () => {
let TransactionType = formData.value.condition[5]['Value']
if(Array.isArray(TransactionType)){
TransactionType = TransactionType.join(',')
}
if(TransactionType=='Repleinment'){
//--
let msg = ''
let itemCodeType = formData.value.condition[1]['ParamCode']
let itemCodes = formData.value.condition[1]['Value']
if(Array.isArray(itemCodes)){
itemCodes = itemCodes.join(',')
}
let locationCodes = formData.value.configuration.LocationCode
if(Array.isArray(locationCodes)){
locationCodes = locationCodes.join(',')
}
if(itemCodeType!='ItemCode'){
msg = '请选择物料'
}else if(itemCodes.trim().length<=0){
msg = '请您选择物料'
}else if(warehouseType.value!='LocationCode'){
//
msg = '请选择库位'
}else if(locationCodes.trim().length<=0){
msg = '请您选择库位'
}
if(msg){
message.error(msg)
return
}
}
await blurWarehouse() await blurWarehouse()
// await blurTransactionType() // await blurTransactionType()
if(warehouseType.value == 'WarehouseCode' && !formData.value.configuration.WarehouseCode){ if(warehouseType.value == 'WarehouseCode' && !formData.value.configuration.WarehouseCode){
@ -1231,6 +1262,7 @@ const submitForm = async () => {
return return
} }
// //
if (!formRef) return if (!formRef) return
const valid = await formRef.value.validate() const valid = await formRef.value.validate()

2
src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue

@ -153,7 +153,7 @@ const butttondata = (row, $index) => {
return [ return [
// defaultButtons.mainListEditBtn({hasPermi:'wms:sale-shipment-main-record:update'}), // // defaultButtons.mainListEditBtn({hasPermi:'wms:sale-shipment-main-record:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:sale-shipment-main-record:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:sale-shipment-main-record:delete'}), //
defaultButtons.mainListAbortBtn({hasPermi:'wms:sale-shipment-main-request:abort',hide:row.revokeFlag=='TRUE'}), // defaultButtons.mainListAbortBtn({hasPermi:'wms:sale-shipment-main-request:abort',hide:(row.revokeFlag=='TRUE'||row.relateRecordNumber != null ) }), //
] ]
} }

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

@ -83,7 +83,6 @@
:detailAllSchemas="PurchasePlanDetail.allSchemas" :detailAllSchemas="PurchasePlanDetail.allSchemas"
:detailAllSchemasRules="PurchasePlanDetailRules" :detailAllSchemasRules="PurchasePlanDetailRules"
:apiCreate="PurchasePlanDetailApi.createPurchasePlanDetail" :apiCreate="PurchasePlanDetailApi.createPurchasePlanDetail"
:apiUpdate="PurchasePlanDetailApi.updatePurchasePlanDetail"
:apiPage="PurchasePlanDetailApi.getPurchasePlanDetailPage" :apiPage="PurchasePlanDetailApi.getPurchasePlanDetailPage"
:apiDelete="PurchasePlanDetailApi.deletePurchasePlanDetail" :apiDelete="PurchasePlanDetailApi.deletePurchasePlanDetail"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
@ -98,6 +97,8 @@
:isOpenSearchTable="true" :isOpenSearchTable="true"
:mainSubmitCreateApi="true" :mainSubmitCreateApi="true"
fieldTableColumn="poLine" fieldTableColumn="poLine"
@detailOpenForm="detailOpenForm"
@handleSubmitForm="handleDetailSubmitForm"
/> />
<!-- 导入 --> <!-- 导入 -->
@ -517,7 +518,26 @@ const getSearchTableData = async (number,formField,searchField)=>{
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
} }
const detailOpenForm = (type, row) => {
PurchasePlanDetail.allSchemas.formSchema.forEach(item=>{
if(item.field == 'planQty'){
//
item.componentProps.disabled = row.available=="FALSE"
}
})
}
const handleDetailSubmitForm = async (formType, data)=>{
if(formType == 'update'){
if(Number(data.planQty)<=0){
message.error(t('ts.计划数量必须大于0'))
return
}
await PurchasePlanDetailApi.updatePurchasePlanDetail(data)
message.success(t('common.updateSuccess'))
}
detailRef.value.submitUpdateList()
}
/** 删除按钮操作 */ /** 删除按钮操作 */
const handleDelete = async (id : number) => { const handleDelete = async (id : number) => {
try { try {
@ -865,25 +885,26 @@ const handleSelectionPublish = async ()=>{
// / // /
const detailValidate = async (data) => { const detailValidate = async (data) => {
let tag = false return true
await PurchaseDetailApi.getPurchaseDetailPageCheckData({ // let tag = false
number: data.poNumber, // await PurchaseDetailApi.getPurchaseDetailPageCheckData({
lineNumber: data.poLine // number: data.poNumber,
}).then(res => { // lineNumber: data.poLine
if(res.list[0].type == 'DISCRETE'){// // }).then(res => {
if (data.planQty > res.list[0].orderQty - res.list[0].plannedQty) { // if(res.list[0].type == 'DISCRETE'){//
message.error(t('ts.要货计划数量不得大于订单数量-已计划数量')) // if (data.planQty > res.list[0].orderQty - res.list[0].plannedQty) {
tag = false // message.error(t('ts.-'))
} else { // tag = false
tag = true // } else {
} // tag = true
}else{ // }
tag = true // }else{
} // tag = true
}).catch(err =>{ // }
console.log(err); // }).catch(err =>{
}) // console.log(err);
return tag // })
// return tag
} }
/** 导入 */ /** 导入 */

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

@ -138,6 +138,11 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
value: 4, value: 4,
isMainValue: false isMainValue: false
}, },
{
key: 'flag',
value: 1,
isMainValue: false
},
{ {
key: 'available', key: 'available',
value: "TRUE", value: "TRUE",

Loading…
Cancel
Save