采购计量参数
This commit is contained in:
@ -70,11 +70,11 @@ export const columns: BasicColumn[] = [
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
dataIndex: 'cuName',
|
dataIndex: 'cuSname',
|
||||||
title: '客户',
|
title: '客户',
|
||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width: 200,
|
width: 150,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -83,12 +83,12 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '下载点',
|
title: '下载点',
|
||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width: 150,
|
width: 130,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
dataIndex: 'suName',
|
dataIndex: 'suSname',
|
||||||
title: '供应商',
|
title: '供应商',
|
||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
@ -101,7 +101,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '上载点',
|
title: '上载点',
|
||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width: 150,
|
width: 130,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -67,7 +67,7 @@ export const columns: BasicColumn[] = [
|
|||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 150,
|
width: 130,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -86,7 +86,7 @@ export const columns: BasicColumn[] = [
|
|||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 150,
|
width: 130,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -133,8 +133,10 @@
|
|||||||
const formState = ref({});
|
const formState = ref({});
|
||||||
const isUpdate = ref(true);
|
const isUpdate = ref(true);
|
||||||
const showTable = ref(false)
|
const showTable = ref(false)
|
||||||
|
const curCuCode = ref('')
|
||||||
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
|
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
|
||||||
showTable.value = true
|
showTable.value = true
|
||||||
|
curCuCode.value = data?.cuCode
|
||||||
setModalProps({ confirmLoading: false });
|
setModalProps({ confirmLoading: false });
|
||||||
setPagination({'limit': 1,'size': 10,'page': 1});
|
setPagination({'limit': 1,'size': 10,'page': 1});
|
||||||
isUpdate.value = !!data?.isUpdate;
|
isUpdate.value = !!data?.isUpdate;
|
||||||
@ -158,7 +160,7 @@
|
|||||||
},
|
},
|
||||||
immediate: false,
|
immediate: false,
|
||||||
beforeFetch: (params) => {
|
beforeFetch: (params) => {
|
||||||
return { ...params,...formState.value,page:params.limit};
|
return { ...params,...formState.value,page:params.limit,cuCode: curCuCode.value};
|
||||||
},
|
},
|
||||||
rowSelection: {
|
rowSelection: {
|
||||||
type: 'checkbox',
|
type: 'checkbox',
|
||||||
@ -173,7 +175,7 @@
|
|||||||
await nextTick();
|
await nextTick();
|
||||||
await nextTick();
|
await nextTick();
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
reload({searchInfo:{'limit':1,'size':10,'page':1}});
|
reload({searchInfo:{'limit':1,'size':10,'page':1,cuCode: curCuCode.value}});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -80,6 +80,11 @@
|
|||||||
import { DeleteOutlined } from '@ant-design/icons-vue';
|
import { DeleteOutlined } from '@ant-design/icons-vue';
|
||||||
import createFormModal from './components/createForm.vue'
|
import createFormModal from './components/createForm.vue'
|
||||||
import { DataFormat, FormatOption, DATE_FORMAT, FormatType } from '/@/utils/dataFormat';
|
import { DataFormat, FormatOption, DATE_FORMAT, FormatType } from '/@/utils/dataFormat';
|
||||||
|
import { getCompDept } from '/@/api/approve/Appro';
|
||||||
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
|
const userStore = useUserStore();
|
||||||
|
const userInfo = userStore.getUserInfo;
|
||||||
|
const curCuCode = ref('')
|
||||||
|
|
||||||
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
||||||
|
|
||||||
@ -158,8 +163,9 @@
|
|||||||
fieldMapToTime: [['dateMea', ['dateMeaStart', 'dateMeaEnd'], 'YYYY-MM-DD']],
|
fieldMapToTime: [['dateMea', ['dateMeaStart', 'dateMeaEnd'], '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,cuCode:curCuCode.value };
|
||||||
},
|
},
|
||||||
afterFetch: (res) => {
|
afterFetch: (res) => {
|
||||||
tableData.value = res || []
|
tableData.value = res || []
|
||||||
@ -231,7 +237,7 @@
|
|||||||
handleSuccess()
|
handleSuccess()
|
||||||
}
|
}
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
openModalForm(true,{isUpdate: false});
|
openModalForm(true,{isUpdate: false, cuCode: curCuCode.value});
|
||||||
}
|
}
|
||||||
async function handleReject() {
|
async function handleReject() {
|
||||||
if (!selectedRowsData.value.length) {
|
if (!selectedRowsData.value.length) {
|
||||||
@ -434,8 +440,10 @@
|
|||||||
function handleImportSuccess(){
|
function handleImportSuccess(){
|
||||||
reload()
|
reload()
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(async() => {
|
||||||
|
const res = await getCompDept(userInfo.id)
|
||||||
|
curCuCode.value = res?.comp?.cuCode
|
||||||
|
reload({searchInfo:{'limit':1,'size':10,'page':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);
|
||||||
|
|||||||
@ -696,6 +696,10 @@
|
|||||||
formState.rateEx = data.rateEx
|
formState.rateEx = data.rateEx
|
||||||
formState.priceCurrEst = data.priceCurrEst
|
formState.priceCurrEst = data.priceCurrEst
|
||||||
formState.amountCurrEst = data.amountCurrEst
|
formState.amountCurrEst = data.amountCurrEst
|
||||||
|
|
||||||
|
if (pageSource.value) {
|
||||||
|
getOptionParams()
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
spinning.value = false
|
spinning.value = false
|
||||||
}
|
}
|
||||||
|
|||||||
@ -660,6 +660,10 @@
|
|||||||
formState.rateEx = data.rateEx
|
formState.rateEx = data.rateEx
|
||||||
formState.priceCurrEst = data.priceCurrEst
|
formState.priceCurrEst = data.priceCurrEst
|
||||||
formState.amountCurrEst = data.amountCurrEst
|
formState.amountCurrEst = data.amountCurrEst
|
||||||
|
|
||||||
|
if (pageSource.value) {
|
||||||
|
getOptionParams()
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
spinning.value = false
|
spinning.value = false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user