Browse Source

标准成本价 去掉供应商

master
陈薪名 11 months ago
parent
commit
7a0abe703e
  1. 1
      src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue
  2. 84
      src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts

1
src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue

@ -67,6 +67,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
//
defineOptions({ name: 'Stdcostprice' }) defineOptions({ name: 'Stdcostprice' })
const message = useMessage() // const message = useMessage() //

84
src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts

@ -1,11 +1,11 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as SupplieritemApi from '@/api/wms/supplieritem' import * as ItembasicApi from '@/api/wms/itembasic'
import { Supplieritem } from '../../supplierManage/supplieritem/supplieritem.data' import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
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'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
@ -13,34 +13,34 @@ const { t } = useI18n() // 国际化
* @returns {Array} * @returns {Array}
*/ */
export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([ export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([
{ // {
label: '供应商代码', // label: '供应商代码',
field: 'supplierCode', // field: 'supplierCode',
isSearch: true, // isSearch: true,
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150, // width: 150,
fixed: 'left' // fixed: 'left'
}, // },
form: { // form: {
// labelMessage: '信息提示说明!!!', // // labelMessage: '信息提示说明!!!',
componentProps: { // componentProps: {
isSearchList: true, // 开启查询弹窗 // isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本 // searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 // searchField: 'code', // 查询弹窗赋值字段
searchTitle: '供应商信息', // 查询弹窗标题 // searchTitle: '供应商信息', // 查询弹窗标题
searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类 // searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
searchPage: SupplierApi.getSupplierPage, // 查询弹窗所需分页方法 // searchPage: SupplierApi.getSupplierPage, // 查询弹窗所需分页方法
searchCondition: [{ // searchCondition: [{
key: 'available', // key: 'available',
value: 'TRUE', // value: 'TRUE',
action: '==', // action: '==',
isSearch: true, // isSearch: true,
isMainValue: false // isMainValue: false
}] // }]
} // }
} // }
}, // },
{ {
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
@ -54,15 +54,17 @@ export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择物品代码', // 输入框占位文本 searchListPlaceholder: '请选择物品代码', // 输入框占位文本
searchField: 'itemCode', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
searchTitle: '供应商物品信息', // 查询弹窗标题 searchTitle: '物品信息', // 查询弹窗标题
searchAllSchemas: Supplieritem.allSchemas, // 查询弹窗所需类 searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: SupplieritemApi.getSupplieritemPage, // 查询弹窗所需分页方法 searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [
key:'supplierCode', // {
value:'supplierCode', // key:'supplierCode',
isMainValue: true // value:'supplierCode',
},{ // isMainValue: true
// },
{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false

Loading…
Cancel
Save