From 78e5b928cc1fe8eb93151cb18b6e9f923ffb9b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Tue, 24 Mar 2026 10:30:47 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=85=A5=E5=BA=93=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/contractPurLngListModal.vue | 142 ++++++++++++++++++ .../LngInventoryIn/components/createForm.vue | 67 +++++---- src/views/inventory/LngInventoryIn/index.vue | 39 ++--- 3 files changed, 196 insertions(+), 52 deletions(-) create mode 100644 src/components/common/contractPurLngListModal.vue diff --git a/src/components/common/contractPurLngListModal.vue b/src/components/common/contractPurLngListModal.vue new file mode 100644 index 0000000..f672cb7 --- /dev/null +++ b/src/components/common/contractPurLngListModal.vue @@ -0,0 +1,142 @@ + + + + diff --git a/src/views/inventory/LngInventoryIn/components/createForm.vue b/src/views/inventory/LngInventoryIn/components/createForm.vue index c760957..5a502ec 100644 --- a/src/views/inventory/LngInventoryIn/components/createForm.vue +++ b/src/views/inventory/LngInventoryIn/components/createForm.vue @@ -17,7 +17,7 @@ - + {{ item.label }} @@ -26,12 +26,12 @@ - + - + {{ item.name }} @@ -40,12 +40,12 @@ - + - + @@ -55,7 +55,7 @@ - + @@ -64,27 +64,27 @@ - + - + - + - + - + @@ -150,8 +150,8 @@ - - + + {{ item.fullName }} @@ -202,7 +202,7 @@ - + @@ -227,7 +227,7 @@ import { getAppEnvConfig } from '/@/utils/env'; import { message } from 'ant-design-vue'; import UploadList from '/@/components/Form/src/components/UploadList.vue'; - import contractPurIntListModal from '../../../../components/common/contractPurIntListModal.vue'; + import contractPurLngListModal from '/@/components/common/contractPurLngListModal.vue'; import lngStationModal from '/@/components/common/lngStationModal.vue'; import { getAllCom} from '/@/api/contract/ContractPurInt'; import OpsPurIntListModal from '/@/components/common/OpsPurIntListModal.vue'; @@ -267,15 +267,13 @@ catCode: 'LNG' }); const [register, { openModal:openModal}] = useModal(); - const [registerContractPurInt, { openModal:openModalContractPurInt}] = useModal(); + const [registerContractPurLng, { openModal:openModalContractPurLng}] = useModal(); const [registerStation, { openModal:openModalStation}] = useModal(); - const [registerPort, { openModal:openModalPort}] = useModal(); const [registerShip, { openModal:openModalShip}] = useModal(); const rules= reactive({ comId: [{ required: true, message: "该项为必填项", trigger: 'change' }], ssTypeCode: [{ required: true, message: "该项为必填项", trigger: 'change' }], - suName: [{ required: true, message: "该项为必填项", trigger: 'change' }], typeCode: [{ required: true, message: "该项为必填项", trigger: 'change' }], kName: [{ required: true, message: "该项为必填项", trigger: 'change' }], staName: [{ required: true, message: "该项为必填项", trigger: 'change' }], @@ -287,9 +285,6 @@ qtyLostMmbtu: [{ required: true, message: "该项为必填项", trigger: 'change' }], qtyLostGj: [{ required: true, message: "该项为必填项", trigger: 'change' }], qtyLostTon: [{ required: true, message: "该项为必填项", trigger: 'change' }], - // qtyMmbtu: [{ required: true, message: "该项为必填项", trigger: 'change' }], - // qtyGj: [{ required: true, message: "该项为必填项", trigger: 'change' }], - // qtyTon: [{ required: true, message: "该项为必填项", trigger: 'change' }], }); const layout = { labelCol: { span: 8 }, @@ -340,7 +335,7 @@ spinning.value = false Object.assign(formState, {...data}) Object.assign(dataFile.value, formState.lngFileUploadList || []) - formState.dateNor = formState.dateNor ? dayjs(formState.dateNor) : null + formState.dateIn = formState.dateIn ? dayjs(formState.dateIn) : null getOptionParams() @@ -361,14 +356,20 @@ } async function getOptionParams() { - optionSelect.curCodeList = await getAllCurrency({eid: formState.curCode}) + optionSelect.curCodeList = await getAllCurrency({eid: formState.currCode}) } const typeCodeChange = (val) => { if (val == 'ZN') { formState.opsId = '' formState.ssId = '' + formState.ssNo = '' formState.kId = '' + formState.kName = '' formState.suCode = '' + formState.suName = '' + rules.kName = [{ required: true, message: "该项为必填项", trigger: 'change' }] + } else { + rules.kName = [{ required: false, message: "该项为必填项", trigger: 'change' }] } } const numCount = (k) => { @@ -393,16 +394,14 @@ } const onSearchShip = () => { - if (formState.typeCode == 'CQ') { - openModalShip(true,{isUpdate: false}) - } + openModalShip(true,{isUpdate: false}) } const onSearchStation = (val)=> { openModalStation(true,{isUpdate: false}) } const onContract = (val)=> { - openModalContractPurInt(true,{isUpdate: false}) + openModalContractPurLng(true,{isUpdate: false}) } const handleSuccessStation = (val) => { @@ -419,7 +418,7 @@ try { spinning.value = true let data = await getLngOpsPurInt(id) - let res = await getLngInventoryInShip(id) + let res = await getLngInventoryInShip(id) || [] spinning.value = false formState.ssNo = data.ssNo formState.opsId = data.id @@ -433,11 +432,16 @@ formState.suName = data.suName formState.dateIn = data.dateEta ? dayjs(data.dateEta) : null - formState.curCode = data.curCode + formState.currCode = data.curCode formState.priceMmbtu = data.priceCurr formState.amountCurr = data.amountCurr formState.rateExPur = data.rateEx + formState.qtyUnloadMmbtu = res[0]?.qtyMmbtu + formState.qtyUnloadTon = res[0]?.qtyTon + formState.qtyUnloadM3L = res[0]?.qtyM3L + formState.qtyUnloadM3 = res[0]?.qtyM3 + formState.qtyUnloadGj = res[0]?.qtyGj numCount() @@ -448,15 +452,12 @@ spinning.value = false } } - const handleSuccessContractPurInt = (val) => { + const handleSuccessContractPurLng = (val) => { formState.kId = val[0].id formState.kName = val[0].kName formState.comId = val[0].comId formState.suCode = val[0].suCode formState.suName = val[0].suSname - formState.longSpotCode = val[0].longSpotCode - formState.prcTermCode = val[0].prcTermCode - formState.sourceName = val[0].sourceName } function close() { tabStore.closeTab(currentRoute.value, router); diff --git a/src/views/inventory/LngInventoryIn/index.vue b/src/views/inventory/LngInventoryIn/index.vue index d28062d..ecaf78c 100644 --- a/src/views/inventory/LngInventoryIn/index.vue +++ b/src/views/inventory/LngInventoryIn/index.vue @@ -192,12 +192,12 @@ function handleEdit(record: Recordable) { router.push({ - path: '/form/LngInventoryIn/' + record.id + '/updateForm', + path: '/inventory/LngInventoryIn/createForm', query: { formPath: 'inventory/LngInventoryIn', - formName: formName, + formName: '编辑'+formName, formId:currentRoute.value.meta.formId, - type: 'view', + type: 'edit', id: record.id } }); @@ -216,7 +216,7 @@ deleteLngInventoryIn(ids).then((_) => { handleSuccess(); notification.success({ - message: 'Tip', + message: '提示', description: t('删除成功!'), }); }); @@ -268,27 +268,28 @@ } }); function getActions(record: Recordable):ActionItem[] { - - const actionsList: ActionItem[] = actionButtonConfig.value?.map((button) => { - if (!record.workflowData?.processId) { - return { + let actionsList: ActionItem[] = [] + let editAndDelBtn: ActionItem[] = [] + actionButtonConfig.value?.map((button) => { + if (['view', 'copyData', 'datalog'].includes(button.code)) { + actionsList.push({ + icon: button?.icon, + tooltip: button?.name, + onClick: btnEvent[button.code].bind(null, record), + }); + } + if (['edit', 'delete'].includes(button.code)) { + editAndDelBtn.push({ icon: button?.icon, tooltip: button?.name, color: button.code === 'delete' ? 'error' : undefined, onClick: btnEvent[button.code].bind(null, record), - }; - } else { - if (button.code === 'view') { - return { - icon: button?.icon, - tooltip: button?.name, - onClick: btnEvent[button.code].bind(null, record), - }; - } else { - return {}; - } + }); } }); + if (!record.dataSource) { + actionsList = actionsList.concat(editAndDelBtn); + } return actionsList; } async function mergeCustomListRenderConfig(){ From 29709662de898e6798d3894e47cc50b359f63f3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Tue, 24 Mar 2026 16:20:01 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=87=BA=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/inventory/LngInventoryOut/index.ts | 3 +- .../common/contractSalesLngListModal.vue | 142 +++++++ src/router/routes/basic.ts | 8 + .../LngInventoryIn/components/config.ts | 24 +- .../LngInventoryIn/components/createForm.vue | 13 +- .../LngInventoryOut/components/config.ts | 27 +- .../LngInventoryOut/components/createForm.vue | 399 ++++++++++++++++++ src/views/inventory/LngInventoryOut/index.vue | 86 ++-- 8 files changed, 618 insertions(+), 84 deletions(-) create mode 100644 src/components/common/contractSalesLngListModal.vue create mode 100644 src/views/inventory/LngInventoryOut/components/createForm.vue diff --git a/src/api/inventory/LngInventoryOut/index.ts b/src/api/inventory/LngInventoryOut/index.ts index be34f44..a9d477b 100644 --- a/src/api/inventory/LngInventoryOut/index.ts +++ b/src/api/inventory/LngInventoryOut/index.ts @@ -3,7 +3,8 @@ import { defHttp } from '/@/utils/http/axios'; import { ErrorMessageMode } from '/#/axios'; enum Api { - Page = '/inventory/lngInventoryOut/page', + // Page = '/inventory/lngInventoryOut/page', + Page = '/magic-api/inventory/inventoryOutPageList', List = '/inventory/lngInventoryOut/list', Info = '/inventory/lngInventoryOut/info', LngInventoryOut = '/inventory/lngInventoryOut', diff --git a/src/components/common/contractSalesLngListModal.vue b/src/components/common/contractSalesLngListModal.vue new file mode 100644 index 0000000..0fb38be --- /dev/null +++ b/src/components/common/contractSalesLngListModal.vue @@ -0,0 +1,142 @@ + + + + diff --git a/src/router/routes/basic.ts b/src/router/routes/basic.ts index 7d98ce5..e324b5d 100644 --- a/src/router/routes/basic.ts +++ b/src/router/routes/basic.ts @@ -374,6 +374,14 @@ export const PAGE_CUSTOM_ROUTE: AppRouteRecordRaw[] = [{ title: (route) => (route.query.formName) } }, + { + path: '/inventory/LngInventoryOut/createForm', + name: 'LngInventoryOut', + component: () => import('/@/views/inventory/LngInventoryOut/components/createForm.vue'), + meta: { + title: (route) => (route.query.formName) + } + }, ] diff --git a/src/views/inventory/LngInventoryIn/components/config.ts b/src/views/inventory/LngInventoryIn/components/config.ts index e476925..707089e 100644 --- a/src/views/inventory/LngInventoryIn/components/config.ts +++ b/src/views/inventory/LngInventoryIn/components/config.ts @@ -49,7 +49,7 @@ export const columns: BasicColumn[] = [ title: '入库类型', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, { @@ -57,7 +57,7 @@ export const columns: BasicColumn[] = [ title: '船期编号', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, { @@ -65,7 +65,7 @@ export const columns: BasicColumn[] = [ title: '接收站', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, @@ -74,7 +74,7 @@ export const columns: BasicColumn[] = [ title: '入库日期', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, @@ -83,7 +83,7 @@ export const columns: BasicColumn[] = [ title: '入库热值(MMBtu)', componentType: 'input', align: 'left', - + width: 130, sorter: true, }, @@ -92,7 +92,7 @@ export const columns: BasicColumn[] = [ title: '入库重量(吨)', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, @@ -101,7 +101,7 @@ export const columns: BasicColumn[] = [ title: '入库体积(标方)', componentType: 'input', align: 'left', - + width: 130, sorter: true, }, @@ -110,7 +110,7 @@ export const columns: BasicColumn[] = [ title: '入库体积(方)', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, @@ -119,7 +119,7 @@ export const columns: BasicColumn[] = [ title: '入库热值(吉焦)', componentType: 'input', align: 'left', - + width: 130, sorter: true, }, { @@ -127,7 +127,7 @@ export const columns: BasicColumn[] = [ title: '合同', componentType: 'input', align: 'left', - + width: 180, sorter: true, }, { @@ -135,7 +135,7 @@ export const columns: BasicColumn[] = [ title: '供应商', componentType: 'input', align: 'left', - + width: 180, sorter: true, }, { @@ -143,7 +143,7 @@ export const columns: BasicColumn[] = [ title: '公司', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, ]; diff --git a/src/views/inventory/LngInventoryIn/components/createForm.vue b/src/views/inventory/LngInventoryIn/components/createForm.vue index 5a502ec..b4ae59a 100644 --- a/src/views/inventory/LngInventoryIn/components/createForm.vue +++ b/src/views/inventory/LngInventoryIn/components/createForm.vue @@ -16,7 +16,7 @@ - + {{ item.label }} @@ -30,7 +30,7 @@ - + {{ item.name }} @@ -54,7 +54,7 @@ - + @@ -344,7 +344,6 @@ } } async function getOption() { - optionSelect.approCodeList = await getDictionary('LNG_APPRO') optionSelect.typeCodeList = await getDictionary('LNG_INV_I') let res = await getAllCom() || [] optionSelect.comIdList = res.map(v=> { @@ -443,11 +442,7 @@ formState.qtyUnloadM3 = res[0]?.qtyM3 formState.qtyUnloadGj = res[0]?.qtyGj - numCount() - - if (pageSource.value) { - getOptionParams() - } + numCount('') } catch (error) { spinning.value = false } diff --git a/src/views/inventory/LngInventoryOut/components/config.ts b/src/views/inventory/LngInventoryOut/components/config.ts index 818005d..c0646fa 100644 --- a/src/views/inventory/LngInventoryOut/components/config.ts +++ b/src/views/inventory/LngInventoryOut/components/config.ts @@ -48,7 +48,7 @@ export const columns: BasicColumn[] = [ title: '出库类型', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, @@ -57,7 +57,7 @@ export const columns: BasicColumn[] = [ title: '接收站', componentType: 'input', align: 'left', - + width: 150, sorter: true, }, @@ -66,7 +66,7 @@ export const columns: BasicColumn[] = [ title: '出库日期', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, @@ -75,7 +75,7 @@ export const columns: BasicColumn[] = [ title: '出库量(吉焦)', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, @@ -84,16 +84,7 @@ export const columns: BasicColumn[] = [ title: '出库量(吨)', componentType: 'input', align: 'left', - - sorter: true, - }, - - { - dataIndex: 'qtyM3', - title: '出库量(方)', - componentType: 'input', - align: 'left', - + width: 120, sorter: true, }, @@ -102,7 +93,7 @@ export const columns: BasicColumn[] = [ title: '出库金额', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, { @@ -110,7 +101,7 @@ export const columns: BasicColumn[] = [ title: '销售合同', componentType: 'input', align: 'left', - + width: 180, sorter: true, }, { @@ -118,7 +109,7 @@ export const columns: BasicColumn[] = [ title: '客户名称', componentType: 'input', align: 'left', - + width: 150, sorter: true, }, { @@ -126,7 +117,7 @@ export const columns: BasicColumn[] = [ title: '公司名称', componentType: 'input', align: 'left', - + width: 120, sorter: true, }, ]; diff --git a/src/views/inventory/LngInventoryOut/components/createForm.vue b/src/views/inventory/LngInventoryOut/components/createForm.vue new file mode 100644 index 0000000..f98bea5 --- /dev/null +++ b/src/views/inventory/LngInventoryOut/components/createForm.vue @@ -0,0 +1,399 @@ + + + + + diff --git a/src/views/inventory/LngInventoryOut/index.vue b/src/views/inventory/LngInventoryOut/index.vue index 45259e2..b2c4b15 100644 --- a/src/views/inventory/LngInventoryOut/index.vue +++ b/src/views/inventory/LngInventoryOut/index.vue @@ -29,9 +29,7 @@ const logId = ref('') const logPath = ref('/inventory/lngInventoryOut/datalog'); import { DataLog } from '/@/components/pcitc'; - import { ref, computed, onMounted, onUnmounted, createVNode, - -} from 'vue'; + import { ref, computed, onMounted, onUnmounted, createVNode, watch} from 'vue'; import { Modal } from 'ant-design-vue'; import { ExclamationCircleOutlined } from '@ant-design/icons-vue'; @@ -52,6 +50,7 @@ import useEventBus from '/@/hooks/event/useEventBus'; import { cloneDeep } from 'lodash-es'; import { getAllCom} from '/@/api/contract/ContractPurInt'; + import { DataFormat, FormatOption, DATE_FORMAT, FormatType } from '/@/utils/dataFormat'; const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus(); @@ -83,7 +82,7 @@ }); const btnEvent = {add : handleAdd,edit : handleEdit,refresh : handleRefresh,view : handleView,datalog : handleDatalog,delete : handleDelete,} - + const tableData = ref([]) const { currentRoute } = useRouter(); const router = useRouter(); const formIdComputedRef = ref(); @@ -92,7 +91,7 @@ schemaIdComputedRef.value = currentRoute.value.meta.schemaId const [registerModal, { openModal }] = useModal(); const formName=currentRoute.value.meta?.title; - const [registerTable, { reload, }] = useTable({ + const [registerTable, { reload, setTableData }] = useTable({ title: '' || (formName + '列表'), api: getLngInventoryOutPage, rowKey: 'id', @@ -109,6 +108,7 @@ return { ...params, FormId: formIdComputedRef.value, PK: 'id',page:params.limit }; }, afterFetch: (res) => { + tableData.value = res || [] tableRef.value.setToolBarWidth(); }, @@ -128,41 +128,37 @@ }, }); - + watch( + () => tableData.value, + (val) => { + if (val) { + let arr = DataFormat.format(val, [ + FormatOption.createQty('qtyGj'), + FormatOption.createQty('qtyTon'), + FormatOption.createQty('qtyM3'), + FormatOption.createAmt('amount'), + ]); + if (arr.length) { + setTableData(arr) + } + } + }, + { + immediate: true, + deep: true, + } + ); function dbClickRow(record) { - if (!actionButtonConfig?.value.some(element => element.code == 'view')) { - return; - } - 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/LngInventoryOut/' + record.id + '/viewForm', - query: { + router.push({ + path: '/inventory/LngInventoryOut/createForm', + query: { formPath: 'inventory/LngInventoryOut', - formName: formName, - formId:currentRoute.value.meta.formId - } - }); - } + formName: '查看'+formName, + formId:currentRoute.value.meta.formId, + type: 'view', + id: record.id + } + }); } function buttonClick(code) { @@ -181,10 +177,10 @@ }); } else { router.push({ - path: '/form/LngInventoryOut/0/createForm', + path: '/inventory/LngInventoryOut/createForm', query: { formPath: 'inventory/LngInventoryOut', - formName: formName, + formName: '新建'+formName, formId:currentRoute.value.meta.formId } }); @@ -194,11 +190,13 @@ function handleEdit(record: Recordable) { router.push({ - path: '/form/LngInventoryOut/' + record.id + '/updateForm', + path: '/inventory/LngInventoryOut/createForm', query: { formPath: 'inventory/LngInventoryOut', - formName: formName, - formId:currentRoute.value.meta.formId + formName: '编辑'+formName, + formId:currentRoute.value.meta.formId, + type: 'edit', + id: record.id } }); } @@ -216,7 +214,7 @@ deleteLngInventoryOut(ids).then((_) => { handleSuccess(); notification.success({ - message: 'Tip', + message: '提示', description: t('删除成功!'), }); }); From fc493d132f95647c8d57f71028df089bc9d45ad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Tue, 24 Mar 2026 16:39:52 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E5=87=BA=E5=BA=93=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventory/LngInventoryIn/components/createForm.vue | 2 +- .../LngInventoryOut/components/createForm.vue | 10 +++------- src/views/ship/MeaPurInt/components/createForm.vue | 4 ---- src/views/ship/OpsPurInt/components/createForm.vue | 4 ---- src/views/ship/OpsSalesInt/components/createForm.vue | 4 ---- 5 files changed, 4 insertions(+), 20 deletions(-) diff --git a/src/views/inventory/LngInventoryIn/components/createForm.vue b/src/views/inventory/LngInventoryIn/components/createForm.vue index b4ae59a..3ddb816 100644 --- a/src/views/inventory/LngInventoryIn/components/createForm.vue +++ b/src/views/inventory/LngInventoryIn/components/createForm.vue @@ -159,7 +159,7 @@ - + diff --git a/src/views/inventory/LngInventoryOut/components/createForm.vue b/src/views/inventory/LngInventoryOut/components/createForm.vue index f98bea5..34b1ec1 100644 --- a/src/views/inventory/LngInventoryOut/components/createForm.vue +++ b/src/views/inventory/LngInventoryOut/components/createForm.vue @@ -30,7 +30,7 @@ - + {{ item.name }} @@ -45,7 +45,7 @@ - + @@ -107,7 +107,7 @@ - + @@ -391,9 +391,5 @@ .pdcss { padding:0px 12px 6px 12px !important; } - :deep(.formItemWarp .ant-form-item-label > label) { - white-space: normal !important; - word-break: break-word !important; - } diff --git a/src/views/ship/MeaPurInt/components/createForm.vue b/src/views/ship/MeaPurInt/components/createForm.vue index dbf31a4..ac0a5b0 100644 --- a/src/views/ship/MeaPurInt/components/createForm.vue +++ b/src/views/ship/MeaPurInt/components/createForm.vue @@ -345,9 +345,5 @@ .pdcss { padding:0px 12px 6px 12px !important; } - :deep(.formItemWarp .ant-form-item-label > label) { - white-space: normal !important; - word-break: break-word !important; - } diff --git a/src/views/ship/OpsPurInt/components/createForm.vue b/src/views/ship/OpsPurInt/components/createForm.vue index d569aab..ddb2d2a 100644 --- a/src/views/ship/OpsPurInt/components/createForm.vue +++ b/src/views/ship/OpsPurInt/components/createForm.vue @@ -780,9 +780,5 @@ .pdcss { padding:0px 12px 6px 12px !important; } - :deep(.formItemWarp .ant-form-item-label > label) { - white-space: normal !important; - word-break: break-word !important; - } diff --git a/src/views/ship/OpsSalesInt/components/createForm.vue b/src/views/ship/OpsSalesInt/components/createForm.vue index 56d4cde..d867bf8 100644 --- a/src/views/ship/OpsSalesInt/components/createForm.vue +++ b/src/views/ship/OpsSalesInt/components/createForm.vue @@ -744,9 +744,5 @@ .pdcss { padding:0px 12px 6px 12px !important; } - :deep(.formItemWarp .ant-form-item-label > label) { - white-space: normal !important; - word-break: break-word !important; - } From f4179863d0e47a03b7ff1a0e6db6664f69912910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Tue, 24 Mar 2026 17:51:50 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E5=87=BA=E5=BA=93=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LngInventoryIn/components/createForm.vue | 37 ++++++++++--------- .../LngInventoryOut/components/createForm.vue | 17 ++++----- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/views/inventory/LngInventoryIn/components/createForm.vue b/src/views/inventory/LngInventoryIn/components/createForm.vue index 3ddb816..2cc4c59 100644 --- a/src/views/inventory/LngInventoryIn/components/createForm.vue +++ b/src/views/inventory/LngInventoryIn/components/createForm.vue @@ -151,7 +151,7 @@ - + {{ item.fullName }} @@ -275,7 +275,7 @@ comId: [{ required: true, message: "该项为必填项", trigger: 'change' }], ssTypeCode: [{ required: true, message: "该项为必填项", trigger: 'change' }], typeCode: [{ required: true, message: "该项为必填项", trigger: 'change' }], - kName: [{ required: true, message: "该项为必填项", trigger: 'change' }], + kName: [{ required: false, message: "该项为必填项", trigger: 'change' }], staName: [{ required: true, message: "该项为必填项", trigger: 'change' }], dateIn: [{ required: true, message: "该项为必填项", trigger: 'change' }], qtyUnloadMmbtu: [{ required: true, message: "该项为必填项", trigger: 'change' }], @@ -372,22 +372,23 @@ } } const numCount = (k) => { - formState.qtyLostMmbtu = Number(formState.qtyUnloadMmbtu || 0)*Number(formState.rateLost || 0)/100 - formState.qtyLostGj = Number(formState.qtyUnloadGj || 0)*Number(formState.rateLost || 0)/100 - formState.qtyLostTon = Number(formState.qtyUnloadTon || 0)*Number(formState.rateLost || 0)/100 - formState.qtyLostM3L = Number(formState.qtyUnloadM3L || 0)*Number(formState.rateLost || 0)/100 - formState.qtyLostM3 = Number(formState.qtyUnloadM3 || 0)*Number(formState.rateLost || 0)/100 + formState.qtyLostMmbtu = (Number(formState.qtyUnloadMmbtu || 0)*Number(formState.rateLost || 0)/100).toFixed(3) + formState.qtyLostGj = (Number(formState.qtyUnloadGj || 0)*Number(formState.rateLost || 0)/100).toFixed(3) + formState.qtyLostTon = (Number(formState.qtyUnloadTon || 0)*Number(formState.rateLost || 0)/100).toFixed(3) + formState.qtyLostM3L = (Number(formState.qtyUnloadM3L || 0)*Number(formState.rateLost || 0)/100).toFixed(3) + formState.qtyLostM3 = (Number(formState.qtyUnloadM3 || 0)*Number(formState.rateLost || 0)/100).toFixed(3) - formState.qtyMmbtu = Number(formState.qtyUnloadMmbtu || 0) - Number(formState.qtyLostMmbtu || 0) - formState.qtyGj = Number(formState.qtyUnloadGj || 0) - Number(formState.qtyLostGj || 0) - formState.qtyTon = Number(formState.qtyUnloadTon || 0) - Number(formState.qtyLostTon || 0) - formState.qtyM3L = Number(formState.qtyUnloadM3L || 0) - Number(formState.qtyLostM3L || 0) - formState.qtyM3 = Number(formState.qtyUnloadM3 || 0) - Number(formState.qtyLostM3 || 0) + formState.qtyMmbtu = (Number(formState.qtyUnloadMmbtu || 0) - Number(formState.qtyLostMmbtu || 0)).toFixed(3) + formState.qtyGj = (Number(formState.qtyUnloadGj || 0) - Number(formState.qtyLostGj || 0)).toFixed(3) + formState.qtyTon = (Number(formState.qtyUnloadTon || 0) - Number(formState.qtyLostTon || 0)).toFixed(3) + formState.qtyM3L = (Number(formState.qtyUnloadM3L || 0) - Number(formState.qtyLostM3L || 0)).toFixed(3) + formState.qtyM3 = (Number(formState.qtyUnloadM3 || 0) - Number(formState.qtyLostM3 || 0)).toFixed(3) - formState.amountCurr = Number(formState.qtyMmbtu || 0)*Number(formState.priceMmbtu || 0) - formState.amount = Number(formState.amountCurr || 0) * Number(formState.rateExPur || 0) - formState.priceTon = Number(formState.qtyTon) ? Number(formState.amount || 0)/Number(formState.qtyTon) : 0 - formState.priceGj = Number(formState.qtyGj) ? Number(formState.amount || 0)/Number(formState.qtyGj) : 0 + formState.amountCurr = (Number(formState.qtyMmbtu || 0)*Number(formState.priceMmbtu || 0)).toFixed(2) + formState.amount = (Number(formState.amountCurr || 0) * Number(formState.rateExPur || 0)).toFixed(2) + formState.priceTon = (Number(formState.qtyTon) ? Number(formState.amount || 0)/Number(formState.qtyTon) : 0).toFixed(4) + formState.priceGj = (Number(formState.qtyGj) ? Number(formState.amount || 0)/Number(formState.qtyGj) : 0).toFixed(4) + } @@ -451,8 +452,8 @@ formState.kId = val[0].id formState.kName = val[0].kName formState.comId = val[0].comId - formState.suCode = val[0].suCode - formState.suName = val[0].suSname + formState.suCode = val[0].cpCode + formState.suName = val[0].cpName } function close() { tabStore.closeTab(currentRoute.value, router); diff --git a/src/views/inventory/LngInventoryOut/components/createForm.vue b/src/views/inventory/LngInventoryOut/components/createForm.vue index 34b1ec1..4673226 100644 --- a/src/views/inventory/LngInventoryOut/components/createForm.vue +++ b/src/views/inventory/LngInventoryOut/components/createForm.vue @@ -249,7 +249,7 @@ } async function getOption() { optionSelect.uomCodeList = await getDictionary('LNG_UOM') - optionSelect.typeCodeList = await getDictionary('LNG_INV_I') + optionSelect.typeCodeList = await getDictionary('LNG_INV_O') let res = await getAllCom() || [] optionSelect.comIdList = res.map(v=> { return { @@ -278,33 +278,32 @@ if (formState.uomCode == 'GJ') { if (!formState.qtyTon) { - formState.qtyTon = Number(formState.rateTonGj) ? Number(formState.qtyGj || 0)/Number(formState.rateTonGj) : 0 + formState.qtyTon = (Number(formState.rateTonGj) ? Number(formState.qtyGj || 0)/Number(formState.rateTonGj) : 0).toFixed(3) amountCount() } if (!formState.amount) { - formState.amount = Number(formState.qtyGj || 0)*Number(formState.priceGj || 0) - amountCount() - + formState.amount = (Number(formState.qtyGj || 0)*Number(formState.priceGj || 0)).toFixed(2) + amountCount() } } if (formState.uomCode == 'TON') { if (!formState.qtyGj) { - formState.qtyGj = Number(formState.qtyTon || 0)*Number(formState.rateTonGj || 0) + formState.qtyGj = (Number(formState.qtyTon || 0)*Number(formState.rateTonGj || 0)).toFixed(3) amountCount() } if (!formState.amount) { - formState.amount = Number(formState.qtyTon || 0)*Number(formState.priceTon || 0) + formState.amount = (Number(formState.qtyTon || 0)*Number(formState.priceTon || 0)).toFixed(2) amountCount() } } } const amountCount = () => { if (!formState.priceTon) { - formState.priceTon = Number(formState.qtyTon) ? Number(formState.amount || 0)/Number(formState.qtyTon) : null + formState.priceTon = (Number(formState.qtyTon) ? Number(formState.amount || 0)/Number(formState.qtyTon) : 0).toFixed(4) } if (!formState.priceGj) { - formState.priceGj = Number(formState.qtyGj) ? Number(formState.amount || 0)/Number(formState.qtyGj) : null + formState.priceGj = (Number(formState.qtyGj) ? Number(formState.amount || 0)/Number(formState.qtyGj) : 0).toFixed(4) } } const onSearchStation = (val)=> { From 659dbb171df548be4fb777bb90f1b043ab2e77ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Wed, 25 Mar 2026 09:06:47 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E5=87=BA=E5=BA=93=E5=B0=8F=E6=95=B0?= =?UTF-8?q?=E4=BD=8D=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LngInventoryOut/components/createForm.vue | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/views/inventory/LngInventoryOut/components/createForm.vue b/src/views/inventory/LngInventoryOut/components/createForm.vue index 4673226..ed93093 100644 --- a/src/views/inventory/LngInventoryOut/components/createForm.vue +++ b/src/views/inventory/LngInventoryOut/components/createForm.vue @@ -278,32 +278,32 @@ if (formState.uomCode == 'GJ') { if (!formState.qtyTon) { - formState.qtyTon = (Number(formState.rateTonGj) ? Number(formState.qtyGj || 0)/Number(formState.rateTonGj) : 0).toFixed(3) + formState.qtyTon = Number(formState.rateTonGj) ? Number(formState.qtyGj || 0)/Number(formState.rateTonGj) : 0 amountCount() } if (!formState.amount) { - formState.amount = (Number(formState.qtyGj || 0)*Number(formState.priceGj || 0)).toFixed(2) + formState.amount = Number(formState.qtyGj || 0)*Number(formState.priceGj || 0) amountCount() } } if (formState.uomCode == 'TON') { if (!formState.qtyGj) { - formState.qtyGj = (Number(formState.qtyTon || 0)*Number(formState.rateTonGj || 0)).toFixed(3) + formState.qtyGj = Number(formState.qtyTon || 0)*Number(formState.rateTonGj || 0) amountCount() } if (!formState.amount) { - formState.amount = (Number(formState.qtyTon || 0)*Number(formState.priceTon || 0)).toFixed(2) + formState.amount = Number(formState.qtyTon || 0)*Number(formState.priceTon || 0) amountCount() } } } const amountCount = () => { if (!formState.priceTon) { - formState.priceTon = (Number(formState.qtyTon) ? Number(formState.amount || 0)/Number(formState.qtyTon) : 0).toFixed(4) + formState.priceTon = Number(formState.qtyTon) ? Number(formState.amount || 0)/Number(formState.qtyTon) : 0 } if (!formState.priceGj) { - formState.priceGj = (Number(formState.qtyGj) ? Number(formState.amount || 0)/Number(formState.qtyGj) : 0).toFixed(4) + formState.priceGj = Number(formState.qtyGj) ? Number(formState.amount || 0)/Number(formState.qtyGj) : 0 } } const onSearchStation = (val)=> { @@ -336,6 +336,11 @@ await formRef.value.validateFields(); let obj = { ...formState, + qtyTon: formState.qtyTon ? formState.qtyTon.toFixed(3) : formState.qtyTon, + amount: formState.amount ? formState.amount.toFixed(2) : formState.amount, + qtyGj: formState.qtyGj ? formState.qtyGj.toFixed(3) : formState.qtyGj, + priceTon: formState.priceTon ? formState.priceTon.toFixed(4) : formState.priceTon, + priceGj: formState.priceGj ? formState.priceGj.toFixed(4) : formState.priceGj, lngFileUploadList: dataFile.value, } spinning.value = true;