Browse Source

采购订单

master
陈薪名 1 year ago
parent
commit
756a1261fb
  1. 4
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
  2. 80
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

4
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue

@ -72,7 +72,7 @@
/> />
<!-- 导入 --> <!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/purchase-main/import" :importTemplateData="importTemplateData" @success="importSuccess" /> <ImportForm ref="importFormRef" url="/wms/purchase-main/import" :importTemplateData="importTemplateData" @success="importSuccess" :isShowOut="true" />
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -182,7 +182,7 @@ const butttondata = (row) => {
defaultButtons.mainListOrderOpeBtn({hide:isShowMainButton(row,['3'])}), // defaultButtons.mainListOrderOpeBtn({hide:isShowMainButton(row,['3'])}), //
defaultButtons.mainListOrderWitBtn({hide:isShowMainButton(row,['2'])}), // defaultButtons.mainListOrderWitBtn({hide:isShowMainButton(row,['2'])}), //
defaultButtons.mainListEditBtn({hasPermi:'wms:purchase-main:update',hide:isShowMainButton(row,['1'])}), // defaultButtons.mainListEditBtn({hasPermi:'wms:purchase-main:update',hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:purchase-main:delete',hide:isShowMainButton(row,['1'])}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:purchase-main:delete',hide:isShowMainButton(row,['1'])}), //
] ]
} }

80
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

@ -2,8 +2,8 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as SupplierApi from '@/api/wms/supplier' import * as SupplierApi from '@/api/wms/supplier'
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
import * as ItembasicApi from '@/api/wms/itembasic' import * as SupplieritemApi from '@/api/wms/supplieritem'
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' import { Supplieritem } from '@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
@ -30,7 +30,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', labelMessage: '影响明细中物品代码,需在供应商物品中维护',
componentProps: { componentProps: {
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本 searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
@ -564,6 +564,54 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
{
label: '物品代码',
field: 'itemCode',
table: {
width: 150
},
tableForm:{
isInpuFocusShow: true,
searchListPlaceholder: '请选择供应商物品',
searchField: 'itemCode',
searchTitle: '供应商物品信息',
searchAllSchemas: Supplieritem.allSchemas,
searchPage: SupplieritemApi.getSupplieritemPage,
searchCondition: [{
key:'supplierCode',
value:'supplierCode',
isMainValue: true
}//, //条件,例:isMainValue: true,表示查询条件是主表的字段的值 itemCode:查询列表中字段 supplierCode:指主表某字段
// {
// key:'available',
// value:'TRUE',
// isMainValue: false
// }
] // 条件,例:isMainValue: false,表示查询条件不是主表的字段的值 available:查询列表中字段 TRUE:指查询具体值
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true,
searchListPlaceholder: '请选择供应商物品',
searchField: 'itemCode',
searchTitle: '供应商物品信息',
searchAllSchemas: Supplieritem.allSchemas,
searchPage: SupplieritemApi.getSupplieritemPage,
searchCondition: [{
key:'supplierCode',
value:'supplierCode',
isMainValue: true
}//, //条件,例:isMainValue: true,表示查询条件是主表的字段的值 itemCode:查询列表中字段 supplierCode:指主表某字段
// {
// key:'available',
// value:'TRUE',
// isMainValue: false
// }
] // 条件,例:isMainValue: false,表示查询条件不是主表的字段的值 available:查询列表中字段 TRUE:指查询具体值
}
}
},
{ {
label: '订单数量', label: '订单数量',
field: 'orderQty', field: 'orderQty',
@ -609,32 +657,6 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '物品代码',
field: 'itemCode',
table: {
width: 150
},
tableForm:{
isInpuFocusShow: true,
searchListPlaceholder: '请选择物品代码',
searchField: 'code',
searchTitle: '物品基础信息',
searchAllSchemas: Itembasic.allSchemas,
searchPage: ItembasicApi.getItembasicPage
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true,
searchListPlaceholder: '请选择物品代码',
searchField: 'code',
searchTitle: '物品基础信息',
searchAllSchemas: Itembasic.allSchemas,
searchPage: ItembasicApi.getItembasicPage
}
}
},
{ {
label: '明细状态', label: '明细状态',
field: 'status', field: 'status',

Loading…
Cancel
Save