采购执行保存

This commit is contained in:
‘huanghaiixia’
2026-03-05 14:48:51 +08:00
parent 6dc2861232
commit 3fdbb5a5b1
7 changed files with 403 additions and 153 deletions

View File

@ -39,11 +39,13 @@
selectType: { type: String, default: 'radio' }, selectType: { type: String, default: 'radio' },
}); });
const dataType = ref('')
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
setModalProps({ confirmLoading: false }); setModalProps({ confirmLoading: false });
isUpdate.value = !!data?.isUpdate; isUpdate.value = !!data?.isUpdate;
dataType.value = data.type
}); });
const [registerTable, { getDataSource, setTableData, updateTableDataRecord, reload }] = useTable({ const [registerTable, { getDataSource, setTableData, updateTableDataRecord, reload }] = useTable({
@ -90,7 +92,7 @@
return return
} }
closeModal(); closeModal();
emit('success', selectedValues.value); emit('success', selectedValues.value, dataType.value);
} }

View File

@ -0,0 +1,132 @@
<template>
<div>
<BasicModal v-bind="$attrs" @register="registerModal" width="60%" :title="getTitle" @ok="handleSubmit"
@visible-change="handleVisibleChange" >
<BasicTable @register="registerTable" class="shipScheduleListModal"></BasicTable>
</BasicModal>
</div>
</template>
<script lang="ts" setup>
import { ref, computed, unref, nextTick } from 'vue';
import { BasicModal, useModalInner, useModal } from '/@/components/Modal';
import { BasicForm, useForm } from '/@/components/Form/index';
import { BasicTable, useTable, FormSchema, BasicColumn, TableAction } from '/@/components/Table';
import { useMessage } from '/@/hooks/web/useMessage';
import { useI18n } from '/@/hooks/web/useI18n';
import { getLngShipSchedulePage} from '/@/api/ship/ShipSchedule';
const { t } = useI18n();
const codeFormSchema: FormSchema[] = [
{ field: 'ssNo', label: '船期编号', component: 'Input'},
{
field: 'dateFrom',
label: '卸港ETA',
component: 'RangePicker',
componentProps: {
format: 'YYYY-MM-DD',
style: { width: '100%' },
getPopupContainer: () => document.body,
},
},
];
const columns: BasicColumn[] = [
{ title: t('船期编号'), dataIndex: 'ssNo', },
{ title: t('合同'), dataIndex: 'kName', },
{ title: t('长协/现货'), dataIndex: 'longSpotName' ,},
{ title: t('交易主体'), dataIndex: 'comName', },
{ title: t('卸港ETA'), dataIndex: 'dateEta'},
{ title: t('接收站'), dataIndex: 'staName'},
{ title: t('供应商'), dataIndex: 'suName'},
];
const emit = defineEmits(['success', 'register']);
const { notification } = useMessage();
const isUpdate = ref(true);
const rowId = ref('');
const selectedKeys = ref<string[]>([]);
const selectedValues = ref([]);
const props = defineProps({
selectType: { type: String, default: 'checkbox' },
});
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
setModalProps({ confirmLoading: false });
isUpdate.value = !!data?.isUpdate;
});
const [registerTable, { getDataSource, setTableData, updateTableDataRecord, reload }] = useTable({
title: t('船期计划列表'),
api: getLngShipSchedulePage,
columns,
bordered: true,
pagination: true,
canResize: false,
formConfig: {
labelCol:{span: 9, offSet:10},
schemas: codeFormSchema,
fieldMapToTime: [['dateFrom', ['startDate', 'endDate'], 'YYYY-MM-DD']],
showResetButton: true,
},
immediate: false, // 设置为不立即调用
beforeFetch: (params) => {
return { ...params,page:params.limit};
},
rowSelection: {
type: props.selectType,
onChange: onSelectChange
},
});
const handleVisibleChange = (visible: boolean) => {
if (visible) {
nextTick(() => {
reload();
});
}
};
function onSelectChange(rowKeys: string[], e) {
selectedKeys.value = rowKeys;
selectedValues.value = e
}
const getTitle = computed(() => (!unref(isUpdate) ? t('船期计划列表列表') : t('')));
async function handleSubmit() {
if (!selectedValues.value.length) {
notification.warning({
message: t('提示'),
description: t('请选择船期')
});
return
}
closeModal();
emit('success', selectedValues.value);
}
</script>
<style >
.shipScheduleListModal .basicCol{
position: inherit !important;
top: 0;
}
</style>
<style lang="less" scoped>
:deep( .ant-col-8:nth-child(2)) {
width: 360px !important;
max-width: 360px !important;;
}
:deep(.ant-col-8:nth-child(2) .ant-form-item-label) {
width: 80px !important;
}
</style>

View File

