Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
jinhui.wang
2023-09-12 13:29:33 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
ac77bf2cab6582a60e6141904727c1848553788c
ac77bf2c
2 parents
d86eca48
69af7927
Merge branch 'et86-black' of
http://118.178.128.178/Fedex/imac-vue
into et86-black
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
src/views/basicInformation/flightInformationMaintenance/index.vue
src/views/basicInformation/flightInformationMaintenance/index.vue
View file @
ac77bf2
...
...
@@ -180,8 +180,8 @@
</el-col>
<el-col :span="12">
<el-form-item label="原始重量(KG)" prop="originalWeight">
<el-input-number class="wid80" @change="LowHighAvailable" :precision="0" placeholder="请输入原始重量(KG)"
v-model="form.originalWeight"></el-input-number>
<el-input-number class="wid80" @change="LowHighAvailable" :
min="0" :
precision="0" placeholder="请输入原始重量(KG)"
v-model="form.originalWeight"
v-input-filter
></el-input-number>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -482,6 +482,30 @@ export default {
shiftKey: false,
};
},
directives: {
// 处理加减天数
"input-filter": {
bind: function (el, binding) {
el.handler = function (event) {
if (event.data == "E" || event.data == "e") {
// 无理数时
event.target.value = "";
}
if (event.target.value) {
if (Number(event.target.value) < 0) {
event.target.value = "";
this.msgError("加减天数最小不能低于7天");
}
event.target.dispatchEvent(new Event("input"));
}
};
el.addEventListener("input", el.handler);
},
unbind: function (el) {
el.removeEventListener("input", el.handler);
},
},
},
created() {
//查询条件数据源
this.queryParams.fltDateStart = this.nowDate()
...
...
Please
register
or
login
to post a comment