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
419de07a
Commit
419de07a
authored
Nov 02, 2022
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复部分bug
parent
d6ae5a8e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
43 deletions
+29
-43
index.vue
src/components/ProductsSelector/index.vue
+7
-2
edit.vue
src/views/ecw/order/edit.vue
+20
-38
index.vue
src/views/ecw/order/index.vue
+1
-2
index.vue
src/views/ecw/order/special/index.vue
+1
-1
No files found.
src/components/ProductsSelector/index.vue
View file @
419de07a
...
...
@@ -96,8 +96,10 @@ export default {
isAllProduct
(
isAllProduct
){
this
.
$emit
(
'
setall
'
,
isAllProduct
)
}
,
defaultIds
(){
this
.
loadDefaultProds
()
defaultIds
(
newValue
,
oldValue
){
if
(
!
oldValue
||
!
oldValue
.
length
){
this
.
loadDefaultProds
()
}
}
,
isall
(
isall
){
this
.
isAllProduct
=
isall
...
...
@@ -119,6 +121,9 @@ export default {
this.isAllProduct = true
}
, */
loadDefaultProds
(){
if
(
!
this
.
defaultIds
||
!
this
.
defaultIds
.
length
){
return
false
}
getProductList
({
ids
:
this
.
defaultIds
.
join
(
'
,
'
)
}
).
then
(
res
=>
{
res
.
data
.
forEach
(
item
=>
{
this
.
choose
(
item
)
...
...
src/views/ecw/order/edit.vue
View file @
419de07a
...
...
@@ -84,9 +84,7 @@
<el-input
:value=
"selectedRouter ? $l(selectedRouter, 'startTitle') + ' > ' + $l(selectedRouter, 'destTitle') : ''"
disabled
:placeholder=
"$t('请在右侧选择线路')"
></el-input>
</el-form-item>
<select
size=
"5"
v-model=
"form.lineId"
style=
"min-width: 300px; border:1px solid #DCDFE6; border-radius:4px"
:disabled=
"inWarehouse"
>
<template
v-for=
"item in routerList"
>
<option
:value=
"item.id"
:key=
"item.id"
>
{{
$l
(
item
,
'
startTitle
'
)
}}
>>
{{
$l
(
item
,
'
destTitle
'
)
}}
</option>
</
template
>
<option
v-for=
"item in routerList"
:value=
"item.id"
:key=
"item.id"
>
{{
$l
(
item
,
'
startTitle
'
)
}}
>>
{{
$l
(
item
,
'
destTitle
'
)
}}
</option>
</select>
</div>
</el-card>
...
...
@@ -120,7 +118,7 @@
@
change=
"onProductChange(scope.row, $event)"
:disabled=
"!canAddProduct || !productEditable"
@
focus=
"scope.row.updated = true"
/>
/>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -137,14 +135,9 @@
:disabled=
"!canAddProduct || !productEditable"
/>
</
template
>
</el-table-column>
<!-- <el-table-column label="商品类型" width="160px">
<template slot-scope="{row}">
<selector disabled v-model="row.goodsType" :options="productAttrList" label-field="attrName" value-field="id"></selector>
</template>
</el-table-column> -->
<el-table-column
:label=
"$t('品牌')"
width=
"100px"
>
<
template
slot=
"header"
slot-scope=
"scope"
>
<
template
slot=
"header"
>
{{
$t
(
'
品牌
'
)
}}
<span
class=
"red"
>
*
</span>
</
template
>
<
template
slot-scope=
"scope"
>
...
...
@@ -160,7 +153,7 @@
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('件数')"
width=
"90px"
>
<
template
slot=
"header"
slot-scope=
"scope"
>
<
template
slot=
"header"
>
{{
$t
(
'
件数
'
)
}}
<span
class=
"red"
>
*
</span>
</
template
>
<
template
slot-scope=
"{row}"
>
...
...
@@ -180,29 +173,29 @@
<el-input
v-model=
"row.quantity"
@
keyup.native=
"checkPositiveInterge(row, 'quantity')"
:disabled=
"!canAddProduct || !productEditable"
/>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('总体积') + '(m³)'"
width=
"1
0
0px"
>
<el-table-column
:label=
"$t('总体积') + '(m³)'"
width=
"1
2
0px"
>
<
template
slot-scope=
"scope"
>
<el-form-item
label=
""
:prop=
"`orderItemVOList.$
{scope.$index}.volume`"
:rules="[
{
type: 'number', min: 0
, message: $t('体积错误'), trigger: 'blur'}
{
validator: validatorPositiveNumber
, message: $t('体积错误'), trigger: 'blur'}
]"
class="mb-0 mr-0"
>
<el-input
v-model
.number
=
"scope.row.volume"
:disabled=
"!canAddProduct || !productEditable"
/>
<el-input
v-model=
"scope.row.volume"
:disabled=
"!canAddProduct || !productEditable"
/>
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('总重量') + '(kg)'"
width=
"1
0
0px"
>
<el-table-column
:label=
"$t('总重量') + '(kg)'"
width=
"1
2
0px"
>
<
template
slot-scope=
"scope"
>
<el-form-item
label=
""
:prop=
"`orderItemVOList.$
{scope.$index}.weight`"
:rules="[
{
type: 'number', min: 0
, message: $t('重量错误'), trigger: 'blur'}
{
validator: validatorPositiveNumber
, message: $t('重量错误'), trigger: 'blur'}
]"
class="mb-0 mr-0"
>
<el-input
v-model
.number
=
"scope.row.weight"
:disabled=
"!canAddProduct || !productEditable"
/>
<el-input
v-model=
"scope.row.weight"
:disabled=
"!canAddProduct || !productEditable"
/>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -528,13 +521,22 @@ import WorkFlow from '@/components/WorkFlow'
// 缓存默认的表单数据
let
defaultFormData
=
null
window
.
Decimal
=
Decimal
export
default
{
name
:
"
EcwOrderEdit
"
,
components
:
{
ProductSelector
,
Selector
,
CustomerContactSelector
,
AreaSelector
,
FileUpload
,
AreaCodeSelector
,
ChooseContactDialog
,
QuickCreateCustomer
,
SupplierSelector
,
WorkFlow
},
data
()
{
let
validatorPositiveNumber
=
(
rule
,
value
,
callback
)
=>
{
if
(
!
value
)
return
callback
(
new
Error
(
'
请输入数字
'
))
if
(
!
Number
(
value
))
return
callback
(
new
Error
(
'
请输入有效数字
'
))
let
reg
=
/
((
^
[
1-9
]\d
*
)
|^0
)(\.\d
*
){0,1}
$/
;
if
(
!
reg
.
test
(
value
))
return
callback
(
new
Error
(
'
请输入有效数字
'
));
callback
();
}
return
{
validatorPositiveNumber
,
customDraweeList
:
[],
// draweeList: [],
// 遮罩层
...
...
@@ -957,29 +959,9 @@ export default {
},
// 检查正整数
checkPositiveInterge
(
row
,
field
){
console
.
log
(
'
checkPositiveInterge
'
,
field
,
row
[
field
])
row
[
field
]
=
row
[
field
].
replace
(
/
[^\d]
/g
,
''
)
},
/* // 检查正数
checkPositive(row, field){
if(row.field < 0){
row[field] = 0
}
}, */
/* onFileChoosed(e){
window.choosed = e
console.log('onFileChoosed', e)
const reader = new FileReader();
reader.readAsBinaryString(e.target.files[0]);
reader.onload = function(e) {
const data = e.target.result;
const zzexcel = xlsx.read(data, {
type: 'binary'
})
window.zzexcel = zzexcel
window.tableJson = xlsx.utils.sheet_to_json(zzexcel.Sheets[zzexcel.SheetNames[0]])
}
}, */
onProductChange
(
row
,
product
){
console
.
log
(
product
)
// 如果是清除商品
...
...
src/views/ecw/order/index.vue
View file @
419de07a
...
...
@@ -228,8 +228,7 @@
<!-- 特价 -->
<
template
v-if=
"
exclude(scope.row.status, [0]) &&
exclude(scope.row.abnormalState, [1 ,99 ,2 ,3 ,4 ,9 ,10 ,11 ,12 ,14]) &&
exclude(scope.row.shipmentState, [320,322,323])
exclude(scope.row.abnormalState, [1 ,99 ,2 ,3 ,4 ,9 ,10 ,11 ,12 ,14])
"
>
<el-dropdown-item
@
click.native=
"$router.push('/order/special/' + scope.row.orderId)"
v-hasPermi=
"['ecw:order:update']"
>
{{
$t
(
'
特价
'
)
}}
</el-dropdown-item>
</
template
>
...
...
src/views/ecw/order/special/index.vue
View file @
419de07a
...
...
@@ -95,7 +95,7 @@
<
template
v-slot=
"{row}"
>
<el-button
v-if=
"row.originalSeaFreight"
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:order:update']"
@
click=
"showDiscountItem=row"
>
{{
$t
(
'
优惠申请
'
)
}}
</el-button>
<el-button
v-if=
"row.originalSeaFreight"
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:order:update']"
@
click=
"showCommissionItem=row"
>
{{
$t
(
'
佣金规则
'
)
}}
</el-button>
<el-button
v-if=
"row.originalSeaFreight"
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:order:
update
']"
@
click=
"showAllowanceItem=row"
>
{{
$t
(
'
管理折扣
'
)
}}
</el-button>
<el-button
v-if=
"row.originalSeaFreight"
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:order:
discount
']"
@
click=
"showAllowanceItem=row"
>
{{
$t
(
'
管理折扣
'
)
}}
</el-button>
</
template
>
</el-table-column>
...
...
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