提交 11aa2a17 authored 作者: 刘旭's avatar 刘旭

处理永信达遗留项

上级 6a466f90
...@@ -26,7 +26,9 @@ ...@@ -26,7 +26,9 @@
} }
: togoods(item) : togoods(item)
"> ">
<view>{{ item.goodsName }}</view> <!-- <view>{{ item.goodsName }}</view> -->
<view style="margin-bottom: 20rpx;">{{ item.productName ? item.productName : item.goodsName
}}</view>
<view class="b-tag"> <view class="b-tag">
<block v-for="(item1, index1) in item.specifications?.length" :key="index1"> <block v-for="(item1, index1) in item.specifications?.length" :key="index1">
<u-tag :text="item.specifications[index1]" type="info" size="mini" <u-tag :text="item.specifications[index1]" type="info" size="mini"
...@@ -73,7 +75,8 @@ ...@@ -73,7 +75,8 @@
} }
: togoods(item) : togoods(item)
"> ">
<view>{{ item.goodsName }}</view> <view>{{ item.productName ? item.productName : item.goodsName
}}</view>
<view style="color: #ccc; margin-top: 20%;"> <view style="color: #ccc; margin-top: 20%;">
{{ item.message }} {{ item.message }}
</view> </view>
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<view class="content"> <view class="content">
<view class="title"> <view class="title">
<text>{{ item.name }}</text> <text>{{ item.name }}</text>
<text style="color: #646566;">{{ item.brief }}</text> <text style="color: #646566; font-size: 12px; overflow: hidden;">{{ item.brief }}</text>
</view> </view>
</view> </view>
</view> </view>
...@@ -163,7 +163,7 @@ const initGoodsList = (data: any) => { ...@@ -163,7 +163,7 @@ const initGoodsList = (data: any) => {
.item-container { .item-container {
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
height: 160rpx; // height: 160rpx;
padding: 12rpx 0; padding: 12rpx 0;
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
...@@ -171,6 +171,7 @@ const initGoodsList = (data: any) => { ...@@ -171,6 +171,7 @@ const initGoodsList = (data: any) => {
border-bottom: 1rpx solid #f5f5f5; border-bottom: 1rpx solid #f5f5f5;
.content { .content {
flex: 1;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
......
...@@ -387,7 +387,7 @@ const initParts = (goodsId: number, productId: number) => { ...@@ -387,7 +387,7 @@ const initParts = (goodsId: number, productId: number) => {
border-bottom-right-radius: 30rpx; border-bottom-right-radius: 30rpx;
.goods-title { .goods-title {
font-size: 16px; font-size: 28rpx;
font-weight: bold; font-weight: bold;
display: -webkit-box; display: -webkit-box;
word-break: break-all; word-break: break-all;
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
margin: 6rpx 10rpx; margin: 6rpx 10rpx;
.goods-title { .goods-title {
font-size: 16px; font-size: 14px;
font-family: arial, sans-serif; font-family: arial, sans-serif;
display: -webkit-box; display: -webkit-box;
word-break: break-all; word-break: break-all;
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { onLoad } 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 } from '@/api/cart';
import { getTax } from '@/api/index'; import { getTax } from '@/api/index';
...@@ -206,11 +206,12 @@ let init = () => { ...@@ -206,11 +206,12 @@ let init = () => {
}); });
}; };
// onBackPress((options: any) =>{ onBackPress((options: any) => {
// if(options.from === 'navigateBack') { let pages = getCurrentPages(); // 当前页面路由
// return false let route = pages[pages.length - 2].route; // 上一个页面路由
// } if (options.from === 'backbutton' && route == 'pages/order/quotation')
// }) return uni.navigateBack({ delta: 4 })
})
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
...@@ -29,7 +29,9 @@ ...@@ -29,7 +29,9 @@
" mode="aspectFill"></image> " mode="aspectFill"></image>
</view> </view>
<view class="content"> <view class="content">
<view class="title u-line-2">{{ item.goodsName }}</view> <view class="title u-line-2">{{ item.productName ? item.productName :
item.goodsName
}}</view>
<view class="type">{{ item.type }}</view> <view class="type">{{ item.type }}</view>
<view class="content-item"> <view class="content-item">
<view v-for="(item1, index1) in item.specifications <view v-for="(item1, index1) in item.specifications
......
...@@ -20,10 +20,9 @@ ...@@ -20,10 +20,9 @@
<view <view
style="display: flex; flex-direction: row; align-items: center; margin-bottom: 10rpx;"> 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.taxUnitPrice" <input type="number" placeholder="请输入含税单价" v-model="item.taxUnitPrice"
@focus="onPriceFocus" @blur="priceCheck($event, index)" @focus="onPriceFocus" @blur="priceCheck($event, index)"
style="width: 200rpx;"> style="width: 200rpx; padding: 4rpx 20rpx; border: #9697996e 1rpx solid; border-radius: 12rpx;">
</view> </view>
<view <view
style="display: flex; flex-direction: row; align-items: center; margin-bottom: 10rpx;"> style="display: flex; flex-direction: row; align-items: center; margin-bottom: 10rpx;">
...@@ -324,8 +323,6 @@ let priceCheck = (data: any, index: number) => { ...@@ -324,8 +323,6 @@ let priceCheck = (data: any, index: number) => {
} }
let submit = () => { let submit = () => {
console.log(detailData.value, 'detailData.value');
// 保证单价必填 // 保证单价必填
new Promise((resolve, reject) => { new Promise((resolve, reject) => {
let flag = true let flag = true
...@@ -388,7 +385,7 @@ let modelConfirm = () => { ...@@ -388,7 +385,7 @@ let modelConfirm = () => {
// 点击取消按钮 // 点击取消按钮
let modelCancel = () => { let modelCancel = () => {
uni.reLaunch({ uni.navigateTo({
url: './editQuotation?orderId=' + orderId.value url: './editQuotation?orderId=' + orderId.value
}) })
} }
......
...@@ -814,7 +814,7 @@ let handleEditProductLineData = (editData: any, dataArr?: any[]) => { ...@@ -814,7 +814,7 @@ let handleEditProductLineData = (editData: any, dataArr?: any[]) => {
editData.cartList.forEach((cart: any) => { editData.cartList.forEach((cart: any) => {
cart.map((item: any) => { cart.map((item: any) => {
if (JSON.stringify(item) !== '{}') { if (JSON.stringify(item) !== '{}') {
item['name'] = item.goodsName; item['name'] = item.productName ? item.productName : item.goodsName;
item['show'] = false; item['show'] = false;
item['url'] = item.picUrl; item['url'] = item.picUrl;
item['status'] = 1; item['status'] = 1;
......
...@@ -2,7 +2,7 @@ const CONFIG: any = { ...@@ -2,7 +2,7 @@ const CONFIG: any = {
// 开发环境配置 // 开发环境配置
development: { development: {
assetsPath: 'http://192.168.60:81', // 静态资源路径 assetsPath: 'http://192.168.60:81', // 静态资源路径
// baseUrl: 'http://192.168.0.10:8089', // 后台接口请求地址 // baseUrl: 'http://192.168.0.8:8089', // 后台接口请求地址
baseUrl: 'http://192.168.0.60:81', // 后台接口请求地址 baseUrl: 'http://192.168.0.60:81', // 后台接口请求地址
hostUrl: 'http://192.168.0.60:81', // H5地址(前端运行地址) hostUrl: 'http://192.168.0.60:81', // H5地址(前端运行地址)
websocketUrl: '', // websocket服务端地址 websocketUrl: '', // websocket服务端地址
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论