Browse Source

供应商物料

intex_online20250224
songguoqiang 1 month ago
parent
commit
043bbc9d4e
  1. 12
      src/utils/disposition/defaultButtons.ts
  2. 20
      src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue
  3. 44
      src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts

12
src/utils/disposition/defaultButtons.ts

@ -81,6 +81,18 @@ export function defaultReceiptOfInclusionBtn(option: any) {
})
}
export function defaultSupplierItemBtn(option: any) {
return __defaultBtnOption(option, {
label: t(`ts.导入供应商物料`).replace('ts.', ''),
name: 'supplierItemBtn',
hide: false,
type: 'warning',
icon: 'ep:upload',
color: '',
hasPermi: ''
})
}
// 字段设置
// export function defaultFieldSettingBtn(option:any) {

20
src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

@ -55,6 +55,9 @@
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/supplieritem/import" :importTemplateData="importTemplateData" @success="importSuccess" />
<!-- 导入地点同步 -->
<ImportForm ref="importFormRef1" url="/wms/supplieritem/importAddress" :importTemplateData="importTemplateData1" @success="importSuccess" />
</template>
<script setup lang="ts">
@ -127,6 +130,7 @@ const { getList, setSearchParams } = tableMethods
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:supplieritem:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:supplieritem:import'}), //
defaultButtons.defaultSupplierItemBtn({hasPermi:'wms:supplieritem:importAddress'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:supplieritem:export'}), //
defaultButtons.defaultFreshBtn(null),//
defaultButtons.defaultFilterBtn(null), //
@ -147,6 +151,8 @@ const buttonBaseClick = (val, item) => {
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'supplierItemBtn') { //
handleImport1()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
@ -347,6 +353,18 @@ const handleExport = async () => {
}
}
/** 导入供应商物料地点 */
const importFormRef1 = ref()
const handleImport1 = () => {
importFormRef1.value.open()
}
//
const importTemplateData1 = reactive({
templateUrl: '',
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
@ -377,6 +395,6 @@ onMounted(async() => {
available: 'TRUE'
}
getList()
importTemplateData.templateUrl = await SupplieritemApi.importTemplate()
importTemplateData1.templateUrl = await SupplieritemApi.importTemplate()
})
</script>

44
src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts

@ -113,7 +113,12 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
hiddenSearchHigh:true,
tableForm:{
disabled:true,
}
},
form:{
componentProps:{
disabled: true
}
},
},
{
label: '品名',
@ -135,7 +140,12 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
table: {
width: 180
}
},
form:{
componentProps:{
disabled: true
}
},
},
{
label: '供应商计量单位',
@ -146,6 +156,22 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
table: {
width: 150
},
form:{
componentProps:{
disabled: true
}
},
},
{
label: '供应商地点',
field: 'supplierAddress',
isForm:true,
form:{
},
table: {
width: 180
}
},
{
@ -159,6 +185,7 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'Switch',
componentProps: {
disabled: true,
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
@ -177,6 +204,7 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'InputNumber',
componentProps: {
disabled: true,
min: 0
}
},
@ -241,6 +269,7 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
disabled: true,
enterSearch:true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
@ -283,6 +312,7 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
component: 'Switch',
value: 'TRUE',
componentProps: {
disabled: true,
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
@ -306,6 +336,7 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'DatePicker',
componentProps: {
disabled: true,
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
@ -328,6 +359,7 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'DatePicker',
componentProps: {
disabled: true,
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
@ -349,6 +381,7 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'DatePicker',
componentProps: {
disabled: true,
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
@ -405,7 +438,12 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
table: {
width: 150
}
},
form:{
componentProps:{
disabled: true
}
},
},
{
label: '操作',

Loading…
Cancel
Save