Browse Source

修复bug

master_hella_20240701
chenfang 5 months ago
parent
commit
92b6591c7f
  1. 5
      src/api/wms/inventorymoveRecordMain/index.ts
  2. 22
      src/views/wms/inventoryManage/balance/index.vue
  3. 27
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue
  4. 33
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  5. 4
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts

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

@ -126,3 +126,8 @@ export const exportScrapToHoldRecordMain = async (params) => {
export const importTemplate = () => {
return request.download({ url: '/wms/inventorymove-record-main/get-import-template' })
}
// 下载用户导入模板(除库存移动外)
export const importTemplateExceptMove = () => {
return request.download({ url: '/wms/inventorymove-record-main/get-import-template-exceptMove' })
}

22
src/views/wms/inventoryManage/balance/index.vue

@ -193,17 +193,17 @@ const handleSelectionPoint = async ()=>{
}
// -
const butttondata = [
// {
// label: '',
// name: 'bqxx',
// hide: false,
// type: 'primary',
// icon: '',
// color: '',
// link: true,
// float:'right',
// hasPermi: ''
// },
{
label: '标签信息',
name: 'bqxx',
hide: false,
type: 'primary',
icon: '',
color: '',
link: true,
float:'right',
hasPermi: ''
},
defaultButtons.mainListPointBtn(null), //
// defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), //

27
src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue

@ -59,6 +59,9 @@
:detailAllSchemasRules="InventorymoveRecordDetailRules"
:apiPage="InventorymoveRecordDetailApi.getInventorymoveRecordDetailPage"
/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/inventorymove-record-main/import" :importTemplateData="importTemplateData"
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" :fromInventoryStatus= "fromInventoryStatus" :toInventoryStatus="toInventoryStatus" />
</template>
<script setup lang="ts">
@ -174,6 +177,8 @@ const buttonBaseClick = (val, item) => {
} else {
getList()
}
} else if (val == 'import') { //
handleImport()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -235,6 +240,23 @@ const handleExport = async () => {
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: importFileName.value + '.xlsx'
})
//
const importSuccess = () => {
getList()
}
//
const searchFormClick = (searchData) => {
tableObject.params = {
@ -247,5 +269,10 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
getList()
if(routeName.value == "InventorymoveRecordMain"){
importTemplateData.templateUrl = await InventorymoveRecordMainApi.importTemplate()
}else {
importTemplateData.templateUrl = await InventorymoveRecordMainApi.importTemplateExceptMove()
}
})
</script>

33
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -177,50 +177,27 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => {
key: 'businessType',
value: businessType.value ,
isMainValue: false
},
{
key: 'fromWarehouseCode',
value: 'fromWarehouseCode',
message: '请选择从仓库代码!',
isMainValue: true
}]
}]
item.form.componentProps.searchCondition = [
{
key: 'businessType',
value: businessType.value,
isMainValue: false
},
{
key: 'fromWarehouseCode',
value: 'fromWarehouseCode',
message: '请选择从仓库代码!',
isMainValue: true
}]
}
]
} else if (fromInventoryStatus.value == null) {
item.tableForm.searchCondition = [
{
key: 'businessType',
value: businessType.value ,
isMainValue: false
},
{
key: 'fromWarehouseCode',
value: 'fromWarehouseCode',
message: '请选择从仓库代码!',
isMainValue: true
}]
}]
item.form.componentProps.searchCondition = [
{
key: 'businessType',
value: businessType.value,
isMainValue: false
},
{
key: 'fromWarehouseCode',
value: 'fromWarehouseCode',
message: '请选择从仓库代码!',
isMainValue: true
}]
}]
} else {
delete item.tableForm.searchCondition
}

4
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts

@ -236,8 +236,8 @@ export const DemandforecastingMainRules = reactive({
available: [
{ required: true, message: '请选择是否可用', trigger: 'change' }
],
status: [
{ required: true, message: '请选择状态', trigger: 'change' }
supplierCode: [
{ required: true, message: '请选择供应商代码', trigger: 'change' }
],
version: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }

Loading…
Cancel
Save