ljlong_2630 2 weeks ago
parent
commit
81d24475b3
  1. 14
      .env.wyf
  2. 1
      package.json
  3. 20
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue

14
.env.wyf

@ -8,17 +8,17 @@ VITE_DEV=false
# SCP 28040 # SCP 28040
# WMS 28050 # WMS 28050
# # 请求路径 # # 请求路径
# VITE_BASE_URL='http://dev.ccwin-in.com:28040/api' VITE_BASE_URL='http://dev.ccwin-in.com:28050/api'
# # 上传路径 # 上传路径
# VITE_UPLOAD_URL='http://dev.ccwin-in.com:28040/admin-api/infra/file/upload' VITE_UPLOAD_URL='http://dev.ccwin-in.com:28050/admin-api/infra/file/upload'
# # 请求路径 # # # 请求路径
VITE_BASE_URL='http://192.168.1.196:12080' # VITE_BASE_URL='http://192.168.1.196:12080'
# 上传路径 # # 上传路径
VITE_UPLOAD_URL='http://192.168.1.196:12080/admin-api/infra/file/upload' # VITE_UPLOAD_URL='http://192.168.1.196:12080/admin-api/infra/file/upload'
# # 请求路径 # # 请求路径
# VITE_BASE_URL='http://192.168.1.35:12080' # VITE_BASE_URL='http://192.168.1.35:12080'

1
package.json

@ -6,7 +6,6 @@
"private": false, "private": false,
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"wyf": "vite --mode wyf",
"test": "vite build --mode test", "test": "vite build --mode test",
"prod": "vite build --mode prod", "prod": "vite build --mode prod",
"preview": "vite preview", "preview": "vite preview",

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

@ -277,7 +277,7 @@ const options = reactive({
// //
warehouseAreaOptions: [ warehouseAreaOptions: [
{value: 'WarehouseCode', label: '仓库' }, {value: 'WarehouseCode', label: '仓库' },
{value: 'Area', label: '库区' } {value: 'AreaCode', label: '库区' }
], ],
// //
WarehouseCodeRangeOptions: formatRangeOptions('IN', 'NOT IN'), WarehouseCodeRangeOptions: formatRangeOptions('IN', 'NOT IN'),
@ -347,8 +347,8 @@ const open = async (type: string, strategyCode: string, id?: number) => {
// item.Value = item.Value.split(',') // item.Value = item.Value.split(',')
// } // }
// }) // })
warehouseCodeObj.value = formData.value.condition.find(item => item['ParamCode'] == 'WarehouseCode' || item['ParamCode'] == 'Area') || '' warehouseCodeObj.value = formData.value.condition.find(item => item['ParamCode'] == 'WarehouseCode' || item['ParamCode'] == 'AreaCode') || ''
WarehouseCodeOrArea.value= formData.value.condition.find(item => item['ParamCode'] == 'WarehouseCode') ? 'WarehouseCode' : 'Area' WarehouseCodeOrArea.value= formData.value.condition.find(item => item['ParamCode'] == 'WarehouseCode') ? 'WarehouseCode' : 'AreaCode'
} }
if (data.configuration) { if (data.configuration) {
formData.value.configuration = JSON.parse(data.configuration) formData.value.configuration = JSON.parse(data.configuration)
@ -485,7 +485,7 @@ const searchWarehouse = () => {
'请选择库区', '请选择库区',
Area.allSchemas, Area.allSchemas,
AreaApi.getAreaPage, AreaApi.getAreaPage,
'Area', 'AreaCode',
'code', 'code',
true, true,
undefined, undefined,
@ -546,10 +546,10 @@ 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=='Area') { }else if (formField=='AreaCode') {
let Area = formData.value.condition.find(item => item['ParamCode'] == 'Area') let AreaCode = formData.value.condition.find(item => item['ParamCode'] == 'AreaCode')
if(Area){ if(AreaCode){
Area.Value = val.map(item=>(item['code'])).join(',') AreaCode.Value = val.map(item=>(item['code'])).join(',')
} }
} else if (formField=='SupplierCode') { } else if (formField=='SupplierCode') {
let SupplierCode = formData.value.condition.find(item => item['ParamCode'] == 'SupplierCode') let SupplierCode = formData.value.condition.find(item => item['ParamCode'] == 'SupplierCode')
@ -669,12 +669,12 @@ const changeWarehouseArea = (e) => {
// formData.value.configuration.DockCode='' // formData.value.configuration.DockCode=''
// formData.value.configuration.Receiver='' // formData.value.configuration.Receiver=''
// formData.value.configuration.PhoneNumber='' // formData.value.configuration.PhoneNumber=''
} else if (e == 'Area') { } else if (e == 'AreaCode') {
// getFormSupplierList() // getFormSupplierList()
} }
} }
// {value: 'WarehouseCode', label: '' }, // {value: 'WarehouseCode', label: '' },
// {value: 'Area', label: '' } // {value: 'AreaCode', label: '' }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.item { .item {

Loading…
Cancel
Save