张同海 2 years ago
commit 448caac895

@ -8,7 +8,14 @@
:trigger="null" :trigger="null"
> >
<logo /> <logo />
<s-menu :collapsed="collapsed" :menu="menus" :theme="theme" :mode="mode" @select="onSelect"></s-menu> <s-menu
class="s-menu-box"
:collapsed="collapsed"
:menu="menus"
:theme="theme"
:mode="mode"
@select="onSelect"
></s-menu>
</a-layout-sider> </a-layout-sider>
</template> </template>
@ -54,3 +61,14 @@ export default {
} }
} }
</script> </script>
<style lang="less">
.s-menu-box{
height:calc(100vh - 55px);
overflow-y: auto;
scrollbar-width: none; /* firefox */
-ms-overflow-style: none; /* IE 10+ */
&::-webkit-scrollbar {
display: none; /* Chrome Safari */
}
}
</style>

@ -270,7 +270,7 @@
<!-- 运踪弹窗 end --> <!-- 运踪弹窗 end -->
<!-- 批量编辑 start --> <!-- 批量编辑 start -->
<a-modal <a-modal
width="44vw" width="820px"
:maskClosable="false" :maskClosable="false"
v-model="editingModalVisible" v-model="editingModalVisible"
title="批量编辑" title="批量编辑"
@ -933,7 +933,12 @@ export default {
} else if (form.type === 'date') { } else if (form.type === 'date') {
this.formRes[form.label] = value this.formRes[form.label] = value
} else if (form.type === 'dateRange') { } else if (form.type === 'dateRange') {
// // , etd
// this.formRes[form.label] = value
if (form.label === 'ETD') {
this.formRes.BETD = value[0]
this.formRes.EETD = value[1]
}
} else if (form.type === 'select') { } else if (form.type === 'select') {
// //
} }
@ -1836,6 +1841,16 @@ export default {
@media (min-width: 1192px) and (max-width: 1591px) { @media (min-width: 1192px) and (max-width: 1591px) {
.booking-from-box { .booking-from-box {
padding-right: 24px; padding-right: 24px;
/deep/ .ant-calendar-picker-icon{
display: none;
}
}
}
.booking-from-box {
/deep/ .ant-calendar-picker-icon{
margin-top: -4px !important;
} }
} }
</style> </style>

@ -7,7 +7,7 @@
<a-date-picker format="YYYY-MM-DD" @change="changeDate" v-model="value"/> <a-date-picker format="YYYY-MM-DD" @change="changeDate" v-model="value"/>
</template> </template>
<template v-else-if="labelData.type == 'dateRange'"> <template v-else-if="labelData.type == 'dateRange'">
<a-range-picker format="YYYY-MM-DD" @change="changeRangeDate" v-model="value"/> <a-range-picker format="YYYY-MM-DD" @change="changeRangeDate" v-model="dateVal"/>
</template> </template>
<template v-else-if="labelData.type == 'select'"> <template v-else-if="labelData.type == 'select'">
<a-select <a-select
@ -19,10 +19,28 @@
<a-select-option value="0"> 未截单 </a-select-option> <a-select-option value="0"> 未截单 </a-select-option>
</a-select> </a-select>
</template> </template>
<!-- <template v-else-if="abelData.type == 'complete'">
<auto-complete
:allowClear="true"
class="customer-input"
:dropdown-match-select-width="false"
:dropdown-style="{ width: '200px' }"
v-model="value"
:data-source="dataSourceList"
@select="completeSelect"
@focus="completeChange"
@change="debounce(completeChange, 300, $event)"
>
</auto-complete>
</template> -->
</div> </div>
</template> </template>
<script> <script>
// import { AutoComplete } from 'ant-design-vue'
export default { export default {
components: {
// AutoComplete
},
props: { props: {
labelData: { labelData: {
type: Object, type: Object,
@ -37,11 +55,17 @@ export default {
type: Boolean, type: Boolean,
default: true default: true
} }
// eslint-disable-next-line vue/require-default-prop
// dataSourceList: {
// type: Array,
// required: false
// }
}, },
watch: { watch: {
resetType (nval, oval) { resetType (nval, oval) {
if (!nval) { if (!nval) {
this.value = '' this.value = ''
this.dateVal = []
// this.$emit('change', { // this.$emit('change', {
// form: this.labelData, // form: this.labelData,
// value: '' // value: ''
@ -51,10 +75,11 @@ export default {
}, },
data() { data() {
return { return {
value: '' value: '',
dateVal: []
} }
}, },
mounted() {}, mounted() { },
methods: { methods: {
changeInput(e) { changeInput(e) {
this.$emit('change', { this.$emit('change', {
@ -69,11 +94,26 @@ export default {
}) })
}, },
changeRangeDate(e, mode) { changeRangeDate(e, mode) {
console.log('== date-range ==', e, mode)
// this.value = mode
this.$emit('change', { this.$emit('change', {
form: this.labelData, form: this.labelData,
value: mode value: mode
}) })
} },
// == ==
debounce () {
},
completeSelect () {
},
completeChange () {
},
} }
} }
</script> </script>

@ -40,7 +40,7 @@
:wrapperCol="wrapperCol" :wrapperCol="wrapperCol"
has-feedback has-feedback
> >
<a-input :rows="4" placeholder="请输入品名英文" v-decorator="['goodsNameEN']"></a-input> <a-input :rows="4" placeholder="请输入品名英文" v-decorator="['goodsNameEN', {rules: [{required: true, message: '请输入品名英文!'}]}]"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">

Loading…
Cancel
Save