Browse Source

策略

master
zhang_li 1 year ago
parent
commit
a1f617e324
  1. 1
      src/utils/dict.ts
  2. 8
      src/views/wms/basicDataManage/strategySetting/configurationsetting/index.vue
  3. 8
      src/views/wms/basicDataManage/strategySetting/paramsetting/index.vue
  4. 3
      src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/index.vue
  5. 3
      src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/index.vue
  6. 3
      src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/index.vue
  7. 3
      src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/index.vue
  8. 3
      src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/index.vue
  9. 3
      src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/index.vue
  10. 3
      src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/index.vue
  11. 3
      src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/index.vue
  12. 3
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue
  13. 3
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue
  14. 3
      src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/index.vue
  15. 3
      src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/index.vue
  16. 5
      src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts
  17. 7
      src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue

1
src/utils/dict.ts

@ -194,6 +194,7 @@ export enum DICT_TYPE {
ITEM_CONFIGURATION = 'item_configuration', // 物品配置 ITEM_CONFIGURATION = 'item_configuration', // 物品配置
EQ_LEVEL = 'eq_level', // 质量等级 EQ_LEVEL = 'eq_level', // 质量等级
CURRENCY = 'currency', // 货币 CURRENCY = 'currency', // 货币
BASIC_CURRENCY = 'basic_currency', // 货币
SUPPLIER_TYPE = 'supplier_type', // 供应商类型 SUPPLIER_TYPE = 'supplier_type', // 供应商类型
CUSTOMER_TYPE = 'customer_type', // 客户类型 CUSTOMER_TYPE = 'customer_type', // 客户类型
OWNER_TYPE = 'owner_type', // 货主类型 OWNER_TYPE = 'owner_type', // 货主类型

8
src/views/wms/basicDataManage/strategySetting/configurationsetting/index.vue

@ -29,7 +29,7 @@
> >
<template #strategyType="{row}"> <template #strategyType="{row}">
<el-button type="primary" link @click="openDetail(row, '策略类型', row.strategyType)"> <el-button type="primary" link @click="openDetail(row, '策略类型', row.strategyType)">
<span>{{ row.strategyType }}</span> <span>{{ formatter(row.strategyType) }}</span>
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row }">
@ -65,6 +65,7 @@ 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 { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
defineOptions({ name: 'Configurationsetting' }) defineOptions({ name: 'Configurationsetting' })
@ -202,7 +203,10 @@ const searchFormClick = (searchData) => {
} }
getList() // getList() //
} }
const formatter = (type)=>{
let str = getStrDictOptions(DICT_TYPE.STRATEGY_TYPE).filter(item=>type==item.value)[0].label;
return str
}
/** 初始化 **/ /** 初始化 **/
onMounted(async() => { onMounted(async() => {
getList() getList()

8
src/views/wms/basicDataManage/strategySetting/paramsetting/index.vue

@ -29,7 +29,7 @@
> >
<template #strategyType="{row}"> <template #strategyType="{row}">
<el-button type="primary" link @click="openDetail(row, '策略类型', row.strategyType)"> <el-button type="primary" link @click="openDetail(row, '策略类型', row.strategyType)">
<span>{{ row.strategyType }}</span> <span>{{ formatter(row.strategyType) }}</span>
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row }">
@ -65,6 +65,7 @@ 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 { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
defineOptions({ name: 'Paramsetting' }) defineOptions({ name: 'Paramsetting' })
@ -202,7 +203,10 @@ const searchFormClick = (searchData) => {
} }
getList() // getList() //
} }
const formatter = (type)=>{
let str = getStrDictOptions(DICT_TYPE.STRATEGY_TYPE).filter(item=>type==item.value)[0].label;
return str
}
/** 初始化 **/ /** 初始化 **/
onMounted(async() => { onMounted(async() => {
getList() getList()

3
src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/index.vue

@ -8,8 +8,7 @@
class="!w-240px" /> class="!w-240px" />
</el-form-item> </el-form-item>
<el-form-item label="优先级" prop="priority"> <el-form-item label="优先级" prop="priority">
<el-input v-model="queryParams.priority" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" <el-input v-model.number="queryParams.priority" type="number" oninput ="value=value.replace(/[^\d]/g,'')" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" class="!w-240px" />
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">

3
src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/index.vue

@ -8,8 +8,7 @@
class="!w-240px" /> class="!w-240px" />
</el-form-item> </el-form-item>
<el-form-item label="优先级" prop="priority"> <el-form-item label="优先级" prop="priority">
<el-input v-model="queryParams.priority" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" <el-input v-model.number="queryParams.priority" type="number" oninput ="value=value.replace(/[^\d]/g,'')" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" class="!w-240px" />
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">

3
src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/index.vue

@ -8,8 +8,7 @@
class="!w-240px" /> class="!w-240px" />
</el-form-item> </el-form-item>
<el-form-item label="优先级" prop="priority"> <el-form-item label="优先级" prop="priority">
<el-input v-model="queryParams.priority" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" <el-input v-model.number="queryParams.priority" type="number" oninput ="value=value.replace(/[^\d]/g,'')" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" class="!w-240px" />
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">

3
src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/index.vue

@ -8,8 +8,7 @@
class="!w-240px" /> class="!w-240px" />
</el-form-item> </el-form-item>
<el-form-item label="优先级" prop="priority"> <el-form-item label="优先级" prop="priority">
<el-input v-model="queryParams.priority" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" <el-input v-model.number="queryParams.priority" type="number" oninput ="value=value.replace(/[^\d]/g,'')" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" class="!w-240px" />
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">

3
src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/index.vue

@ -8,8 +8,7 @@
class="!w-240px" /> class="!w-240px" />
</el-form-item> </el-form-item>
<el-form-item label="优先级" prop="priority"> <el-form-item label="优先级" prop="priority">
<el-input v-model="queryParams.priority" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" <el-input v-model.number="queryParams.priority" type="number" oninput ="value=value.replace(/[^\d]/g,'')" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" class="!w-240px" />
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">

3
src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/index.vue

@ -9,8 +9,7 @@
class="!w-240px" /> class="!w-240px" />
</el-form-item> </el-form-item>
<el-form-item label="优先级" prop="priority"> <el-form-item label="优先级" prop="priority">
<el-input v-model="queryParams.priority" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" <el-input v-model.number="queryParams.priority" type="number" oninput ="value=value.replace(/[^\d]/g,'')" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" class="!w-240px" />
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">

3
src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/index.vue

@ -8,8 +8,7 @@
class="!w-240px" /> class="!w-240px" />
</el-form-item> </el-form-item>
<el-form-item label="优先级" prop="priority"> <el-form-item label="优先级" prop="priority">
<el-input v-model="queryParams.priority" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" <el-input v-model.number="queryParams.priority" type="number" oninput ="value=value.replace(/[^\d]/g,'')" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" class="!w-240px" />
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">

3
src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/index.vue

@ -8,8 +8,7 @@
class="!w-240px" /> class="!w-240px" />
</el-form-item> </el-form-item>
<el-form-item label="优先级" prop="priority"> <el-form-item label="优先级" prop="priority">
<el-input v-model="queryParams.priority" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" <el-input v-model.number="queryParams.priority" type="number" oninput ="value=value.replace(/[^\d]/g,'')" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" class="!w-240px" />
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">

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

@ -9,8 +9,7 @@
class="!w-240px" /> class="!w-240px" />
</el-form-item> </el-form-item>
<el-form-item label="优先级" prop="priority"> <el-form-item label="优先级" prop="priority">
<el-input v-model="queryParams.priority" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" <el-input v-model.number="queryParams.priority" type="number" oninput ="value=value.replace(/[^\d]/g,'')" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" class="!w-240px" />
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">

3
src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue

@ -9,8 +9,7 @@
class="!w-240px" /> class="!w-240px" />
</el-form-item> </el-form-item>
<el-form-item label="优先级" prop="priority"> <el-form-item label="优先级" prop="priority">
<el-input v-model="queryParams.priority" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" <el-input v-model.number="queryParams.priority" type="number" oninput ="value=value.replace(/[^\d]/g,'')" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" class="!w-240px" />
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">

3
src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/index.vue

@ -8,8 +8,7 @@
class="!w-240px" /> class="!w-240px" />
</el-form-item> </el-form-item>
<el-form-item label="优先级" prop="priority"> <el-form-item label="优先级" prop="priority">
<el-input v-model="queryParams.priority" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" <el-input v-model.number="queryParams.priority" type="number" oninput ="value=value.replace(/[^\d]/g,'')" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" class="!w-240px" />
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">

3
src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/index.vue

@ -9,8 +9,7 @@
class="!w-240px" /> class="!w-240px" />
</el-form-item> </el-form-item>
<el-form-item label="优先级" prop="priority"> <el-form-item label="优先级" prop="priority">
<el-input v-model="queryParams.priority" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" <el-input v-model.number="queryParams.priority" type="number" oninput ="value=value.replace(/[^\d]/g,'')" placeholder="请输入优先级" clearable @keyup.enter="handleQuery" class="!w-240px" />
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">

5
src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts

@ -22,7 +22,7 @@ export const Currencyexchange = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '基础货币', label: '基础货币',
field: 'basiccurrency', field: 'basiccurrency',
dictType: DICT_TYPE.CURRENCY, dictType: DICT_TYPE.BASIC_CURRENCY,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true, isTable: true,
@ -41,7 +41,8 @@ export const Currencyexchange = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
min: 0 min: 0,
precision:6
} }
}, },
}, },

7
src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue

@ -203,10 +203,9 @@ const searchFormClick = (searchData) => {
} }
getList() // getList() //
} }
const formatter = (currency)=>{ const formatter = (type)=>{
console.log(getStrDictOptions(DICT_TYPE.CURRENCY)) let str = getStrDictOptions(DICT_TYPE.CURRENCY).filter(item=>type==item.value)[0].label;
let currencyStr = getStrDictOptions(DICT_TYPE.CURRENCY).filter(item=>currency==item.value)[0].label; return str
return currencyStr
} }
/** 初始化 **/ /** 初始化 **/
onMounted(async() => { onMounted(async() => {

Loading…
Cancel
Save