Merge branch 'ljj_dev' into dev

szh-new
lijingjia 3 months ago
commit 3e9ac07a2e

@ -2118,3 +2118,12 @@ export function GetBookingContractNoList(params) {
params params
}) })
} }
// 集装箱报价删除
export function BatchDelBusinessCtnPrice(data) {
return request({
url: '/opApi/BusinessCtnPrice/BatchDelBusinessCtnPrice',
method: 'post',
data
})
}

@ -30,7 +30,6 @@
<operationArea <operationArea
:id="id" :id="id"
:details="bookingDetails" :details="bookingDetails"
:inChildLoading="inChildLoading"
:source="source" :source="source"
@refresh="refreshPage" @refresh="refreshPage"
@SetOCR="SetOCR" @SetOCR="SetOCR"
@ -133,7 +132,6 @@
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
@handleComplete="handleComplete" @handleComplete="handleComplete"
@rules="getRules" @rules="getRules"
@upDateRight="upDateRightFun"
@inGoodsSave="inGoodsSaveFun" @inGoodsSave="inGoodsSaveFun"
@handleRefsh="handleRefshRight" @handleRefsh="handleRefshRight"
@openFlag="setOpenFlag" @openFlag="setOpenFlag"
@ -228,7 +226,6 @@
const bookingDetails = ref({ ...initDetail }) const bookingDetails = ref({ ...initDetail })
// // const bookingDetails = ref() // // const bookingDetails = ref()
const tabActiveKey = ref('1') const tabActiveKey = ref('1')
const inChildLoading = ref(false)
const RefrightContent = ref() const RefrightContent = ref()
const excuteRules = ref([]) const excuteRules = ref([])
const excuteRulesType = ref('') const excuteRulesType = ref('')
@ -240,7 +237,6 @@
const RefediMore = ref(null) const RefediMore = ref(null)
const RefNoteInfo = ref(null) const RefNoteInfo = ref(null)
const mainOrderActiveKey = ref('1-1') const mainOrderActiveKey = ref('1-1')
const inPageLoading = ref(false)
const detailsLoadOver = ref(false) const detailsLoadOver = ref(false)
// const cargoRules = ref(rules.cargoRules) // const cargoRules = ref(rules.cargoRules)
const isLockBooking = ref(false) const isLockBooking = ref(false)
@ -300,7 +296,6 @@
Showtabs.value = false Showtabs.value = false
if (id.value) { if (id.value) {
getDetail() getDetail()
getRightAll()
} else { } else {
detailsLoadOver.value = false detailsLoadOver.value = false
isLockBooking.value = false isLockBooking.value = false
@ -308,11 +303,6 @@
} }
// //
function getDetail() { function getDetail() {
if (inPageLoading.value) {
return false
}
inPageLoading.value = true
inChildLoading.value = true
detailsLoadOver.value = false detailsLoadOver.value = false
loading.value = true loading.value = true
BookingOrderGet({ BookingOrderGet({
@ -329,9 +319,12 @@
} }
} }
loading.value = false loading.value = false
setDeatilsFun(res, false) if (!res.data.ctnPriceInfo.length) {
res.data.ctnPriceInfo = [{}]
}
console.log(res)
bookingDetails.value = res.data
appStore.settopDown(false) appStore.settopDown(false)
inPageLoading.value = false
// //
// if (res.data.sourceId) { // if (res.data.sourceId) {
// let sourceDetailIdArr: any = [] // let sourceDetailIdArr: any = []
@ -594,7 +587,6 @@
// } // }
// OCR // OCR
function SetOCR(data) { function SetOCR(data) {
console.log(data)
bookingDetails.value = { ...bookingDetails.value, ...data } bookingDetails.value = { ...bookingDetails.value, ...data }
} }
// //
@ -754,9 +746,6 @@
function handleComplete() { function handleComplete() {
checkSaveFun({ type: 'details', hasChange: false }) checkSaveFun({ type: 'details', hasChange: false })
} }
function upDateRightFun() {
getRightAll()
}
function inGoodsSaveFun(data) { function inGoodsSaveFun(data) {
inGoodsSave.value = data inGoodsSave.value = data
} }
@ -889,15 +878,6 @@
tabStore.closeTabByKey(fullPath, router) tabStore.closeTabByKey(fullPath, router)
}) })
} }
function setDeatilsFun(res, overSet = false) {
let newData = res.data
bookingDetails.value = {
...bookingDetails.value,
...newData,
}
}
function getRightAll() {
}
</script> </script>
<style lang="less"> <style lang="less">

