Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yongxinda-h5
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
yongxinda-h5
Commits
de92eb27
提交
de92eb27
authored
7月 28, 2023
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新需求
上级
f52e0c11
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
215 行增加
和
63 行删除
+215
-63
searchPupop.vue
src/components/searchPupop.vue
+1
-0
editQuotation.vue
src/pages/order/editQuotation.vue
+184
-33
quotation.vue
src/pages/order/quotation.vue
+1
-1
addSite.vue
src/pages/profile/addSite.vue
+0
-0
config.ts
src/utils/config.ts
+2
-2
vite.config.ts
vite.config.ts
+27
-27
没有找到文件。
src/components/searchPupop.vue
浏览文件 @
de92eb27
...
@@ -60,6 +60,7 @@
...
@@ -60,6 +60,7 @@
}
}
const
close
=
()
=>
{
const
close
=
()
=>
{
keyword
.
value
=
''
emits
(
'update:modelValue'
,
false
)
emits
(
'update:modelValue'
,
false
)
}
}
</
script
>
</
script
>
...
...
src/pages/order/editQuotation.vue
浏览文件 @
de92eb27
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
下载pdf
下载pdf
</u-button>
</u-button>
</view>
</view>
<text
class=
"quotation-details"
@
tap=
"
show = true
"
>
报价详情
</text>
<text
class=
"quotation-details"
@
tap=
"
quotationDetail
"
>
报价详情
</text>
</view>
</view>
<view
<view
style=
"display: flex; justify-content: space-between; margin-top: 20rpx"
style=
"display: flex; justify-content: space-between; margin-top: 20rpx"
...
@@ -59,13 +59,8 @@
...
@@ -59,13 +59,8 @@
<view
style=
"margin-bottom: 10rpx"
>
<view
style=
"margin-bottom: 10rpx"
>
单价:¥
{{
Number
(
item
.
price
).
toFixed
(
2
)
}}
单价:¥
{{
Number
(
item
.
price
).
toFixed
(
2
)
}}
</view>
</view>
<!--
<view
style=
"margin-bottom: 10rpx;"
>
当前金额:¥
{{
item
.
totalPrice
.
toFixed
(
2
)
}}
</view>
-->
<view>
当前含税金额:¥
{{
item
.
totalPriceTex
.
toFixed
(
2
)
}}
</view>
<view>
当前含税金额:¥
{{
item
.
totalPriceTex
.
toFixed
(
2
)
}}
</view>
</view>
</view>
<!--
<u-number-box
v-model=
"item.number"
:input-width=
"60"
:input-height=
"30"
:min=
"1"
:index=
"index"
@
change=
"valChange"
></u-number-box>
-->
</view>
</view>
<view
style=
"margin-bottom: 10rpx"
>
<view
style=
"margin-bottom: 10rpx"
>
商品详情:
{{
item
.
remarks
===
'[]'
?
'无'
:
item
.
remarks
}}
商品详情:
{{
item
.
remarks
===
'[]'
?
'无'
:
item
.
remarks
}}
...
@@ -74,46 +69,100 @@
...
@@ -74,46 +69,100 @@
</view>
</view>
</view>
</view>
</view>
</view>
<u-popup
v-model=
"show"
mode=
"center"
closeable
width=
"80%"
height=
"70%"
>
<u-modal
v-model=
"showModel"
:content=
"content"
@
confirm=
"modelConfirm"
@
cancel=
"modelCancel"
showCancelButton
>
</u-modal>
<u-select
v-model=
"guaranteeShow"
:list=
"guaranteeList"
@
confirm=
"textValue($event, 'guarantee')"
/>
<u-popup
v-model=
"show"
mode=
"center"
closeable
border-radius=
"15"
width=
"90%"
height=
"70%"
@
close=
"close"
>
<h3
style=
"padding: 30rpx; text-align: center"
>
报价详情
</h3>
<h3
style=
"padding: 30rpx; text-align: center"
>
报价详情
</h3>
<u-cell-group>
<u-cell-group>
<block
v-for=
"(item, index) in quotationList"
:key=
"index"
>
<block
v-for=
"(item, index) in quotationList"
:key=
"index"
>
<u-cell-item
<u-cell-item
icon=
"
"
:icon=
"editFields.indexOf(item.type) !== -1 ? 'edit-pen' : ''
"
:title=
"item.title"
:title=
"item.title"
:value=
"item.
value
"
:value=
"item.
type !== 'deliveryTime' ? item.value : ''
"
:arrow=
"false"
:arrow=
"false"
></u-cell-item>
@
tap=
"tapCellItem(item.type)"
>
<template
#
right-icon
>
<u-input
v-if=
"item.type === 'deliveryTime'"
v-model=
"item.value"
placeholder=
""
clearable
/>
</
template
>
</u-cell-item>
</block>
</block>
</u-cell-group>
</u-cell-group>
<view
style=
"display: flex; padding: 30rpx 0"
>
<u-button
type=
"primary"
@
tap=
"save"
>
保存
</u-button>
</view>
</u-popup>
</u-popup>
<u-modal
<searchPopup
v-model=
"showModel"
v-model=
"searchShow"
:content=
"content"
:type=
"type"
@
confirm=
"modelConfirm"
:list=
"searchList"
@
cancel=
"modelCancel"
@
search=
"search"
showCancelButton
@
textValue=
"textValue"
>
/>
</u-modal>
</template>
</template>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
onLoad
,
onBackPress
}
from
'@dcloudio/uni-app'
import
{
onLoad
,
onBackPress
}
from
'@dcloudio/uni-app'
import
{
ref
,
computed
,
nextTick
}
from
'vue'
import
{
ref
,
computed
,
nextTick
}
from
'vue'
import
{
quotationInitAgain
,
fillQuotation
}
from
'@/api/cart'
import
{
quotationInitAgain
,
fillQuotation
,
getQuotationDelivery
,
getQuotationPayment
,
}
from
'@/api/cart'
import
{
getTax
}
from
'@/api/index'
import
{
getTax
}
from
'@/api/index'
import
config
from
'@/utils/config'
import
config
from
'@/utils/config'
import
searchPopup
from
'@/components/searchPupop.vue'
let
baseUrl
=
config
.
baseUrl
let
baseUrl
=
config
.
baseUrl
let
orderId
=
ref
()
let
orderId
=
ref
()
let
quotationData
=
ref
()
let
quotationData
=
ref
()
let
quotationList
=
ref
()
let
quotationList
=
ref
()
let
quotationListCopy
:
any
=
''
let
quotationDataCopy
:
any
=
''
let
tax
=
ref
()
let
tax
=
ref
()
let
content
=
ref
(
'确认重新报价?'
)
let
content
=
ref
(
'确认重新报价?'
)
let
show
=
ref
(
false
)
let
show
=
ref
(
false
)
let
searchShow
=
ref
(
false
)
let
guaranteeShow
=
ref
(
false
)
let
isSave
=
ref
(
false
)
let
type
=
ref
()
let
showModel
=
ref
(
false
)
let
showModel
=
ref
(
false
)
let
oldPrice
=
ref
()
let
oldPrice
=
ref
()
let
searchList
=
ref
()
let
editFields
=
[
'pay'
,
'guarantee'
,
'deliveryTime'
,
'deliveryAddr'
]
let
guaranteeList
=
ref
([
{
value
:
'1年'
,
label
:
'1年'
},
{
value
:
'2年'
,
label
:
'2年'
},
{
value
:
'其他'
,
label
:
'其他'
},
])
onLoad
((
options
:
any
)
=>
{
onLoad
((
options
:
any
)
=>
{
orderId
.
value
=
options
.
orderId
orderId
.
value
=
options
.
orderId
...
@@ -215,31 +264,124 @@
...
@@ -215,31 +264,124 @@
})
})
}
}
const
tapCellItem
=
(
item
:
any
)
=>
{
console
.
log
(
item
)
switch
(
item
)
{
case
'deliveryAddr'
:
initQuotationDelivery
()
type
.
value
=
'deliveryAddr'
searchShow
.
value
=
true
break
case
'pay'
:
initQuotationPayment
()
type
.
value
=
'pay'
searchShow
.
value
=
true
break
case
'guarantee'
:
guaranteeShow
.
value
=
true
break
default
:
// initQuotationBank(val)
break
}
}
const
search
=
(
val
:
string
,
type
:
string
)
=>
{
switch
(
type
)
{
case
'deliveryAddr'
:
initQuotationDelivery
(
val
)
break
case
'pay'
:
initQuotationPayment
(
val
)
break
}
}
const
textValue
=
(
val
:
any
,
type
:
string
)
=>
{
console
.
log
(
val
,
type
)
switch
(
type
)
{
case
'deliveryAddr'
:
quotationDataCopy
.
deliveryAddr
=
val
.
textValue
quotationList
.
value
.
filter
((
item
:
any
)
=>
item
.
type
==
type
)[
0
].
value
=
val
.
textValue
break
case
'pay'
:
quotationDataCopy
.
pay
=
val
.
textValue
quotationList
.
value
.
filter
((
item
:
any
)
=>
item
.
type
==
type
)[
0
].
value
=
val
.
textValue
break
case
'guarantee'
:
quotationDataCopy
.
guarantee
=
val
[
0
].
value
quotationList
.
value
.
filter
((
item
:
any
)
=>
item
.
type
==
type
)[
0
].
value
=
val
[
0
].
value
break
default
:
break
}
}
const
close
=
(
e
:
any
)
=>
{
if
(
isSave
.
value
)
return
quotationList
.
value
=
quotationListCopy
}
let
quotationDetail
=
()
=>
{
show
.
value
=
true
isSave
.
value
=
false
quotationListCopy
=
JSON
.
parse
(
JSON
.
stringify
(
quotationList
.
value
))
quotationDataCopy
=
JSON
.
parse
(
JSON
.
stringify
(
quotationData
.
value
.
quotation
))
}
let
save
=
()
=>
{
quotationData
.
value
.
quotation
=
quotationDataCopy
isSave
.
value
=
true
show
.
value
=
false
}
let
init
=
()
=>
{
let
init
=
()
=>
{
quotationInitAgain
({
orderId
:
orderId
.
value
}).
then
((
res
:
any
)
=>
{
quotationInitAgain
({
orderId
:
orderId
.
value
}).
then
((
res
:
any
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
if
(
res
.
data
.
code
===
200
)
{
quotationData
.
value
=
res
.
data
.
data
quotationData
.
value
=
res
.
data
.
data
let
data
=
quotationData
.
value
.
quotation
let
data
=
quotationData
.
value
.
quotation
quotationList
.
value
=
[
quotationList
.
value
=
[
{
title
:
'发货人'
,
value
:
data
.
attend
},
{
title
:
'发货人'
,
value
:
data
.
attend
,
type
:
'attend'
},
{
title
:
'发货联系电话'
,
value
:
data
.
tel
},
{
title
:
'发货联系电话'
,
value
:
data
.
tel
,
type
:
'tel'
},
{
title
:
'发货email'
,
value
:
data
.
email
},
{
title
:
'发货email'
,
value
:
data
.
email
,
type
:
'email'
},
{
title
:
'发货地址'
,
value
:
data
.
addr
},
{
title
:
'发货地址'
,
value
:
data
.
addr
,
type
:
'addr'
},
{
title
:
'收货公司名称'
,
value
:
data
.
toCust
},
{
title
:
'收货公司名称'
,
value
:
data
.
toCust
,
type
:
'toCust'
},
{
title
:
'收货人'
,
value
:
data
.
quotationAttend
},
{
title
:
'收货人'
,
value
:
data
.
quotationAttend
,
type
:
'quotationAttend'
},
{
title
:
'收货email'
,
value
:
data
.
quotationEmail
},
{
title
:
'收货email'
,
value
:
data
.
quotationEmail
,
type
:
'quotationEmail'
},
{
title
:
'收货联系电话'
,
value
:
data
.
quotationTel
},
{
title
:
'收货联系电话'
,
value
:
data
.
quotationTel
,
type
:
'quotationTel'
},
{
title
:
'交货日期'
,
value
:
data
.
deliveryDate
},
{
title
:
'订单号'
,
value
:
data
.
noOrder
,
type
:
'noOrder'
},
{
title
:
'收货地址'
,
value
:
data
.
deliveryAddr
},
{
title
:
'预计交货时间'
,
value
:
data
.
deliveryDate
,
type
:
'deliveryDate'
},
{
title
:
'订单号'
,
value
:
data
.
noOrder
},
{
title
:
'交货期'
,
value
:
data
.
deliveryTime
,
type
:
'deliveryTime'
},
{
title
:
'付款方式'
,
value
:
data
.
pay
},
{
title
:
'交货地址'
,
value
:
data
.
deliveryAddr
,
type
:
'deliveryAddr'
},
{
title
:
'保修'
,
value
:
data
.
guarantee
},
{
title
:
'付款方式'
,
value
:
data
.
pay
,
type
:
'pay'
},
{
title
:
'备注'
,
value
:
data
.
remarks
},
{
title
:
'保修'
,
value
:
data
.
guarantee
,
type
:
'guarantee'
},
{
title
:
'备注'
,
value
:
data
.
remarks
,
type
:
'remarks'
},
]
]
}
}
})
})
}
}
// 交货地址
let
initQuotationDelivery
=
(
name
?:
string
)
=>
{
getQuotationDelivery
(
name
).
then
((
res
:
any
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
searchList
.
value
=
res
.
data
.
data
}
})
}
// 收款条件
let
initQuotationPayment
=
(
name
?:
string
)
=>
{
getQuotationPayment
(
name
).
then
((
res
:
any
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
searchList
.
value
=
res
.
data
.
data
}
})
}
onBackPress
((
options
:
any
)
=>
{
onBackPress
((
options
:
any
)
=>
{
const
pages
=
getCurrentPages
()
// 当前页面路由
const
pages
=
getCurrentPages
()
// 当前页面路由
const
currentPageIndex
=
pages
.
length
-
1
const
currentPageIndex
=
pages
.
length
-
1
...
@@ -295,4 +437,13 @@
...
@@ -295,4 +437,13 @@
font-size
:
0
.875rem
;
font-size
:
0
.875rem
;
color
:
rgb
(
192
,
196
,
204
);
color
:
rgb
(
192
,
196
,
204
);
}
}
:deep
(
.u-cell_right
.uni-input-input
)
{
text-align
:
end
;
color
:
#909399
;
}
:deep
(
.u-select
.u-drawer
)
{
z-index
:
10099
!
important
;
}
</
style
>
</
style
>
src/pages/order/quotation.vue
浏览文件 @
de92eb27
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
<!-- 收货地址 -->
<!-- 收货地址 -->
<view
class=
"address"
@
tap=
"tapAddresss"
>
<view
class=
"address"
@
tap=
"tapAddresss"
>
<view
class=
"top"
>
<view
class=
"top"
>
<text>
收货
信息
</text>
<text>
客户报价商务
信息
</text>
<u-icon
name=
"arrow-right"
></u-icon>
<u-icon
name=
"arrow-right"
></u-icon>
</view>
</view>
<view
class=
"bottom"
>
<view
class=
"bottom"
>
...
...
src/pages/profile/addSite.vue
浏览文件 @
de92eb27
差异被折叠。
点击展开。
src/utils/config.ts
浏览文件 @
de92eb27
...
@@ -2,8 +2,8 @@ const CONFIG: any = {
...
@@ -2,8 +2,8 @@ const CONFIG: any = {
// 开发环境配置
// 开发环境配置
development
:
{
development
:
{
assetsPath
:
'http://192.168.1.158:81'
,
// 静态资源路径
assetsPath
:
'http://192.168.1.158:81'
,
// 静态资源路径
//
baseUrl: 'http://192.168.1.158:81', // 后台接口请求地址
baseUrl
:
'http://192.168.1.158:81'
,
// 后台接口请求地址
baseUrl
:
'http://192.168.1.27:8089'
,
// 后台接口请求地址
//
baseUrl: 'http://192.168.1.27:8089', // 后台接口请求地址
hostUrl
:
'http://192.168.1.158:81'
,
// H5地址(前端运行地址)
hostUrl
:
'http://192.168.1.158:81'
,
// H5地址(前端运行地址)
websocketUrl
:
''
,
// websocket服务端地址
websocketUrl
:
''
,
// websocket服务端地址
},
},
...
...
vite.config.ts
浏览文件 @
de92eb27
import
{
defineConfig
}
from
"vite"
;
import
{
defineConfig
}
from
'vite'
import
uni
from
"@dcloudio/vite-plugin-uni"
;
import
uni
from
'@dcloudio/vite-plugin-uni'
// import pxtovw from 'postcss-px-to-viewport'
// import pxtovw from 'postcss-px-to-viewport'
import
{
resolve
}
from
'path'
;
import
{
resolve
}
from
'path'
export
default
defineConfig
({
export
default
defineConfig
({
plugins
:
[
uni
()],
plugins
:
[
uni
()],
resolve
:
{
resolve
:
{
alias
:
{
alias
:
{
'@'
:
resolve
(
__dirname
,
'./src'
)
'@'
:
resolve
(
__dirname
,
'./src'
),
}
},
},
css
:
{
},
preprocessorOptions
:
{
css
:
{
scss
:
{
preprocessorOptions
:
{
additionalData
:
`@import "@/uni.scss";`
scss
:
{
},
additionalData
:
`@import "@/uni.scss";`
,
},
},
postcss
:
{
// plugins: [loder_pxtovw]
}
},
},
assetsInclude
:
'@dcloudio/uni-ui'
,
postcss
:
{
build
:
{
// plugins: [loder_pxtovw]
minify
:
'terser'
,
terserOptions
:
{
compress
:
{
drop_console
:
true
,
// 生产环境移除console
drop_debugger
:
true
,
// 生产环境移除debugger
},
},
},
},
});
},
assetsInclude
:
'@dcloudio/uni-ui'
,
build
:
{
minify
:
'terser'
,
terserOptions
:
{
compress
:
{
drop_console
:
true
,
// 生产环境移除console
drop_debugger
:
true
,
// 生产环境移除debugger
},
},
},
})
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论