This commit is contained in:
‘huanghaiixia’
2026-03-04 16:31:44 +08:00
parent 90fd1c6f98
commit 03dc292d57
20 changed files with 971 additions and 97 deletions

View File

@ -380,7 +380,7 @@
let res = await getAllCom() || []
comIdList.value = res.map(v=> {
return {
label: v.name,
label: v.shortName,
value: v.id
}
})

View File

@ -82,7 +82,7 @@
<a-row>
<a-col :span="8">
<a-form-item label="接收站" name="staName">
<a-input-search v-model:value="formState.staName" :disabled="isDisable" placeholder="请选择接收站" readonly @search="onSearchDownLoad('up', index)"/>
<a-input-search v-model:value="formState.staName" :disabled="isDisable" placeholder="请选择接收站" readonly @search="onSearchStation"/>
</a-form-item>
</a-col>
<a-col :span="24">
@ -203,7 +203,7 @@
<deptUserModal @register="register" @success="handleSuccess"/>
<deptListModal @register="registerDept" @success="handleSuccessDept" />
<contractFactListModal @register="registerContractFact" @success="handleSuccessContractFact" />
<downloadPointModal @register="registerDownLoad" @success="handleSuccessDownLoad"/>
<lngStationModal @register="registerStation" @success="handleSuccessStation"/>
<supplierListModal @register="registerSupplier" @success="handleSuccessSupplier" selectType="radio" />
</a-spin>
</template>
@ -234,7 +234,7 @@
import correlationApproList from '/@/components/common/correlationApproList.vue';
import correlationContractFactList from '/@/components/common/correlationContractFactList.vue';
import contractFactListModal from '/@/components/common/contractFactListModal.vue';
import downloadPointModal from '/@/components/common/downloadPointModal.vue';
import lngStationModal from '/@/components/common/lngStationModal.vue';
import supplierListModal from '/@/components/common/supplierListModal.vue';
import { getAllCurrency } from '/@/api/contract/ContractFact';
import { useUserStore } from '/@/store/modules/user';
@ -280,7 +280,7 @@
const [register, { openModal:openModal}] = useModal();
const [registerDept, { openModal:openModalDept}] = useModal();
const [registerContractFact, { openModal:openModalContractFact}] = useModal();
const [registerDownLoad, { openModal:openModalDownLoad}] = useModal();
const [registerStation, { openModal:openModalStation}] = useModal();
const [registerSupplier, { openModal:openModalSupplier}] = useModal();
const rules= reactive({
kNo: [{ required: true, message: "该项为必填项", trigger: 'change' }],
@ -507,8 +507,8 @@
const onContract = (val)=> {
openModalContractFact(true,{isUpdate: false})
}
const onSearchDownLoad = (val, index)=> {
openModalDownLoad(true,{isUpdate: false, type: val})
const onSearchStation = (val)=> {
openModalStation(true,{isUpdate: false})
}
const addProc = () => {
@ -587,7 +587,7 @@
formState.cpCode = formState.cpCode ? formState.cpCode : (res?.lngContractFactCpList || [])[0]?.cpCode
}
}
const handleSuccessDownLoad = (val) => {
const handleSuccessStation = (val) => {
formState.lngContractProcList[0].staCode = val[0].code
formState.lngContractProcList[0].staName = val[0].fullName
formState.staName = val[0].fullName

View File

@ -35,7 +35,7 @@
</a-col>
<a-col :span="8">
<a-form-item label="供应商" name="cpName">
<a-input-search v-model:value="formState.cpName" :disabled="isDisable" placeholder="请选择供应商" readonly @search="onSearchCustomer"/>
<a-input-search v-model:value="formState.cpName" :disabled="isDisable" placeholder="请选择供应商" readonly @search="onSearchSupplier"/>
</a-form-item>
</a-col>
<a-col :span="8">
@ -345,7 +345,7 @@
const [register, { openModal:openModal}] = useModal();
const [registerDept, { openModal:openModalDept}] = useModal();
const [registerContractFact, { openModal:openModalContractFact}] = useModal();
const [registerSupplier, { openModal:openModalCustomer}] = useModal();
const [registerSupplier, { openModal:openModalSupplier}] = useModal();
const rules= reactive({
kNo: [{ required: true, message: "该项为必填项", trigger: 'change' }],
kName: [{ required: true, message: "该项为必填项", trigger: 'change' }],
@ -573,8 +573,8 @@
const onSearch = (val)=> {
openModalDept(true,{isUpdate: false})
}
const onSearchCustomer = () => {
openModalCustomer(true,{isUpdate: false})
const onSearchSupplier = () => {
openModalSupplier(true,{isUpdate: false})
}
const onSearchUser = (val)=> {
openModal(true,{isUpdate: false})

View File

@ -325,7 +325,7 @@
if (v.field == 'comId') {
v.componentProps.options = res.map(v=> {
return {
label: v.name,
label: v.shortName,
value: v.id
}
})

View File

@ -329,7 +329,7 @@
if (v.field == 'comId') {
v.componentProps.options = res.map(v=> {
return {
label: v.name,
label: v.shortName,
value: v.id
}
})

View File

@ -327,7 +327,7 @@
if (v.field == 'comId') {
v.componentProps.options = res.map(v=> {
return {
label: v.name,
label: v.shortName,
value: v.id
}
})

View File

@ -326,7 +326,7 @@
if (v.field == 'comId') {
v.componentProps.options = res.map(v=> {
return {
label: v.name,
label: v.shortName,
value: v.id
}
})

View File

@ -330,7 +330,7 @@
if (v.field == 'comId') {
v.componentProps.options = res.map(v=> {
return {
label: v.name,
label: v.shortName,
value: v.id
}
})