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
Elements-SY
2023-09-13 09:47:55 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
457b8ec80ee58fe9979ff8a55b9db78d4d9883f1
457b8ec8
2 parents
c5513e3a
fb0dac6c
Merge branch 'et86-black' into test
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
83 additions
and
16 deletions
src/assets/styles/index.scss
src/utils/request.js
src/views/allocationConfig/cargoAllocation/index.vue
src/views/allocationConfig/flightAllocConfig/info.vue
src/views/allocationConfig/flightRandConfig/index.vue
src/views/allocationConfig/preReview/index.vue
src/views/basicInformation/flightInformationMaintenance/index.vue
src/views/et86Config/et86RuleConfig/edit/index.vue
src/assets/styles/index.scss
View file @
457b8ec
...
...
@@ -319,3 +319,28 @@ body {
.btn-mb-4
{
margin-bottom
:
4px
;
}
textarea
:
:-
webkit-input-placeholder
{
/* WebKit browsers */
color
:
#C0C4CC
!
important
;
font-size
:
13px
!
important
;
font-family
:
'Helvetica Neue'
,
Helvetica
,
'PingFang SC'
,
'Hiragino Sans GB'
,
'Microsoft YaHei'
,
SimSun
,
sans-serif
;
}
textarea
:
-
moz-placeholder
{
/* Mozilla Firefox 4 to 18 */
color
:
#c0c4cc
!
important
;
font-size
:
13px
!
important
;
font-family
:
'Helvetica Neue'
,
Helvetica
,
'PingFang SC'
,
'Hiragino Sans GB'
,
'Microsoft YaHei'
,
SimSun
,
sans-serif
;
}
textarea
:
:-
moz-placeholder
{
/* Mozilla Firefox 19+ */
color
:
#c0c4cc
!
important
;
font-size
:
13px
!
important
;
font-family
:
'Helvetica Neue'
,
Helvetica
,
'PingFang SC'
,
'Hiragino Sans GB'
,
'Microsoft YaHei'
,
SimSun
,
sans-serif
;
}
textarea
:
:-
ms-input-placeholder
{
/* Internet Explorer 10+ */
color
:
#c0c4cc
!
important
;
font-size
:
13px
!
important
;
font-family
:
'Helvetica Neue'
,
Helvetica
,
'PingFang SC'
,
'Hiragino Sans GB'
,
'Microsoft YaHei'
,
SimSun
,
sans-serif
;
}
...
...
src/utils/request.js
View file @
457b8ec
...
...
@@ -79,14 +79,22 @@ service.interceptors.response.use(res => {
type
:
'error'
})
return
Promise
.
reject
(
new
Error
(
msg
))
}
else
if
(
code
!==
200
&&
code
!==
201
&&
code
!==
202
&&
code
!=
203
&&
code
!=
603
&&
code
!=
402
)
{
}
else
if
(
code
!==
200
&&
code
!==
201
&&
code
!==
202
&&
code
!=
203
&&
code
!=
300
&&
code
!=
402
&&
code
!=
603
)
{
Message
({
message
:
msg
,
type
:
'error'
})
return
Promise
.
reject
(
'error'
)
type
:
"error"
,
})
;
return
Promise
.
reject
(
"error"
);
}
else
{
return
res
.
data
return
res
.
data
;
}
},
error
=>
{
...
...
src/views/allocationConfig/cargoAllocation/index.vue
View file @
457b8ec
...
...
@@ -136,7 +136,7 @@
</el-col>
<el-col :span="6">
<el-form-item label="运单号">
<el-input class="formItem" type="textarea" :rows="4" placeholder="请输入运单号
(回车分割)
" :maxlength="12000"
<el-input class="formItem" type="textarea" :rows="4" placeholder="请输入运单号
(回车分割)
" :maxlength="12000"
v-model="formData.waybillNo" clearable></el-input>
</el-form-item>
</el-col>
...
...
src/views/allocationConfig/flightAllocConfig/info.vue
View file @
457b8ec
This diff is collapsed. Click to expand it.
src/views/allocationConfig/flightRandConfig/index.vue
View file @
457b8ec
...
...
@@ -437,6 +437,7 @@ export default {
cancel() {
this.open = false;
this.findSourceFlightRules();
this.$refs.form.clearValidate();
//this.reset();
},
/** 重置按钮操作 */
...
...
src/views/allocationConfig/preReview/index.vue
View file @
457b8ec
...
...
@@ -45,7 +45,7 @@
<el-form ref="addForm" :model="newPre" label-width="auto" label-position="left" size="small" :rules="rules"
@submit.native.prevent>
<el-form-item label="航班号" prop="addFlitNo">
<el-input type="textarea" v-model="
fl
tNo" :rows="7" maxlength="255" show-word-limit placeholder="请输入航班号,用;分隔">
<el-input type="textarea" v-model="
newPre.addFli
tNo" :rows="7" maxlength="255" show-word-limit placeholder="请输入航班号,用;分隔">
</el-input>
</el-form-item>
</el-form>
...
...
@@ -89,7 +89,7 @@ export default {
addFlitNo: '',
},//新增航班
rules: {
fl
tNo: [
addFli
tNo: [
{
required: true,
message: "航班号不能为空",
...
...
@@ -199,6 +199,7 @@ export default {
close() {
this.dialogVisible = false
this.newPre.addFlitNo = ''
this.$refs.addForm.clearValidate()
},
//翻页
currentChange(val) {
...
...
src/views/basicInformation/flightInformationMaintenance/index.vue
View file @
457b8ec
...
...
@@ -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>
...
...
@@ -359,7 +359,7 @@ export default {
route: [
{
required: true,
message: "航班路线不能为空",
message: "航班路线不能为空
呀
",
trigger: "change",
},
// {
...
...
@@ -482,6 +482,29 @@ export default {
shiftKey: false,
};
},
directives: {
// 处理加减天数
"input-filter": {
bind: function (el, binding, { context }) {
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 = "";
}
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()
...
...
@@ -615,11 +638,15 @@ export default {
this.selectOption.flightKindlist.forEach(item => {
if (item.id == val) {
if (item.chineseName.indexOf('White') >= 0) {
this.form.route = ''
this.routeMultiple = false
// this.rules.route[0].type = 'string'
this.form.route = ''
// this.rules.route[0].required = true;
} else if (item.chineseName.indexOf('Purple') >= 0) {
this.form.route = []
this.routeMultiple = true
// this.rules.route[0].type = 'array'
this.form.route = []
// this.rules.route[0].required = true;
}
}
})
...
...
@@ -1109,6 +1136,11 @@ export default {
},
//航线修改
routeChange(val) {
if(val.length){
this.rules.route[0].required = false;
}else{
// this.rules.route[0].required = true;
}
this.$forceUpdate()
},
//多选框选中数据
...
...
src/views/et86Config/et86RuleConfig/edit/index.vue
View file @
457b8ec
...
...
@@ -501,7 +501,7 @@ export default {
directives: {
// 处理加减天数
"input-filter": {
bind: function (el, binding) {
bind: function (el, binding
, { context }
) {
el.handler = function (event) {
if (event.data == "E" || event.data == "e") {
// 无理数时
...
...
@@ -510,10 +510,10 @@ export default {
if (event.target.value) {
if (Number(event.target.value) < -7) {
event.target.value = "";
this
.msgError("加减天数最小不能低于7天");
context
.msgError("加减天数最小不能低于7天");
} else if (Number(event.target.value) > 7) {
event.target.value = "";
this
.msgError("加减天数最小不能大于7天");
context
.msgError("加减天数最小不能大于7天");
} else if (/[\.]/.test(Number(event.target.value))) {
// 浮点数时
event.target.value = "";
...
...
Please
register
or
login
to post a comment