场站自结

备注调高
货物信息输入框调整
pull/1/head
lilu 2 years ago
parent 26c31b6343
commit 46105e077a

@ -247,6 +247,7 @@ const initDetail = {
custservice: '',
//
shipper: '',
feeself: false,
consignee: '',
notifyparty: '',
yard: '',
@ -934,6 +935,7 @@ export default {
}
})
}
res.data.feeself = !!res.data.feeself
this.$set(this, 'bookingDetails', res.data)
// // edi
// Object.keys(this.ediRules).map((item, index) => {

@ -18,6 +18,7 @@
<!-- <textareaView id="notifyparty-scroll" :parentVal="details.notifyparty" type="notifyparty" @getTextareaChange="getTextareaChange"/> -->
<textareaView
class="input-box"
id="marks-scroll"
:parentVal="details.marks"
type="marks"
:height="100"
@ -27,7 +28,7 @@
<!-- <a-textarea class="input-box" v-model="details.marks" @blur="debounce(valueChange, 300, 'marks')"/> -->
<div
class="line-count"
id="shipper-scroll-right"
id="marks-scroll-right"
v-if="Object.keys(details).length > 1 && details.marks.length > 1"
>
<div v-for="(num, index) in details.marks.split('\n')" :key="index">{{ num.length }}</div>
@ -80,6 +81,7 @@
<a-form-model-item has-feedback prop="description" class="textarea-label" label="">
<div class="bottom">
<textareaView
id="description-scroll"
class="input-box"
:parentVal="details.description"
type="description"
@ -90,7 +92,7 @@
<!-- <a-textarea class="input-box" v-model="details.description" @blur="debounce(valueChange, 600, 'description')"/> -->
<div
class="line-count"
id="shipper-scroll-right"
id="description-scroll-right"
v-if="Object.keys(details).length > 1 && details.description.length > 1"
>
<div v-for="(num, index) in details.description.split('\n')" :key="index">{{ num.length }}</div>
@ -100,7 +102,7 @@
</a-col>
<a-col class="num-box" :span="24">
<span class="label">件数大写: </span>
<a-input :allowClear="true" class="input-val" v-model="details.totalno" disabled placeholder="自动生成"/>
<a-input :allowClear="true" class="input-val num-box-right" v-model="details.totalno" disabled placeholder="自动生成"/>
</a-col>
</a-row>
</a-form-model>
@ -196,6 +198,20 @@ export default {
}
},
created() {},
mounted() {
const marksScroll = document.getElementById('marks-scroll')
if (marksScroll) {
marksScroll.addEventListener('scroll', () => {
document.getElementById('marks-scroll-right').scrollTop = marksScroll.scrollTop
})
}
const descriptionScroll = document.getElementById('description-scroll')
if (descriptionScroll) {
descriptionScroll.addEventListener('scroll', () => {
document.getElementById('description-scroll-right').scrollTop = descriptionScroll.scrollTop
})
}
},
methods: {
debounce (func, wait, ...args) {
if (timer) clearTimeout(timer);
@ -417,6 +433,7 @@ export default {
}
.input-val {
flex: 1;
margin-top: 6px;
}
}
/*多余线条去掉 */
@ -435,7 +452,7 @@ export default {
.line-count {
width: 24px;
padding-top: 3px;
height: 130px;
height: 106px;
overflow: auto;
&::-webkit-scrollbar {
display: none;

@ -128,9 +128,7 @@
@change="debounce(notifyChange, 300, $event)"
/>
<!-- @change="notifyChange" -->
<a-button class="save-btn" type="link" size="small" icon="save" @click="saveModel('notifyparty')"
>保存</a-button
>
<a-button class="save-btn" type="link" size="small" icon="save" @click="saveModel('notifyparty')"></a-button>
<div class="right">
<span class="btn-circle" @click="spliceMore('notifyparty')" :style="{ fontSize: '14px' }">*</span>
<span class="btn" @click="changeCode(35, 'notifyparty')">35</span>
@ -219,6 +217,7 @@
has-feedback
prop="feeself"
>
<!-- {{ details.feeself }} -->
<a-radio-group size="small" v-model="details.feeself" @change="changeFeeself">
<a-radio size="small" :value="true">

@ -6,13 +6,13 @@
<a-col :span="12">
<a-form-model-item prop="soremark">
<div class="tit" :class="{'required':rules['soremark'] && rules['soremark'][0].required}"><span class="iconfont icon-bianji"></span>订舱备注</div>
<a-textarea class="input-box" v-model="details.soremark" />
<a-textarea :auto-size="{ minRows: 2, maxRows: 6 }" class="input-box" v-model="details.soremark" />
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item prop="siremark">
<div class="tit" :class="{'required':rules['siremark'] && rules['siremark'][0].required}"><span class="iconfont icon-bianji"></span>截单备注</div>
<a-textarea class="input-box" v-model="details.siremark" data-next="box-ctnall"/>
<a-textarea :auto-size="{ minRows: 2, maxRows: 6 }" class="input-box" v-model="details.siremark" data-next="box-ctnall"/>
</a-form-model-item>
</a-col>
</a-row>

Loading…
Cancel
Save