提交 c2cb1712 authored 作者: 刘旭's avatar 刘旭

同步同一行的商品数量

上级 cd40620b
......@@ -233,4 +233,9 @@ let init = () => {
}
}
}
:deep(.uni-input-placeholder) {
font-size: 0.875rem;
color: rgb(192, 196, 204);
}
</style>
......@@ -325,7 +325,7 @@ let priceCheck = (data: any, index: number) => {
let submit = () => {
console.log(detailData.value, 'detailData.value');
// 保证单价必填
new Promise((resolve, reject) => {
let flag = true
......@@ -630,6 +630,6 @@ let initQuotationPayment = () => {
:deep(.uni-input-placeholder) {
font-size: 0.875rem;
color: gray;
color: rgb(192, 196, 204);
}
</style>
......@@ -197,21 +197,30 @@ let addProduct = (data: any, productId: number, specifications: any, specificati
show: false, // 是否显示
status: 1, // 状态
} as any
if (sheetData.value.delIndex !== undefined) {
if (sheetData.value.delIndex != undefined) {
if (JSON.stringify(spec) != '{}')
for (const k in spec)
obj[k] = spec[k]
// 添加存在行的产品
const direction = sheetData.value.direction
const delIndex = sheetData.value.delIndex
obj['direction'] = direction
if (Object.keys(sheetData.value.row).length === 0) {
lineList.value[sheetData.value.delIndex][direction] = obj
if (!Object.keys(sheetData.value.row).length) {
lineList.value[delIndex][direction] = obj
if (lineList.value[delIndex][0] && lineList.value[delIndex][1]) {
direction ? lineList.value[delIndex][0].number = obj.number
: lineList.value[delIndex][1].number = obj.number
}
store.$patch({
lineData: lineList.value,
});
} else {
// 防止修改时 lineList.value = undefined
lineListCopy[sheetData.value.delIndex][direction] = obj
lineListCopy[delIndex][direction] = obj
if (lineListCopy[delIndex][0] && lineListCopy[delIndex][1]) {
direction ? lineListCopy[delIndex][0].number = obj.number
: lineListCopy[delIndex][1].number = obj.number
}
lineList.value = lineListCopy
store.$patch({
lineData: lineList.value,
......@@ -233,7 +242,6 @@ let addProduct = (data: any, productId: number, specifications: any, specificati
})
}
})
};
// 匹配规格 SDTrack: 单线体/双线体 size: 长度(MM) Segs: 分段数
......
......@@ -2,8 +2,8 @@ const CONFIG: any = {
// 开发环境配置
development: {
assetsPath: 'http://192.168.60:81', // 静态资源路径
baseUrl: 'http://192.168.0.10:8089', // 后台接口请求地址
// baseUrl: 'http://192.168.0.60:81', // 后台接口请求地址
// baseUrl: 'http://192.168.0.10:8089', // 后台接口请求地址
baseUrl: 'http://192.168.0.60:81', // 后台接口请求地址
hostUrl: 'http://192.168.0.60:81', // H5地址(前端运行地址)
websocketUrl: '', // websocket服务端地址
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论