查询条件添加
This commit is contained in:
@ -3,8 +3,8 @@ import { defHttp } from '/@/utils/http/axios';
|
|||||||
import { ErrorMessageMode } from '/#/axios';
|
import { ErrorMessageMode } from '/#/axios';
|
||||||
|
|
||||||
enum Api {
|
enum Api {
|
||||||
Page = '/contract/contractFact/page',
|
// Page = '/contract/contractFact/page',
|
||||||
// Page = '/magic-api/contract/lngContractFact/page',
|
Page = '/magic-api/contract/lngContractFact/page',
|
||||||
List = '/contract/contractFact/list',
|
List = '/contract/contractFact/list',
|
||||||
Info = '/contract/contractFact/info',
|
Info = '/contract/contractFact/info',
|
||||||
LngContractFact = '/contract/contractFact',
|
LngContractFact = '/contract/contractFact',
|
||||||
|
|||||||
@ -6,7 +6,7 @@ enum Api {
|
|||||||
// Page = '/dayPlan/pngAppro/page',
|
// Page = '/dayPlan/pngAppro/page',
|
||||||
Page = '/magic-api/dayPlan/pngApproXs/page',
|
Page = '/magic-api/dayPlan/pngApproXs/page',
|
||||||
PageJsz = '/magic-api/dayPlan/pngApproJsz/page',
|
PageJsz = '/magic-api/dayPlan/pngApproJsz/page',
|
||||||
PageGd = '/magic-api//dayPlan/pngApproGd/page',
|
PageGd = '/magic-api/dayPlan/pngApproGd/page',
|
||||||
List = '/dayPlan/pngAppro/list',
|
List = '/dayPlan/pngAppro/list',
|
||||||
Info = '/dayPlan/pngAppro/info',
|
Info = '/dayPlan/pngAppro/info',
|
||||||
LngPngAppro = '/dayPlan/pngAppro',
|
LngPngAppro = '/dayPlan/pngAppro',
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import { ErrorMessageMode } from '/#/axios';
|
|||||||
|
|
||||||
enum Api {
|
enum Api {
|
||||||
// Page = '/dayPlan/pngApproGd/page',
|
// Page = '/dayPlan/pngApproGd/page',
|
||||||
Page = '/magic-api//dayPlan/pngApproGd/page',
|
Page = '/magic-api/dayPlan/pngApproGd/page',
|
||||||
List = '/dayPlan/pngApproGd/list',
|
List = '/dayPlan/pngApproGd/list',
|
||||||
Info = '/dayPlan/pngApproGd/info',
|
Info = '/dayPlan/pngApproGd/info',
|
||||||
LngPngAppro = '/dayPlan/pngApproGd',
|
LngPngAppro = '/dayPlan/pngApproGd',
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import { ErrorMessageMode } from '/#/axios';
|
|||||||
|
|
||||||
enum Api {
|
enum Api {
|
||||||
Page = '/mdm/pipeGasDownloadPoint/page',
|
Page = '/mdm/pipeGasDownloadPoint/page',
|
||||||
List = '/mdm/pipeGasDownloadPoint/list',
|
List = '/mdm/pipeGasDownloadPoint/list', //不分页
|
||||||
Info = '/mdm/pipeGasDownloadPoint/info',
|
Info = '/mdm/pipeGasDownloadPoint/info',
|
||||||
LngBStationPng = '/mdm/pipeGasDownloadPoint',
|
LngBStationPng = '/mdm/pipeGasDownloadPoint',
|
||||||
|
|
||||||
|
|||||||
@ -113,7 +113,8 @@
|
|||||||
const taskIdRef = ref('');
|
const taskIdRef = ref('');
|
||||||
const visibleFlowRecordModal = ref(false);
|
const visibleFlowRecordModal = ref(false);
|
||||||
const [registerModal, { openModal }] = useModal();
|
const [registerModal, { openModal }] = useModal();
|
||||||
const formName='签报';
|
// const formName='签报';
|
||||||
|
const formName=currentRoute.value.meta?.title;
|
||||||
const defaultDate = ref([dayjs().subtract(6, 'day').format('YYYY-MM-DD'), dayjs().format('YYYY-MM-DD')]);
|
const defaultDate = ref([dayjs().subtract(6, 'day').format('YYYY-MM-DD'), dayjs().format('YYYY-MM-DD')]);
|
||||||
const [registerTable, { reload, getForm }] = useTable({
|
const [registerTable, { reload, getForm }] = useTable({
|
||||||
title: '' || (formName + '列表'),
|
title: '' || (formName + '列表'),
|
||||||
@ -168,7 +169,7 @@
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
fieldMapToTime: [['dateAppro', ['startDate', 'endDate'], 'YYYY-MM-DD ', true],],
|
fieldMapToTime: [['dateAppro', ['startDate', 'endDate'], 'YYYY-MM-DD '],],
|
||||||
showResetButton: true,
|
showResetButton: true,
|
||||||
},
|
},
|
||||||
immediate: false,
|
immediate: false,
|
||||||
|
|||||||
@ -21,6 +21,24 @@ export const searchFormSchema: FormSchema[] = [
|
|||||||
labelField: 'name',
|
labelField: 'name',
|
||||||
valueField: 'value',
|
valueField: 'value',
|
||||||
|
|
||||||
|
getPopupContainer: () => document.body,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'comId',
|
||||||
|
label: '合同主体',
|
||||||
|
component: 'Input',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'approCode',
|
||||||
|
label: '审批状态',
|
||||||
|
component: 'XjrSelect',
|
||||||
|
componentProps: {
|
||||||
|
datasourceType: 'dic',
|
||||||
|
params: { itemId: '1990669393069129729' },
|
||||||
|
labelField: 'name',
|
||||||
|
valueField: 'value',
|
||||||
|
|
||||||
getPopupContainer: () => document.body,
|
getPopupContainer: () => document.body,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -112,7 +112,8 @@
|
|||||||
const taskIdRef = ref('');
|
const taskIdRef = ref('');
|
||||||
const visibleFlowRecordModal = ref(false);
|
const visibleFlowRecordModal = ref(false);
|
||||||
const [registerModal, { openModal }] = useModal();
|
const [registerModal, { openModal }] = useModal();
|
||||||
const formName='合同要素';
|
// const formName='合同要素';
|
||||||
|
const formName=currentRoute.value.meta?.title;
|
||||||
const [registerTable, { reload, }] = useTable({
|
const [registerTable, { reload, }] = useTable({
|
||||||
title: '' || (formName + '列表'),
|
title: '' || (formName + '列表'),
|
||||||
api: getLngContractFactPage,
|
api: getLngContractFactPage,
|
||||||
@ -127,7 +128,7 @@
|
|||||||
showResetButton: true,
|
showResetButton: true,
|
||||||
},
|
},
|
||||||
beforeFetch: (params) => {
|
beforeFetch: (params) => {
|
||||||
return { ...params, FormId: formIdComputedRef.value, PK: 'id' };
|
return { ...params, FormId: formIdComputedRef.value, PK: 'id',page: params.limit};
|
||||||
},
|
},
|
||||||
afterFetch: (res) => {
|
afterFetch: (res) => {
|
||||||
tableRef.value.setToolBarWidth();
|
tableRef.value.setToolBarWidth();
|
||||||
@ -396,7 +397,6 @@
|
|||||||
if (record.approCode == 'YSP') {
|
if (record.approCode == 'YSP') {
|
||||||
actionsList = actionsList.concat(updateBtn);
|
actionsList = actionsList.concat(updateBtn);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (record.workflowData?.enabled) {
|
// if (record.workflowData?.enabled) {
|
||||||
// //与工作流有关联的表单
|
// //与工作流有关联的表单
|
||||||
// if (record.workflowData.status) {
|
// if (record.workflowData.status) {
|
||||||
|
|||||||
@ -17,6 +17,43 @@ export const searchFormSchema: FormSchema[] = [
|
|||||||
label: '供应商',
|
label: '供应商',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'comId',
|
||||||
|
label: '合同主体',
|
||||||
|
component: 'Input',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'pointUpName',
|
||||||
|
label: '上载点',
|
||||||
|
component: 'Input',
|
||||||
|
// componentProps: {
|
||||||
|
// showSearch: true,
|
||||||
|
// optionFilterProp: 'label',
|
||||||
|
// filterOption: (input: string, option: any) => {
|
||||||
|
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
||||||
|
// },
|
||||||
|
// options: [
|
||||||
|
// // { label: '全部', value: '' },
|
||||||
|
// ],
|
||||||
|
// placeholder: '请选择',
|
||||||
|
// allowClear: true,
|
||||||
|
|
||||||
|
// getPopupContainer: () => document.body,
|
||||||
|
// },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'approCode',
|
||||||
|
label: '审批状态',
|
||||||
|
component: 'XjrSelect',
|
||||||
|
componentProps: {
|
||||||
|
datasourceType: 'dic',
|
||||||
|
params: { itemId: '1990669393069129729' },
|
||||||
|
labelField: 'name',
|
||||||
|
valueField: 'value',
|
||||||
|
|
||||||
|
getPopupContainer: () => document.body,
|
||||||
|
},
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const columns: BasicColumn[] = [
|
export const columns: BasicColumn[] = [
|
||||||
|
|||||||
@ -112,7 +112,8 @@
|
|||||||
const taskIdRef = ref('');
|
const taskIdRef = ref('');
|
||||||
const visibleFlowRecordModal = ref(false);
|
const visibleFlowRecordModal = ref(false);
|
||||||
const [registerModal, { openModal }] = useModal();
|
const [registerModal, { openModal }] = useModal();
|
||||||
const formName='国内管道气采购';
|
// const formName='国内管道气采购';
|
||||||
|
const formName=currentRoute.value.meta?.title;
|
||||||
const [registerTable, { reload, }] = useTable({
|
const [registerTable, { reload, }] = useTable({
|
||||||
title: '' || (formName + '列表'),
|
title: '' || (formName + '列表'),
|
||||||
api: getLngContractPage,
|
api: getLngContractPage,
|
||||||
@ -496,13 +497,7 @@
|
|||||||
:deep(.ant-table-selection-col) {
|
:deep(.ant-table-selection-col) {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
}
|
}
|
||||||
:deep(.ant-col-8:nth-child(1) .ant-form-item-label) {
|
|
||||||
width: 100px !important;
|
|
||||||
}
|
|
||||||
:deep(.ant-col-8:nth-child(1)) {
|
|
||||||
max-width: 300px !important;
|
|
||||||
width: 300px !important;
|
|
||||||
}
|
|
||||||
.show{
|
.show{
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,30 @@ export const searchFormSchema: FormSchema[] = [
|
|||||||
field: 'cpName',
|
field: 'cpName',
|
||||||
label: '客户',
|
label: '客户',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
field: 'comId',
|
||||||
|
label: '合同主体',
|
||||||
|
component: 'Input',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'pointUpName',
|
||||||
|
label: '交割点',
|
||||||
|
component: 'Input',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'approCode',
|
||||||
|
label: '审批状态',
|
||||||
|
component: 'XjrSelect',
|
||||||
|
componentProps: {
|
||||||
|
datasourceType: 'dic',
|
||||||
|
params: { itemId: '1990669393069129729' },
|
||||||
|
labelField: 'name',
|
||||||
|
valueField: 'value',
|
||||||
|
|
||||||
|
getPopupContainer: () => document.body,
|
||||||
|
},
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const columns: BasicColumn[] = [
|
export const columns: BasicColumn[] = [
|
||||||
|
|||||||
@ -112,7 +112,8 @@
|
|||||||
const taskIdRef = ref('');
|
const taskIdRef = ref('');
|
||||||
const visibleFlowRecordModal = ref(false);
|
const visibleFlowRecordModal = ref(false);
|
||||||
const [registerModal, { openModal }] = useModal();
|
const [registerModal, { openModal }] = useModal();
|
||||||
const formName='国内管道气销售';
|
// const formName='国内管道气销售';
|
||||||
|
const formName=currentRoute.value.meta?.title;
|
||||||
const [registerTable, { reload, }] = useTable({
|
const [registerTable, { reload, }] = useTable({
|
||||||
title: '' || (formName + '列表'),
|
title: '' || (formName + '列表'),
|
||||||
api: getLngContractPage,
|
api: getLngContractPage,
|
||||||
|
|||||||
@ -6,6 +6,16 @@ export const formConfig = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const searchFormSchema: FormSchema[] = [
|
export const searchFormSchema: FormSchema[] = [
|
||||||
|
{
|
||||||
|
field: 'datePlan',
|
||||||
|
label: '计划日期',
|
||||||
|
component: 'RangePicker',
|
||||||
|
componentProps: {
|
||||||
|
format: 'YYYY-MM-DD',
|
||||||
|
style: { width: '100%' },
|
||||||
|
getPopupContainer: () => document.body,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
field: 'pointDelyName',
|
field: 'pointDelyName',
|
||||||
@ -118,15 +128,6 @@ export const columns: BasicColumn[] = [
|
|||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
dataIndex: 'note',
|
|
||||||
title: '备注',
|
|
||||||
componentType: 'input',
|
|
||||||
align: 'left',
|
|
||||||
|
|
||||||
sorter: true,
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
dataIndex: 'reply',
|
dataIndex: 'reply',
|
||||||
title: '批复意见',
|
title: '批复意见',
|
||||||
|
|||||||
@ -68,7 +68,8 @@
|
|||||||
import useEventBus from '/@/hooks/event/useEventBus';
|
import useEventBus from '/@/hooks/event/useEventBus';
|
||||||
import { cloneDeep } from 'lodash-es';
|
import { cloneDeep } from 'lodash-es';
|
||||||
import NP from 'number-precision';
|
import NP from 'number-precision';
|
||||||
|
import dayjs from 'dayjs';
|
||||||
|
const defaultDate = ref([dayjs().format('YYYY-MM-DD'),dayjs().add(1, 'day').format('YYYY-MM-DD')]);
|
||||||
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
||||||
|
|
||||||
const { notification } = useMessage();
|
const { notification } = useMessage();
|
||||||
@ -124,7 +125,8 @@
|
|||||||
const [registerModal, { openModal }] = useModal();
|
const [registerModal, { openModal }] = useModal();
|
||||||
const [registerImportModal, { openModal: openImportModal }] = useModal();
|
const [registerImportModal, { openModal: openImportModal }] = useModal();
|
||||||
|
|
||||||
const formName='日计划-客户需求';
|
// const formName='管道气日计划';
|
||||||
|
const formName=currentRoute.value.meta?.title;
|
||||||
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
||||||
title: '' || (formName + '列表'),
|
title: '' || (formName + '列表'),
|
||||||
api: getLngPngDemandPage,
|
api: getLngPngDemandPage,
|
||||||
@ -134,8 +136,44 @@
|
|||||||
rowProps: {
|
rowProps: {
|
||||||
gutter: 16,
|
gutter: 16,
|
||||||
},
|
},
|
||||||
schemas: customSearchFormSchema,
|
schemas: [
|
||||||
fieldMapToTime: [],
|
{
|
||||||
|
field: 'datePlan',
|
||||||
|
label: '计划日期',
|
||||||
|
component: 'RangePicker',
|
||||||
|
defaultValue: defaultDate.value,
|
||||||
|
componentProps: {
|
||||||
|
format: 'YYYY-MM-DD',
|
||||||
|
style: { width: '100%' },
|
||||||
|
getPopupContainer: () => document.body,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
field: 'pointDelyName',
|
||||||
|
label: '下载点',
|
||||||
|
component: 'Input',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'kName',
|
||||||
|
label: '销售合同名称/编码',
|
||||||
|
component: 'Input',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'approCode',
|
||||||
|
label: '审批状态',
|
||||||
|
component: 'XjrSelect',
|
||||||
|
componentProps: {
|
||||||
|
datasourceType: 'dic',
|
||||||
|
params: { itemId: '1990669393069129729' },
|
||||||
|
labelField: 'name',
|
||||||
|
valueField: 'value',
|
||||||
|
|
||||||
|
getPopupContainer: () => document.body,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
fieldMapToTime: [['datePlan', ['startDate', 'endDate'], 'YYYY-MM-DD']],
|
||||||
showResetButton: true,
|
showResetButton: true,
|
||||||
submitButtonOptions: {
|
submitButtonOptions: {
|
||||||
text: '搜索',
|
text: '搜索',
|
||||||
@ -150,6 +188,7 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
immediate: false,
|
||||||
beforeFetch: (params) => {
|
beforeFetch: (params) => {
|
||||||
return { ...params, FormId: formIdComputedRef.value, PK: 'id',page:params.limit };
|
return { ...params, FormId: formIdComputedRef.value, PK: 'id',page:params.limit };
|
||||||
},
|
},
|
||||||
@ -209,7 +248,7 @@
|
|||||||
path: '/dayPlan/Demand/createForm',
|
path: '/dayPlan/Demand/createForm',
|
||||||
query: {
|
query: {
|
||||||
formPath: 'dayPlan/Demand',
|
formPath: 'dayPlan/Demand',
|
||||||
formName: formName,
|
formName: "查看"+formName,
|
||||||
formId:currentRoute.value.meta.formId,
|
formId:currentRoute.value.meta.formId,
|
||||||
id: record.id,
|
id: record.id,
|
||||||
type:'view'
|
type:'view'
|
||||||
@ -237,7 +276,7 @@
|
|||||||
path: '/dayPlan/Demand/createForm',
|
path: '/dayPlan/Demand/createForm',
|
||||||
query: {
|
query: {
|
||||||
formPath: 'dayPlan/Demand',
|
formPath: 'dayPlan/Demand',
|
||||||
formName: formName,
|
formName: "新建"+formName,
|
||||||
formId:currentRoute.value.meta.formId
|
formId:currentRoute.value.meta.formId
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -249,7 +288,7 @@
|
|||||||
path: '/dayPlan/Demand/createForm',
|
path: '/dayPlan/Demand/createForm',
|
||||||
query: {
|
query: {
|
||||||
formPath: 'dayPlan/Demand',
|
formPath: 'dayPlan/Demand',
|
||||||
formName: formName,
|
formName: "编辑"+formName,
|
||||||
formId:currentRoute.value.meta.formId,
|
formId:currentRoute.value.meta.formId,
|
||||||
id: record.id,
|
id: record.id,
|
||||||
type: 'edit'
|
type: 'edit'
|
||||||
@ -262,7 +301,7 @@
|
|||||||
path: '/dayPlan/Demand/createForm',
|
path: '/dayPlan/Demand/createForm',
|
||||||
query: {
|
query: {
|
||||||
formPath: 'dayPlan/Demand',
|
formPath: 'dayPlan/Demand',
|
||||||
formName: formName,
|
formName: "对比"+formName,
|
||||||
formId:currentRoute.value.meta.formId,
|
formId:currentRoute.value.meta.formId,
|
||||||
id: record.id,
|
id: record.id,
|
||||||
type: 'compare'
|
type: 'compare'
|
||||||
@ -394,6 +433,7 @@
|
|||||||
reload()
|
reload()
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
reload({ searchInfo: { startDate: defaultDate.value[0], endDate: defaultDate.value[1] }});
|
||||||
|
|
||||||
if (schemaIdComputedRef.value) {
|
if (schemaIdComputedRef.value) {
|
||||||
bus.on(FLOW_PROCESSED, handleRefresh);
|
bus.on(FLOW_PROCESSED, handleRefresh);
|
||||||
@ -557,7 +597,10 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
.Demandtyle .advanceRow> div:nth-of-type(3){
|
.Demandtyle .cusSearchForm .advanceRow> div:nth-of-type(3){
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.Demandtyle .advanceRow> div:nth-of-type(2){
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
// .Demandtyle .cusSearchForm .advanceRow> div:nth-of-type(2){
|
// .Demandtyle .cusSearchForm .advanceRow> div:nth-of-type(2){
|
||||||
@ -574,22 +617,32 @@
|
|||||||
.hide{
|
.hide{
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
:deep( .ant-col-8:nth-child(2)) {
|
:deep( .ant-col-8:nth-child(3)) {
|
||||||
width: 320px !important;
|
width: 320px !important;
|
||||||
max-width: 320px !important;;
|
max-width: 320px !important;;
|
||||||
}
|
}
|
||||||
:deep(.ant-col-8:nth-child(2) .ant-form-item-label) {
|
:deep(.ant-col-8:nth-child(3) .ant-form-item-label) {
|
||||||
width: 160px !important;
|
width: 160px !important;
|
||||||
}
|
}
|
||||||
:deep(.ant-col-8:nth-child(2) .ant-form-item-label .ant-form-item-no-colon) {
|
:deep(.ant-col-8:nth-child(3) .ant-form-item-label .ant-form-item-no-colon) {
|
||||||
width: 160px !important;
|
width: 160px !important;
|
||||||
max-width: 160px !important;
|
max-width: 160px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
:deep( .ant-col-8:nth-child(1)) {
|
:deep( .ant-col-8:nth-child(1)) {
|
||||||
width: 220px !important;
|
width: 320px !important;
|
||||||
max-width: 220px !important;;
|
max-width: 320px !important;;
|
||||||
}
|
}
|
||||||
:deep(.ant-col-8:nth-child(1) .ant-form-item-label) {
|
:deep(.ant-col-8:nth-child(1) .ant-form-item-label) {
|
||||||
width: 70px !important;
|
width: 80px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// :deep( .ant-col-8:nth-child(4)) {
|
||||||
|
// width: 320px !important;
|
||||||
|
// max-width: 320px !important;;
|
||||||
|
// }
|
||||||
|
// :deep(.ant-col-8:nth-child(4) .ant-form-item-label) {
|
||||||
|
// width: 80px !important;
|
||||||
|
// }
|
||||||
</style>
|
</style>
|
||||||
@ -6,7 +6,21 @@ export const formConfig = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const searchFormSchema: FormSchema[] = [
|
export const searchFormSchema: FormSchema[] = [
|
||||||
|
{
|
||||||
|
field: 'cuCode',
|
||||||
|
label: '客户名称',
|
||||||
|
component: 'Input',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'kName',
|
||||||
|
label: '合同名称',
|
||||||
|
component: 'Input',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'pointDelyName',
|
||||||
|
label: '下载点',
|
||||||
|
component: 'Input',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'datePlan',
|
field: 'datePlan',
|
||||||
label: '计划日期',
|
label: '计划日期',
|
||||||
@ -17,11 +31,7 @@ export const searchFormSchema: FormSchema[] = [
|
|||||||
getPopupContainer: () => document.body,
|
getPopupContainer: () => document.body,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
field: 'cuCode',
|
|
||||||
label: '客户名称/简称/编码',
|
|
||||||
component: 'Input',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
field: 'approCode',
|
field: 'approCode',
|
||||||
label: '审批状态',
|
label: '审批状态',
|
||||||
|
|||||||
@ -115,7 +115,8 @@
|
|||||||
const [registerModal, { openModal}] = useModal();
|
const [registerModal, { openModal}] = useModal();
|
||||||
const [registerApproStatus, { openModal: openModalApproStatus}] = useModal();
|
const [registerApproStatus, { openModal: openModalApproStatus}] = useModal();
|
||||||
|
|
||||||
let formName='管道气销售审批';
|
// let formName='管道气销售审批';
|
||||||
|
const formName=currentRoute.value.meta?.title;
|
||||||
let curPath = 'dayPlan/PngAppro/index'
|
let curPath = 'dayPlan/PngAppro/index'
|
||||||
const [registerTable, { reload, clearSelectedRowKeys, setTableData }] = useTable({
|
const [registerTable, { reload, clearSelectedRowKeys, setTableData }] = useTable({
|
||||||
title: '' || (formName + '列表'),
|
title: '' || (formName + '列表'),
|
||||||
@ -204,7 +205,7 @@
|
|||||||
path: '/dayPlan/PngAppro/createForm',
|
path: '/dayPlan/PngAppro/createForm',
|
||||||
query: {
|
query: {
|
||||||
formPath: curPath,
|
formPath: curPath,
|
||||||
formName: formName,
|
formName: "查看"+formName,
|
||||||
formId:currentRoute.value.meta.formId,
|
formId:currentRoute.value.meta.formId,
|
||||||
id: record.id,
|
id: record.id,
|
||||||
type: 'view'
|
type: 'view'
|
||||||
@ -247,7 +248,7 @@
|
|||||||
path: '/dayPlan/PngAppro/createForm',
|
path: '/dayPlan/PngAppro/createForm',
|
||||||
query: {
|
query: {
|
||||||
formPath: curPath,
|
formPath: curPath,
|
||||||
formName: formName,
|
formName: "审批"+formName,
|
||||||
formId:currentRoute.value.meta.formId,
|
formId:currentRoute.value.meta.formId,
|
||||||
id: record.id
|
id: record.id
|
||||||
}
|
}
|
||||||
@ -258,7 +259,7 @@
|
|||||||
path: '/dayPlan/PngAppro/createForm',
|
path: '/dayPlan/PngAppro/createForm',
|
||||||
query: {
|
query: {
|
||||||
formPath: curPath,
|
formPath: curPath,
|
||||||
formName: formName+'对比',
|
formName: '对比'+formName,
|
||||||
formId:currentRoute.value.meta.formId,
|
formId:currentRoute.value.meta.formId,
|
||||||
id: record.demandOrgId,
|
id: record.demandOrgId,
|
||||||
type: 'compare'
|
type: 'compare'
|
||||||
@ -444,24 +445,31 @@
|
|||||||
:deep(.ant-table-selection-col) {
|
:deep(.ant-table-selection-col) {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
}
|
}
|
||||||
:deep( .ant-col-8:nth-child(1)) {
|
:deep( .ant-col-8:nth-child(4)) {
|
||||||
width: 320px !important;
|
width: 320px !important;
|
||||||
max-width: 320px !important;;
|
max-width: 320px !important;;
|
||||||
}
|
}
|
||||||
:deep(.ant-col-8:nth-child(1) .ant-form-item-label) {
|
:deep(.ant-col-8:nth-child(4) .ant-form-item-label) {
|
||||||
width: 80px !important;
|
width: 80px !important;
|
||||||
}
|
}
|
||||||
:deep( .ant-col-8:nth-child(2)) {
|
:deep( .w-full .ant-col-8:nth-child(1)) {
|
||||||
width: 360px !important;
|
width: 320px !important;
|
||||||
max-width: 320px !important;;
|
max-width: 320px !important;;
|
||||||
}
|
}
|
||||||
:deep(.ant-col-8:nth-child(2) .ant-form-item-label) {
|
:deep(.w-full .ant-col-8:nth-child(1) .ant-form-item-label) {
|
||||||
width: 160px !important;
|
width: 80px !important;
|
||||||
}
|
|
||||||
:deep(.ant-col-8:nth-child(2) .ant-form-item-label .ant-form-item-no-colon) {
|
|
||||||
width: 160px !important;
|
|
||||||
max-width: 160px !important;
|
|
||||||
}
|
}
|
||||||
|
// :deep( .ant-col-8:nth-child(2)) {
|
||||||
|
// width: 360px !important;
|
||||||
|
// max-width: 320px !important;;
|
||||||
|
// }
|
||||||
|
// :deep(.ant-col-8:nth-child(2) .ant-form-item-label) {
|
||||||
|
// width: 160px !important;
|
||||||
|
// }
|
||||||
|
// :deep(.ant-col-8:nth-child(2) .ant-form-item-label .ant-form-item-no-colon) {
|
||||||
|
// width: 160px !important;
|
||||||
|
// max-width: 160px !important;
|
||||||
|
// }
|
||||||
.show{
|
.show{
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -95,7 +95,8 @@
|
|||||||
const schemaIdComputedRef = ref();
|
const schemaIdComputedRef = ref();
|
||||||
schemaIdComputedRef.value = currentRoute.value.meta.schemaId
|
schemaIdComputedRef.value = currentRoute.value.meta.schemaId
|
||||||
const [registerModal, { openModal }] = useModal();
|
const [registerModal, { openModal }] = useModal();
|
||||||
const formName='管道气管道审批';
|
// const formName='管道气管道审批';
|
||||||
|
const formName=currentRoute.value.meta?.title;
|
||||||
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
||||||
title: '' || (formName + '列表'),
|
title: '' || (formName + '列表'),
|
||||||
api: getLngPngApproPage,
|
api: getLngPngApproPage,
|
||||||
|
|||||||
@ -51,9 +51,9 @@
|
|||||||
import useEventBus from '/@/hooks/event/useEventBus';
|
import useEventBus from '/@/hooks/event/useEventBus';
|
||||||
import { cloneDeep } from 'lodash-es';
|
import { cloneDeep } from 'lodash-es';
|
||||||
import rejectReplyModal from '/@/components/common/rejectReplyModal.vue';
|
import rejectReplyModal from '/@/components/common/rejectReplyModal.vue';
|
||||||
|
import dayjs from 'dayjs';
|
||||||
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
||||||
|
const defaultDate = ref([dayjs().format('YYYY-MM-DD'),dayjs().add(1, 'day').format('YYYY-MM-DD')]);
|
||||||
const { notification } = useMessage();
|
const { notification } = useMessage();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
defineEmits(['register']);
|
defineEmits(['register']);
|
||||||
@ -96,7 +96,8 @@
|
|||||||
const schemaIdComputedRef = ref();
|
const schemaIdComputedRef = ref();
|
||||||
schemaIdComputedRef.value = currentRoute.value.meta.schemaId
|
schemaIdComputedRef.value = currentRoute.value.meta.schemaId
|
||||||
const [registerModal, { openModal }] = useModal();
|
const [registerModal, { openModal }] = useModal();
|
||||||
const formName='管道气接收站审批';
|
// const formName='管道气接收站审批';
|
||||||
|
const formName=currentRoute.value.meta?.title;
|
||||||
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
||||||
title: '' || (formName + '列表'),
|
title: '' || (formName + '列表'),
|
||||||
api: getLngPngApproPage,
|
api: getLngPngApproPage,
|
||||||
@ -106,10 +107,23 @@
|
|||||||
rowProps: {
|
rowProps: {
|
||||||
gutter: 16,
|
gutter: 16,
|
||||||
},
|
},
|
||||||
schemas: customSearchFormSchema,
|
schemas: [
|
||||||
fieldMapToTime: [['datePlan', ['startDate', 'endDate'], 'YYYY-MM-DD HH:mm:ss ', true],],
|
{
|
||||||
|
field: 'datePlan',
|
||||||
|
label: '计划日期',
|
||||||
|
component: 'RangePicker',
|
||||||
|
defaultValue: defaultDate.value,
|
||||||
|
componentProps: {
|
||||||
|
format: 'YYYY-MM-DD',
|
||||||
|
style: { width: '100%' },
|
||||||
|
getPopupContainer: () => document.body,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
fieldMapToTime: [['datePlan', ['startDate', 'endDate'], 'YYYY-MM-DD'],],
|
||||||
showResetButton: true,
|
showResetButton: true,
|
||||||
},
|
},
|
||||||
|
immediate: false,
|
||||||
beforeFetch: (params) => {
|
beforeFetch: (params) => {
|
||||||
return { ...params, FormId: formIdComputedRef.value, PK: 'id',page: params.limit };
|
return { ...params, FormId: formIdComputedRef.value, PK: 'id',page: params.limit };
|
||||||
},
|
},
|
||||||
@ -308,7 +322,7 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
reload({ searchInfo: { startDate: defaultDate.value[0], endDate: defaultDate.value[1] }});
|
||||||
if (schemaIdComputedRef.value) {
|
if (schemaIdComputedRef.value) {
|
||||||
bus.on(FLOW_PROCESSED, handleRefresh);
|
bus.on(FLOW_PROCESSED, handleRefresh);
|
||||||
bus.on(CREATE_FLOW, handleRefresh);
|
bus.on(CREATE_FLOW, handleRefresh);
|
||||||
@ -390,4 +404,11 @@
|
|||||||
.hide{
|
.hide{
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
:deep( .ant-col-8:nth-child(1)) {
|
||||||
|
width: 320px !important;
|
||||||
|
max-width: 320px !important;;
|
||||||
|
}
|
||||||
|
:deep(.ant-col-8:nth-child(1) .ant-form-item-label) {
|
||||||
|
width: 80px !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -26,19 +26,31 @@
|
|||||||
</AButton>
|
</AButton>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="6" v-if="isAdvanced">
|
<!-- <a-col :span="6" v-if="isAdvanced">
|
||||||
<a-form-item label="计划日期" name="reply" >
|
<a-form-item label="计划日期" name="reply" >
|
||||||
<a-range-picker v-model:value="formState.datePlan" />
|
<a-range-picker v-model:value="formState.datePlan" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col> -->
|
||||||
<a-col :span="7" v-if="isAdvanced">
|
<a-col :span="6" v-if="isAdvanced">
|
||||||
<a-form-item label="上载点" name="pointUpName">
|
<a-form-item label="上载点" name="pointUpName">
|
||||||
<a-input-search v-model:value="formState.pointUpName" readonly placeholder="请选择上载点" @search="onSearchDownLoad('up')" />
|
<a-input v-model:value="formState.pointUpName" placeholder="请输入" />
|
||||||
|
<!-- <a-input-search v-model:value="formState.pointUpName" readonly placeholder="请选择上载点" @search="onSearchDownLoad('up')" /> -->
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="7" v-if="isAdvanced">
|
<a-col :span="7" v-if="isAdvanced">
|
||||||
<a-form-item label="下载点" name="pointDelyName">
|
<a-form-item label="下载点" name="pointDelyName">
|
||||||
<a-input-search v-model:value="formState.pointDelyName" readonly placeholder="请选择下载点" @search="onSearchDownLoad('dely')"/>
|
<a-input v-model:value="formState.pointDelyName" placeholder="请输入" />
|
||||||
|
<!-- <a-input-search v-model:value="formState.pointDelyName" readonly placeholder="请选择下载点" @search="onSearchDownLoad('dely')"/> -->
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="7" v-if="isAdvanced">
|
||||||
|
<a-form-item label="状态" name="statusCode">
|
||||||
|
<a-select v-model:value="formState.statusCode" :disabled="isDisable" placeholder="请选择" style="width: 100%" allow-clear >
|
||||||
|
<a-select-option v-for="item in statusList" :key="item.value" :value="item.value">
|
||||||
|
{{ item.label }}
|
||||||
|
</a-select-option>
|
||||||
|
</a-select>
|
||||||
|
<!-- <a-input-search v-model:value="formState.pointDelyName" readonly placeholder="请选择下载点" @search="onSearchDownLoad('dely')"/> -->
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@ -80,6 +92,12 @@
|
|||||||
wrapperCol: { span: 15 },
|
wrapperCol: { span: 15 },
|
||||||
}
|
}
|
||||||
const isAdvanced = ref(false)
|
const isAdvanced = ref(false)
|
||||||
|
const statusList = [
|
||||||
|
{label: '计量中', value: 'JLZ'},
|
||||||
|
{label: '结算中', value: 'JSZ'},
|
||||||
|
{label: '已结算', value: 'YJS'},
|
||||||
|
{label: '计量完成', value: 'JLWC'},
|
||||||
|
]
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|
||||||
@ -105,15 +123,13 @@
|
|||||||
const onSearch = () => {
|
const onSearch = () => {
|
||||||
let obj = {
|
let obj = {
|
||||||
...formState.value,
|
...formState.value,
|
||||||
startDate: formState.value.datePlan ? dayjs(formState.value.datePlan[0]).format('YYYY-MM-DD') : '',
|
// startDate: formState.value.datePlan ? dayjs(formState.value.datePlan[0]).format('YYYY-MM-DD') : '',
|
||||||
endDate: formState.value.datePlan ? dayjs(formState.value.datePlan[1]).format('YYYY-MM-DD') : '',
|
// endDate: formState.value.datePlan ? dayjs(formState.value.datePlan[1]).format('YYYY-MM-DD') : '',
|
||||||
dateMeaStart: formState.value.dateMea ? dayjs(formState.value.dateMea[0]).format('YYYY-MM-DD') : '',
|
dateMeaStart: formState.value.dateMea ? dayjs(formState.value.dateMea[0]).format('YYYY-MM-DD') : '',
|
||||||
dateMeaEnd: formState.value.dateMea ? dayjs(formState.value.dateMea[1]).format('YYYY-MM-DD') : '',
|
dateMeaEnd: formState.value.dateMea ? dayjs(formState.value.dateMea[1]).format('YYYY-MM-DD') : '',
|
||||||
}
|
}
|
||||||
delete obj.datePlan
|
// delete obj.datePlan
|
||||||
delete obj.dateMea
|
delete obj.dateMea
|
||||||
delete obj.pointUpName
|
|
||||||
delete obj.pointDelyName
|
|
||||||
emit('search', obj)
|
emit('search', obj)
|
||||||
}
|
}
|
||||||
const onReset = () => {
|
const onReset = () => {
|
||||||
|
|||||||
@ -156,7 +156,8 @@
|
|||||||
const tableName = 'PngMeasureSalesPur';
|
const tableName = 'PngMeasureSalesPur';
|
||||||
const columnName = 'PngMeasureSalesPur';
|
const columnName = 'PngMeasureSalesPur';
|
||||||
|
|
||||||
const formName='管道气采购计量';
|
// const formName='管道气采购计量';
|
||||||
|
const formName=currentRoute.value.meta?.title;
|
||||||
|
|
||||||
const loadData = async () => {
|
const loadData = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
@ -218,7 +219,7 @@
|
|||||||
path: '/dayPlan/PngMeasureSalesPur/createForm',
|
path: '/dayPlan/PngMeasureSalesPur/createForm',
|
||||||
query: {
|
query: {
|
||||||
formPath: 'dayPlan/PngMeasureSalesPur',
|
formPath: 'dayPlan/PngMeasureSalesPur',
|
||||||
formName: formName,
|
formName: "新建"+formName,
|
||||||
formId:currentRoute.value.meta.formId,
|
formId:currentRoute.value.meta.formId,
|
||||||
type:'add'
|
type:'add'
|
||||||
}
|
}
|
||||||
|
|||||||
@ -112,7 +112,8 @@
|
|||||||
const taskIdRef = ref('');
|
const taskIdRef = ref('');
|
||||||
const visibleFlowRecordModal = ref(false);
|
const visibleFlowRecordModal = ref(false);
|
||||||
const [registerModal, { openModal }] = useModal();
|
const [registerModal, { openModal }] = useModal();
|
||||||
const formName='客户';
|
// const formName='客户';
|
||||||
|
const formName=currentRoute.value.meta?.title;
|
||||||
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
||||||
title: '' || (formName + '列表'),
|
title: '' || (formName + '列表'),
|
||||||
api: getLngCustomerPage,
|
api: getLngCustomerPage,
|
||||||
|
|||||||
@ -58,7 +58,7 @@ export const columns: BasicColumn[] = [
|
|||||||
|
|
||||||
{
|
{
|
||||||
dataIndex: 'dateFrom',
|
dataIndex: 'dateFrom',
|
||||||
title: '超始日期',
|
title: '起始日期',
|
||||||
componentType: 'date',
|
componentType: 'date',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
|
||||||
|
|||||||
@ -88,7 +88,8 @@
|
|||||||
const schemaIdComputedRef = ref();
|
const schemaIdComputedRef = ref();
|
||||||
schemaIdComputedRef.value = currentRoute.value.meta.schemaId
|
schemaIdComputedRef.value = currentRoute.value.meta.schemaId
|
||||||
const [registerModal, { openModal }] = useModal();
|
const [registerModal, { openModal }] = useModal();
|
||||||
const formName='客户组';
|
// const formName='客户组';
|
||||||
|
const formName=currentRoute.value.meta?.title;
|
||||||
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
||||||
title: '' || (formName + '列表'),
|
title: '' || (formName + '列表'),
|
||||||
api: getLngCustomerGroupPage,
|
api: getLngCustomerGroupPage,
|
||||||
|
|||||||
@ -90,7 +90,8 @@
|
|||||||
const schemaIdComputedRef = ref();
|
const schemaIdComputedRef = ref();
|
||||||
schemaIdComputedRef.value = currentRoute.value.meta.schemaId
|
schemaIdComputedRef.value = currentRoute.value.meta.schemaId
|
||||||
const [registerModal, { openModal }] = useModal();
|
const [registerModal, { openModal }] = useModal();
|
||||||
const formName='评价体系';
|
// const formName='评价体系';
|
||||||
|
const formName=currentRoute.value.meta?.title;
|
||||||
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
||||||
title: '' || (formName + '列表'),
|
title: '' || (formName + '列表'),
|
||||||
api: getLngGradeSystemPage,
|
api: getLngGradeSystemPage,
|
||||||
|
|||||||
@ -115,7 +115,8 @@
|
|||||||
const taskIdRef = ref('');
|
const taskIdRef = ref('');
|
||||||
const visibleFlowRecordModal = ref(false);
|
const visibleFlowRecordModal = ref(false);
|
||||||
const [registerModal, { openModal }] = useModal();
|
const [registerModal, { openModal }] = useModal();
|
||||||
const formName='客户评价';
|
// const formName='客户评价';
|
||||||
|
const formName=currentRoute.value.meta?.title;
|
||||||
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
||||||
title: '' || (formName + '列表'),
|
title: '' || (formName + '列表'),
|
||||||
api: getLngScorePage,
|
api: getLngScorePage,
|
||||||
|
|||||||
@ -112,7 +112,8 @@
|
|||||||
const taskIdRef = ref('');
|
const taskIdRef = ref('');
|
||||||
const visibleFlowRecordModal = ref(false);
|
const visibleFlowRecordModal = ref(false);
|
||||||
const [registerModal, { openModal }] = useModal();
|
const [registerModal, { openModal }] = useModal();
|
||||||
const formName='供应商评价';
|
// const formName='供应商评价';
|
||||||
|
const formName=currentRoute.value.meta?.title;
|
||||||
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
||||||
title: '' || (formName + '列表'),
|
title: '' || (formName + '列表'),
|
||||||
api: getLngScorePage,
|
api: getLngScorePage,
|
||||||
|
|||||||
@ -110,7 +110,8 @@
|
|||||||
const taskIdRef = ref('');
|
const taskIdRef = ref('');
|
||||||
const visibleFlowRecordModal = ref(false);
|
const visibleFlowRecordModal = ref(false);
|
||||||
const [registerModal, { openModal }] = useModal();
|
const [registerModal, { openModal }] = useModal();
|
||||||
const formName='供应商';
|
// const formName='供应商';
|
||||||
|
const formName=currentRoute.value.meta?.title;
|
||||||
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
const [registerTable, { reload, clearSelectedRowKeys }] = useTable({
|
||||||
title: '' || (formName + '列表'),
|
title: '' || (formName + '列表'),
|
||||||
api: getLngSupplierPage,
|
api: getLngSupplierPage,
|
||||||
|
|||||||
Reference in New Issue
Block a user