diff --git a/src/views/biz/bizEmployeesInfo/BizEmployeesInfoList.vue b/src/views/biz/bizEmployeesInfo/BizEmployeesInfoList.vue index 49ea64f..aea9f7b 100644 --- a/src/views/biz/bizEmployeesInfo/BizEmployeesInfoList.vue +++ b/src/views/biz/bizEmployeesInfo/BizEmployeesInfoList.vue @@ -39,7 +39,7 @@ + :md="12" :lg="12" :xl="8" :xxl="8"> diff --git a/src/views/biz/nuBaseInfo/components/EwmForm.vue b/src/views/biz/nuBaseInfo/components/EwmForm.vue index b91f536..b054066 100644 --- a/src/views/biz/nuBaseInfo/components/EwmForm.vue +++ b/src/views/biz/nuBaseInfo/components/EwmForm.vue @@ -16,12 +16,6 @@ - - - - - - - + + diff --git a/src/views/invoicing/cgd/NuInvoicingCgdInfo.data.ts b/src/views/invoicing/cgd/NuInvoicingCgdInfo.data.ts index 069f5e4..1c49fdd 100644 --- a/src/views/invoicing/cgd/NuInvoicingCgdInfo.data.ts +++ b/src/views/invoicing/cgd/NuInvoicingCgdInfo.data.ts @@ -6,7 +6,7 @@ import { getWeekMonthQuarterYear } from '/@/utils'; //列表数据 export const columns: BasicColumn[] = [ // { - // title: '请购单id', + // title: '采购单id', // align: "center", // dataIndex: 'mainId' // }, @@ -51,7 +51,7 @@ export const columns: BasicColumn[] = [ // dataIndex: 'suppliersName' // }, { - title: '请购数量', + title: '采购数量', align: "center", dataIndex: 'purchaseQuantity' }, @@ -76,7 +76,7 @@ export const columns: BasicColumn[] = [ // dataIndex: 'wrksl' // }, // { - // title: '采购单价', + // title: '采购价格', // align: "center", // dataIndex: 'procurementPrice' // }, @@ -93,17 +93,97 @@ export const rkcolumns: BasicColumn[] = [ { title: '物料编码', align: "center", - dataIndex: 'wlMaterialNo' + dataIndex: 'wlMaterialNo', + width: 100 }, { title: '物料名称', align: "center", dataIndex: 'wlName' }, + { + title: '规格型号', + align: "center", + dataIndex: 'wlSpecificationModel' + }, + { + title: '品牌型号', + align: "center", + dataIndex: 'brandType' + }, + { + title: '生产厂家', + align: "center", + dataIndex: 'manufacturer' + }, + // { + // title: '库房', + // align: "center", + // dataIndex: 'nuId' + // }, { title: '采购单位', align: "center", - dataIndex: 'wlUnits' + dataIndex: 'wlUnits', + width: 90 + }, + { + title: '采购价格', + align: "center", + dataIndex: 'procurementPrice', + width: 90 + }, + // { + // title: '到货价格', + // align: "center", + // dataIndex: 'arrivalPrice', + // width: 100 + // }, + { + title: '采购数量', + align: "center", + dataIndex: 'purchaseQuantity', + width: 90 + }, + { + title: '入库数量', + align: "center", + dataIndex: 'rksl', + width: 90 + }, + { + title: '未入库数量', + align: "center", + dataIndex: 'wrksl', + width: 110 + }, + { + title: '销账数量', + align: "center", + dataIndex: 'xzsl', + width: 90 + }, + { + title: '操作', + align: "center", + dataIndex: 'action', + width: 80 + }, +]; + + +//列表数据 +export const rkDetailColumns: BasicColumn[] = [ + { + title: '物料编码', + align: "center", + dataIndex: 'wlMaterialNo', + width: 100 + }, + { + title: '物料名称', + align: "center", + dataIndex: 'wlName' }, { title: '规格型号', @@ -111,50 +191,62 @@ export const rkcolumns: BasicColumn[] = [ dataIndex: 'wlSpecificationModel' }, { - title: '上限', + title: '品牌型号', align: "center", - dataIndex: 'wlUpperLimit' + dataIndex: 'brandType' }, { - title: '下限', + title: '生产厂家', align: "center", - dataIndex: 'wlLowerLimit' + dataIndex: 'manufacturer' }, { - title: '库房', + title: '采购单位', align: "center", - dataIndex: 'nuId' + dataIndex: 'wlUnits', + width: 90 }, { - title: '采购单价', + title: '采购价格', align: "center", - dataIndex: 'procurementPrice' + dataIndex: 'procurementPrice', + width: 90 }, { - title: '到货单价', + title: '到货价格', align: "center", - dataIndex: 'arrivalPrice' + dataIndex: 'arrivalPrice', + width: 100 }, { - title: '请购数量', + title: '采购数量', align: "center", - dataIndex: 'purchaseQuantity' + dataIndex: 'purchaseQuantity', + width: 90 }, { title: '入库数量', align: "center", - dataIndex: 'rksl' + dataIndex: 'rksl', + width: 90 }, { title: '未入库数量', align: "center", - dataIndex: 'wrksl' + dataIndex: 'wrksl', + width: 110 + }, + { + title: '销账数量', + align: "center", + dataIndex: 'xzsl', + width: 90 }, ]; // 高级查询数据 export const superQuerySchema = { - mainId: {title: '请购单id',order: 0,view: 'text', type: 'string',}, + mainId: {title: '采购单id',order: 0,view: 'text', type: 'string',}, cgdId: {title: '采购单id',order: 1,view: 'text', type: 'string',}, wlMaterialNo: {title: '物料编码',order: 2,view: 'text', type: 'string',}, wlName: {title: '物料名称',order: 3,view: 'text', type: 'string',}, @@ -163,11 +255,11 @@ export const superQuerySchema = { wlUpperLimit: {title: '上限',order: 6,view: 'text', type: 'string',}, wlLowerLimit: {title: '下限',order: 7,view: 'text', type: 'string',}, suppliersName: {title: '供应商名称',order: 8,view: 'text', type: 'string',}, - purchaseQuantity: {title: '请购数量',order: 9,view: 'number', type: 'number',}, + purchaseQuantity: {title: '采购数量',order: 9,view: 'number', type: 'number',}, brand: {title: '银行',order: 10,view: 'text', type: 'string',}, nuId: {title: '库房',order: 11,view: 'text', type: 'string',}, rksl: {title: '入库数量',order: 12,view: 'text', type: 'string',}, wrksl: {title: '未入库数量',order: 13,view: 'text', type: 'string',}, - procurementPrice: {title: '采购单价',order: 14,view: 'text', type: 'string',}, + procurementPrice: {title: '采购价格',order: 14,view: 'text', type: 'string',}, arrivalPrice: {title: '到货单间',order: 15,view: 'text', type: 'string',}, }; diff --git a/src/views/invoicing/cgd/NuInvoicingCgdMain.api.ts b/src/views/invoicing/cgd/NuInvoicingCgdMain.api.ts index d8c211a..595d2e3 100644 --- a/src/views/invoicing/cgd/NuInvoicingCgdMain.api.ts +++ b/src/views/invoicing/cgd/NuInvoicingCgdMain.api.ts @@ -14,6 +14,7 @@ enum Api { exportXls = '/cgd/nuInvoicingCgdMain/exportXls', auditInfo='/cgd/nuInvoicingCgdMain/auditInfo', rukuInfo='/cgd/nuInvoicingCgdMain/rukuInfo', + queryCgdList='/api/pad/invoicing/queryCgdList', } /** @@ -38,6 +39,7 @@ export const list = (params) => defHttp.get({ url: Api.list, params }); * @param params */ export const calcList = (params) => defHttp.get({ url: Api.calcList, params }); +export const queryCgdList = (params) => defHttp.get({ url: Api.queryCgdList, params }); /** * 删除单个 diff --git a/src/views/invoicing/cgd/NuInvoicingCgdMain.data.ts b/src/views/invoicing/cgd/NuInvoicingCgdMain.data.ts index 165514d..29ec938 100644 --- a/src/views/invoicing/cgd/NuInvoicingCgdMain.data.ts +++ b/src/views/invoicing/cgd/NuInvoicingCgdMain.data.ts @@ -16,7 +16,7 @@ export const columns: BasicColumn[] = [ dataIndex: 'gysId_dictText' }, { - title: '请购时间', + title: '采购时间', align: "center", dataIndex: 'qgDate', customRender:({text}) =>{ @@ -25,7 +25,7 @@ export const columns: BasicColumn[] = [ }, }, { - title: '请购人', + title: '采购人', align: "center", dataIndex: 'qgBy' }, @@ -47,13 +47,33 @@ export const columns: BasicColumn[] = [ { title: '状态', align: "center", - dataIndex: 'status_dictText' + dataIndex: 'status_dictText', + width: 90 }, { - title: '采购单类型', + title: '供应商是否确认', align: "center", - dataIndex: 'cgdType_dictText' + dataIndex: 'izGysConfirmed', + width: 140, + customRender:({text}) =>{ + return text == 'N' ? '否' : '是'; + } }, + { + title: '机构是否确认', + align: "center", + dataIndex: 'izOrgConfirmed', + width: 140, + customRender:({text}) =>{ + return text == 'N' ? '否' : '是'; + } + }, + // { + // title: '采购单类型', + // align: "center", + // dataIndex: 'cgdType_dictText', + // width: 120 + // }, // { // title: '审核人', // align: "center", @@ -68,11 +88,11 @@ export const columns: BasicColumn[] = [ // 高级查询数据 export const superQuerySchema = { - qgdId: {title: '请购单id',order: 0,view: 'text', type: 'string',}, + qgdId: {title: '采购单id',order: 0,view: 'text', type: 'string',}, cgdNo: {title: '采购单单号',order: 1,view: 'text', type: 'string',}, gysId: {title: '供应商id',order: 2,view: 'text', type: 'string',}, - qgDate: {title: '请购时间',order: 3,view: 'date', type: 'string',}, - qgBy: {title: '请购人',order: 4,view: 'text', type: 'string',}, + qgDate: {title: '采购时间',order: 3,view: 'date', type: 'string',}, + qgBy: {title: '采购人',order: 4,view: 'text', type: 'string',}, gysLxr: {title: '供应商联系人',order: 5,view: 'text', type: 'string',}, gysLxrdh: {title: '供应商联系电话',order: 6,view: 'text', type: 'string',}, gysFkfs: {title: '付款方式',order: 7,view: 'text', type: 'string',}, diff --git a/src/views/invoicing/cgd/NuInvoicingCgdMainList.vue b/src/views/invoicing/cgd/NuInvoicingCgdMainList.vue index c3b6225..7bdb46a 100644 --- a/src/views/invoicing/cgd/NuInvoicingCgdMainList.vue +++ b/src/views/invoicing/cgd/NuInvoicingCgdMainList.vue @@ -6,8 +6,8 @@ @@ -18,8 +18,8 @@ - - + + @@ -37,8 +37,8 @@ @@ -75,14 +79,16 @@ import { BasicTable, useTable, TableAction } from '/@/components/Table'; import { useListPage } from '/@/hooks/system/useListPage'; import { columns, superQuerySchema } from './NuInvoicingCgdMain.data'; - import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './NuInvoicingCgdMain.api'; + import { queryCgdList } from './NuInvoicingCgdMain.api'; import { downloadFile } from '/@/utils/common/renderUtils'; import NuInvoicingCgdMainModal from './components/NuInvoicingCgdMainModal.vue' import NuInvoicingCgdRkdModal from './components/NuInvoicingCgdRkdModal.vue' import NuInvoicingCgdDetailModal from './components/NuInvoicingCgdDetailModal.vue' + import NuInvoicingCgdQuerenModal from './components/NuInvoicingCgdQuerenModal.vue' import { useUserStore } from '/@/store/modules/user'; import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue'; import JSelectMultiple from '/@/components/Form/src/jeecg/components/JSelectMultiple.vue'; + import GwcInfoListModal from '/@/views/invoicing/qgdInfo/GwcInfoListModal.vue'; import { JInput } from '/@/components/Form'; const formRef = ref(); @@ -91,12 +97,14 @@ const registerModal = ref(); const rkdModal = ref(); const detailModal = ref(); + const gwcModal = ref(); + const querenModal = ref(); const userStore = useUserStore(); //注册table数据 const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ tableProps: { title: 'nu_invoicing_cgd_main', - api: list, + api: queryCgdList, columns, canResize:false, useSearchForm: false, @@ -108,15 +116,6 @@ return Object.assign(params, queryParam); }, }, - exportConfig: { - name: "nu_invoicing_cgd_main", - url: getExportUrl, - params: queryParam, - }, - importConfig: { - url: getImportUrl, - success: handleSuccess - }, }); const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] = tableContext; const labelCol = reactive({ @@ -130,34 +129,11 @@ sm: 18, }); - // 高级查询配置 - const superQueryConfig = reactive(superQuerySchema); - - /** - * 高级查询事件 - */ - function handleSuperQuery(params) { - Object.keys(params).map((k) => { - queryParam[k] = params[k]; - }); - searchQuery(); - } - - /** - * 新增事件 - */ - function handleAdd() { - registerModal.value.disableSubmit = false; - registerModal.value.add(); - } - - /** - * 审核事件 - */ - function handleEdit(record: Recordable) { - registerModal.value.disableSubmit = false; - registerModal.value.edit(record); - } + //购物车 +function handleGwc(){ + gwcModal.value.disableSubmit = false; + gwcModal.value.init(); +} /** * 入库单 */ @@ -165,6 +141,13 @@ rkdModal.value.disableSubmit = false; rkdModal.value.edit(record); } + /** + * 确认 + */ + function handleQueren(record: Recordable) { + querenModal.value.disableSubmit = false; + querenModal.value.edit(record); + } /** * 详情 @@ -174,20 +157,6 @@ detailModal.value.edit(record); } - /** - * 删除事件 - */ - async function handleDelete(record) { - await deleteOne({ id: record.id }, handleSuccess); - } - - /** - * 批量删除事件 - */ - async function batchHandleDelete() { - await batchDelete({ ids: selectedRowKeys.value }, handleSuccess); - } - /** * 成功回调 */ @@ -206,12 +175,16 @@ // auth: 'cgd:nu_invoicing_cgd_main:edit', // ifShow: record.status == '0' // }, - // { - // label: '入库', - // onClick: handleRkd.bind(null, record), - // auth: 'cgd:nu_invoicing_cgd_main:edit', - // ifShow: record.status == '1' - // }, + { + label: '确认', + onClick: handleQueren.bind(null, record), + ifShow: record.izGysConfirmed == 'Y' && record.status == '0' + }, + { + label: '入库', + onClick: handleRkd.bind(null, record), + ifShow: record.status == '1' + }, { label: '详情', onClick: handleDetail.bind(null, record), @@ -219,22 +192,6 @@ ]; } - /** - * 下拉操作栏 - */ - function getDropDownAction(record) { - return [ - { - label: '删除', - popConfirm: { - title: '是否确认删除', - confirm: handleDelete.bind(null, record), - placement: 'topLeft', - }, - auth: 'cgd:nu_invoicing_cgd_main:delete' - } - ] - } /** * 查询 diff --git a/src/views/invoicing/cgd/components/NuInvoicingCgdDetailForm.vue b/src/views/invoicing/cgd/components/NuInvoicingCgdDetailForm.vue index ad6afc9..c6f19eb 100644 --- a/src/views/invoicing/cgd/components/NuInvoicingCgdDetailForm.vue +++ b/src/views/invoicing/cgd/components/NuInvoicingCgdDetailForm.vue @@ -10,12 +10,12 @@ - + {{formData.qgDate}} - + {{formData.qgBy}} @@ -61,7 +61,7 @@ --> - + diff --git a/src/views/invoicing/cgd/components/NuInvoicingCgdInfoForm.vue b/src/views/invoicing/cgd/components/NuInvoicingCgdInfoForm.vue index 88aae27..71c8715 100644 --- a/src/views/invoicing/cgd/components/NuInvoicingCgdInfoForm.vue +++ b/src/views/invoicing/cgd/components/NuInvoicingCgdInfoForm.vue @@ -5,8 +5,8 @@ - - + + @@ -50,8 +50,8 @@ - - + + @@ -75,8 +75,8 @@ - - + + diff --git a/src/views/invoicing/cgd/components/NuInvoicingCgdJhForm.vue b/src/views/invoicing/cgd/components/NuInvoicingCgdJhForm.vue new file mode 100644 index 0000000..31a66c7 --- /dev/null +++ b/src/views/invoicing/cgd/components/NuInvoicingCgdJhForm.vue @@ -0,0 +1,214 @@ + + + + + diff --git a/src/views/invoicing/cgd/components/NuInvoicingCgdJhModal.vue b/src/views/invoicing/cgd/components/NuInvoicingCgdJhModal.vue new file mode 100644 index 0000000..caa680e --- /dev/null +++ b/src/views/invoicing/cgd/components/NuInvoicingCgdJhModal.vue @@ -0,0 +1,83 @@ + + + + + + diff --git a/src/views/invoicing/cgd/components/NuInvoicingCgdMainForm.vue b/src/views/invoicing/cgd/components/NuInvoicingCgdMainForm.vue index 18e2269..95ad49a 100644 --- a/src/views/invoicing/cgd/components/NuInvoicingCgdMainForm.vue +++ b/src/views/invoicing/cgd/components/NuInvoicingCgdMainForm.vue @@ -10,12 +10,12 @@ - + {{formData.qgDate}} - + {{formData.qgBy}} @@ -104,7 +104,7 @@ diff --git a/src/views/invoicing/cgd/components/NuInvoicingCgdQuerenForm.vue b/src/views/invoicing/cgd/components/NuInvoicingCgdQuerenForm.vue new file mode 100644 index 0000000..b679cae --- /dev/null +++ b/src/views/invoicing/cgd/components/NuInvoicingCgdQuerenForm.vue @@ -0,0 +1,226 @@ + + + + + diff --git a/src/views/invoicing/cgd/components/NuInvoicingCgdQuerenModal.vue b/src/views/invoicing/cgd/components/NuInvoicingCgdQuerenModal.vue new file mode 100644 index 0000000..317125b --- /dev/null +++ b/src/views/invoicing/cgd/components/NuInvoicingCgdQuerenModal.vue @@ -0,0 +1,90 @@ + + + + + + diff --git a/src/views/invoicing/cgd/components/NuInvoicingCgdRkdForm.vue b/src/views/invoicing/cgd/components/NuInvoicingCgdRkdForm.vue index b9e9c9f..72c0e8f 100644 --- a/src/views/invoicing/cgd/components/NuInvoicingCgdRkdForm.vue +++ b/src/views/invoicing/cgd/components/NuInvoicingCgdRkdForm.vue @@ -10,12 +10,12 @@ - + {{formData.qgDate}} - + {{formData.qgBy}} @@ -61,7 +61,7 @@ --> - + @@ -92,21 +92,26 @@ + @@ -121,6 +126,7 @@ import { Form } from 'ant-design-vue'; import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue'; import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue'; + import NuInvoicingCgdJhModal from '/@/views/invoicing/cgd/components/NuInvoicingCgdJhModal.vue'; import { useUserStore } from '/@/store/modules/user'; import dayjs from 'dayjs'; const props = defineProps({ @@ -129,6 +135,7 @@ formBpm: { type: Boolean, default: true } }); const formRef = ref(); + const jhModal = ref(); const useForm = Form.useForm; const emit = defineEmits(['register', 'ok']); const dataSource = ref([]); @@ -166,41 +173,16 @@ const validatorRules = reactive({ }); const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false }); -const handleInputChange = (record, field, value) => { - // 更新当前行的数据 - record[field] = value; - - var b = record.purchaseQuantity - value; - if(b<0){ - record.wrksl = 0; - record.rksl = record.purchaseQuantity; - return; + + + function handleJhOk(){ + getCgdInfoList(); } - record.wrksl = b; - // 如果是修改了 rksl,则 wrksl 会自动更新,因为它是计算属性 - // 如果需要强制更新视图,可以使用以下方法: - - // 方法1:使用 Vue 的强制更新(不推荐常规使用) - // this.$forceUpdate(); - - // 方法2:更好的方式是更新整个 dataSource(推荐) - const index = dataSource.value.findIndex(item => item.id === record.id); - if (index !== -1) { - dataSource.value[index] = { ...record }; - dataSource.value = [...dataSource.value]; // 创建新数组触发响应式更新 - } -}; -const handleRkslChange = (record, field, value) => { - // 更新当前行的数据 - record[field] = value; - - // // 方法2:更好的方式是更新整个 dataSource(推荐) - // const index = dataSource.value.findIndex(item => item.id === record.id); - // if (index !== -1) { - // dataSource.value[index] = { ...record }; - // dataSource.value = [...dataSource.value]; // 创建新数组触发响应式更新 - // } -}; +function handleJianhuo(record){ + console.log("🚀 ~ handleJianhuo ~ record:", record) + jhModal.value.disableSubmit = false; + jhModal.value.edit(record); +} // 表单禁用 const disabled = computed(()=>{ if(props.formBpm === true){ @@ -241,15 +223,10 @@ const handleRkslChange = (record, field, value) => { } function getCgdInfoList() { - defHttp.get({ url: '/cgd/nuInvoicingCgdInfo/list', params: { cgdId: formData.id,pageSize:-1 } }).then((res) => { + dataSource.value = []; + defHttp.get({ url: '/api/pad/invoicing/queryCgdInfoList', params: { cgdId: formData.id,pageSize:-1 } }).then((res) => { console.log("🚀 ~ getCgdInfoList ~ res:", res) dataSource.value = res.records; - for (let i = 0; i < dataSource.value.length; i++) { - const element = dataSource.value[i]; - element.rksl = element.purchaseQuantity; - element.wrksl = 0; - element.arrivalPrice = element.procurementPrice; - } }); } diff --git a/src/views/invoicing/cgd/components/NuInvoicingCgdRkdModal.vue b/src/views/invoicing/cgd/components/NuInvoicingCgdRkdModal.vue index f713557..445ca5f 100644 --- a/src/views/invoicing/cgd/components/NuInvoicingCgdRkdModal.vue +++ b/src/views/invoicing/cgd/components/NuInvoicingCgdRkdModal.vue @@ -4,7 +4,7 @@ @@ -56,7 +56,6 @@ */ function submitCallback() { handleCancel(); - emit('success'); } /** @@ -64,6 +63,7 @@ */ function handleCancel() { visible.value = false; + emit('success'); } defineExpose({ diff --git a/src/views/invoicing/fkd/components/CgdTableList.vue b/src/views/invoicing/fkd/components/CgdTableList.vue index 5547200..3f61499 100644 --- a/src/views/invoicing/fkd/components/CgdTableList.vue +++ b/src/views/invoicing/fkd/components/CgdTableList.vue @@ -5,11 +5,11 @@
- - {{ item.cgdNo }} - - + + {{ item.cgdNo }} + +
diff --git a/src/views/invoicing/fkd/components/cgd.data.ts b/src/views/invoicing/fkd/components/cgd.data.ts index 0161d03..6f3cc13 100644 --- a/src/views/invoicing/fkd/components/cgd.data.ts +++ b/src/views/invoicing/fkd/components/cgd.data.ts @@ -99,7 +99,7 @@ export const wlColumns: BasicColumn[] = [ { title: '到货价格', align: 'center', - dataIndex: 'crkje', + dataIndex: 'arrivalPrice', customRender: ({ text }) => { const num = parseFloat(text); // 处理无效值 @@ -123,7 +123,7 @@ export const wlColumns: BasicColumn[] = [ { title: '入库数量', align: 'center', - dataIndex: 'crksl', + dataIndex: 'rksl', }, { title: '销账数量', diff --git a/src/views/invoicing/fkd/components/cgdInfo.vue b/src/views/invoicing/fkd/components/cgdInfo.vue index 11d367c..972d1d5 100644 --- a/src/views/invoicing/fkd/components/cgdInfo.vue +++ b/src/views/invoicing/fkd/components/cgdInfo.vue @@ -80,7 +80,7 @@ const formRef = ref(); const useForm = Form.useForm; const formData = reactive>({ wlName: '',//物料名称 - arrivalPrice: '',//到货单价 + arrivalPrice: '',//到货价格 wlUnits: '',//采购单位 rksl: '',//入库数量 gysName: '', diff --git a/src/views/invoicing/jxc/JxcInfo.api.ts b/src/views/invoicing/jxc/JxcInfo.api.ts index 5d42a31..14971b7 100644 --- a/src/views/invoicing/jxc/JxcInfo.api.ts +++ b/src/views/invoicing/jxc/JxcInfo.api.ts @@ -22,7 +22,7 @@ enum Api { */ export const list = (params) => defHttp.get({ url: Api.list, params }); /** - * 通过登录用户查询请购车列表 + * 通过登录用户查询采购车列表 * @param params */ export const queryListByUser = (params) => defHttp.get({ url: Api.queryListByUser, params }); @@ -70,7 +70,7 @@ export const saveOrUpdate = (params, isUpdate) => { return defHttp.post({ url: url, params }, { isTransformResponse: false }); } -//添加请购信息 +//添加采购信息 export const addList = (params) => { return defHttp.post({ url: Api.addList, params }, { isTransformResponse: false }); } diff --git a/src/views/invoicing/jxc/JxcInfo.data.ts b/src/views/invoicing/jxc/JxcInfo.data.ts index 8e9a635..e7b0d66 100644 --- a/src/views/invoicing/jxc/JxcInfo.data.ts +++ b/src/views/invoicing/jxc/JxcInfo.data.ts @@ -87,8 +87,8 @@ export const superQuerySchema = { materialName: {title: '物料名称',order: 3,view: 'text', type: 'string',}, materialNo: {title: '物料编码',order: 4,view: 'text', type: 'string',}, specificationModel: {title: '规格型号',order: 5,view: 'text', type: 'string',}, - salesUnitPrice: {title: '销售单价',order: 6,view: 'number', type: 'number',}, - referenceUnitPrice: {title: '参考单价',order: 7,view: 'number', type: 'number',}, + salesUnitPrice: {title: '销售价格',order: 6,view: 'number', type: 'number',}, + referenceUnitPrice: {title: '参考价格',order: 7,view: 'number', type: 'number',}, materialUnits: {title: '物料单位',order: 8,view: 'text', type: 'string',}, multiUnitSwitch: {title: '多单位开关',order: 9,view: 'switch', type: 'string',}, oneUnit: {title: '父级单位',order: 10,view: 'text', type: 'string',}, @@ -120,7 +120,7 @@ export const columnsQgcList: BasicColumn[] = [ width:'140px' }, { - title: '请购数量', + title: '采购数量', align: "center", dataIndex: 'purchaseQuantity', width:'140px' diff --git a/src/views/invoicing/jxc/QgdList.vue b/src/views/invoicing/jxc/QgdList.vue index 93b4d7e..a96b3ef 100644 --- a/src/views/invoicing/jxc/QgdList.vue +++ b/src/views/invoicing/jxc/QgdList.vue @@ -27,7 +27,7 @@ @@ -43,7 +43,7 @@ - + @@ -62,7 +62,7 @@ import { defHttp } from '/@/utils/http/axios'; const queryParam = reactive({}); const toggleSearchStatus = ref(false); const registerModal = ref(); - const qgcOpen = ref(false)//请购车抽屉 + const qgcOpen = ref(false)//采购车抽屉 const count = ref(5); const { createMessage } = useMessage(); const emit = defineEmits(['register', 'success']); diff --git a/src/views/invoicing/jxc/components/QgdInfoForm.vue b/src/views/invoicing/jxc/components/QgdInfoForm.vue index 554e692..5b394d2 100644 --- a/src/views/invoicing/jxc/components/QgdInfoForm.vue +++ b/src/views/invoicing/jxc/components/QgdInfoForm.vue @@ -126,8 +126,8 @@ categoryId: [{ required: true, message: '请选择一级分类!'},], typeId: [{ required: true, message: '请选择二级分类!'},], materialName: [{ required: true, message: '请输入物料名称!'},], - salesUnitPrice: [{ required: true, message: '请输入销售单价!'},], - referenceUnitPrice: [{ required: true, message: '请输入参考单价!'},], + salesUnitPrice: [{ required: true, message: '请输入销售价格!'},], + referenceUnitPrice: [{ required: true, message: '请输入参考价格!'},], materialUnits: [{ required: true, message: '请输入物料单位!'},], suppliers: [{ required: true, message: '请选择供应商!'},], }); diff --git a/src/views/invoicing/jxc/components/QgdInfoModal.vue b/src/views/invoicing/jxc/components/QgdInfoModal.vue index 8f93c96..2db1444 100644 --- a/src/views/invoicing/jxc/components/QgdInfoModal.vue +++ b/src/views/invoicing/jxc/components/QgdInfoModal.vue @@ -22,7 +22,7 @@ * @param record */ function edit(record) { - title.value = '请购'; + title.value = '采购'; visible.value = true; nextTick(() => { registerForm.value.edit(record); diff --git a/src/views/invoicing/qgdInfo/GwcInfoList.vue b/src/views/invoicing/qgdInfo/GwcInfoList.vue new file mode 100644 index 0000000..42a26dd --- /dev/null +++ b/src/views/invoicing/qgdInfo/GwcInfoList.vue @@ -0,0 +1,120 @@ + + + + + diff --git a/src/views/invoicing/qgdInfo/GwcInfoListModal.vue b/src/views/invoicing/qgdInfo/GwcInfoListModal.vue new file mode 100644 index 0000000..05b273e --- /dev/null +++ b/src/views/invoicing/qgdInfo/GwcInfoListModal.vue @@ -0,0 +1,70 @@ + + + + + + diff --git a/src/views/invoicing/qgdInfo/QgdInfo.api.ts b/src/views/invoicing/qgdInfo/QgdInfo.api.ts index cc53167..18544b5 100644 --- a/src/views/invoicing/qgdInfo/QgdInfo.api.ts +++ b/src/views/invoicing/qgdInfo/QgdInfo.api.ts @@ -11,6 +11,9 @@ enum Api { deleteBatch = '/invoicing/qgdInfo/deleteBatch', importExcel = '/invoicing/qgdInfo/importExcel', exportXls = '/invoicing/qgdInfo/exportXls', + wlShoppingList = '/api/pad/invoicing/wlShoppingList', + queryShoppingCartList = '/api/pad/invoicing/queryShoppingCartList', + eddShoppingCartList='/api/pad/invoicing/eddShoppingCartList', } /** @@ -29,6 +32,8 @@ export const getImportUrl = Api.importExcel; * @param params */ export const list = (params) => defHttp.get({ url: Api.list, params }); +export const wlShoppingList = (params) => defHttp.get({ url: Api.wlShoppingList, params }); +export const queryShoppingCartList = (params) => defHttp.get({ url: Api.queryShoppingCartList, params }); /** * 删除单个 @@ -70,3 +75,7 @@ export const saveOrUpdate = (params, isUpdate) => { let url = isUpdate ? Api.edit : Api.save; return defHttp.post({ url: url, params }, { isTransformResponse: false }); } +export const eddShoppingCartList = (params, isUpdate) => { + let url = Api.eddShoppingCartList; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/src/views/invoicing/qgdInfo/QgdInfo.data.ts b/src/views/invoicing/qgdInfo/QgdInfo.data.ts index 07b2cb6..8ce0a97 100644 --- a/src/views/invoicing/qgdInfo/QgdInfo.data.ts +++ b/src/views/invoicing/qgdInfo/QgdInfo.data.ts @@ -6,55 +6,132 @@ import { getWeekMonthQuarterYear } from '/@/utils'; //列表数据 export const columns: BasicColumn[] = [ { - title: '请购单编号', + title: '供应商', align: "center", - dataIndex: 'mainNo' + dataIndex: 'suppliersName', }, { title: '物料编码', align: "center", - dataIndex: 'wlMaterialNo' + dataIndex: 'wlMaterialNo', + width:'100px' }, { title: '物料名称', align: "center", dataIndex: 'wlName' }, + { + title: '规格型号', + align: "center", + dataIndex: 'wlSpecificationModel', + width:'100px' + }, + { + title: '品牌型号', + align: "center", + dataIndex: 'brandType', + width:'100px' + }, + { + title: '生产厂家', + align: "center", + dataIndex: 'manufacturer', + width:'100px' + }, + { + title: '采购价格', + align: "center", + dataIndex: 'referenceUnitPrice', + width:'100px' + }, { title: '采购单位', align: "center", - dataIndex: 'wlUnits' + dataIndex: 'wlUnits', + width:'100px' + }, + { + title: '采购数量', + align: "center", + dataIndex: 'purchaseQuantity', + width:'100px' + }, +]; + + +//列表数据 +export const wlColumns: BasicColumn[] = [ + { + title: '供应商', + align: "center", + dataIndex: 'suppliers_dictText', + }, + { + title: '物料名称', + align: "center", + dataIndex: 'materialName', + width:'180px' + }, + { + title: '采购价格', + align: "center", + dataIndex: 'salesUnitPrice', + width:'100px' + }, + { + title: '采购单位', + align: "center", + dataIndex: 'salesUnit', + width:'100px' + }, + { + title: '物料编码', + align: "center", + dataIndex: 'materialNo', + width:'100px' }, { title: '规格型号', align: "center", - dataIndex: 'wlSpecificationModel' + dataIndex: 'specificationModel', + width:'100px' }, { - title: '上限', + title: '品牌型号', align: "center", - dataIndex: 'wlUpperLimit' + dataIndex: 'brandType', + width:'100px' }, { - title: '下限', + title: '生产厂家', align: "center", - dataIndex: 'wlLowerLimit' + dataIndex: 'manufacturer', + width:'100px' }, { - title: '供应商名称', + title: '一级分类', align: "center", - dataIndex: 'suppliersName' + dataIndex: 'categoryId_dictText', + width:'100px' }, { - title: '请购数量', + title: '二级分类', align: "center", - dataIndex: 'purchaseQuantity' + dataIndex: 'typeId_dictText', + width:'100px' }, + // { + // title: '三级分类', + // align: "center", + // dataIndex: 'medicationId_dictText', + // width:'100px' + // }, ]; // 高级查询数据 export const superQuerySchema = { - mainNo: {title: '请购单编号',order: 0,view: 'text', type: 'string',}, + mainNo: {title: '采购单编号',order: 0,view: 'text', type: 'string',}, wlMaterialNo: {title: '物料编码',order: 1,view: 'text', type: 'string',}, wlName: {title: '物料名称',order: 2,view: 'text', type: 'string',}, wlUnits: {title: '采购单位',order: 3,view: 'text', type: 'string',}, @@ -62,5 +139,5 @@ export const superQuerySchema = { wlUpperLimit: {title: '上限',order: 5,view: 'text', type: 'string',}, wlLowerLimit: {title: '下限',order: 6,view: 'text', type: 'string',}, suppliersName: {title: '供应商名称',order: 7,view: 'text', type: 'string',}, - purchaseQuantity: {title: '请购数量',order: 8,view: 'number', type: 'number',}, + purchaseQuantity: {title: '采购数量',order: 8,view: 'number', type: 'number',}, }; diff --git a/src/views/invoicing/qgdInfo/QgdInfoList.vue b/src/views/invoicing/qgdInfo/QgdInfoList.vue index cc9521b..4c10583 100644 --- a/src/views/invoicing/qgdInfo/QgdInfoList.vue +++ b/src/views/invoicing/qgdInfo/QgdInfoList.vue @@ -1,38 +1,10 @@ + + diff --git a/src/views/invoicing/qgdInfo/components/QgdZxsModal.vue b/src/views/invoicing/qgdInfo/components/QgdZxsModal.vue new file mode 100644 index 0000000..de6b328 --- /dev/null +++ b/src/views/invoicing/qgdInfo/components/QgdZxsModal.vue @@ -0,0 +1,70 @@ + + + + + + diff --git a/src/views/invoicing/qgdMain/QgdMain.data.ts b/src/views/invoicing/qgdMain/QgdMain.data.ts index b54af88..aafb787 100644 --- a/src/views/invoicing/qgdMain/QgdMain.data.ts +++ b/src/views/invoicing/qgdMain/QgdMain.data.ts @@ -6,12 +6,12 @@ import { getWeekMonthQuarterYear } from '/@/utils'; //列表数据 export const columns: BasicColumn[] = [ { - title: '请购单号', + title: '采购单号', align: "center", dataIndex: 'qgdNo' }, { - title: '请购状态 0未下单 1已下单', + title: '采购状态 0未下单 1已下单', align: "center", dataIndex: 'status' }, @@ -19,6 +19,6 @@ export const columns: BasicColumn[] = [ // 高级查询数据 export const superQuerySchema = { - qgdNo: {title: '请购单号',order: 0,view: 'number', type: 'number',}, - status: {title: '请购状态 0未下单 1已下单',order: 1,view: 'number', type: 'number',}, + qgdNo: {title: '采购单号',order: 0,view: 'number', type: 'number',}, + status: {title: '采购状态 0未下单 1已下单',order: 1,view: 'number', type: 'number',}, }; diff --git a/src/views/invoicing/qgdMain/QgdMainList.vue b/src/views/invoicing/qgdMain/QgdMainList.vue index 592e68c..748302c 100644 --- a/src/views/invoicing/qgdMain/QgdMainList.vue +++ b/src/views/invoicing/qgdMain/QgdMainList.vue @@ -60,7 +60,7 @@ //注册table数据 const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ tableProps: { - title: '请购单', + title: '采购单', api: list, columns, canResize:false, @@ -74,7 +74,7 @@ }, }, exportConfig: { - name: "请购单", + name: "采购单", url: getExportUrl, params: queryParam, }, diff --git a/src/views/invoicing/qgdMain/components/QgdMainForm.vue b/src/views/invoicing/qgdMain/components/QgdMainForm.vue index 3b04662..63ef83b 100644 --- a/src/views/invoicing/qgdMain/components/QgdMainForm.vue +++ b/src/views/invoicing/qgdMain/components/QgdMainForm.vue @@ -5,13 +5,13 @@ - - + + - - + + diff --git a/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfo.data.ts b/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfo.data.ts index 1a53893..6b4f35e 100644 --- a/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfo.data.ts +++ b/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfo.data.ts @@ -6,12 +6,17 @@ import { getWeekMonthQuarterYear } from '/@/utils'; //列表数据 export const columns: BasicColumn[] = [ { - title: '库房', + title: '护理单元', align: "center", dataIndex: 'nuName' }, { - title: '物料', + title: '单号', + align: "center", + dataIndex: 'ddNo' + }, + { + title: '物料名称', align: "center", dataIndex: 'wlId_dictText' }, @@ -26,16 +31,14 @@ export const columns: BasicColumn[] = [ dataIndex: 'specificationModel' }, { - title: '物料上限', + title: '生产厂家', align: "center", - dataIndex: 'upperLimit', - width: 100 + dataIndex: 'manufacturer', }, { - title: '物料下限', + title: '品牌型号', align: "center", - dataIndex: 'lowerLimit', - width: 100 + dataIndex: 'brandType', }, { title: '库存数量', @@ -43,12 +46,6 @@ export const columns: BasicColumn[] = [ dataIndex: 'kcsl', width: 100 }, - { - title: '是否启用', - align: "center", - dataIndex: 'izEnabled_dictText', - width: 100 - }, ]; export const columns2: BasicColumn[] = [ diff --git a/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfoList.vue b/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfoList.vue index b023f7a..17ca5ea 100644 --- a/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfoList.vue +++ b/src/views/invoicing/warehouseMaterialInfo/BlWarehouseMaterialInfoList.vue @@ -127,7 +127,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ columns, canResize: false, useSearchForm: false, - immediate: false, + // immediate: false, actionColumn: { width: 180, fixed: 'right',