Browse Source

修复bug

master_hella_20240701
chenfang 4 months ago
parent
commit
92b6591c7f
  1. 7
      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

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

@ -125,4 +125,9 @@ export const exportScrapToHoldRecordMain = async (params) => {
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/inventorymove-record-main/get-import-template' }) 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 = [ const butttondata = [
// { {
// label: '', label: '标签信息',
// name: 'bqxx', name: 'bqxx',
// hide: false, hide: false,
// type: 'primary', type: 'primary',
// icon: '', icon: '',
// color: '', color: '',
// link: true, link: true,
// float:'right', float:'right',
// hasPermi: '' hasPermi: ''
// }, },
defaultButtons.mainListPointBtn(null), // defaultButtons.mainListPointBtn(null), //
// defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), // // defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), //

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

@ -59,6 +59,9 @@
:detailAllSchemasRules="InventorymoveRecordDetailRules" :detailAllSchemasRules="InventorymoveRecordDetailRules"
:apiPage="InventorymoveRecordDetailApi.getInventorymoveRecordDetailPage" :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> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -174,6 +177,8 @@ const buttonBaseClick = (val, item) => {
} else { } else {
getList() getList()
} }
} else if (val == 'import') { //
handleImport()
} else if (val == 'filtrate') { // } else if (val == 'filtrate') { //
} else { // } else { //
console.log('其他按钮', item) 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) => { const searchFormClick = (searchData) => {
tableObject.params = { tableObject.params = {
@ -247,5 +269,10 @@ const searchFormClick = (searchData) => {
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
getList() getList()
if(routeName.value == "InventorymoveRecordMain"){
importTemplateData.templateUrl = await InventorymoveRecordMainApi.importTemplate()
}else {
importTemplateData.templateUrl = await InventorymoveRecordMainApi.importTemplateExceptMove()
}
}) })
</script> </script>

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

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

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

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

Loading…
Cancel
Save