Browse Source

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

intex_online20241111
songguoqiang 1 month ago
parent
commit
39ed1384fb
  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
  16. 2
      src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/AddForm.vue
  17. 4
      src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/index.vue
  18. 500
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue
  19. 4
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue
  20. 2
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue
  21. 4
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue
  22. 2
      src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/AddForm.vue
  23. 4
      src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/index.vue
  24. 2
      src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/AddForm.vue
  25. 4
      src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/index.vue
  26. 50
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

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

@ -109,6 +109,8 @@ export const importTemplate = () => {
} }
// 查询要货计划策略根据供应商 // 查询要货计划策略根据供应商
export const queryPurchasePlan = async (supplierCode: string) => { export const queryPurchasePlan = async (supplierCode: string, itemCode: string) => {
return await request.get({ url: `/wms/purchase-plan-main/queryPurchasePlan?supplierCode=` + supplierCode }) 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>
<el-col :span="12" key="优先级col"> <el-col :span="12" key="优先级col">
<el-form-item key="优先级formItem" label="优先级" prop="priority"> <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-form-item>
</el-col> </el-col>
<el-col :span="12" key="状态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) => { const isShowMainButton = (row,val) => {
if (val == row.name) { if (val == row.priority) {
return true return true
} else { } else {
return false return false
@ -145,7 +145,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 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>
<el-col :span="12" key="优先级col"> <el-col :span="12" key="优先级col">
<el-form-item label="优先级" prop="priority" key="优先级formItem"> <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-form-item>
</el-col> </el-col>
<el-col :span="12" key="状态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) => { const isShowMainButton = (row,val) => {
if (val == row.name) { if (val == row.priority) {
return true return true
} else { } else {
return false return false
@ -145,7 +145,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 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>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="优先级" prop="priority"> <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-form-item>
</el-col> </el-col>
<el-col :span="12"> <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) => { const isShowMainButton = (row,val) => {
if (val == row.name) { if (val == row.priority) {
return true return true
} else { } else {
return false return false
@ -149,7 +149,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 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>
<el-col :span="12" key="优先级col"> <el-col :span="12" key="优先级col">
<el-form-item key="优先级formItem" label="优先级" prop="priority"> <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-form-item>
</el-col> </el-col>
<el-col :span="12" key="状态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) => { const isShowMainButton = (row,val) => {
if (val == row.name) { if (val == row.priority) {
return true return true
} else { } else {
return false return false
@ -143,7 +143,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 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>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="优先级" prop="priority"> <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-form-item>
</el-col> </el-col>
<el-col :span="12"> <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) => { const isShowMainButton = (row,val) => {
if (val == row.name) { if (val == row.priority) {
return true return true
} else { } else {
return false return false
@ -151,7 +151,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 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>
<el-col :span="12" key="优先级Col"> <el-col :span="12" key="优先级Col">
<el-form-item key="优先级formItem" label="优先级" prop="priority"> <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-form-item>
</el-col> </el-col>
<el-col :span="12" key="状态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) => { const isShowMainButton = (row,val) => {
if (val == row.name) { if (val == row.priority) {
return true return true
} else { } else {
return false return false
@ -146,7 +146,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 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>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="优先级" prop="priority"> <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-form-item>
</el-col> </el-col>
<el-col :span="12"> <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) => { const isShowMainButton = (row,val) => {
if (val == row.name) { if (val == row.priority) {
return true return true
} else { } else {
return false return false
@ -151,7 +151,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 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/storageCapacityStrategy/AddForm.vue

@ -35,7 +35,7 @@
</el-col> </el-col>
<el-col :span="12" key="优先级col"> <el-col :span="12" key="优先级col">
<el-form-item key="优先级formItem" label="优先级" prop="priority"> <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-form-item>
</el-col> </el-col>
<el-col :span="12" key="状态col"> <el-col :span="12" key="状态col">

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

@ -134,7 +134,7 @@ const buttonBaseClick = (val, item) => {
// //
const isShowMainButton = (row,val) => { const isShowMainButton = (row,val) => {
if (val == row.name) { if (val == row.priority) {
return true return true
} else { } else {
return false return false
@ -145,7 +145,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 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' }), //
] ]
} }

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

@ -36,7 +36,7 @@
</el-col> </el-col>
<el-col :span="12" key="优先级col"> <el-col :span="12" key="优先级col">
<el-form-item key="优先级formItem" :label="t('ts.优先级').replace('ts.','')" prop="priority"> <el-form-item key="优先级formItem" :label="t('ts.优先级').replace('ts.','')" 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-form-item>
</el-col> </el-col>
<el-col :span="12" key="状态col"> <el-col :span="12" key="状态col">
@ -51,106 +51,57 @@
<div key="规则条件title" class="title">{{t('ts.规则条件').replace('ts.','')}}</div> <div key="规则条件title" class="title">{{t('ts.规则条件').replace('ts.','')}}</div>
<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" <el-form-item key="受入地formItem" label="受入地" class="err-120" v-if="index==0">
v-if="item.ParamCode == 'SupplierType'" <el-select key="受入地Operator"
:label="t('ts.供应商类型').replace('ts.','')"
class="flex-top err-120"
>
<el-select key="供应商类型Operator"
v-model="item.Operator" v-model="item.Operator"
:placeholder="t('ts.请选择范围').replace('ts.','')" placeholder="请选择范围"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.name=='默认规则'&&formType=='update'"
@change="OperatorChange($event,item)"
> >
<el-option <el-option
:label="t(`ts.${cur.label}`).replace('ts.','')" :label="cur.label"
:value="cur.value" :value="cur.value"
v-for="cur in options.supplierTypeRangeOptions" v-for="cur in options.WarehouseCodeRangeOptions"
:key="'供应商类型Operator'+cur.value" :key="'受入地Operator'+cur.value"
/>
</el-select>
<el-select key="供应商类型Value"
v-model="item.Value"
:placeholder="t('ts.请选择供应商类型').replace('ts.','')"
style="flex: 1"
clearable
@change="changeSupplierType"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
v-for="dict in getStrDictOptions(DICT_TYPE.SUPPLIER_TYPE)"
:key="'供应商类型Value'+dict.value"
:label="t(`ts.${dict.label}`).replace('ts.','')"
:value="dict.value"
/> />
</el-select> </el-select>
<el-input key="受入地Value" style="flex:1" placeholder="请选择受入地" v-model="item.Value" @blur="blurWarehouseByCodes">
<template #suffix>
<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" />
</el-button>
</template>
</el-input>
</el-form-item> </el-form-item>
<!-- 供应商 --> <!-- 供应商代码 -->
<el-form-item key="供应商formItem" <el-form-item key="供应商代码formItem"
v-else-if="item.ParamCode == 'SupplierCode'" v-else-if="item.ParamCode == 'SupplierCode'"
:label="t('ts.供应商').replace('ts.','')" :label="t('ts.供应商代码').replace('ts.','')"
class="err-120" class="err-120"
> >
<el-select key="供应商Operator" <el-select key="供应商代码Operator"
v-model="item.Operator" v-model="item.Operator"
:placeholder="t('ts.请选择范围').replace('ts.','')" :placeholder="t('ts.请选择范围').replace('ts.','')"
style="width: 110px; margin-right: 10px" style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'" :disabled="formData.name=='默认规则'&&formType=='update'"
@change="OperatorChange($event,item)"
> >
<el-option <el-option
:label="t(`ts.${cur.label}`).replace('ts.','')" :label="t(`ts.${cur.label}`).replace('ts.','')"
:value="cur.value" :value="cur.value"
v-for="cur in options.supplierRangeOptions" v-for="cur in options.supplierRangeOptions"
:key="'供应商Operator'+cur.value" :key="'供应商代码Operator'+cur.value"
/> />
</el-select> </el-select>
<el-select key="供应商Value" <el-input key="供应商代码Value" style="flex:1" placeholder="请选择供应商代码" v-model="item.Value" @blur="blurSupplierCode">
v-model="item.Value" <template #suffix>
:placeholder="t('ts.请选择供应商').replace('ts.','')" <el-button :disabled="formData.name=='默认规则'&&formType=='update'" type="text" plain style="color:var(--el-button-text-color)" @click="searchSupplier">
style="flex: 1" <Icon icon="ep:search" class="mr-5px" />
clearable </el-button>
multiple </template>
collapse-tags </el-input>
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
v-for="cur in options.supplierList"
:key="'供应商Value'+cur.code"
:label="t(`ts.${cur.name}`).replace('ts.','')"
:value="cur.code"
/>
</el-select>
</el-form-item>
<!-- 星期几 -->
<el-form-item key="星期几formItem"
v-else-if="item.ParamCode == 'Weekday'"
:label="t('ts.星期几').replace('ts.','')"
class="flex-top err-120"
>
<el-select key="星期几Operator"
v-model="item.Operator"
placeholder="请选择范围"
style="width: 110px; margin-right: 10px"
:disabled="formData.name=='默认规则'&&formType=='update'"
>
<el-option
:label="t(`ts.${cur.label}`).replace('ts.','')"
:value="cur.value"
v-for="cur in options.weekRangeOptions"
:key="'星期几Operator'+cur.value"
/>
</el-select>
<div class="checkbox">
<el-checkbox-group v-model="item.Value">
<el-checkbox
:label="t(`ts.${cur.label}`).replace('ts.','')"
v-for="cur in options.weekOptions"
:key="'星期几Value'+cur.value"
:disabled="formData.name=='默认规则'&&formType=='update'"
/>
</el-checkbox-group>
</div>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -183,71 +134,32 @@
style="width: 100%" style="width: 100%"
/> />
</el-form-item> </el-form-item>
<!-- 仓库 -->
<el-form-item key="仓库formItem" :label="t('ts.仓库').replace('ts.','')" prop="WarehouseCode">
<el-select key="仓库"
v-model="formData.configuration.WarehouseCode"
:placeholder="`${t('ts.请选择').replace('ts.','')}${
formData.configuration.WarehouseCode == 'WarehouseCode'
? '仓库'
: formData.configuration.WarehouseCode == 'AreaCode'
? '库区'
: formData.configuration.WarehouseCode == 'LocationGroupCode'
? '库位组'
: formData.configuration.WarehouseCode == 'LocationCode'
? '库位'
: ''
}`"
clearable
>
<el-option
v-for="cur in options.warehouseList"
:key="'仓库'+cur.code"
:label="cur.code"
:value="cur.code"
/>
</el-select>
</el-form-item>
<!-- 月台 --> <!-- 月台 -->
<el-form-item key="月台formItem" :label="t('ts.月台').replace('ts.','')" prop="DockCode"> <el-form-item key="月台formItem" :label="t('ts.月台').replace('ts.','')" prop="DockCode">
<el-select key="月台" <el-input key="月台Value" style="flex:1" placeholder="请选择月台" v-model="formData.configuration.DockCode" @blur="blurDockCode">
v-model="formData.configuration.DockCode" <template #suffix>
:placeholder="t('ts.请选择月台').replace('ts.','')" <el-button :disabled="formData.name=='默认规则'&&formType=='update'" type="text" plain style="color:var(--el-button-text-color)" @click="searchDockCode">
clearable <Icon icon="ep:search" class="mr-5px" />
> </el-button>
<el-option </template>
v-for="cur in options.dockList" </el-input>
:key="'月台'+cur.code"
:label="cur.code"
:value="cur.code"
/>
</el-select>
</el-form-item>
<!-- 在途库位 -->
<el-form-item key="在途库位formItem" :label="t('ts.在途库位').replace('ts.','')" prop="OnTheWayLocationCode">
<el-select key="在途库位"
v-model="formData.configuration.OnTheWayLocationCode"
:placeholder="t('ts.请选择在途库位').replace('ts.','')"
clearable
filterable
:filter-method="filterMethodFromLocation"
>
<el-option
v-for="cur in options.locationList"
:key="'在途库位'+cur.code"
:label="cur.code"
:value="cur.code"
/>
</el-select>
</el-form-item> </el-form-item>
<!-- 收货人 --> <!-- 收货人 -->
<el-form-item key="收货人formItem" :label="t('ts.收货人').replace('ts.','')" prop="Receiver"> <el-form-item key="收货人formItem" :label="t('ts.收货人').replace('ts.','')" prop="Receiver">
<el-input key="收货人" v-model="formData.configuration.Receiver" :placeholder="t('ts.请输入收货人名称').replace('ts.','')" clearable /> <el-input key="收货人" v-model="formData.configuration.Receiver" :placeholder="t('ts.请输入收货人名称').replace('ts.','')" clearable />
</el-form-item> </el-form-item>
<!-- 在途库位 --> <!-- 联系电话 -->
<el-form-item key="联系电话formItem" :label="t('ts.联系电话').replace('ts.','')" prop="configuration.PhoneNumber"> <el-form-item key="联系电话formItem" :label="t('ts.联系电话').replace('ts.','')" prop="configuration.PhoneNumber">
<el-input key="联系电话" v-model="formData.configuration.PhoneNumber" :placeholder="t('ts.请输入联系电话').replace('ts.','')" clearable /> <el-input key="联系电话" v-model="formData.configuration.PhoneNumber" :placeholder="t('ts.请输入联系电话').replace('ts.','')" clearable />
</el-form-item> </el-form-item>
<!-- 是否上架 -->
<el-form-item key="是否上架formItem" :label="t('ts.是否上架').replace('ts.','')" prop="configuration.PutAway">
<el-switch
v-model="formData.configuration.PutAway"
active-value="TRUE"
inactive-value="FALSE"
/>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@ -258,19 +170,27 @@
<TableHead :HeadButttondata="Butttondata" @buttonBaseClick="buttonBaseClick" /> <TableHead :HeadButttondata="Butttondata" @buttonBaseClick="buttonBaseClick" />
</template> </template>
</Dialog> </Dialog>
<SearchTable
ref="searchTableRef"
@searchTableSuccess="searchTableSuccess"
/>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
defineOptions({ name: 'SupplieDeliveryStrategyAddForm' }) defineOptions({ name: 'SupplieDeliveryStrategyAddForm' })
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
import { getSupplierList } from '@/api/wms/supplier'
import { getWarehouseList } from '@/api/wms/warehouse'
import { getDockList } from '@/api/wms/dock'
import { getLocationList } from '@/api/wms/location'
import * as RuleApi from '@/api/wms/rule' import * as RuleApi from '@/api/wms/rule'
import { isString } from '@/utils/is' import { isString } from '@/utils/is'
import { validateHanset } from '@/utils/validator' import { validateHanset } from '@/utils/validator'
import * as WarehouseApi from '@/api/wms/warehouse'
import { Warehouse } from '@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data'
import * as SupplierApi from '@/api/wms/supplier'
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
import * as DockApi from '@/api/wms/dock'
import { Dock } from '@/views/wms/basicDataManage/factoryModeling/dock/dock.data'
const { t } = useI18n() // const { t } = useI18n() //
const message = useMessage() // const message = useMessage() //
@ -291,28 +211,23 @@ const formData = ref({
status: true, // status: true, //
// //
condition: [ condition: [
// { ParamCode: 'WarehouseCode', Operator: 'IN', Value: '',ScreenOperator:'in' },
{ ParamCode: 'SupplierType', Operator: '==', Value: '' }, //
// { ParamCode: 'SupplierCode', Operator: 'IN', Value: '' ,ScreenOperator:'in'},
{ ParamCode: 'SupplierCode', Operator: 'IN', Value: '' },
//
{ ParamCode: 'Weekday', Operator: 'IN', Value: [] }
], ],
configuration: { configuration: {
// //
BeginTime: '', BeginTime: '',
// //
EndTime: '', EndTime: '',
//
WarehouseCode: '',
// //
DockCode: '', DockCode: '',
//
OnTheWayLocationCode: '',
// //
Receiver: '', Receiver: '',
// //
PhoneNumber: '' PhoneNumber: '',
//
PutAway:'TRUE'
} }
}) })
@ -328,16 +243,16 @@ const rules = ref({
// //
const rangeOptions = [ const rangeOptions = [
{ value: '==', label: '等于' }, { value: '==', label: t('ts.等于'),screenValue:'=='},
{ value: '!=', label: '不等于' }, { value: '!=', label: t('ts.不等于'),screenValue:'!='},
{ value: '>', label: '大于' }, { value: '>', label: t('ts.大于'),screenValue:'>' },
{ value: '<', label: '小于' }, { value: '<', label: t('ts.小于'),screenValue:'<'},
{ value: '>=', label: '大于等于' }, { value: '>=', label: t('ts.大于等于'),screenValue:'>='},
{ value: '<=', label: '小于等于' }, { value: '<=', label: t('ts.小于等于'),screenValue:'<='},
{ value: 'IN', label: '包含' }, { value: 'IN', label: t('ts.包含'),screenValue:'in' },
{ value: 'NOT IN', label: '不包含' }, { value: 'NOT IN', label: t('ts.不包含'),screenValue:'notIn'},
{ value: 'NULL', label: '为空' }, { value: 'NULL', label: t('ts.是空'),screenValue:'isNull'},
{ value: 'NOT NULL', label: '不为空' } { value: 'NOT NULL', label: t('ts.不是空'),screenValue:'isNotNull'}
] ]
const formatRangeOptions = (...rest) => { const formatRangeOptions = (...rest) => {
// //
@ -346,32 +261,10 @@ const formatRangeOptions = (...rest) => {
} }
// //
const options = reactive({ const options = reactive({
// //
supplierTypeRangeOptions: formatRangeOptions('=='), WarehouseCodeRangeOptions: formatRangeOptions('IN', 'NOT IN'),
//
supplierTypeOptions: [],
// //
supplierRangeOptions: formatRangeOptions('IN', 'NOT IN'), supplierRangeOptions: formatRangeOptions('IN', 'NOT IN'),
//
supplierList: [],
//
weekRangeOptions: formatRangeOptions('IN', 'NOT IN'),
//
weekOptions: [
{ value: 1, label: '星期一' },
{ value: 2, label: '星期二' },
{ value: 3, label: '星期三' },
{ value: 4, label: '星期四' },
{ value: 5, label: '星期五' },
{ value: 6, label: '星期六' },
{ value: 7, label: '星期日' }
],
//
warehouseList: [],
//
dockList: [],
//
locationList: [],
originLocationList: [] originLocationList: []
}) })
// //
@ -396,49 +289,6 @@ const querySupplierParams = ref({
type: '' type: ''
}) })
//
const getFormSupplierList = async () => {
options.supplierList = await getSupplierList(querySupplierParams.value)
}
//
const changeSupplierType = (e) => {
querySupplierParams.value.type = e
formData.value.condition[1].Value = []
getFormSupplierList()
}
//
const getFormWarehouseList = async () => {
options.warehouseList = await getWarehouseList()
}
//
const getFormDockList = async () => {
options.dockList = await getDockList()
}
const filterMethodFromLocation = (query: string) => {
if (query) {
options.locationList = options.originLocationList.filter((item) => {
return item?.code.includes(query)
})
} else {
options.locationList = [...options.originLocationList]
}
}
//
const getFormLocationList = async () => {
if(!options.locationList || options.locationList.length==0){
options.originLocationList = await getLocationList({ type: 'TRANSPORT' })
options.locationList = [...options.originLocationList]
}else{
options.locationList = [...options.originLocationList]
}
}
getFormSupplierList()
getFormWarehouseList()
getFormDockList()
/** 打开弹窗 */ /** 打开弹窗 */
const open = async (type: string, strategyCode: string, id?: number) => { const open = async (type: string, strategyCode: string, id?: number) => {
@ -446,6 +296,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
dialogVisible.value = true dialogVisible.value = true
dialogTitle.value = t('action.' + type) dialogTitle.value = t('action.' + type)
formType.value = type formType.value = type
warehouseCodeObj.value =""
resetForm() resetForm()
// //
if (id) { if (id) {
@ -472,27 +323,27 @@ const open = async (type: string, strategyCode: string, id?: number) => {
// } // }
if (data.condition) { if (data.condition) {
formData.value.condition = JSON.parse(data.condition) formData.value.condition = JSON.parse(data.condition)
formData.value.condition.forEach((item, index) => { // formData.value.condition.forEach((item, index) => {
if (item.Operator == 'IN' || item.Operator == 'NOT IN') { // if (item.Operator == 'IN' || item.Operator == 'NOT IN') {
item.Value = item.Value.split(',') // item.Value = item.Value.split(',')
} // }
}) // })
warehouseCodeObj.value = formData.value.condition.find(item => item['ParamCode'] == 'WarehouseCode') || ''
} }
if (data.configuration) { if (data.configuration) {
formData.value.configuration = JSON.parse(data.configuration) formData.value.configuration = JSON.parse(data.configuration)
} }
querySupplierParams.value.type = formData.value?.condition[0]?.Value || '' querySupplierParams.value.type = formData.value?.condition[0]?.Value || ''
getFormSupplierList()
} finally { } finally {
formLoading.value = false formLoading.value = false
} }
} else { } else {
Butttondata.value = [ Butttondata.value = [
defaultButtons.formSaveBtn(null), // defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ]
} }
getFormLocationList()
} }
defineExpose({ open }) // open defineExpose({ open }) // open
@ -503,7 +354,7 @@ const submitForm = async () => {
if (!formRef) return if (!formRef) return
const valid = await formRef.value.validate() const valid = await formRef.value.validate()
if (!valid) return if (!valid) return
console.log(555,formData.value)
// if (formData.value.priority == 0) { // if (formData.value.priority == 0) {
// message.error('0') // message.error('0')
// return // return
@ -525,6 +376,7 @@ const submitForm = async () => {
return { return {
ParamCode:item.ParamCode, ParamCode:item.ParamCode,
Operator:item.Operator, Operator:item.Operator,
ScreenOperator:item.ScreenOperator,
Value:str Value:str
} }
}) })
@ -565,26 +417,190 @@ const resetForm = () => {
status: true, // status: true, //
// //
condition: [ condition: [
// //
{ ParamCode: 'SupplierType', Operator: '==', Value: '' }, { ParamCode: 'WarehouseCode', Operator: 'IN', Value: '',ScreenOperator:'in' },
// //
{ ParamCode: 'SupplierCode', Operator: 'IN', Value: '' }, { ParamCode: 'SupplierCode', Operator: 'IN', Value: '' ,ScreenOperator:'in'},
//
{ ParamCode: 'Weekday', Operator: 'IN', Value: [] }
], ],
configuration: { configuration: {
// //
BeginTime: '', BeginTime: '',
// //
EndTime: '', EndTime: '',
//
WarehouseCode: '',
// //
DockCode: '', DockCode: '',
// //
OnTheWayLocationCode: '' PutAway:'TRUE'
}
} }
} }
const searchTableRef = ref()
//
const searchWarehouse = ()=>{
searchTableRef.value.open(
'请选择仓库',
Warehouse.allSchemas,
WarehouseApi.getWarehousePage,
'WarehouseCode',
'code',
true,
undefined,
undefined,
undefined
)
}
//
const searchSupplier = () => {
searchTableRef.value.open(
'请选择供应商',
Supplier.allSchemas,
SupplierApi.getSupplierPage,
'SupplierCode',
'code',
true,
undefined,
undefined,
undefined
)
}
const searchDockCode = () => {
// if (!warehouseCodeStr.value) {
// message.warning('')
// return;
// }
let filters = []
if (warehouseCodeObj.value?.Value) {
filters = [{
action: warehouseCodeObj.value.ScreenOperator,
column: 'warehouseCode',
value: warehouseCodeObj.value.Value
}]
}
searchTableRef.value.open(
'请选择月台',
Dock.allSchemas,
DockApi.getDockPage,
'DockCode',
'code',
false,
undefined,
undefined,
{
isSearch: true,
filters: filters
}
)
}
const warehouseCodeObj = ref()
const searchTableSuccess = (formField, searchField, val, type, row) => {
if(formField=='WarehouseCode'){
warehouseCodeObj.value = formData.value.condition.find(item => item['ParamCode'] == 'WarehouseCode')
if(warehouseCodeObj.value){
warehouseCodeObj.value.Value = val.map(item => (item['code'])).join(',')
formData.value.configuration['DockCode']=''
}
} else if (formField=='SupplierCode') {
let SupplierCode = formData.value.condition.find(item => item['ParamCode'] == 'SupplierCode')
if(SupplierCode){
SupplierCode.Value = val.map(item=>(item['code'])).join(',')
}
} else if (formField=='DockCode') {
formData.value.configuration[formField] = val[0][searchField]
formData.value.configuration.Receiver = val[0].contactPerson
formData.value.configuration.PhoneNumber = val[0].contactPhone
}
}
//
const blurWarehouseByCodes = async ()=>{
let WarehouseCode = formData.value.condition.find(item=>item['ParamCode']=='WarehouseCode')
if(WarehouseCode&&WarehouseCode.Value){
let verifyRes = await WarehouseApi.getWarehouseByCodes({
codes:WarehouseCode.Value
})
console.log('事务类型verifyRes',verifyRes)
if (verifyRes && verifyRes.length > 0) {
const arr1 = WarehouseCode.Value.split(',')
if (arr1.length != verifyRes.length) {
const arr2 = verifyRes.map((item) => item.code)
const str = [
...arr1.filter((item) => !arr2.includes(item)),
...arr2.filter((item) => !arr1.includes(item))
].join(',')
message.alert('代码' + str + '没有找到对应数据')
WarehouseCode.Value = ''
return
}
} else {
WarehouseCode.Value = ''
message.alert('暂无数据')
}
}else{
WarehouseCode.Value = ''
}
}
//
const blurSupplierCode = async ()=>{
let SupplierCode = formData.value.condition.find(item=>item['ParamCode']=='SupplierCode')
if(SupplierCode&&SupplierCode.Value){
let verifyRes = await SupplierApi.getSupplierListByCodes({
codes:SupplierCode.Value
})
console.log('事务类型verifyRes',verifyRes)
if (verifyRes && verifyRes.length > 0) {
const arr1 = SupplierCode.Value.split(',')
if (arr1.length != verifyRes.length) {
const arr2 = verifyRes.map((item) => item.code)
const str = [
...arr1.filter((item) => !arr2.includes(item)),
...arr2.filter((item) => !arr1.includes(item))
].join(',')
message.alert('代码' + str + '没有找到对应数据')
SupplierCode.Value = ''
return
}
} else {
SupplierCode.Value = ''
message.alert('暂无数据')
}
}else{
SupplierCode.Value = ''
}
}
//
const blurDockCode = async () => {
if (formData.value.configuration.DockCode) {
let filters = []
if (warehouseCodeObj.value?.Value) {
filters.push({
action: warehouseCodeObj.value.ScreenOperator,
column: 'warehouseCode',
value: warehouseCodeObj.value.Value
})
}
if (formData.value.configuration.DockCode) {
filters.push({
action: '==',
column: 'code',
value: formData.value.configuration.DockCode
})
}
let verifyRes = await DockApi.getDockPage({
isSearch:true,
filters: filters
})
console.log('事务类型verifyRes',verifyRes)
if (verifyRes.list && verifyRes.list.length > 0) {
} else {
formData.value.configuration.DockCode = ''
message.alert('暂无数据')
}
}
}
const OperatorChange = (e, item) => {
item.ScreenOperator = rangeOptions.find((item) =>item.value === e)?.screenValue
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

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

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

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

@ -35,7 +35,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="优先级" prop="priority"> <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-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">

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

@ -146,7 +146,7 @@ const buttonBaseClick = (val, item) => {
// //
const isShowMainButton = (row,val) => { const isShowMainButton = (row,val) => {
if (val == row.name) { if (val == row.priority) {
return true return true
} else { } else {
return false return false
@ -199,7 +199,7 @@ const importSuccess = () => {
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 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/utensilCapacityStrategy/AddForm.vue

@ -35,7 +35,7 @@
</el-col> </el-col>
<el-col :span="12" key="优先级col"> <el-col :span="12" key="优先级col">
<el-form-item key="优先级formItem" label="优先级" prop="priority"> <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-form-item>
</el-col> </el-col>
<el-col :span="12" key="状态col"> <el-col :span="12" key="状态col">

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

@ -134,7 +134,7 @@ const buttonBaseClick = (val, item) => {
// //
const isShowMainButton = (row,val) => { const isShowMainButton = (row,val) => {
if (val == row.name) { if (val == row.priority) {
return true return true
} else { } else {
return false return false
@ -145,7 +145,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 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/warehouseStorageStrategy/AddForm.vue

@ -35,7 +35,7 @@
</el-col> </el-col>
<el-col :span="12" key="优先级col"> <el-col :span="12" key="优先级col">
<el-form-item label="优先级" prop="priority" key="优先级formItem"> <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-form-item>
</el-col> </el-col>
<el-col :span="12" key="状态col"> <el-col :span="12" key="状态col">

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

@ -135,7 +135,7 @@ const buttonBaseClick = (val, item) => {
// //
const isShowMainButton = (row,val) => { const isShowMainButton = (row,val) => {
if (val == row.name) { if (val == row.priority) {
return true return true
} else { } else {
return false return false
@ -146,7 +146,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 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' }), //
] ]
} }

50
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -234,22 +234,22 @@ const { loadStart, loadDone } = usePageLoading()
if(formField == 'supplierCode'){ if(formField == 'supplierCode'){
setV['supplierCode'] = val[0]['code'] setV['supplierCode'] = val[0]['code']
await PurchasePlanMainApi.queryPurchasePlan(val[0]['code']).then(res => { // await PurchasePlanMainApi.queryPurchasePlan(val[0]['code']).then(res => {
// let beginTime = res.beginTime // // let beginTime = res.beginTime
// var ms = beginTime.substring(0, 2) // // var ms = beginTime.substring(0, 2)
// var me = beginTime.substring(3) // // var me = beginTime.substring(3)
// setV['beginTime'] = new Date(2024, 1, 1, Number(ms), Number(me)) // // setV['beginTime'] = new Date(2024, 1, 1, Number(ms), Number(me))
// let endTime = res.endTime // // let endTime = res.endTime
// var ms = endTime.substring(0, 2) // // var ms = endTime.substring(0, 2)
// var me = endTime.substring(3) // // var me = endTime.substring(3)
// setV['endTime'] = new Date(2024, 1, 1, Number(ms), Number(me)) // // setV['endTime'] = new Date(2024, 1, 1, Number(ms), Number(me))
setV['timeWindow'] = res.timeWindow // setV['timeWindow'] = res.timeWindow
setV['beginTime'] = res.beginTime // setV['beginTime'] = res.beginTime
setV['endTime'] = res.endTime // setV['endTime'] = res.endTime
setV['contacts'] = res.contacts // setV['contacts'] = res.contacts
setV['phone'] = res.phone // setV['phone'] = res.phone
}) // })
tableData.value = [] tableData.value = []
} }
if (formField == 'poLine') { if (formField == 'poLine') {
@ -268,7 +268,23 @@ const { loadStart, loadDone } = usePageLoading()
if(formField == 'poNumber') { if(formField == 'poNumber') {
//---- //----
// //
getSearchTableData(val[0]['number'],formField,searchField) await getSearchTableData(val[0]['number'], formField, searchField)
await PurchasePlanMainApi.queryPurchasePlan(formRef.formModel.supplierCode,tableData.value[0]['itemCode']).then(res => {
// let beginTime = res.beginTime
// var ms = beginTime.substring(0, 2)
// var me = beginTime.substring(3)
// setV['beginTime'] = new Date(2024, 1, 1, Number(ms), Number(me))
// let endTime = res.endTime
// var ms = endTime.substring(0, 2)
// var me = endTime.substring(3)
// setV['endTime'] = new Date(2024, 1, 1, Number(ms), Number(me))
setV['timeWindow'] = res.timeWindow
setV['beginTime'] = res.beginTime
setV['endTime'] = res.endTime
setV['contacts'] = res.contacts
setV['phone'] = res.phone
})
} }
} }
}) })

Loading…
Cancel
Save