| | |
| | | import SettingIplatform from '@/utils/settingIplatform'; |
| | | import * as finsystenant from '@/api/baseSetting/finsystenant'; |
| | | import myImport from '@/views/components/myImport'; |
| | | import { getBaseUrl } from '@/utils/base'; |
| | | import { getCategorySelectTree, goodsModel } from '@/api/baseSetting/finsystenant'; |
| | | import { getDicts } from '@/api/system/dict/data'; |
| | | import {getBaseUrl} from '@/utils/base'; |
| | | import * as DateFormatter from '@/utils/DateFormatter'; |
| | | import stockType from '@/utils/stockType' |
| | | |
| | | export default { |
| | | name: 'index', |
| | |
| | | placeholder: '请输入', |
| | | defaultValue: '', |
| | | options: [], |
| | | cascader: [{ key: 'categoryId', queryKey: 'goodsTemplatesId' }], |
| | | cascader: [{ key: 'baseGoodsModelsId', queryKey: 'goodsTemplatesId' }], |
| | | optionsConfig: { |
| | | label: 'goodsName', |
| | | value: 'id', |
| | |
| | | }, |
| | | { |
| | | type: 'text', |
| | | dataIndex: 'name', |
| | | dataIndex: 'businessFormCode', |
| | | label: '单号', |
| | | placeholder: '请输入', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | type: 'date-picker', |
| | | dataIndex: 'val1', |
| | | dataIndex: 'dealTimeStart', |
| | | label: '时间', |
| | | defaultValue: '', |
| | | }, |
| | | { |
| | | type: 'date-picker', |
| | | dataIndex: 'val2', |
| | | dataIndex: 'dealTimeEnd', |
| | | label: '至', |
| | | defaultValue: '', |
| | | }, |
| | |
| | | }, |
| | | // 列信息 |
| | | columns: [ |
| | | { title: '机构', field: 'agencyName', align: 'left' }, |
| | | { title: '仓库', field: 'warehouseName', align: 'center' }, |
| | | { title: '物品名称', field: 'goodsTemplateName', align: 'center' }, |
| | | { title: '规格型号', field: 'baseGoodsModelsName', align: 'center' }, |
| | | { title: '机构', field: 'agencyName', align: 'left', width: 130 }, |
| | | { title: '仓库', field: 'warehouseName', align: 'left', width: 130 }, |
| | | { title: '物品名称', field: 'goodsTemplateName', align: 'left', minWidth: 130 }, |
| | | { title: '规格型号', field: 'baseGoodsModelsName', align: 'left', width: 130 }, |
| | | { |
| | | title: '类型', |
| | | field: 'summary', |
| | | align: 'left', |
| | | align: 'center', |
| | | formatter: (row) => { |
| | | let result = ''; |
| | | let arr = ['采购入库', '调拨', '其他出库', '部门分发', '报废出库', '部门物品回退仓库', '物品盘点']; |
| | | if (row.businessType == 7) { |
| | | if (this.thisType == 1) { |
| | | result = '盘盈入库'; |
| | | } else { |
| | | result = '盘亏出库'; |
| | | } |
| | | }else if(this.businessType == 2) { |
| | | if (this.thisType == 1) { |
| | | result = '调拨入库'; |
| | | } else { |
| | | result = '调拨出库'; |
| | | } |
| | | }else { |
| | | result = arr[row.businessType - 1]; |
| | | } |
| | | let result = stockType(row) |
| | | return { value: result }; |
| | | }, |
| | | }, |
| | | { title: '单号', field: 'businessFormCode', align: 'left' }, |
| | | { title: '数量', field: 'thisCount', align: 'left' }, |
| | | { title: '操作前数量', field: 'initialCount', align: 'left' }, |
| | | { title: '操作后数量', field: 'endCount', align: 'left' }, |
| | | { title: '在途', field: 'zaiTuCount', align: 'left' }, |
| | | { title: '单号', field: 'businessFormCode', align: 'center', width: 130 }, |
| | | { title: '数量', field: 'thisCount', align: 'center', width: 100 }, |
| | | { title: '操作前数量', field: 'initialCount', align: 'center', width: 100 }, |
| | | { title: '操作后数量', field: 'endCount', align: 'center', width: 100 }, |
| | | { title: '在途', field: 'zaiTuCount', align: 'center', width: 100 }, |
| | | { |
| | | title: '操作时间', |
| | | field: 'dealTime', |
| | | align: 'left', |
| | | align: 'center', |
| | | width: 160, |
| | | formatter: (row) => { |
| | | return { value: DateFormatter.LongToDateTime(row.dealTime) }; |
| | | }, |