改配-费用录入迭代

szh-new
lijingjia 1 month ago
parent 69b0b7e453
commit 862d073c92

@ -52,7 +52,7 @@
<div class="main-scorll" :class="{ 'approve-main-scorll': !!route.query.taskId }">
<a-tabs v-model:activeKey="mainOrderActiveKey" class="ds-sea-child-tab">
<a-tab-pane key="1-1" tab="基础信息" size="small">
<basicInfo ref="RefbasicInfo" :details="bookingDetails"></basicInfo>
<basicInfo ref="RefbasicInfo" :details="bookingDetails" @changeClear='changeClear'></basicInfo>
<Divider type="horizontal" />
<mailingInfo
ref="RefmailingInfo"
@ -526,7 +526,6 @@
ctnInfo
}
if (id.value) postData['id'] = id.value
console.log(postData)
//
loading.value = true
BookingOrderSave(postData)
@ -683,7 +682,7 @@
appStore.setneedSavePages(lastPages)
}
const changeFlag = ref(false)
//
//
const changeConfig = () => {
refreshPage()
changeFlag.value = true
@ -733,6 +732,8 @@
colProps: { className: 'changeGP ant-col ant-col-24' }
}
])
//
RefrightContent.value.cancelGoodsStatus()
}
//
const backChange = () => {
@ -884,6 +885,21 @@
loading.value = false
})
}
//
const changeClear = () => {
if (!changeFlag.value) return
RefbasicInfo.value.setFieldsValue({
contractClientName: null,
contractClientId: null,
contractNo: null,
mblno: null
})
RefmailingInfo.value.setFieldsValueR({
vessel: null,
vesselId: null,
innerVoyno: null
})
}
function fileNewUpadte(file) {
bookingDetails.value.tempFiles.push({
tempPathName: file.tempPathName,

@ -277,7 +277,7 @@ export const basicInfoFormSchema: FormSchema[] = [
defaultValue: null,
dynamicDisabled: false,
colProps: { span: 5 },
componentProps: ({ formModel }) => {
componentProps: ({ formModel, formActionType }) => {
return {
api: GetCarrierSelectList,
labelField: 'pinYinCode',
@ -287,6 +287,7 @@ export const basicInfoFormSchema: FormSchema[] = [
immediate: false,
onChange: (e, obj) => {
if (e && obj) {
formActionType ? formActionType.linkageForm({ key: 'carrier' }) : null
formModel.carrierId = obj.id
}
if (!e && !obj) {

@ -136,7 +136,7 @@
<script lang="ts" setup>
import { BasicForm, useForm } from '/@/components/Form/index'
import { basicInfoFormSchema, basicInfoFormAllSchema } from './baseInfo.tsx'
import { ref, watch, onMounted, reactive, getCurrentInstance } from 'vue'
import { ref, watch, onMounted, reactive, getCurrentInstance, defineEmits } from 'vue'
import { useMessage } from '/@/hooks/web/useMessage'
import emitter from '/@/utils/Bus'
const { createMessage } = useMessage()
@ -151,6 +151,7 @@
const props = defineProps({
details: { type: Object, default: {} },
})
const emits = defineEmits(['changeClear'])
const formData = reactive({
//
customerNo: '',
@ -236,6 +237,9 @@
} else if (item.key == 'customerName') {
//
emitter.emit('customerBack', item.value)
} else if (item.key == 'carrier') {
//
emits('changeClear')
}
}
watch(
@ -272,6 +276,7 @@
defineExpose({
// RefbasicFrom,
getFieldsValue,
setFieldsValue,
updateSchema,
validate,
formData,

@ -479,6 +479,7 @@
const appStore = useAppStore()
import { useRoute, useRouter } from 'vue-router'
import { useUserStore } from '/@/store/modules/user'
import { Item } from 'ant-design-vue/lib/menu'
const userStore = useUserStore()
const router = useRouter()
const route = useRoute()
@ -1017,6 +1018,25 @@
atdLoading.value = false
})
}
//
const cancelGoodsStatus = () => {
const statusCodes = []
booGoodsStatusItem.value.forEach(item => {
if (item.isYield) {
statusCodes.push({ statusCode: item.statusSKUCode })
}
})
const postData = {
businessId: route.query.id,
statusCodes
}
CancelServiceStatus(postData).then((res) => {
if (res.data.succ) {
} else {
getStatusServiceList(1, null)
}
})
}
onMounted(() => {
emitter.on('customerBack', async (v) => {
// ()
@ -1064,7 +1084,8 @@
defineExpose({
init,
open,
flag
flag,
cancelGoodsStatus
})
</script>
<style lang="less">

Loading…
Cancel
Save