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
3554609e
提交
3554609e
authored
3月 21, 2023
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改价格名称
上级
4b9f06b7
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
32 行删除
+15
-32
editQuotation.vue
src/pages/order/editQuotation.vue
+6
-3
quotation.vue
src/pages/order/quotation.vue
+8
-28
productLineDetails.vue
src/pages/productLine/productLineDetails.vue
+1
-1
没有找到文件。
src/pages/order/editQuotation.vue
浏览文件 @
3554609e
...
...
@@ -19,15 +19,18 @@
<view
v-for=
"(item, index) in quotationData?.items"
class=
"item"
>
<h4>
{{
item
.
goodsName
}}
</h4>
<view
style=
"display: flex; flex-direction: row; align-items: center; margin-bottom: 10rpx;"
>
<text>
重新设置单价:
</text>
<input
v-model=
"item.price"
type=
"number"
height=
"50"
placeholder=
"请输入单价"
style=
"width: 200rpx;"
<text>
重新设置
含税
单价:
</text>
<input
v-model=
"item.price
Tex
"
type=
"number"
height=
"50"
placeholder=
"请输入单价"
style=
"width: 200rpx;"
@
blur=
"priceBlur($event, index)"
@
focus=
"priceFocus"
/>
</view>
<view
style=
"margin-bottom: 10rpx; display: flex; justify-content: space-between;"
>
<view
class=
""
>
<view
style=
"margin-bottom: 10rpx;"
>
当前金额:¥
{{
item
.
totalPrice
.
toFixed
(
2
)
}}
单价:¥
{{
Number
(
item
.
price
)
.
toFixed
(
2
)
}}
</view>
<!--
<view
style=
"margin-bottom: 10rpx;"
>
当前金额:¥
{{
item
.
totalPrice
.
toFixed
(
2
)
}}
</view>
-->
<view>
当前含税金额:¥
{{
item
.
totalPriceTex
.
toFixed
(
2
)
}}
</view>
</view>
<u-number-box
v-model=
"item.number"
:input-width=
"60"
:input-height=
"30"
:min=
"1"
:index=
"index"
...
...
src/pages/order/quotation.vue
浏览文件 @
3554609e
...
...
@@ -19,9 +19,9 @@
<view
style=
"display: flex; flex-direction: column;"
>
<view
style=
"display: flex; flex-direction: row; align-items: center; margin-bottom: 10rpx;"
>
<text>
设置单价:
</text>
<text>
设置
含税
单价:
</text>
<!--
<u-input
ref=
"inputRef"
type=
"number"
height=
"50"
style=
"width: 200rpx;"
/>
-->
<input
type=
"number"
placeholder=
"请输入
单价"
v-model=
"item.u
nitPrice"
<input
type=
"number"
placeholder=
"请输入
含税单价"
v-model=
"item.taxU
nitPrice"
@
focus=
"onPriceFocus"
@
blur=
"priceCheck($event, index)"
style=
"width: 200rpx;"
>
</view>
...
...
@@ -32,20 +32,11 @@
height=
"50"
placeholder=
"合同报价"
style=
"width: 200rpx;"
/>
</view>
<view
style=
"margin-bottom: 10rpx;"
>
金额:¥
{{
item
.
unitPrice
?
(
Number
(
item
.
unitPrice
)
*
item
.
number
).
toFixed
(
2
)
:
0
}}
单价:¥
{{
item
.
unitPrice
?
Number
(
item
.
unitPrice
).
toFixed
(
2
)
:
0.00
}}
</view>
<view
style=
"margin-bottom: 10rpx;"
>
含税金额:¥
{{
item
.
unitPrice
?
(
Number
(
item
.
unitPrice
)
*
item
.
number
+
Number
(
item
.
unitPrice
)
*
item
.
number
*
tax
*
0.01
).
toFixed
(
2
)
:
0
含税总金额:¥
{{
Number
(
item
.
taxUnitPrice
)
*
item
.
number
?
Number
(
item
.
taxUnitPrice
)
*
item
.
number
:
0.00
}}
</view>
</view>
...
...
@@ -317,7 +308,7 @@ let priceCheck = (data: any, index: number) => {
if
(
!
val
)
return
if
(
val
<=
0
)
nextTick
(()
=>
{
detailData
.
value
[
index
].
u
nitPrice
=
''
detailData
.
value
[
index
].
taxU
nitPrice
=
''
uni
.
showToast
({
title
:
'不能为负数'
,
icon
:
'none'
...
...
@@ -333,6 +324,8 @@ let priceCheck = (data: any, index: number) => {
}
let
submit
=
()
=>
{
console
.
log
(
detailData
.
value
,
'detailData.value'
);
// 保证单价必填
new
Promise
((
resolve
,
reject
)
=>
{
let
flag
=
true
...
...
@@ -489,19 +482,6 @@ let initQuotaionData = (id: number) => {
})
})
detailData
.
value
=
quotationData
.
value
.
items
// console.log(quotationData.value.items, 'quotationData.value');
// 从quotationData获取 在detailData中添加 合同报价字段
// if (quotationData.value) {
// detailData.value.map((detail: any) => {
// detail.unitPrice = undefined
// quotationData.value.items.map((item: any) => {
// if (item.goodsName == detail.goodsName) {
// detail.contractQuotation = item.contractQuotation
// }
// })
// })
// } else initQuotation(orderId.value)
}
})
}
else
{
...
...
src/pages/productLine/productLineDetails.vue
浏览文件 @
3554609e
...
...
@@ -62,7 +62,7 @@ let orderId = ref();
onLoad
((
options
:
any
)
=>
{
type
.
value
=
options
.
type
;
orderId
.
value
=
options
.
orderId
;
console
.
log
(
type
.
value
,
'type.value'
);
//
console.log(type.value, 'type.value');
initOrderData
(
options
.
orderId
);
});
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论