Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
5b817927
Commit
5b817927
authored
Jul 02, 2023
by
zhoutong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.jdshangmen.com/jiedao-app/jiedao-app-operator
into dev
parents
1d085a1b
158299af
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
282 additions
and
15 deletions
+282
-15
boxSea.js
src/api/ecw/boxSea.js
+44
-0
checkout.vue
src/views/ecw/box/shippingAir/nodePage/checkout.vue
+82
-0
shipment.vue
src/views/ecw/box/shippingAir/nodePage/shipment.vue
+126
-0
seaProcess.vue
src/views/ecw/box/shippingAir/seaProcess.vue
+4
-0
utils.js
src/views/ecw/box/shippingAir/utils.js
+26
-15
No files found.
src/api/ecw/boxSea.js
View file @
5b817927
...
...
@@ -331,6 +331,50 @@ export function settlementCreate(data) {
});
}
/**
* 空运出货
*
* @export
* @param {*} data
* @return {*}
*/
export
function
airShipmentCreate
(
data
)
{
if
(
data
.
id
)
{
return
request
({
url
:
"
/ecw/box-air-shipment/update
"
,
method
:
"
put
"
,
data
,
});
}
return
request
({
url
:
"
/ecw/box-air-shipment/create
"
,
method
:
"
post
"
,
data
,
});
}
/**
* 空运出仓
*
* @export
* @param {*} data
* @return {*}
*/
export
function
airCheckoutCreate
(
data
)
{
if
(
data
.
id
)
{
return
request
({
url
:
"
/ecw/box-air-checkout/update
"
,
method
:
"
put
"
,
data
,
});
}
return
request
({
url
:
"
/ecw/box-air-checkout/create
"
,
method
:
"
post
"
,
data
,
});
}
/**
* 出货审核
*
...
...
src/views/ecw/box/shippingAir/nodePage/checkout.vue
0 → 100644
View file @
5b817927
<
template
>
<div>
<el-form
ref=
"airCheckoutForm"
:model=
"airCheckoutObj"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
:label=
"$t('出仓日期')"
>
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"airCheckoutObj.checkoutTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
<el-form-item
:label=
"$t('出仓影像')"
>
<ImageUpload
:limit=
"1"
:isShowTip=
false
v-model=
"airCheckoutObj.checkoutFiles"
/>
</el-form-item>
<el-form-item
:label=
"$t('备注')"
>
<el-input
type=
"textarea"
:rows =
"6"
v-model=
"airCheckoutObj.remark"
:placeholder=
"$t('备注')"
></el-input>
</el-form-item>
</el-form>
<el-row
class=
"operate-button"
>
<el-button
type=
"primary"
@
click=
"onSubmit(1)"
>
{{
$t
(
'
保存
'
)
}}
</el-button>
<el-button
type=
"success"
@
click=
"onSubmit(2)"
>
{{
$t
(
'
提交
'
)
}}
</el-button>
<el-button
@
click=
"cancel"
>
{{
$t
(
'
关闭
'
)
}}
</el-button>
</el-row>
</div>
</
template
>
<
script
>
import
{
airCheckoutCreate
}
from
"
@/api/ecw/boxSea
"
;
import
userSelect
from
"
./common/userSelect.vue
"
;
import
ImageUpload
from
"
@/components/ImageUpload
"
;
import
{
constantDict
,
formatDateStr
,
formatNumberString
,
serviceMsg
}
from
"
../utils
"
;
/**
* 驳船
*/
export
default
{
name
:
"
checkout
"
,
inheritAttrs
:
false
,
components
:
{
userSelect
,
ImageUpload
},
data
()
{
return
{
// 空运出货对象
airCheckoutObj
:
{},
// 校验
rules
:
{
//deliverType: [{ required: true, message: this.$t("必填"), trigger: "change" }],
},
};
},
created
()
{
const
voName
=
this
.
$attrs
.
currNode
.
voName
;
let
oldData
=
{
...
this
.
$attrs
.
shipmentObj
[
voName
]
};
oldData
=
formatDateStr
(
oldData
,
[
"
checkoutTime
"
]);
this
.
airCheckoutObj
=
oldData
;
},
methods
:
{
/** 提交 */
onSubmit
(
operateType
)
{
this
.
$refs
[
"
airCheckoutForm
"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
airCheckoutCreate
({
...
this
.
airCheckoutObj
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
operateType
,
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
cancel
(
"
submit
"
);
});
});
}
});
},
/** 取消 */
cancel
(
type
)
{
this
.
$emit
(
"
closeDialog
"
,
type
);
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
src/views/ecw/box/shippingAir/nodePage/shipment.vue
0 → 100644
View file @
5b817927
<
template
>
<div>
<el-form
ref=
"airShipmentForm"
:model=
"airShipmentObj"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
:label=
"$t('')"
prop=
"deliverType"
>
<el-radio-group
v-model=
"airShipmentObj.deliverType"
>
<el-radio
v-for=
"item in deliverTypes"
:key=
"item.value"
:label=
"item.value"
>
{{
item
.
label
}}
</el-radio>
</el-radio-group>
</el-form-item>
<div
v-show=
"airShipmentObj.deliverType === '1'"
>
<el-form-item
:label=
"$t('送货时间')"
>
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"airShipmentObj.deliverTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
<el-form-item
:label=
"$t('送货地址')"
>
<el-input
v-model=
"airShipmentObj.deliverAddress"
:placeholder=
"$t('请输入送货地址')"
></el-input>
</el-form-item>
<el-form-item
:label=
"$t('车牌')"
>
<el-input
v-model=
"airShipmentObj.licensePlate"
:placeholder=
"$t('请输入车牌')"
></el-input>
</el-form-item>
<el-form-item
:label=
"$t('司机')"
>
<el-input
v-model=
"airShipmentObj.driver"
:placeholder=
"$t('请输入司机')"
></el-input>
</el-form-item>
<el-form-item
:label=
"$t('司机联系方式')"
>
<el-input
v-model=
"airShipmentObj.driverPhone"
:placeholder=
"$t('请输入司机联系方式')"
></el-input>
</el-form-item>
</div>
<div
v-show=
"airShipmentObj.deliverType === '2'"
>
<el-form-item
:label=
"$t('自提时间')"
>
<el-date-picker
type=
"datetime"
:placeholder=
"$t('请选择日期')"
v-model=
"airShipmentObj.deliverTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
<el-form-item
:label=
"$t('自提地址')"
>
<el-input
v-model=
"airShipmentObj.deliverAddress"
:placeholder=
"$t('请输入自提地址')"
></el-input>
</el-form-item>
<el-form-item
:label=
"$t('车牌')"
>
<el-input
v-model=
"airShipmentObj.licensePlate"
:placeholder=
"$t('请输入车牌')"
></el-input>
</el-form-item>
<el-form-item
:label=
"$t('司机')"
>
<el-input
v-model=
"airShipmentObj.driver"
:placeholder=
"$t('请输入司机')"
></el-input>
</el-form-item>
<el-form-item
:label=
"$t('司机联系方式')"
>
<el-input
v-model=
"airShipmentObj.driverPhone"
:placeholder=
"$t('请输入司机联系方式')"
></el-input>
</el-form-item>
</div>
</el-form>
<el-row
class=
"operate-button"
>
<el-button
type=
"primary"
@
click=
"onSubmit(1)"
>
{{
$t
(
'
保存
'
)
}}
</el-button>
<el-button
type=
"success"
@
click=
"onSubmit(2)"
>
{{
$t
(
'
提交
'
)
}}
</el-button>
<el-button
@
click=
"cancel"
>
{{
$t
(
'
关闭
'
)
}}
</el-button>
</el-row>
</div>
</
template
>
<
script
>
import
{
airShipmentCreate
}
from
"
@/api/ecw/boxSea
"
;
import
userSelect
from
"
./common/userSelect.vue
"
;
import
{
constantDict
,
formatDateStr
,
formatNumberString
,
serviceMsg
}
from
"
../utils
"
;
/**
* 驳船
*/
export
default
{
name
:
"
shipment
"
,
inheritAttrs
:
false
,
components
:
{
userSelect
},
data
()
{
return
{
// 空运出货对象
airShipmentObj
:
{},
// 送货方式
deliverTypes
:
constantDict
.
deliverType
,
// 校验
rules
:
{
deliverType
:
[{
required
:
true
,
message
:
this
.
$t
(
"
必填
"
),
trigger
:
"
change
"
}],
},
};
},
created
()
{
const
voName
=
this
.
$attrs
.
currNode
.
voName
;
let
oldData
=
{
...
this
.
$attrs
.
shipmentObj
[
voName
]
};
oldData
=
formatDateStr
(
oldData
,
[
"
deliverTime
"
]);
oldData
=
formatNumberString
(
oldData
,
[
"
deliverType
"
]);
this
.
airShipmentObj
=
oldData
;
console
.
log
(
this
.
airShipmentObj
)
},
methods
:
{
/** 提交 */
onSubmit
(
operateType
)
{
this
.
$refs
[
"
airShipmentForm
"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
airShipmentCreate
({
...
this
.
airShipmentObj
,
shipmentId
:
this
.
$attrs
.
shipmentObj
.
id
,
operateType
,
}).
then
((
res
)
=>
{
serviceMsg
(
res
,
this
).
then
(()
=>
{
this
.
cancel
(
"
submit
"
);
});
});
}
});
},
/** 取消 */
cancel
(
type
)
{
this
.
$emit
(
"
closeDialog
"
,
type
);
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
src/views/ecw/box/shippingAir/seaProcess.vue
View file @
5b817927
...
...
@@ -45,6 +45,8 @@ import twoWayArrivalWidget from "./nodePage/twoWayArrival.vue";
import
unloadingWidget
from
"
./nodePage/unloading/index.vue
"
;
import
settlementWidget
from
"
./nodePage/settlement.vue
"
;
import
reviewWidget
from
"
./nodePage/review.vue
"
;
import
shipmentWidget
from
"
./nodePage/shipment.vue
"
;
import
checkoutWidget
from
"
./nodePage/checkout.vue
"
;
import
tallyWidget
from
"
./nodePage/tally/index.vue
"
;
import
mergePkgWidget
from
"
./nodePage/mergePkg/index.vue
"
;
import
{
checkPermi
}
from
'
@/utils/permission
'
...
...
@@ -74,6 +76,8 @@ export default {
twoWayArrivalWidget
,
unloadingWidget
,
settlementWidget
,
shipmentWidget
,
checkoutWidget
,
reviewWidget
,
tallyWidget
,
mergePkgWidget
...
...
src/views/ecw/box/shippingAir/utils.js
View file @
5b817927
...
...
@@ -104,17 +104,17 @@ function airBaseData() {
wait
:
require
(
"
@/assets/images/shipping/zg-wait.png
"
),
end
:
require
(
"
@/assets/images/shipping/zg-end.png
"
),
},
type
:
"
cabine
t
"
,
type
:
"
shipmen
t
"
,
dataKey
:
"
4
"
,
// 字典数据键值
/**
*
装柜状态:41、未装柜;42、装柜中;43、已装柜、待封柜;44、封柜审核中;45、封柜审核失败;46、封柜审核成功;47、已封柜,待出仓
*
出货状态:171、待出货 172、已出货
*/
voName
:
"
cabinetInfo
"
,
keyName
:
"
ld
Status
"
,
voName
:
"
boxAirShipmentBackVO
"
,
keyName
:
"
airShipment
Status
"
,
status
:
{
start
:
[
4
1
],
wait
:
[
42
,
43
,
44
,
45
,
46
],
end
:
[
47
],
start
:
[
17
1
],
wait
:
[],
end
:
[
172
],
},
},
{
...
...
@@ -124,17 +124,17 @@ function airBaseData() {
wait
:
require
(
"
@/assets/images/shipping/zg-wait.png
"
),
end
:
require
(
"
@/assets/images/shipping/zg-end.png
"
),
},
type
:
"
c
abine
t
"
,
dataKey
:
"
4
"
,
// 字典数据键值
type
:
"
c
heckou
t
"
,
dataKey
:
"
5
"
,
// 字典数据键值
/**
*
装柜状态:41、未装柜;42、装柜中;43、已装柜、待封柜;44、封柜审核中;45、封柜审核失败;46、封柜审核成功;47、已封柜,待
出仓
*
出仓状态:221、未出仓 222、已
出仓
*/
voName
:
"
cabinetInfo
"
,
keyName
:
"
ld
Status
"
,
voName
:
"
boxAirCheckoutBackVO
"
,
keyName
:
"
checkout
Status
"
,
status
:
{
start
:
[
4
1
],
wait
:
[
42
,
43
,
44
,
45
,
46
],
end
:
[
47
],
start
:
[
22
1
],
wait
:
[],
end
:
[
222
],
},
},
],
...
...
@@ -1186,6 +1186,17 @@ const constantDict = {
label
:
i18n
.
$t
(
"
已做
"
),
},
],
deliverType
:
[
{
value
:
"
1
"
,
label
:
i18n
.
$t
(
"
送货上门
"
),
},
{
value
:
"
2
"
,
label
:
i18n
.
$t
(
"
供应商自提
"
),
},
],
};
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment