pull/1/head
张同海 2 years ago
parent 36ce4799d2
commit 8907cde7fc

@ -703,3 +703,11 @@ export function DjyCustomerContacts(parameter) {
params: parameter params: parameter
}) })
} }
// 删除备注
export function BookingOrderDeleteRemark(parameter) {
return axios({
url: '/BookingOrder/DeleteRemark',
method: 'post',
params: parameter
})
}

@ -390,7 +390,7 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
</div> </div>
<div class="item-box vgm-remarks" style="padding-top:0px;padding-bottom:0px;"> <div class="item-box vgm-remarks" style="padding-top:0px;padding-bottom:0px;height:85px;">
<a-col :span="24"> <a-col :span="24">
<a-form-item <a-form-item
label="备注" label="备注"
@ -399,10 +399,10 @@
has-feedback has-feedback
> >
<div class="box-flex"> <div class="box-flex">
<a-input <a-textarea
class="remark-input"
style="width:1000px !important; text-align: left;" style="width:1000px !important; text-align: left;"
:allowClear="true" :allowClear="true"
:auto-size="{ minRows: 3, maxRows: 5 }"
v-model="initCabinFrom.remark" v-model="initCabinFrom.remark"
/> />
</div> </div>
@ -544,7 +544,7 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
</div> </div>
<div class="item-box vgm-remarks" style="padding-top:0px;padding-bottom:0px;"> <div class="item-box vgm-remarks" style="padding-top:0px;padding-bottom:0px;height:85px">
<a-col :span="24"> <a-col :span="24">
<a-form-item <a-form-item
label="备注" label="备注"
@ -553,9 +553,10 @@
has-feedback has-feedback
> >
<div class="box-flex"> <div class="box-flex">
<a-input <a-textarea
style="width:1000px !important; text-align: left;" style="width:1000px !important; text-align: left;background: #13c2c2;"
:allowClear="true" :allowClear="true"
:auto-size="{ minRows: 3, maxRows: 5 }"
v-model="initCabinFrom.remark" v-model="initCabinFrom.remark"
/> />
</div> </div>
@ -1774,10 +1775,15 @@ export default {
display: inline-block; display: inline-block;
width: 25px; width: 25px;
text-align: right; text-align: right;
height: 32px; height: 100%;
line-height: 32px; // height: 32px;
// line-height: 32px;
font-size: 13px; font-size: 13px;
cursor: pointer; cursor: pointer;
> textarea {
background: #f6fdfd !important;
}
i { i {
color: @primary-color; color: @primary-color;
} }

@ -50,9 +50,12 @@
<div class="remark" v-for="(remark, rindex) in remarkList" :key="rindex"> <div class="remark" v-for="(remark, rindex) in remarkList" :key="rindex">
<div class="remark-main"> <div class="remark-main">
<div class="top"><i class="iconfont icon-yuandian"></i>{{ remark.remark }}</div> <div class="top"><i class="iconfont icon-yuandian"></i>{{ remark.remark }}</div>
<div class="bottom">{{ remark.updatedTime || remark.createdTime }} </div> <div class="bottom">{{ remark.updatedTime || remark.createdTime }} {{ remark.UpdatedUserName }}</div>
</div> </div>
<div class="remark-btn" @click="editRemark(remark)"><i class="iconfont icon-bianji1"></i></div> <div class="remark-btn" @click="editRemark(remark)"><i class="iconfont icon-bianji1"></i></div>
<a-popconfirm title="你确定要删除这个备注吗?" ok-text="" cancel-text="" @confirm="deleteRemark(remark)">
<div class="remark-btn"><i class="iconfont icon-shanchu1"></i></div>
</a-popconfirm>
</div> </div>
<div class="remark no-data" v-if="remarkList.length === 0"> <div class="remark no-data" v-if="remarkList.length === 0">
<i class="iconfont icon-wushuju"></i> <i class="iconfont icon-wushuju"></i>
@ -76,7 +79,9 @@
<i class="iconfont icon-file-word" v-else></i> <i class="iconfont icon-file-word" v-else></i>
{{ file.fileName }} {{ file.fileName }}
</span> </span>
<span class="right"><i class="iconfont icon-yulan" @click="getFileFun(file)"></i><i class="iconfont icon-arrow-"></i></span> <span class="right"
><i class="iconfont icon-yulan" @click="getFileFun(file)"></i><i class="iconfont icon-arrow-"></i
></span>
</div> </div>
<div class="bottom"> <div class="bottom">
<span><i class="iconfont icon-leixing"></i>{{ file.typeName }}</span> <span><i class="iconfont icon-leixing"></i>{{ file.typeName }}</span>
@ -111,7 +116,9 @@
<div class="child-log" v-for="(child, cindex) in bookingLog.detail" :key="cindex"> <div class="child-log" v-for="(child, cindex) in bookingLog.detail" :key="cindex">
<span class="log-time">{{ child.opTime }}</span> <span class="log-time">{{ child.opTime }}</span>
<i class="iconfont icon-yuanxuankuang2 icon"></i> <i class="iconfont icon-yuanxuankuang2 icon"></i>
<span class="log-name">{{ child.status }} <span class="min-log" v-if="child.cntrno">:{{ child.cntrno }}</span> </span> <span class="log-name"
>{{ child.status }} <span class="min-log" v-if="child.cntrno">:{{ child.cntrno }}</span>
</span>
</div> </div>
</div> </div>
</div> </div>
@ -236,7 +243,8 @@ import {
AddFile, AddFile,
BookingOrderGetFile, BookingOrderGetFile,
ExcuteRulesOceanBooking, ExcuteRulesOceanBooking,
BookingOrderDownload BookingOrderDownload,
BookingOrderDeleteRemark
} from '@/api/modular/main/BookingLedger' } from '@/api/modular/main/BookingLedger'
export default { export default {
@ -389,12 +397,20 @@ export default {
console.log(err) console.log(err)
}) })
}, },
editRemark (data) { editRemark(data) {
// console.log('=== ===') // console.log('=== ===')
this.remarkModelvisible = true this.remarkModelvisible = true
this.remarkVal = data.remark this.remarkVal = data.remark
this.editRemarkVal = data this.editRemarkVal = data
}, },
deleteRemark(data) {
console.log(data)
BookingOrderDeleteRemark({ id: data.id }).then(res => {
// console.log(res)
this.$message.success('成功删除')
this.getRemark()
})
},
handleModelCancel() { handleModelCancel() {
this.remarkModelvisible = false this.remarkModelvisible = false
this.editRemarkVal = null this.editRemarkVal = null
@ -686,7 +702,7 @@ export default {
.remark { .remark {
padding-bottom: 8px; padding-bottom: 8px;
display: flex; display: flex;
.remark-main{ .remark-main {
flex: 1; flex: 1;
.top { .top {
font-size: 13px; font-size: 13px;
@ -778,7 +794,7 @@ export default {
} }
.log-name { .log-name {
flex: 1; flex: 1;
.min-log{ .min-log {
font-size: 12px; font-size: 12px;
color: #999; color: #999;
margin-left: 4px; margin-left: 4px;
@ -838,7 +854,7 @@ export default {
.log-name { .log-name {
flex: 1; flex: 1;
display: flex; display: flex;
.min-log{ .min-log {
font-size: 12px; font-size: 12px;
color: #999; color: #999;
margin-left: 4px; margin-left: 4px;
@ -1130,7 +1146,7 @@ export default {
} }
} }
&.ant-upload-disabled{ &.ant-upload-disabled {
color: #ccc; color: #ccc;
} }
.uplad-type { .uplad-type {

@ -163,9 +163,9 @@
</a-col> </a-col>
</a-row> </a-row>
<a-modal :maskClosable="false" :width="950" :visible="addVisible" @ok="addSubmit" @cancel="addCancel"> <a-modal :maskClosable="false" :width="1700" :visible="addVisible" @ok="addSubmit" @cancel="addCancel">
<a-radio-group class="group-label-box" v-model="carrierRadio"> <a-radio-group class="group-label-box" v-model="carrierRadio">
<p v-if="RecentlyCarrierData.length"></p> <p v-if="RecentlyCarrierData.length" class="ant-radio-wrapper">使</p>
<div class="group-label" v-if="RecentlyCarrierData.length"> <div class="group-label" v-if="RecentlyCarrierData.length">
<a-radio :style="radioStyle" :value="item.code" v-for="item in RecentlyCarrierData" :key="item.code"> <a-radio :style="radioStyle" :value="item.code" v-for="item in RecentlyCarrierData" :key="item.code">
<img class="radio-logo" :src="require(`@/assets/logo/${item.code}.png`)" /> <img class="radio-logo" :src="require(`@/assets/logo/${item.code}.png`)" />
@ -175,7 +175,7 @@
</div> </div>
<div v-for="e in Object.keys(RcarrierData)" :key="e"> <div v-for="e in Object.keys(RcarrierData)" :key="e">
<p>{{ e }}</p> <p class="ant-radio-wrapper">{{ e }}</p>
<div class="group-label"> <div class="group-label">
<a-radio :style="radioStyle" :value="item.code" v-for="item in RcarrierData[e]" :key="item.code"> <a-radio :style="radioStyle" :value="item.code" v-for="item in RcarrierData[e]" :key="item.code">
<img class="radio-logo" :src="require(`@/assets/logo/${item.code}.png`)" /> <img class="radio-logo" :src="require(`@/assets/logo/${item.code}.png`)" />
@ -1540,7 +1540,7 @@ export default {
} }
.radio-logo { .radio-logo {
width: 60px; width: 50px;
// height: 40px; // height: 40px;
display: inline-block; display: inline-block;
} }
@ -1551,7 +1551,9 @@ export default {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
.ant-radio-wrapper { .ant-radio-wrapper {
width: 20%; height: 45px !important;
line-height: 45px !important;
width: 10%;
margin: 0; margin: 0;
} }
// .label-flex { // .label-flex {

@ -26,6 +26,11 @@
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12">
<a-form-item label="助记码" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
<a-input placeholder="请输入助记码" v-decorator="['showCode']" />
</a-form-item>
</a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback> <a-form-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
<a-input placeholder="请输入备注" v-decorator="['remark']" /> <a-input placeholder="请输入备注" v-decorator="['remark']" />

@ -27,6 +27,11 @@
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12">
<a-form-item label="助记码" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
<a-input placeholder="请输入助记码" v-decorator="['showCode']" />
</a-form-item>
</a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback> <a-form-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
<a-input placeholder="请输入备注" v-decorator="['remark']" /> <a-input placeholder="请输入备注" v-decorator="['remark']" />

@ -98,6 +98,12 @@ export default {
width: '100', width: '100',
dataIndex: 'name' dataIndex: 'name'
}, },
{
title: '助记码',
align: 'center',
width: '80',
dataIndex: 'showCode'
},
{ {
title: '描述', title: '描述',
align: 'center', align: 'center',

Loading…
Cancel
Save