@ -66,7 +66,7 @@
<a-input-number v-model:value="item.quotePrice" size="small" :min="0" :max="999999999" placeholder="报价" /> <a-input-number v-model:value="item.quotePrice" size="small" :min="0" :max="999999999" placeholder="报价" />
<a-input-number v-model:value="item.guidePrice" size="small" :min="0" :max="999999999" placeholder="指导价" /> <a-input-number v-model:value="item.guidePrice" size="small" :min="0" :max="999999999" placeholder="指导价" />
<a-input-number v-model:value="item.floorPrice" size="small" :min="0" :max="999999999" placeholder="底价" /> <a-input-number v-model:value="item.floorPrice" size="small" :min="0" :max="999999999" placeholder="底价" />
<span v-show="model.ctnPriceInfo.length > 1" @click="model.ctnPriceInfo.splice(index, 1)" class="iconfont icon-del"></span> <span v-show="model.ctnPriceInfo.length > 1" @click="deleteCtnPrice(model.ctnPriceInfo, index, item)" class="iconfont icon-del"></span>
<span v-show="model.ctnPriceInfo.length != 3" @click="model.ctnPriceInfo.push({})" class="iconfont icon-zengjiatianjiajiajian"></span> <span v-show="model.ctnPriceInfo.length != 3" @click="model.ctnPriceInfo.push({})" class="iconfont icon-zengjiatianjiajiajian"></span>
</div> </div>
</div> </div>
@ -88,8 +88,11 @@
import { ref, watch, onMounted, computed } from 'vue' import { ref, watch, onMounted, computed } from 'vue'
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
import { getDictOption } from '/@/utils/dictUtil' import { getDictOption } from '/@/utils/dictUtil'
import { BatchDelBusinessCtnPrice } from '/@/views/operation/seaexport/api/BookingLedger'
// //
import { updateFormItem } from '/@/hooks/web/common' import { updateFormItem } from '/@/hooks/web/common'
import { useOptionsStore } from '/@/store/modules/options'
const optionsStore = useOptionsStore()
const FncargoId = ref([]) const FncargoId = ref([])
getDictOption('cargo_tag').then((res) => { getDictOption('cargo_tag').then((res) => {
FncargoId.value = res FncargoId.value = res
@ -347,9 +350,8 @@
} }
// //
const options = ref([]) const options = ref([])
getDictOption('ctn_code').then((res) => { const ctnDict = optionsStore.getOptionsByCode('GetCtnSelectList')
options.value = res console.log(ctnDict)
})
const filterOption = (input, option) => { const filterOption = (input, option) => {
return option.value.toLowerCase().indexOf(input.toLowerCase()) >= 0; return option.value.toLowerCase().indexOf(input.toLowerCase()) >= 0;
} }
@ -587,6 +589,15 @@
...getFieldsValue4(), ...getFieldsValue4(),
} }
} }
//
const deleteCtnPrice = (model, index, item) => {
if (item.id) {
BatchDelBusinessCtnPrice({ ids: [item.id] }).then(res => {
console.log(res)
})
}
model.splice(index, 1)
}
async function validateFields() { async function validateFields() {
const v1 = await validate1() const v1 = await validate1()
const v2 = await validate2() const v2 = await validate2()

@ -965,10 +965,6 @@
type: Number, type: Number,
default: 0, default: 0,
}, },
inChildLoading: {
type: Boolean,
default: false,
},
// id // id
id: { id: {
type: String type: String

Loading…
Cancel
Save