@ -405,6 +405,9 @@
formState.dateDraft = formState.dateDraft ? dayjs(formState.dateDraft) : null formState.dateDraft = formState.dateDraft ? dayjs(formState.dateDraft) : null
formState.dateFrom = formState.dateFrom ? dayjs(formState.dateFrom) : null formState.dateFrom = formState.dateFrom ? dayjs(formState.dateFrom) : null
formState.dateTo = formState.dateTo ? dayjs(formState.dateTo) : null formState.dateTo = formState.dateTo ? dayjs(formState.dateTo) : null
dataListAppro.value.forEach(v => {
v.approId = v.id
})
periodTypeCodeChange(formState.periodTypeCode) periodTypeCodeChange(formState.periodTypeCode)
amountTypeCodeChange(formState.amountTypeCode) amountTypeCodeChange(formState.amountTypeCode)
getOptionParams() getOptionParams()
@ -593,7 +596,9 @@
async function handleSubmit(type) { async function handleSubmit(type) {
try { try {
await formRef.value.validateFields(); await formRef.value.validateFields();
dataListAppro.value.forEach((v,idx)=>{
v.tableName = 'lng_contract_fact'
})
if (Number(formState.cpCount)<1 || Number(formState.cpCount)>20) { if (Number(formState.cpCount)<1 || Number(formState.cpCount)>20) {
message.warn('相对方信息个数必须在1-20间') message.warn('相对方信息个数必须在1-20间')
return return

View File

@ -17,12 +17,11 @@
<a-row> <a-row>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="船期编号" name="ssNo"> <a-form-item label="船期编号" name="ssNo">
<a-input-search v-model:value="formState.ssNo" :disabled="isDisable" placeholder="请选择船期" readonly @search="onContract"/> <a-input-search v-model:value="formState.ssNo" :disabled="isDisable || pageType" placeholder="请选择船期" readonly @search="onSearchShip"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="交易主体" name="comName"> <a-form-item label="交易主体" name="comName">
<!-- <a-input v-model:value="formState.comName" disabled/> -->
<a-select v-model:value="formState.comId" disabled placeholder="请选择" style="width: 100%" allow-clear> <a-select v-model:value="formState.comId" disabled placeholder="请选择" style="width: 100%" allow-clear>
<a-select-option v-for="item in optionSelect.comIdList" :key="item.value" :value="item.value"> <a-select-option v-for="item in optionSelect.comIdList" :key="item.value" :value="item.value">
{{ item.label }} {{ item.label }}
@ -32,7 +31,7 @@
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="业务类型" name="ssTypeCode"> <a-form-item label="业务类型" name="ssTypeCode">
<a-select v-model:value="formState.ssTypeCode" :disabled="isDisable" placeholder="请选择" style="width: 100%" allow-clear @change="periodTypeCodeChange"> <a-select v-model:value="formState.ssTypeCode" :disabled="isDisable" placeholder="请选择" style="width: 100%" allow-clear>
<a-select-option v-for="item in optionSelect.ssTypeCodeList" :key="item.code" :value="item.code"> <a-select-option v-for="item in optionSelect.ssTypeCodeList" :key="item.code" :value="item.code">
{{ item.name }} {{ item.name }}
</a-select-option> </a-select-option>
@ -69,12 +68,9 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="销售区域" name="ownSign"> <a-form-item label="销售区域" name="salesAreaCode">
<a-select v-model:value="formState.ownSign" :disabled="isDisable" placeholder="请选择是否自采" style="width: 100%" allow-clear> <a-cascader v-model:value="formState.salesAreaCode" :options="options" :load-data="loadData" :disabled="isDisable" @change="onChange" change-on-select
<a-select-option v-for="item in optionSelect.ownSignList" :key="item.code" :value="item.code"> :field-names="{label: 'fullName', value: 'code', children: 'children'}" placeholder="请选择区域"/>
{{ item.name }}
</a-select-option>
</a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
@ -93,9 +89,9 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="信用证号" name="ownSign"> <a-form-item label="信用证号" name="lcNo">
<a-select v-model:value="formState.ownSign" :disabled="isDisable" placeholder="请选择是否自采" style="width: 100%" allow-clear> <a-select v-model:value="formState.lcNo" :disabled="isDisable" placeholder="请选择" style="width: 100%" allow-clear>
<a-select-option v-for="item in optionSelect.ownSignList" :key="item.code" :value="item.code"> <a-select-option v-for="item in optionSelect.signList" :key="item.code" :value="item.code">
{{ item.name }} {{ item.name }}
</a-select-option> </a-select-option>
</a-select> </a-select>
@ -106,13 +102,13 @@
<Card title="货物信息" :bordered="false" > <Card title="货物信息" :bordered="false" >
<a-row> <a-row>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="执行日" name="dateNor"> <a-form-item label="执行日" name="dateOps">
<a-date-picker v-model:value="formState.dateNor" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" /> <a-date-picker v-model:value="formState.dateOps" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="货权转移日" name="dateNor"> <a-form-item label="货权转移日" name="dateTrans">
<a-date-picker v-model:value="formState.dateNor" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" /> <a-date-picker v-model:value="formState.dateTrans" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
@ -125,9 +121,9 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="是否自租船" name="ownSign"> <a-form-item label="是否自租船" name="frtSign">
<a-select v-model:value="formState.ownSign" :disabled="isDisable" placeholder="请选择" style="width: 100%" allow-clear> <a-select v-model:value="formState.frtSign" :disabled="isDisable" placeholder="请选择" style="width: 100%" allow-clear>
<a-select-option v-for="item in optionSelect.ownSignList" :key="item.code" :value="item.code"> <a-select-option v-for="item in optionSelect.signList" :key="item.code" :value="item.code">
{{ item.name }} {{ item.name }}
</a-select-option> </a-select-option>
</a-select> </a-select>
@ -144,17 +140,17 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="是否保险" name="ownSign"> <a-form-item label="是否保险" name="insurSign">
<a-select v-model:value="formState.ownSign" :disabled="isDisable" placeholder="请选择" style="width: 100%" allow-clear> <a-select v-model:value="formState.insurSign" :disabled="isDisable" placeholder="请选择" style="width: 100%" allow-clear>
<a-select-option v-for="item in optionSelect.ownSignList" :key="item.code" :value="item.code"> <a-select-option v-for="item in optionSelect.signList" :key="item.code" :value="item.code">
{{ item.name }} {{ item.name }}
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="币种" name="currCode"> <a-form-item label="币种" name="curCode">
<a-select v-model:value="formState.currCode" :disabled="isDisable" placeholder="请选择币种" style="width: 100%" allow-clear> <a-select v-model:value="formState.curCode" :disabled="isDisable" placeholder="请选择币种" style="width: 100%" allow-clear>
<a-select-option v-for="item in optionSelect.curCodeList" :key="item.code" :value="item.code"> <a-select-option v-for="item in optionSelect.curCodeList" :key="item.code" :value="item.code">
{{ item.fullName }} {{ item.fullName }}
</a-select-option> </a-select-option>
@ -167,18 +163,18 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="预估币种价格" name="priceMmbtuPur"> <a-form-item label="预估币种价格" name="priceCurrEst">
<input-number v-model:value="formState.priceMmbtuPur" :disabled="isDisable" :digits="4" :min="0" style="width: 100%" placeholder="请输入" /> <input-number v-model:value="formState.priceCurrEst" @change="numCount" :disabled="isDisable" :digits="4" :min="0" style="width: 100%" placeholder="请输入" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="预估币种金额" name="amountPur"> <a-form-item label="预估币种金额" name="amountCurrEst">
<input-number v-model:value="formState.amountPur" :disabled="isDisable" :digits="2" :min="0" style="width: 100%" placeholder="请输入"/> <input-number v-model:value="formState.amountCurrEst" disabled :digits="2" :min="0" style="width: 100%" placeholder="请输入"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="热值(MMBtu)" name="qtyMmbtu"> <a-form-item label="热值(MMBtu)" name="qtyMmbtu">
<input-number v-model:value="formState.qtyMmbtu" :disabled="isDisable" :digits="3" :min="0" style="width: 100%" placeholder="请输入"/> <input-number v-model:value="formState.qtyMmbtu" @change="numCount" :disabled="isDisable" :digits="3" :min="0" style="width: 100%" placeholder="请输入"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
@ -197,18 +193,18 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="结算量(MMBtu)" name="qtyMmbtu"> <a-form-item label="结算量(MMBtu)" name="qtySettleMmbtu">
<input-number v-model:value="formState.qtyMmbtu" :disabled="isDisable" :digits="3" :min="0" style="width: 100%" placeholder="请输入"/> <input-number v-model:value="formState.qtySettleMmbtu" @change="numChange" :disabled="isDisable" :digits="3" :min="0" style="width: 100%" placeholder="请输入"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="结算币种价格" name="qtyGj"> <a-form-item label="结算币种价格" name="priceCurr">
<input-number v-model:value="formState.qtyGj" :disabled="isDisable" :digits="3" :min="0" style="width: 100%" placeholder="请输入"/> <input-number v-model:value="formState.priceCurr" @change="numChange" :disabled="isDisable" :digits="4" :min="0" style="width: 100%" placeholder="请输入"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="结算币种金额" name="qtyTon"> <a-form-item label="结算币种金额" name="amountCurr">
<input-number v-model:value="formState.qtyTon" :disabled="isDisable" :digits="3" :min="0" style="width: 100%" placeholder="请输入"/> <input-number v-model:value="formState.amountCurr" :disabled="isDisable" :digits="2" :min="0" style="width: 100%" placeholder="请输入"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
@ -217,23 +213,23 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="最迟交货日" name="dateNor"> <a-form-item label="最迟交货日" name="dateEnd">
<a-date-picker v-model:value="formState.dateNor" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" /> <a-date-picker v-model:value="formState.dateEnd" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="发出付款通知日" name="dateNor"> <a-form-item label="发出付款通知日" name="datePayNtc">
<a-date-picker v-model:value="formState.dateNor" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" /> <a-date-picker v-model:value="formState.datePayNtc" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="收到发票日" name="dateNor"> <a-form-item label="收到发票日" name="dateInv">
<a-date-picker v-model:value="formState.dateNor" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" /> <a-date-picker v-model:value="formState.dateInv" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="付款日" name="dateNor"> <a-form-item label="付款日" name="dateRp">
<a-date-picker v-model:value="formState.dateNor" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" /> <a-date-picker v-model:value="formState.dateRp" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" />
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
@ -241,33 +237,33 @@
<Card title="装港信息" :bordered="false" > <Card title="装港信息" :bordered="false" >
<a-row> <a-row>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="装港" name="portUnloading1Name"> <a-form-item label="装港" name="portLoading1Name">
<a-input-search v-model:value="formState.portUnloading1Name" :disabled="isDisable" placeholder="请选择卸港港口" readonly @search="onSearchPort"/> <a-input-search v-model:value="formState.portLoading1Name" :disabled="isDisable" placeholder="请选择卸港港口" readonly @search="onSearchPort('portLoad')"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="替代装港" name="cuName"> <a-form-item label="替代装港" name="portLoading2">
<a-input v-model:value="formState.cuName" :disabled="isDisable" placeholder="请输入" /> <a-input v-model:value="formState.portLoading2" :disabled="isDisable" placeholder="请输入" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="装港ETA" name="dateNor"> <a-form-item label="装港ETA" name="dateEtaL">
<a-date-picker v-model:value="formState.dateNor" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" /> <a-date-picker v-model:value="formState.dateEtaL" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="装港ETB" name="dateNor"> <a-form-item label="装港ETB" name="dateEtbL">
<a-date-picker v-model:value="formState.dateNor" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" /> <a-date-picker v-model:value="formState.dateEtbL" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="装港ETC" name="dateNor"> <a-form-item label="装港ETC" name="dateEtcL">
<a-date-picker v-model:value="formState.dateNor" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" /> <a-date-picker v-model:value="formState.dateEtcL" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="装港ETD" name="dateNor"> <a-form-item label="装港ETD" name="dateEtdL">
<a-date-picker v-model:value="formState.dateNor" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" /> <a-date-picker v-model:value="formState.dateEtdL" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" />
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
@ -276,12 +272,12 @@
<a-row> <a-row>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="卸港" name="portUnloading1Name"> <a-form-item label="卸港" name="portUnloading1Name">
<a-input-search v-model:value="formState.portUnloading1Name" :disabled="isDisable" placeholder="请选择卸港港口" readonly @search="onSearchPort"/> <a-input-search v-model:value="formState.portUnloading1Name" :disabled="isDisable" placeholder="请选择卸港港口" readonly @search="onSearchPort('portUnload')"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="替代卸港" name="cuName"> <a-form-item label="替代卸港" name="portUnloading2">
<a-input v-model:value="formState.cuName" :disabled="isDisable" placeholder="请输入" /> <a-input v-model:value="formState.portUnloading2" :disabled="isDisable" placeholder="请输入" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
@ -305,8 +301,8 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-item label="卸港信息说明" name="note" :label-col="{ span: 3 }" :wrapper-col="{ span: 24 }"> <a-form-item label="卸港信息说明" name="noteArrival" :label-col="{ span: 3 }" :wrapper-col="{ span: 24 }">
<a-textarea v-model:value="formState.note" :disabled="isDisable" placeholder="请输入内容,最多200字" :maxLength="200" :auto-size="{ minRows: 2, maxRows: 5 }"/> <a-textarea v-model:value="formState.noteArrival" :disabled="isDisable" placeholder="请输入内容,最多100字" :maxLength="100" :auto-size="{ minRows: 2, maxRows: 5 }"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
@ -314,41 +310,45 @@
<Card title="通关信息" :bordered="false" > <Card title="通关信息" :bordered="false" >
<a-row> <a-row>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="提单号" name="unloadSign"> <a-form-item label="提单号" name="blNo">
<a-input v-model:value="formState.dateNor" style="width: 100%" :disabled="isDisable" placeholder="请输入" /> <a-input v-model:value="formState.blNo" style="width: 100%" :disabled="isDisable" placeholder="请输入" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="提单日" name="dateNor"> <a-form-item label="提单日" name="dateBl">
<a-date-picker v-model:value="formState.dateNor" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" /> <a-date-picker v-model:value="formState.dateBl" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="商检公司" name="unloadSign"> <a-form-item label="商检公司" name="inspName">
<a-input v-model:value="formState.dateNor" style="width: 100%" :disabled="isDisable" placeholder="请输入" /> <a-input v-model:value="formState.inspName" style="width: 100%" :disabled="isDisable" placeholder="请输入" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="最迟交货日" name="dateEnd"> <a-form-item label="报关单号" name="cdNo">
<a-date-picker v-model:value="formState.dateEnd" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" /> <a-input v-model:value="formState.cdNo" style="width: 100%" :disabled="isDisable" placeholder="请输入" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8">
<a-form-item label="邮寄报关资料日" name="datePost">
<a-date-picker v-model:value="formState.datePost" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" />
</a-row>
<a-row>
<a-col :span="24">
<a-form-item label="对在港烧气有特别要求" class="formItemWarp" name="request" :label-col="{ span: 3 }" :wrapper-col="{ span: 24 }">
<a-textarea v-model:value="formState.request" :disabled="isDisable" :maxLength="100" placeholder="请输入内容最多100字" :auto-size="{ minRows: 2, maxRows: 5 }"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="8">
<a-form-item label="备注" name="note" :label-col="{ span: 3 }" :wrapper-col="{ span: 24 }"> <a-form-item label="产地证" name="origin">
<a-textarea v-model:value="formState.note" :disabled="isDisable" placeholder="请输入内容最多200字" :maxLength="200" :auto-size="{ minRows: 2, maxRows: 5 }"/> <a-input v-model:value="formState.origin" style="width: 100%" :disabled="isDisable" placeholder="请输入" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8">
<a-form-item label="许可证编号" name="licNo">
<a-input v-model:value="formState.licNo" style="width: 100%" :disabled="isDisable" placeholder="请输入" />
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item label="办理许可证日" name="dateLic">
<a-date-picker v-model:value="formState.dateLic" style="width: 100%" :disabled="isDisable" placeholder="请选择日期" />
</a-form-item>
</a-col>
</a-row> </a-row>
</Card> </Card>
<Card title="附件信息" :bordered="false" > <Card title="附件信息" :bordered="false" >
@ -357,11 +357,10 @@
</a-form> </a-form>
</div> </div>
<deptUserModal @register="register" @success="handleSuccess"/> <deptUserModal @register="register" @success="handleSuccess"/>
<ContractPurIntListModal @register="registerContractPurInt" @success="handleSuccessContractPurInt" selectType="radio" /> <contractPurIntListModal @register="registerContractPurInt" @success="handleSuccessContractPurInt" selectType="radio" />
<supplierListModal @register="registerSupplier" @success="handleSuccessSupplier" selectType="radio" />
<customerListModal @register="registerCustomer" @success="handleSuccessCustomer" selectType="radio" />
<lngStationModal @register="registerStation" @success="handleSuccessStation"/> <lngStationModal @register="registerStation" @success="handleSuccessStation"/>
<portListModal @register="registerPort" @success="handleSuccessPort"/> <portListModal @register="registerPort" @success="handleSuccessPort"/>
<shipScheduleListModal @register="registerShip" @success="handleSuccessShip" />
</a-spin> </a-spin>
</template> </template>
@ -379,20 +378,25 @@
import { getDictionary } from '/@/api/sales/Customer'; import { getDictionary } from '/@/api/sales/Customer';
import { useModal } from '/@/components/Modal'; import { useModal } from '/@/components/Modal';
import { getAllPriceTerm} from '/@/api/contract/ContractPurInt'; import { getAllPriceTerm} from '/@/api/contract/ContractPurInt';
import { addLngShipSchedule,updateLngShipSchedule, getLngShipSchedule} from '/@/api/ship/ShipSchedule'; import { addLngOpsPurInt,updateLngOpsPurInt, getLngOpsPurInt} from '/@/api/ship/OpsPurInt';
import { getAllCurrency } from '/@/api/contract/ContractFact'; import { getAllCurrency } from '/@/api/contract/ContractFact';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import { getAppEnvConfig } from '/@/utils/env'; import { getAppEnvConfig } from '/@/utils/env';
import { message } from 'ant-design-vue'; import { message } from 'ant-design-vue';
import UploadList from '/@/components/Form/src/components/UploadList.vue'; import UploadList from '/@/components/Form/src/components/UploadList.vue';
import deptUserModal from '/@/components/common/deptUserModal.vue'; import deptUserModal from '/@/components/common/deptUserModal.vue';
import ContractPurIntListModal from '/@/components/common/ContractPurIntListModal.vue'; import contractPurIntListModal from '../../../../components/common/contractPurIntListModal.vue';
import supplierListModal from '/@/components/common/supplierListModal.vue'; import supplierListModal from '/@/components/common/supplierListModal.vue';
import lngStationModal from '/@/components/common/lngStationModal.vue'; import lngStationModal from '/@/components/common/lngStationModal.vue';
import customerListModal from '/@/components/common/customerListModal.vue'; import customerListModal from '/@/components/common/customerListModal.vue';
import portListModal from '/@/components/common/portListModal.vue'; import portListModal from '/@/components/common/portListModal.vue';
import shipScheduleListModal from '/@/components/common/shipScheduleListModal.vue';
import { useUserStore } from '/@/store/modules/user'; import { useUserStore } from '/@/store/modules/user';
import { getAllCom} from '/@/api/contract/ContractPurInt'; import { getAllCom} from '/@/api/contract/ContractPurInt';
import type { CascaderProps } from 'ant-design-vue';
import { getAreaList, getAreaInfo} from '/@/api/mdm/CountryRegion';
import {getCompDept } from '/@/api/approve/Appro';
import { getLngShipSchedule} from '/@/api/ship/ShipSchedule';
const userStore = useUserStore(); const userStore = useUserStore();
const userInfo = userStore.getUserInfo; const userInfo = userStore.getUserInfo;
@ -425,20 +429,25 @@
const { t } = useI18n() const { t } = useI18n()
const formState = reactive({ const formState = reactive({
approCode: 'WTJ'
}); });
const [register, { openModal:openModal}] = useModal(); const [register, { openModal:openModal}] = useModal();
const [registerContractPurInt, { openModal:openModalContractPurInt}] = useModal(); const [registerContractPurInt, { openModal:openModalContractPurInt}] = useModal();
const [registerSupplier, { openModal:openModalSupplier}] = useModal();
const [registerStation, { openModal:openModalStation}] = useModal(); const [registerStation, { openModal:openModalStation}] = useModal();
const [registerCustomer, { openModal:openModalCustomer}] = useModal();
const [registerPort, { openModal:openModalPort}] = useModal(); const [registerPort, { openModal:openModalPort}] = useModal();
const [registerShip, { openModal:openModalShip}] = useModal();
const rules= reactive({ const rules= reactive({
ownSign: [{ required: true, message: "该项为必填项", trigger: 'change' }], ssNo: [{ required: true, message: "该项为必填项", trigger: 'change' }],
comId: [{ required: true, message: "该项为必填项", trigger: 'change' }], comId: [{ required: true, message: "该项为必填项", trigger: 'change' }],
ssTypeCode: [{ required: true, message: "该项为必填项", trigger: 'change' }], ssTypeCode: [{ required: true, message: "该项为必填项", trigger: 'change' }],
currCode: [{ required: true, message: "该项为必填项", trigger: 'change' }], curCode: [{ required: true, message: "该项为必填项", trigger: 'change' }],
dateEta: [{ required: true, message: "该项为必填项", trigger: 'change' }], dateEta: [{ required: true, message: "该项为必填项", trigger: 'change' }],
kName: [{ required: true, message: "该项为必填项", trigger: 'change' }],
staName: [{ required: true, message: "该项为必填项", trigger: 'change' }],
dateOps: [{ required: true, message: "该项为必填项", trigger: 'change' }],
frtSign: [{ required: true, message: "该项为必填项", trigger: 'change' }],
insurSign: [{ required: true, message: "该项为必填项", trigger: 'change' }],
}); });
const layout = { const layout = {
labelCol: { span: 8 }, labelCol: { span: 8 },
@ -446,7 +455,7 @@
} }
const dataFile = ref([]); const dataFile = ref([]);
let optionSelect= reactive({ let optionSelect= reactive({
ownSignList: [], signList: [],
comIdList: [], comIdList: [],
ssTypeCodeList: [], ssTypeCodeList: [],
longSpotCodeList: [], longSpotCodeList: [],
@ -484,16 +493,57 @@
formState.empTel = userInfo.mobile formState.empTel = userInfo.mobile
getOptionParams() getOptionParams()
} }
initialFetch()
}); });
const options = ref<CascaderProps['options']>([]);
const loadData: CascaderProps['loadData'] = async (selectedOptions) => {
const targetOption = selectedOptions[selectedOptions.length - 1];
targetOption.loading = true;
try {
const res = await getAreaList({pid: targetOption.id, excludeType:'CONTINENT'});
if (Array.isArray(res)) {
const children = (res || []).map(item => {
return {
...item,
isLeaf: !item.hasChild,
}
});
targetOption.children = children;
return;
}
} catch (e) {
console.error(e);
} finally {
targetOption.loading = false;
}
};
async function initialFetch() {
try {
const res = await getAreaList({pid: '', excludeType:'CONTINENT'});
options.value = (res || []).map(item => {
return {
...item,
isLeaf: !item.hasChild,
}
})
} catch (error) {}
}
const onChange = (value, selectedOptions) => {
}
const getArea = async (val) => {
const resData = await getAreaInfo({code: val,excludeType:'CONTINENT' });
options.value = resData.areaList
formState.salesAreaCode = resData.regionCode
}
const uploadListChange = (val) => { const uploadListChange = (val) => {
dataFile.value = val dataFile.value = val
} }
async function getInfo(id) { async function getInfo(id) {
spinning.value = true spinning.value = true
try { try {
let data = await getLngShipSchedule(id) let data = await getLngOpsPurInt(id)
spinning.value = false spinning.value = false
Object.assign(formState, {...data}) Object.assign(formState, {...data})
Object.assign(dataFile.value, formState.lngFileUploadList || []) Object.assign(dataFile.value, formState.lngFileUploadList || [])
@ -503,17 +553,49 @@
formState.dateEtb = formState.dateEtb ? dayjs(formState.dateEtb) : null formState.dateEtb = formState.dateEtb ? dayjs(formState.dateEtb) : null
formState.dateEtc = formState.dateEtc ? dayjs(formState.dateEtc) : null formState.dateEtc = formState.dateEtc ? dayjs(formState.dateEtc) : null
formState.dateEtd = formState.dateEtd ? dayjs(formState.dateEtd) : null formState.dateEtd = formState.dateEtd ? dayjs(formState.dateEtd) : null
formState.dateOps = formState.dateOps ? dayjs(formState.dateOps) : null
formState.dateTrans = formState.dateTrans ? dayjs(formState.dateTrans) : null
formState.dateEnd = formState.dateEnd ? dayjs(formState.dateEnd) : null
formState.datePayNtc = formState.datePayNtc ? dayjs(formState.datePayNtc) : null
formState.dateInv = formState.dateInv ? dayjs(formState.dateInv) : null
formState.dateRp = formState.dateRp ? dayjs(formState.dateRp) : null
formState.dateEtaL = formState.dateEtaL ? dayjs(formState.dateEtaL) : null
formState.dateEtbL = formState.dateEtbL ? dayjs(formState.dateEtbL) : null
formState.dateEtcL = formState.dateEtcL ? dayjs(formState.dateEtcL) : null
formState.dateEtdL = formState.dateEtdL ? dayjs(formState.dateEtdL) : null
formState.dateBl = formState.dateBl ? dayjs(formState.dateBl) : null
formState.datePost = formState.datePost ? dayjs(formState.datePost) : null
formState.dateLic = formState.dateLic ? dayjs(formState.dateLic) : null
getOptionParams() getOptionParams()
if (formState.salesAreaCode) {
getArea(formState.salesAreaCode)
}
} catch (error) { } catch (error) {
console.log(error,'533')
spinning.value = false spinning.value = false
} }
} }
const getCompDeptInfo = async (id, deptId)=> {
const res = await getCompDept(id, deptId)
formState.empDeptName = res?.dept?.name
formState.empDeptId = res?.dept?.id
if (!pageId.value) {
formState.comName = res?.comp?.name
formState.comId = res?.comp?.id
}
}
async function getOption() { async function getOption() {
optionSelect.ownSignList = await getDictionary('LNG_YN') optionSelect.signList = await getDictionary('LNG_YN')
optionSelect.ssTypeCodeList = await getDictionary('LNG_SHP_S') optionSelect.ssTypeCodeList = await getDictionary('LNG_SHP_S')
optionSelect.approCodeList = await getDictionary('LNG_APPRO') optionSelect.approCodeList = await getDictionary('LNG_APPRO')
optionSelect.longSpotCodeList = await getDictionary('LNG_LONG') optionSelect.longSpotCodeList = await getDictionary('LNG_LONG')
if (!pageId.value) {
getCompDeptInfo(userInfo.id)
}
let res = await getAllCom() || [] let res = await getAllCom() || []
optionSelect.comIdList = res.map(v=> { optionSelect.comIdList = res.map(v=> {
return { return {
@ -521,23 +603,30 @@
value: v.id value: v.id
} }
}) })
} }
async function getOptionParams() { async function getOptionParams() {
optionSelect.curCodeList = await getAllCurrency({eid: formState.curCode}) optionSelect.curCodeList = await getAllCurrency({eid: formState.curCode})
optionSelect.prcTermCodeList = await getAllPriceTerm({eid: formState.prcTermCode}) optionSelect.prcTermCodeList = await getAllPriceTerm({eid: formState.prcTermCode})
} }
const onSearchPort= () => { const numCount = () => {
openModalPort(true,{isUpdate: false}) formState.amountCurrEst = (Number(formState.qtyMmbtu) || 0) * (Number(formState.priceCurrEst) || 0)
formState.amountCurrEst = formState.amountCurrEst ? formState.amountCurrEst.toFixed(2) : ''
} }
const onSearchCustomer = () => { const numChange = () => {
openModalCustomer(true,{isUpdate: false}) formState.amountCurr = (Number(formState.qtySettleMmbtu) || 0) * (Number(formState.priceCurr) || 0)
formState.amountCurr = formState.amountCurr ? formState.amountCurr.toFixed(2) : ''
}
const onSearchPort= (type) => {
openModalPort(true,{isUpdate: false, type})
}
const onSearchShip = () => {
openModalShip(true,{isUpdate: false})
} }
const onSearchStation = (val)=> { const onSearchStation = (val)=> {
openModalStation(true,{isUpdate: false}) openModalStation(true,{isUpdate: false})
} }
const onSearchSupplier = () => {
openModalSupplier(true,{isUpdate: false})
}
const onSearchUser = (val)=> { const onSearchUser = (val)=> {
openModal(true,{isUpdate: false}) openModal(true,{isUpdate: false})
} }
@ -548,22 +637,60 @@
formState.empName = val[0].name formState.empName = val[0].name
formState.empId = val[0].id formState.empId = val[0].id
formState.empTel = val[0].mobile formState.empTel = val[0].mobile
getCompDeptInfo(formState.empId, deptId)
} }
const handleSuccessPort = (val) => {
formState.portUnloading1Code = val[0].code const handleSuccessPort = (val, type) => {
formState.portUnloading1Name = val[0].fullName if (type == 'portUnload') {
formState.portUnloading1Code = val[0].code
formState.portUnloading1Name = val[0].fullName
} else {
formState.portLoading1Code = val[0].code
formState.portLoading1Name = val[0].fullName
}
} }
const handleSuccessStation = (val) => { const handleSuccessStation = (val) => {
formState.staCode = val[0].code formState.staCode = val[0].code
formState.staName = val[0].fullName formState.staName = val[0].fullName
} }
const handleSuccessCustomer = (val) => { const handleSuccessShip = (val) => {
formState.cuCode = val[0].cuCode formState.ssNo = val[0].ssNo
formState.cuName = val[0].cuName formState.ssId = val[0].id
getLngShipInfo(val[0].id)
} }
const handleSuccessSupplier = (val) => { const getLngShipInfo = async (id) => {
formState.suCode = val[0].suCode let data = await getLngShipSchedule(id)
formState.suName = val[0].suName formState.comId = data.comId
formState.kId = data.kId
formState.kName = data.kName
formState.longSpotCode = data.longSpotCode
formState.suCode = data.suCode
formState.suName = data.suName
formState.staCode = data.staCode
formState.staName = data.staName
formState.sourceName = data.sourceName
formState.empId = data.empId
formState.empName = data.empName
formState.empTel = data.empTel
formState.prcTermCode = data.prcTermCode
formState.shipCode = data.shipCode
formState.shipName = data.shipName
formState.dateNor = data.dateNor ? dayjs(data.dateNor) : null
formState.portUnloading1Code = data.portUnloading1Code
formState.portUnloading1Name = data.portUnloading1Name
formState.dateEta = data.dateEta ? dayjs(data.dateEta) : null
formState.dateEtb = data.dateEtb ? dayjs(data.dateEtb) : null
formState.dateEtc = data.dateEtc ? dayjs(data.dateEtc) : null
formState.dateEtd = data.dateEtd ? dayjs(data.dateEtd) : null
formState.qtyMmbtu = data.qtyMmbtu
formState.qtyGj = data.qtyGj
formState.qtyTon = data.qtyTon
formState.qtyM3 = data.qtyM3
formState.curCode = data.curCode
formState.rateEx = data.rateEx
formState.priceCurrEst = data.priceCurrEst
formState.amountCurrEst = data.amountCurrEst
} }
const handleSuccessContractPurInt = (val) => { const handleSuccessContractPurInt = (val) => {
formState.kId = val[0].id formState.kId = val[0].id
@ -586,10 +713,11 @@
await formRef.value.validateFields(); await formRef.value.validateFields();
let obj = { let obj = {
...formState, ...formState,
salesAreaCode: formState.salesAreaCode ? formState.salesAreaCode[formState.salesAreaCode.length -1] : '',
lngFileUploadList: dataFile.value, lngFileUploadList: dataFile.value,
} }
spinning.value = true; spinning.value = true;
let request = !formState.id ? addLngShipSchedule :updateLngShipSchedule let request = !formState.id ? addLngOpsPurInt :updateLngOpsPurInt
try { try {
const data = await request(obj); const data = await request(obj);

View File

@ -159,39 +159,16 @@
}); });
function dbClickRow(record) { function dbClickRow(record) {
if (!actionButtonConfig?.value.some(element => element.code == 'view')) { router.push({
return; path: '/ship/OpsPurInt/createForm',
}
const { processId, taskIds, schemaId } = record.workflowData || {};
if (taskIds && taskIds.length) {
router.push({
path: '/flow/' + schemaId + '/' + (processId || '') + '/approveFlow',
query: {
taskId: taskIds[0],
formName: formName,
formId:currentRoute.value.meta.formId
}
});
} else if (schemaId && !taskIds && processId) {
router.push({
path: '/flow/' + schemaId + '/' + processId + '/approveFlow',
query: {
readonly: 1,
taskId: '',
formName: formName,
formId:currentRoute.value.meta.formId
}
});
} else {
router.push({
path: '/form/OpsPurInt/' + record.id + '/viewForm',
query: { query: {
formPath: 'ship/OpsPurInt', formPath: 'ship/OpsPurInt',
formName: formName, formName: '查看'+ formName,
formId:currentRoute.value.meta.formId formId:currentRoute.value.meta.formId,
id: record.id,
type: 'view'
} }
}); });
}
} }
function buttonClick(code) { function buttonClick(code) {
@ -223,11 +200,13 @@
function handleEdit(record: Recordable) { function handleEdit(record: Recordable) {
router.push({ router.push({
path: '/form/OpsPurInt/' + record.id + '/updateForm', path: '/ship/OpsPurInt/createForm',
query: { query: {
formPath: 'ship/OpsPurInt', formPath: 'ship/OpsPurInt',
formName: formName, formName: '编辑'+ formName,
formId:currentRoute.value.meta.formId formId:currentRoute.value.meta.formId,
id: record.id,
type: 'edit'
} }
}); });
} }
@ -245,7 +224,7 @@
deleteLngOpsPurInt(ids).then((_) => { deleteLngOpsPurInt(ids).then((_) => {
handleSuccess(); handleSuccess();
notification.success({ notification.success({
message: 'Tip', message: '提示',
description: t('删除成功!'), description: t('删除成功!'),
}); });
}); });

View File

@ -59,7 +59,7 @@
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="价格条款" name="prcTermCode"> <a-form-item label="价格条款" name="prcTermCode">
<a-select v-model:value="formState.prcTermCode" :disabled="isDisable" placeholder="请选择" style="width: 100%" allow-clear @change="periodTypeCodeChange"> <a-select v-model:value="formState.prcTermCode" :disabled="isDisable" placeholder="请选择" style="width: 100%" allow-clear>
<a-select-option v-for="item in optionSelect.prcTermCodeList" :key="item.code" :value="item.code"> <a-select-option v-for="item in optionSelect.prcTermCodeList" :key="item.code" :value="item.code">
{{ item.fullName }} {{ item.fullName }}
</a-select-option> </a-select-option>
@ -68,7 +68,7 @@
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="业务类型" name="ssTypeCode"> <a-form-item label="业务类型" name="ssTypeCode">
<a-select v-model:value="formState.ssTypeCode" :disabled="isDisable" placeholder="请选择" style="width: 100%" allow-clear @change="periodTypeCodeChange"> <a-select v-model:value="formState.ssTypeCode" :disabled="isDisable" placeholder="请选择" style="width: 100%" allow-clear>
<a-select-option v-for="item in optionSelect.ssTypeCodeList" :key="item.code" :value="item.code"> <a-select-option v-for="item in optionSelect.ssTypeCodeList" :key="item.code" :value="item.code">
{{ item.name }} {{ item.name }}
</a-select-option> </a-select-option>
@ -165,8 +165,8 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="币种" name="currCode"> <a-form-item label="币种" name="curCode">
<a-select v-model:value="formState.currCode" :disabled="isDisable" placeholder="请选择币种" style="width: 100%" allow-clear> <a-select v-model:value="formState.curCode" :disabled="isDisable" placeholder="请选择币种" style="width: 100%" allow-clear>
<a-select-option v-for="item in optionSelect.curCodeList" :key="item.code" :value="item.code"> <a-select-option v-for="item in optionSelect.curCodeList" :key="item.code" :value="item.code">
{{ item.fullName }} {{ item.fullName }}
</a-select-option> </a-select-option>
@ -218,7 +218,7 @@
</a-form> </a-form>
</div> </div>
<deptUserModal @register="register" @success="handleSuccess"/> <deptUserModal @register="register" @success="handleSuccess"/>
<ContractPurIntListModal @register="registerContractPurInt" @success="handleSuccessContractPurInt" selectType="radio" /> <contractPurIntListModal @register="registerContractPurInt" @success="handleSuccessContractPurInt" selectType="radio" />
<supplierListModal @register="registerSupplier" @success="handleSuccessSupplier" selectType="radio" /> <supplierListModal @register="registerSupplier" @success="handleSuccessSupplier" selectType="radio" />
<customerListModal @register="registerCustomer" @success="handleSuccessCustomer" selectType="radio" /> <customerListModal @register="registerCustomer" @success="handleSuccessCustomer" selectType="radio" />
<lngStationModal @register="registerStation" @success="handleSuccessStation"/> <lngStationModal @register="registerStation" @success="handleSuccessStation"/>
@ -247,7 +247,7 @@
import { message } from 'ant-design-vue'; import { message } from 'ant-design-vue';
import UploadList from '/@/components/Form/src/components/UploadList.vue'; import UploadList from '/@/components/Form/src/components/UploadList.vue';
import deptUserModal from '/@/components/common/deptUserModal.vue'; import deptUserModal from '/@/components/common/deptUserModal.vue';
import ContractPurIntListModal from '/@/components/common/ContractPurIntListModal.vue'; import contractPurIntListModal from '/@/components/common/contractPurIntListModal.vue';
import supplierListModal from '/@/components/common/supplierListModal.vue'; import supplierListModal from '/@/components/common/supplierListModal.vue';
import lngStationModal from '/@/components/common/lngStationModal.vue'; import lngStationModal from '/@/components/common/lngStationModal.vue';
import customerListModal from '/@/components/common/customerListModal.vue'; import customerListModal from '/@/components/common/customerListModal.vue';
@ -298,7 +298,7 @@
ownSign: [{ required: true, message: "该项为必填项", trigger: 'change' }], ownSign: [{ required: true, message: "该项为必填项", trigger: 'change' }],
comId: [{ required: true, message: "该项为必填项", trigger: 'change' }], comId: [{ required: true, message: "该项为必填项", trigger: 'change' }],
ssTypeCode: [{ required: true, message: "该项为必填项", trigger: 'change' }], ssTypeCode: [{ required: true, message: "该项为必填项", trigger: 'change' }],
currCode: [{ required: true, message: "该项为必填项", trigger: 'change' }], curCode: [{ required: true, message: "该项为必填项", trigger: 'change' }],
dateEta: [{ required: true, message: "该项为必填项", trigger: 'change' }], dateEta: [{ required: true, message: "该项为必填项", trigger: 'change' }],
}); });
const layout = { const layout = {

View File

@ -347,6 +347,10 @@
} }
} }
}); });
let idx = actionsList.findIndex(v=>v.tooltip=='删除')
if ((record.opsPurid || record.opsSalesId) && idx>-1) {
actionsList.splice(idx, 1)
}
return actionsList; return actionsList;
} }
async function mergeCustomListRenderConfig(){ async function mergeCustomListRenderConfig(){