改配-费用录入迭代

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

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

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

@ -479,6 +479,7 @@
const appStore = useAppStore() const appStore = useAppStore()
import { useRoute, useRouter } from 'vue-router' import { useRoute, useRouter } from 'vue-router'
import { useUserStore } from '/@/store/modules/user' import { useUserStore } from '/@/store/modules/user'
import { Item } from 'ant-design-vue/lib/menu'
const userStore = useUserStore() const userStore = useUserStore()
const router = useRouter() const router = useRouter()
const route = useRoute() const route = useRoute()
@ -1017,6 +1018,25 @@
atdLoading.value = false 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(() => { onMounted(() => {
emitter.on('customerBack', async (v) => { emitter.on('customerBack', async (v) => {
// () // ()
@ -1064,7 +1084,8 @@
defineExpose({ defineExpose({
init, init,
open, open,
flag flag,
cancelGoodsStatus
}) })
</script> </script>
<style lang="less"> <style lang="less">

Loading…
Cancel
Save