Browse Source

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

intex_online20241111
ljlong_2630 3 months ago
parent
commit
0cf456eeec
  1. 2
      src/api/home/index.ts
  2. 5
      src/api/wms/customerStatementDetail/index.ts
  3. 5
      src/api/wms/customerStatementMain/index.ts
  4. 2
      src/api/wms/switch/index.ts
  5. 102
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue
  6. 32
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue
  7. 72
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts

2
src/api/home/index.ts

@ -41,7 +41,7 @@ export const getPurchasereturnRecordMonth = async (params) => {
// 本月索赔明细 // 本月索赔明细
export const getPurchaseclaimRecordMonth = async (params) => { export const getPurchaseclaimRecordMonth = async (params) => {
return await request.get({ url: `/wms/index/pagePurchaseclaimRecordMonth`,params }) // return await request.get({ url: `/wms/index/pagePurchaseclaimRecordMonth`,params })
} }
// 今日生产计划 // 今日生产计划

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

@ -116,3 +116,8 @@ export const exportCustomerStatementCompareDetail = async (params) => {
export const updateAdjustmentAmount = async (id: number, masterId: number, amount: number) => { export const updateAdjustmentAmount = async (id: number, masterId: number, amount: number) => {
return await request.get({ url: `wms/customer-tool-apport-statement-detail/updateAdjustmentAmount?id=` + id + '&masterId=' + masterId + '&amount=' + amount }) return await request.get({ url: `wms/customer-tool-apport-statement-detail/updateAdjustmentAmount?id=` + id + '&masterId=' + masterId + '&amount=' + amount })
} }
// 客户对账单直接创建开票申请查询子分页数据
export const pageInvoice = async (params) => {
return await request.get({ url: `/wms/customer-statement-detail/pageInvoice`, params })
}

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

@ -127,9 +127,6 @@ export const exportCustomerStatementShareMain = async (params) => {
export const getCustomerStatementMain = async (id: number) => { export const getCustomerStatementMain = async (id: number) => {
return await request.get({ url: `/wms/customer-statement-main/get?id=` + id }) return await request.get({ url: `/wms/customer-statement-main/get?id=` + id })
} }
// 客户对账单直接创建开票申请查询子分页数据
export const pageInvoice = async (params) => {
return await request.get({ url: `/wms/customer-statement-detail/pageInvoice`, params })
}

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

@ -57,5 +57,5 @@ export const importTemplate = () => {
// 获取开关详情 // 获取开关详情
export const getSwitchByCode = async (code) => { export const getSwitchByCode = async (code) => {
return await request.get({ url: '/wms/switch/getByCode?code=' + code }) // return await request.get({ url: '/wms/switch/getByCode?code=' + code })
} }

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

@ -52,8 +52,22 @@
<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" label="受入地" class="err-120" v-if="index==0"> <el-form-item key="仓库和库区formItem" label="" label-width="0" v-if="index==0">
<el-select key="受入地Operator" <el-select key="仓库和库区"
v-model="item.ParamCode"
placeholder=""
style="width: 110px; margin-right: 10px"
@change="changeWarehouseArea"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="cur.label"
:value="cur.value"
v-for="cur in options.warehouseAreaOptions"
:key="'仓库和库区'+cur.value"
/>
</el-select>
<el-select key="仓库和库区Operator"
v-model="item.Operator" v-model="item.Operator"
placeholder="请选择范围" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
@ -64,10 +78,10 @@
:label="cur.label" :label="cur.label"
:value="cur.value" :value="cur.value"
v-for="cur in options.WarehouseCodeRangeOptions" v-for="cur in options.WarehouseCodeRangeOptions"
:key="'受入地Operator'+cur.value" :key="'仓库和库区Operator'+cur.value"
/> />
</el-select> </el-select>
<el-input key="受入地Value" style="flex:1" placeholder="请选择受入地" v-model="item.Value" @blur="blurWarehouseByCodes"> <el-input key="仓库和库区Value" style="flex:1" placeholder="请选择仓库或者库区" v-model="item.Value" @blur="blurWarehouseByCodes">
<template #suffix> <template #suffix>
<el-button :disabled="formData.name=='默认规则'&&formType=='update'" type="text" plain style="color:var(--el-button-text-color)" @click="searchWarehouse"> <el-button :disabled="formData.name=='默认规则'&&formType=='update'" type="text" plain style="color:var(--el-button-text-color)" @click="searchWarehouse">
<Icon icon="ep:search" class="mr-5px" /> <Icon icon="ep:search" class="mr-5px" />
@ -186,6 +200,10 @@ import { validateHanset } from '@/utils/validator'
import * as WarehouseApi from '@/api/wms/warehouse' import * as WarehouseApi from '@/api/wms/warehouse'
import { Warehouse } from '@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data' import { Warehouse } from '@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data'
import * as AreaApi from '@/api/wms/areabasic'
import { Area } from '@/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data'
import * as SupplierApi from '@/api/wms/supplier' import * as SupplierApi from '@/api/wms/supplier'
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
import * as DockApi from '@/api/wms/dock' import * as DockApi from '@/api/wms/dock'
@ -261,6 +279,11 @@ const formatRangeOptions = (...rest) => {
} }
// //
const options = reactive({ const options = reactive({
//
warehouseAreaOptions: [
{value: 'WarehouseCode', label: '仓库' },
{value: 'Area', label: '库区' }
],
// //
WarehouseCodeRangeOptions: formatRangeOptions('IN', 'NOT IN'), WarehouseCodeRangeOptions: formatRangeOptions('IN', 'NOT IN'),
// //
@ -437,18 +460,34 @@ const resetForm = () => {
const searchTableRef = ref() const searchTableRef = ref()
// //
const searchWarehouse = ()=>{ const searchWarehouse = () => {
searchTableRef.value.open( console.log(WarehouseCodeOrArea.value)
'请选择仓库', if (WarehouseCodeOrArea.value == 'WarehouseCode') {
Warehouse.allSchemas, searchTableRef.value.open(
WarehouseApi.getWarehousePage, '请选择仓库',
'WarehouseCode', Warehouse.allSchemas,
'code', WarehouseApi.getWarehousePage,
true, 'WarehouseCode',
undefined, 'code',
undefined, true,
undefined undefined,
) undefined,
undefined
)
} else if (WarehouseCodeOrArea.value == 'Area') {
searchTableRef.value.open(
'请选择库区',
Area.allSchemas,
AreaApi.getAreaPage,
'Area',
'code',
true,
undefined,
undefined,
undefined
)
}
} }
// //
const searchSupplier = () => { const searchSupplier = () => {
@ -501,7 +540,12 @@ const searchTableSuccess = (formField, searchField, val, type, row) => {
warehouseCodeObj.value.Value = val.map(item => (item['code'])).join(',') warehouseCodeObj.value.Value = val.map(item => (item['code'])).join(',')
formData.value.configuration['DockCode']='' formData.value.configuration['DockCode']=''
} }
} else if (formField=='SupplierCode') { }else if (formField=='Area') {
let Area = formData.value.condition.find(item => item['ParamCode'] == 'Area')
if(Area){
Area.Value = val.map(item=>(item['code'])).join(',')
}
} else if (formField=='SupplierCode') {
let SupplierCode = formData.value.condition.find(item => item['ParamCode'] == 'SupplierCode') let SupplierCode = formData.value.condition.find(item => item['ParamCode'] == 'SupplierCode')
if(SupplierCode){ if(SupplierCode){
SupplierCode.Value = val.map(item=>(item['code'])).join(',') SupplierCode.Value = val.map(item=>(item['code'])).join(',')
@ -530,14 +574,23 @@ const blurWarehouseByCodes = async ()=>{
].join(',') ].join(',')
message.alert('代码' + str + '没有找到对应数据') message.alert('代码' + str + '没有找到对应数据')
WarehouseCode.Value = '' WarehouseCode.Value = ''
formData.value.configuration.DockCode=''
formData.value.configuration.Receiver=''
formData.value.configuration.PhoneNumber=''
return return
} }
} else { } else {
WarehouseCode.Value = '' WarehouseCode.Value = ''
formData.value.configuration.DockCode=''
formData.value.configuration.Receiver=''
formData.value.configuration.PhoneNumber=''
message.alert('暂无数据') message.alert('暂无数据')
} }
}else{ }else{
WarehouseCode.Value = '' WarehouseCode.Value = ''
formData.value.configuration.DockCode=''
formData.value.configuration.Receiver=''
formData.value.configuration.PhoneNumber=''
} }
} }
// //
@ -602,6 +655,21 @@ const blurDockCode = async () => {
const OperatorChange = (e, item) => { const OperatorChange = (e, item) => {
item.ScreenOperator = rangeOptions.find((item) =>item.value === e)?.screenValue item.ScreenOperator = rangeOptions.find((item) =>item.value === e)?.screenValue
} }
const WarehouseCodeOrArea = ref('WarehouseCode')
//
const changeWarehouseArea = (e) => {
formData.value.condition[0].Value = ''
WarehouseCodeOrArea.value = e
if (e == 'WarehouseCode') {
formData.value.configuration.DockCode=''
formData.value.configuration.Receiver=''
formData.value.configuration.PhoneNumber=''
} else if (e == 'Area') {
// getFormSupplierList()
}
}
// {value: 'WarehouseCode', label: '' },
// {value: 'Area', label: '' }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.item { .item {

32
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue

@ -43,7 +43,7 @@
<BasicForm <BasicForm
ref="formRef" ref="formRef"
:isOpenSearchTable="true" :isOpenSearchTable="true"
fieldTableColumn="fromPackingNumber" fieldTableColumn="fromBatch"
:includeCollectionTable="true" :includeCollectionTable="true"
@success="getList" @success="getList"
:rules="InventorymoveRequestMainRules" :rules="InventorymoveRequestMainRules"
@ -203,7 +203,7 @@ InventorymoveRequestMain.allSchemas.tableFormColumns.map(item =>{
}) })
// tableform // tableform
InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => { InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => {
if(item.field == 'fromPackingNumber') { if(item.field == 'fromBatch') {
if (fromInventoryStatus.value) { if (fromInventoryStatus.value) {
item.tableForm.searchCondition = [ item.tableForm.searchCondition = [
{ {
@ -300,10 +300,10 @@ const getDefaultToLocationCode = async ()=>{
}) })
console.log('params',params) console.log('params',params)
let res = await LocationApi.selectBusinessTypeToLocation(params) let res = await LocationApi.selectBusinessTypeToLocation(params)
console.log('获取到库位默认值',res) // console.log('',res)
if(res&&res.list.length>0){ // if(res&&res.list.length>0){
formRef.value.formRef.formModel["toLocationCode"] = res.list[0]['code'] // formRef.value.formRef.formModel["toLocationCode"] = res.list[0]['code']
} // }
} }
const clearInput = (field, row, index) => { const clearInput = (field, row, index) => {
if(field=='supplierCode'){ if(field=='supplierCode'){
@ -316,8 +316,8 @@ const toManagementPrecision = ref('')
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(async() => { nextTick(async() => {
if (type == 'tableForm') { if (type == 'tableForm') {
if(formField == 'fromPackingNumber'){ if(formField == 'fromBatch'){
val = val.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['itemCode']&&item1['fromBatch']==item['batch']&&item1['fromPackingNumber']==item['packingNumber']&&item1['fromLocationCode']==item['locationCode']&&item1['fromInventoryStatus']==item['inventoryStatus'])) val = val.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['itemCode']&&item1['fromBatch']==item['batch']&&item1['fromLocationCode']==item['locationCode']&&item1['fromInventoryStatus']==item['inventoryStatus']))
if(val.length==0) return if(val.length==0) return
const toLocationCode =formRef.formModel.toLocationCode// const toLocationCode =formRef.formModel.toLocationCode//
@ -387,14 +387,14 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} else { } else {
const setV = {} const setV = {}
if (formField == 'fromWarehouseCode') { if (formField == 'fromWarehouseCode') {
if(InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromPackingNumber')).tableForm.searchCondition.find(item => (item.key == 'warehouseCode')) == undefined){ if(InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromBatch')).tableForm.searchCondition.find(item => (item.key == 'warehouseCode')) == undefined){
InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromPackingNumber')).tableForm.searchCondition.push({ InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromBatch')).tableForm.searchCondition.push({
key: 'warehouseCode', key: 'warehouseCode',
value: val[0]["code"], value: val[0]["code"],
isMainValue: false isMainValue: false
}) })
} else { } else {
InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromPackingNumber')).tableForm.searchCondition.find(item => { InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromBatch')).tableForm.searchCondition.find(item => {
if (item.key == 'warehouseCode') { if (item.key == 'warehouseCode') {
item.value = val[0]["code"] item.value = val[0]["code"]
} }
@ -410,8 +410,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
if(formField == 'fromPackingNumber') { if(formField == 'fromBatch') {
setV['fromPackingNumber'] = val[0]['packingNumber'] // setV['fromPackingNumber'] = val[0]['packingNumber']
setV['fromContainerNumber'] = val[0]['containerNumber'] setV['fromContainerNumber'] = val[0]['containerNumber']
setV['itemCode'] = val[0]['itemCode'] setV['itemCode'] = val[0]['itemCode']
setV['fromBatch'] = val[0]['batch'] setV['fromBatch'] = val[0]['batch']
@ -605,14 +605,14 @@ const openForm =async (type: string, row?: number) => {
* 详情 新增/编辑事件 * 详情 新增/编辑事件
*/ */
const detailOpenForm = (type, row) => { const detailOpenForm = (type, row) => {
if(InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.find(item => (item.key == 'warehouseCode')) == undefined){ if(InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromBatch'))?.componentProps?.searchCondition.find(item => (item.key == 'warehouseCode')) == undefined){
InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.push({ InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromBatch'))?.componentProps?.searchCondition.push({
key: 'warehouseCode', key: 'warehouseCode',
value: fromWarehouseCodeMain.value, value: fromWarehouseCodeMain.value,
isMainValue: false isMainValue: false
}) })
} else { } else {
InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.find(item => { InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromBatch'))?.componentProps?.searchCondition.find(item => {
if (item.key == 'warehouseCode') { if (item.key == 'warehouseCode') {
item.value = fromWarehouseCodeMain.value item.value = fromWarehouseCodeMain.value
} }

72
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts

@ -1108,16 +1108,33 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
label: '从批次', label: '从批次',
field: 'fromBatch', field: 'fromBatch',
sort: 'custom', sort: 'custom',
tableForm: { table: {
disabled: true, width: 150
},
tableForm:{
multiple:true,
disabled:true,
placeholder: '请选择从批次', placeholder: '请选择从批次',
valueFormat: 'YYYYMMDD', valueFormat: 'YYYYMMDD',
format: 'YYYYMMDD', format: 'YYYYMMDD',
isInpuFocusShow: false, // 开启查询弹窗
searchListPlaceholder: '请选择从批次',
searchField: 'packingNumber',
searchTitle: '库存余额信息',
searchAllSchemas: BalanceShow.allSchemas,
searchPage: BalanceApi.selectLocationTypeToBalance,
}, },
form: { form: {
// labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
disabled: true, disabled: true,
valueFormat: 'YYYYMMDD', valueFormat: 'YYYYMMDD',
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择从批次',
searchField: 'packingNumber',
searchTitle: '库存余额信息',
searchAllSchemas: BalanceShow.allSchemas,
searchPage: BalanceApi.selectLocationTypeToBalance,
} }
} }
}, },
@ -1177,53 +1194,6 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
disabled: true disabled: true
} }
}, },
{
label: '供应商批次',
field: 'altBatch',
sort: 'custom',
isForm:false,
isSearch: false,
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true
}
},
{
label: '从包装号',
field: 'fromPackingNumber',
sort: 'custom',
table: {
width: 150
},
tableForm:{
multiple:true,
disabled:true,
isInpuFocusShow: false, // 开启查询弹窗
searchListPlaceholder: '请选择从包装号',
searchField: 'packingNumber',
searchTitle: '库存余额信息',
searchAllSchemas: BalanceShow.allSchemas,
searchPage: BalanceApi.selectLocationTypeToBalance,
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择从包装号',
searchField: 'packingNumber',
searchTitle: '库存余额信息',
searchAllSchemas: BalanceShow.allSchemas,
searchPage: BalanceApi.selectLocationTypeToBalance,
}
}
},
{ {
label: '到包装号', label: '到包装号',
field: 'toPackingNumber', field: 'toPackingNumber',
@ -1270,13 +1240,13 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
disabled:true, disabled:false,
min: 0, min: 0,
precision: 6 precision: 6
} }
}, },
tableForm: { tableForm: {
disabled:true, disabled:false,
type: 'InputNumber', type: 'InputNumber',
min: 0, min: 0,
precision: 6 precision: 6

Loading…
Cancel
Save