|
|
|
@ -22,7 +22,7 @@
|
|
|
|
|
<a-button class="save-btn" type="link" size="small" icon="save" @click="saveModel('shipper')"
|
|
|
|
|
>保存</a-button
|
|
|
|
|
>
|
|
|
|
|
<div class="right">
|
|
|
|
|
<div class="right" >
|
|
|
|
|
<span class="btn-circle" @click="spliceMore('shipper')">*</span>
|
|
|
|
|
<span class="btn" @click="changeCode(35, 'shipper')">35</span>
|
|
|
|
|
<span class="btn" @click="changeCode(40, 'shipper')">40</span>
|
|
|
|
@ -31,12 +31,13 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bottom">
|
|
|
|
|
<a-textarea
|
|
|
|
|
id="shipper-scroll"
|
|
|
|
|
v-model="details.shipper"
|
|
|
|
|
placeholder="请输入内容"
|
|
|
|
|
:auto-size="{ minRows: 2, maxRows: 6 }"
|
|
|
|
|
style="height: 130px"
|
|
|
|
|
/>
|
|
|
|
|
<div class="line-count" v-if="Object.keys(details).length > 1 && details.shipper.length > 1">
|
|
|
|
|
<div class="line-count" id="shipper-scroll-right" v-if="Object.keys(details).length > 1 && details.shipper.length > 1">
|
|
|
|
|
<div v-for="(num, index) in details.shipper.split('\n')" :key="index">{{ num.length }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -65,12 +66,13 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bottom">
|
|
|
|
|
<a-textarea
|
|
|
|
|
id="consignee-scroll"
|
|
|
|
|
v-model="details.consignee"
|
|
|
|
|
placeholder="请输入内容"
|
|
|
|
|
:auto-size="{ minRows: 2, maxRows: 6 }"
|
|
|
|
|
style="height: 130px"
|
|
|
|
|
/>
|
|
|
|
|
<div class="line-count" v-if="Object.keys(details).length > 1 && details.consignee.length > 1">
|
|
|
|
|
<div class="line-count" id="consignee-scroll-right" v-if="Object.keys(details).length > 1 && details.consignee.length > 1">
|
|
|
|
|
<div v-for="(num, index) in details.consignee.split('\n')" :key="index">{{ num.length }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -99,12 +101,13 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bottom">
|
|
|
|
|
<a-textarea
|
|
|
|
|
id="notifyparty-scroll"
|
|
|
|
|
v-model="details.notifyparty"
|
|
|
|
|
placeholder="请输入内容"
|
|
|
|
|
:auto-size="{ minRows: 2, maxRows: 6 }"
|
|
|
|
|
style="height: 130px"
|
|
|
|
|
/>
|
|
|
|
|
<div class="line-count" v-if="Object.keys(details).length > 1 && details.notifyparty.length > 1">
|
|
|
|
|
<div class="line-count" id="notifyparty-scroll-right" v-if="Object.keys(details).length > 1 && details.notifyparty.length > 1">
|
|
|
|
|
<div v-for="(num, index) in details.notifyparty.split('\n')" :key="index">{{ num.length }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -866,6 +869,20 @@ export default {
|
|
|
|
|
created() {
|
|
|
|
|
this.init()
|
|
|
|
|
},
|
|
|
|
|
mounted () {
|
|
|
|
|
const shipperScroll = document.getElementById('shipper-scroll')
|
|
|
|
|
shipperScroll.addEventListener('scroll', () => {
|
|
|
|
|
document.getElementById('shipper-scroll-right').scrollTop = shipperScroll.scrollTop
|
|
|
|
|
})
|
|
|
|
|
const consigneeScroll = document.getElementById('consignee-scroll')
|
|
|
|
|
consigneeScroll.addEventListener('scroll', () => {
|
|
|
|
|
document.getElementById('consignee-scroll-right').scrollTop = consigneeScroll.scrollTop
|
|
|
|
|
})
|
|
|
|
|
const notifypartyScroll = document.getElementById('notifyparty-scroll')
|
|
|
|
|
notifypartyScroll.addEventListener('scroll', () => {
|
|
|
|
|
document.getElementById('notifyparty-scroll-right').scrollTop = notifypartyScroll.scrollTop
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// ========== 关系人弹窗 ==========
|
|
|
|
|
changeYard(type) {
|
|
|
|
@ -1456,6 +1473,11 @@ export default {
|
|
|
|
|
.line-count {
|
|
|
|
|
width: 24px;
|
|
|
|
|
padding-top: 10px;
|
|
|
|
|
height: 130px;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
// max-height: 192px;
|
|
|
|
|
// overflow-y: auto;
|
|
|
|
|
div {
|
|
|
|
|