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',
:'Order Line',
:'Planned Quantity',
0:'The number of plans must be greater than 0',
:'Last update time',
:'Last Updater',
:'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: "",
tryCount: 3,
lockHours: 1,
updatePeriod: 30,
dayTryCount: 3,
updatePeriod: 180,
dayTryCount: 5,
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 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 blurTransactionType()
if(warehouseType.value == 'WarehouseCode' && !formData.value.configuration.WarehouseCode){
@ -1231,6 +1262,7 @@ const submitForm = async () => {
return
}
//
if (!formRef) return
const valid = await formRef.value.validate()

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

@ -153,7 +153,7 @@ const butttondata = (row, $index) => {
return [
// defaultButtons.mainListEditBtn({hasPermi:'wms:sale-shipment-main-record:update'}), //
// 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"
:detailAllSchemasRules="PurchasePlanDetailRules"
:apiCreate="PurchasePlanDetailApi.createPurchasePlanDetail"
:apiUpdate="PurchasePlanDetailApi.updatePurchasePlanDetail"
:apiPage="PurchasePlanDetailApi.getPurchasePlanDetailPage"
:apiDelete="PurchasePlanDetailApi.deletePurchasePlanDetail"
@searchTableSuccessDetail="searchTableSuccessDetail"
@ -98,6 +97,8 @@
:isOpenSearchTable="true"
:mainSubmitCreateApi="true"
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
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) => {
try {
@ -865,25 +885,26 @@ const handleSelectionPublish = async ()=>{
// /
const detailValidate = async (data) => {
let tag = false
await PurchaseDetailApi.getPurchaseDetailPageCheckData({
number: data.poNumber,
lineNumber: data.poLine
}).then(res => {
if(res.list[0].type == 'DISCRETE'){//
if (data.planQty > res.list[0].orderQty - res.list[0].plannedQty) {
message.error(t('ts.要货计划数量不得大于订单数量-已计划数量'))
tag = false
} else {
tag = true
}
}else{
tag = true
}
}).catch(err =>{
console.log(err);
})
return tag
return true
// let tag = false
// await PurchaseDetailApi.getPurchaseDetailPageCheckData({
// number: data.poNumber,
// lineNumber: data.poLine
// }).then(res => {
// if(res.list[0].type == 'DISCRETE'){//
// if (data.planQty > res.list[0].orderQty - res.list[0].plannedQty) {
// message.error(t('ts.-'))
// tag = false
// } else {
// tag = true
// }
// }else{
// tag = true
// }
// }).catch(err =>{
// console.log(err);
// })
// return tag
}
/** 导入 */

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

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

Loading…
Cancel
Save