Browse Source

策略。和要货计划获取策略接口

intex_online20241111
zhang_li 1 month ago
parent
commit
1a4815ef21
  1. 6
      src/api/wms/purchasePlanMain/index.ts
  2. 2
      src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue
  3. 4
      src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/index.vue
  4. 2
      src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue
  5. 4
      src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/index.vue
  6. 2
      src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue
  7. 4
      src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/index.vue
  8. 2
      src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/AddForm.vue
  9. 4
      src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/index.vue
  10. 2
      src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/AddForm.vue
  11. 4
      src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/index.vue
  12. 2
      src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/AddForm.vue
  13. 4
      src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/index.vue
  14. 2
      src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/AddForm.vue
  15. 4
      src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/index.vue

6
src/api/wms/purchasePlanMain/index.ts

@ -109,6 +109,8 @@ export const importTemplate = () => {
}
// 查询要货计划策略根据供应商
export const queryPurchasePlan = async (supplierCode: string) => {
return await request.get({ url: `/wms/purchase-plan-main/queryPurchasePlan?supplierCode=` + supplierCode })
export const queryPurchasePlan = async (supplierCode: string, itemCode: string) => {
return await request.get({
url: `/wms/purchase-plan-main/queryPurchasePlan?supplierCode=` + supplierCode + `&itemCode=` + itemCode
})
}

2
src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue

@ -35,7 +35,7 @@
</el-col>
<el-col :span="12" key="优先级col">
<el-form-item key="优先级formItem" label="优先级" prop="priority">
<el-input-number key="优先级input" v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/>
<el-input-number key="优先级input" v-model="formData.priority" :min="1" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12" key="状态col">

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

@ -134,7 +134,7 @@ const buttonBaseClick = (val, item) => {
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
if (val == row.priority) {
return true
} else {
return false
@ -145,7 +145,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), //
]
}

2
src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue

@ -35,7 +35,7 @@
</el-col>
<el-col :span="12" key="优先级col">
<el-form-item label="优先级" prop="priority" key="优先级formItem">
<el-input-number key="优先级input" v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/>
<el-input-number key="优先级input" v-model="formData.priority" :min="1" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12" key="状态col">

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

@ -134,7 +134,7 @@ const buttonBaseClick = (val, item) => {
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
if (val == row.priority) {
return true
} else {
return false
@ -145,7 +145,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), //
]
}

2
src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue

@ -36,7 +36,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="优先级" prop="priority">
<el-input-number key="priority" v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/>
<el-input-number key="priority" v-model="formData.priority" :min="1" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">

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

@ -138,7 +138,7 @@ const buttonBaseClick = (val, item) => {
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
if (val == row.priority) {
return true
} else {
return false
@ -149,7 +149,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), //
]
}

2
src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/AddForm.vue

@ -36,7 +36,7 @@
</el-col>
<el-col :span="12" key="优先级col">
<el-form-item key="优先级formItem" label="优先级" prop="priority">
<el-input-number key="优先级input" v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/>
<el-input-number key="优先级input" v-model="formData.priority" :min="1" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12" key="状态col">

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

@ -132,7 +132,7 @@ const buttonBaseClick = (val, item) => {
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
if (val == row.priority) {
return true
} else {
return false
@ -143,7 +143,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), //
]
}

2
src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/AddForm.vue

@ -35,7 +35,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="优先级" prop="priority">
<el-input-number v-model="formData.priority" :min="0" />
<el-input-number v-model="formData.priority" :min="1" />
</el-form-item>
</el-col>
<el-col :span="12">

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

@ -140,7 +140,7 @@ const buttonBaseClick = (val, item) => {
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
if (val == row.priority) {
return true
} else {
return false
@ -151,7 +151,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), //
]
}

2
src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/AddForm.vue

@ -36,7 +36,7 @@
</el-col>
<el-col :span="12" key="优先级Col">
<el-form-item key="优先级formItem" label="优先级" prop="priority">
<el-input-number key="优先级input" v-model="formData.priority" :min="0" :disabled="formData.name=='默认规则'&&formType=='update'"/>
<el-input-number key="优先级input" v-model="formData.priority" :min="1" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12" key="状态Col">

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

@ -135,7 +135,7 @@ const buttonBaseClick = (val, item) => {
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
if (val == row.priority) {
return true
} else {
return false
@ -146,7 +146,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), //
]
}

2
src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/AddForm.vue

@ -35,7 +35,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="优先级" prop="priority">
<el-input-number v-model="formData.priority" :min="0" />
<el-input-number v-model="formData.priority" :min="1" />
</el-form-item>
</el-col>
<el-col :span="12">

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

@ -140,7 +140,7 @@ const buttonBaseClick = (val, item) => {
//
const isShowMainButton = (row,val) => {
if (val == row.name) {
if (val == row.priority) {
return true
} else {
return false
@ -151,7 +151,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), //
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), //
]
}

Loading…
Cancel
Save