+
+
+
-
+
+ {{ item.name }}
-
+ -->
-
+
{{ item.name }}
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -53,6 +74,7 @@
import OrderList from "@/pages_order/components/order/orderList.vue";
import mixinList from '@/mixins/list.js'
import * as echarts from 'echarts';
+ import visualization from '@/components/user/visualization.vue'
export default {
mixins: [mixinList],
@@ -61,6 +83,7 @@
ProductList,
topbar,
tabber,
+ visualization,
},
computed: {
...mapGetters(['userShop']),
@@ -71,12 +94,13 @@
mixinsListApi: 'getMyProductlist',
type: [
{
- name: this.$t('other.futuresTrading')
+ name: '国内现货'
},
{
- name: this.$t('other.spotTrading')
+ name: '国外现货'
},
],
+ vedioUrl : '',
chartData: [
// {date: "08/16", value: 10},
// {date: "08/17", value: 15},
@@ -97,7 +121,7 @@
onLoad() {
if (this.userShop) {
// 交易平台挂单列表
- this.mixinsListApi = 'productlist'
+ this.mixinsListApi = 'productList' //'productlist'
} else {
// 现货/期货列表
this.mixinsListApi = 'productList'
@@ -111,7 +135,7 @@
// })
},
onShow() {
- this.getAlPrice()
+ // this.getAlPrice()
},
methods: {
@@ -227,6 +251,23 @@
this.queryParams.productType = this.actionIndex
this.getData()
},
+
+ previewVideo(data){
+
+ if(data.urls.length > 1){
+ uni.showActionSheet({
+ itemList: data.urls.map((n, i) => i),
+ success : e => {
+ this.vedioUrl = data.urls[e.tapIndex]
+ this.$refs.previewVideoPopup.open();
+ }
+ })
+ }else{
+ this.vedioUrl = data.urls[data.index]
+ this.$refs.previewVideoPopup.open();
+ }
+
+ },
}
}
@@ -312,9 +353,19 @@
.productList {
margin-top: 20rpx;
// height: 60vh;
- overflow: auto;
+ // overflow: auto;
}
}
}
+
+ .closexxxxx{
+ background-color: #00000055;
+ padding: 30rpx;
+ position: fixed;
+ top: 30rpx;
+ right: 30rpx;
+ border-radius: 50%;
+ z-index: 99999999;
+ }
}
\ No newline at end of file
diff --git a/pages_order/center/systemSet.vue b/pages_order/center/systemSet.vue
index c71a5a9..0e4f9d6 100644
--- a/pages_order/center/systemSet.vue
+++ b/pages_order/center/systemSet.vue
@@ -101,12 +101,12 @@
rightIcon: ">",
toUrl: '/pages_order/auth/selectionIdentity'
},
- {
- leftIcon: "../../static/image/center/4.svg",
- text: this.$t('pageTitle.addressList'),
- rightIcon: ">",
- toUrl: '/pages_order/center/addressListManage'
- },
+ // {
+ // leftIcon: "../../static/image/center/4.svg",
+ // text: this.$t('pageTitle.addressList'),
+ // rightIcon: ">",
+ // toUrl: '/pages_order/center/addressListManage'
+ // },
]
}
],
diff --git a/pages_order/components/order/myOrderList.vue b/pages_order/components/order/myOrderList.vue
index 121bd06..1ef66e9 100644
--- a/pages_order/components/order/myOrderList.vue
+++ b/pages_order/components/order/myOrderList.vue
@@ -139,7 +139,7 @@
display: flex;
flex-direction: column;
gap: 20rpx;
- height: calc(90vh - 180rpx);
+ // height: calc(90vh - 180rpx);
.content {
position: relative;
diff --git a/pages_order/components/order/orderList.vue b/pages_order/components/order/orderList.vue
index 1c587c1..6d3765b 100644
--- a/pages_order/components/order/orderList.vue
+++ b/pages_order/components/order/orderList.vue
@@ -1,9 +1,12 @@
-
+
- {{ $t('other.aluminumProducts') }}
+ {{ item.specsName }}
+
{{ item.showStatus_dictText }}
@@ -18,7 +21,7 @@
mode="aspectFill"/>
-
+
{{ $t('components.customerName') }} :{{ item.userName }}
@@ -28,9 +31,9 @@
库存数量:{{ item.num }}
-
+
{{ $t('other.pickupAddress') }}:{{ item.address }}
@@ -58,13 +61,13 @@
v-if="showBackOrder">
-
{{ $t('other.withdrawOrder') }}
-
+ -->
-
重新申请
@@ -98,13 +101,12 @@
// 查看详情
lookDetail(item, index) {
// 交易平台的列表只用于展示,有撤单的说明是我的挂单,则可以查看详情
- if (this.showBackOrder && item.showStatus == 0) {
-
+ if (this.showBackOrder) {
this.$store.state.orderDetail = item
- // uni.navigateTo({
- // url: `/pages_order/order/myOrderDetail`
- // });
+ uni.navigateTo({
+ url: `/pages_order/order/orderDetail2`
+ });
}
},
@@ -150,7 +152,7 @@
flex-direction: column;
gap: 20rpx;
- height: calc(90vh - 180rpx);
+ // height: calc(90vh - 180rpx);
.item {
diff --git a/pages_order/order/offerOrBillLading.vue b/pages_order/order/offerOrBillLading.vue
index 008f3bd..331f6f5 100644
--- a/pages_order/order/offerOrBillLading.vue
+++ b/pages_order/order/offerOrBillLading.vue
@@ -80,8 +80,38 @@
+
+
+ 商品类型
+
+ 请选择类型
+
+
+ {{ form.productType == -1 ? '请选择类型' : productType[form.productType] }}
+
+
+
+
+
+
-
+
+
+
提货地点
@@ -218,6 +248,19 @@
:columns="unitList"
itemHeight="80"
@confirm="unitListConfirm">
+
+
+
+
+
+
@@ -244,7 +287,6 @@
if(options.type = 'edit'){
-
this.form = this.$store.state.orderDetail
// 商品主图
@@ -291,12 +333,16 @@
"addressId": "",
"num": 1,
"price": '',
- "transactionTime": dayjs(new Date()).format("YYYY-MM-DD")
+ "transactionTime": dayjs(new Date()).format("YYYY-MM-DD"),
+ productType : 0,
},
address: {
name: '请选择地址',
addressDetail: '',
+ phone : '',
+ address : '',
},
+ addressList : [],
addressTotal: 0,
fileList : [],//商品主图
reportFileList : [],//检测报告
@@ -308,11 +354,17 @@
specsName : '请选择规格'
},
type : '',
+ productType : [
+ '国内现货',
+ '国外现货',
+ ],
}
},
onShow() {
this.getUnitList()
- this.getAddressDefault()
+ // this.getAddressDefault()
+ this.confAddressList()
+ console.log(this.form);
},
methods: {
//获取默认地址
@@ -328,6 +380,25 @@
})
})
},
+ //查询仓库地址
+ confAddressList() {
+ return new Promise((success, fail) => {
+ this.$api('confAddressList', {
+ pageNo: 1,
+ pageSize: 9999,
+ }, res => {
+ if (res.code == 200) {
+
+ res.result.records.forEach(n => {
+ n.addressText = n.address + n.addressDetail
+ // n.addressText = n.name + n.phone + n.address + n.addressDetail
+ })
+
+ this.addressList = res.result.records;
+ }
+ })
+ })
+ },
// 查询规格
getUnitList(){
@@ -397,6 +468,13 @@
return
}
+ if(this.form.productType != 0 && !productType){
+ uni.showToast({
+ title: '请选择商品类型'
+ })
+ return
+ }
+
let api = 'addProduct'
if(this.type == 'edit'){
@@ -422,6 +500,9 @@
unitListConfirm(e){
this.unit = e.value[0]
},
+ addressListConfirm(e){
+ this.address = e.value[0]
+ },
openAddress() {
this.$refs.addressPopup.open('bottom')
@@ -481,6 +562,11 @@
deleteImage(e) {
this[e.name].splice(e.index, 1)
},
+ productTypeConfirm(e){
+ console.log(e);
+ this.form.productType = e.indexs[0]
+ this.$forceUpdate()
+ },
},
}
diff --git a/pages_order/order/orderDetail.vue b/pages_order/order/orderDetail.vue
deleted file mode 100644
index 8ca27b7..0000000
--- a/pages_order/order/orderDetail.vue
+++ /dev/null
@@ -1,567 +0,0 @@
-
-
-
-
-
-
-
-
-
- 服务完成
-
-
- 待送回
-
-
-
- 快递寄回
-
-
- 线下配送
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 服务项目
-
-
-
-
-
-
-
-
-
-
-
-
- {{msgOrder.projectName}}
-
-
-
-
- ¥{{msgOrder.money}}
-
-
-
- 规格:{{msgOrder.unit}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{msgOrder.name}} {{msgOrder.phone}}
- {{msgOrder.address}}
-
-
-
-
-
-
-
- 实付款
-
-
- ¥{{ msgOrder.money }}
-
-
-
-
- 租赁费用
-
-
- ¥{{ msgOrder.price }}
-
-
-
-
- 水洗费用
-
-
- ¥{{ msgOrder.price}}
-
-
-
-
- 押金
-
-
- ¥{{ msgOrder.price }}
-
-
-
-
-
-
-
-
- 订单信息
-
-
-
-
- 订单编号
-
-
- {{msgOrder.id}}
-
-
-
-
- 下单时间
-
-
- {{msgOrder.createTime}}
-
-
-
-
-
-
-
-
-
- 下单须知
-
-
-
- {{msgShop.projectExplain}}
-
-
-
- 联系客服
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages_order/order/orderDetail2.vue b/pages_order/order/orderDetail2.vue
index 65f32a7..2a1b32d 100644
--- a/pages_order/order/orderDetail2.vue
+++ b/pages_order/order/orderDetail2.vue
@@ -15,49 +15,110 @@
- {{ $t('other.aluminumProducts') }}
+
+ {{ orderInfo.specsName }}
-
+
- {{ $t('other.pickupDate') }}:{{ orderInfo.takeTime }}
+ 交货时间:{{ orderInfo.transactionTime }}
+
+
+
+
+ 商品信息
+
+
+
+
+ 商品图片
+
+
+
+
+
+
+
+ 商品视频
+
+
+
+
+
+
+
+
+
+
+
+ 检测报告
+
+
+
+
+
+
+
+ 检测视频
+
+
+
+
+
+
+
+
+
+
+
- {{ $t('components.shippingAddress') }}
+
+ 提货地址
-
+
- {{ orderInfo.userName }} {{ orderInfo.phone }}
{{ orderInfo.address }}
-
+
- {{ $t('components.orderInfo') }}
+
+ 挂单信息
- {{ $t('components.orderNumber') }}
+
+ 挂单编号
{{ orderInfo.id }}
@@ -65,7 +126,8 @@
- {{ $t('components.orderTime') }}
+
+ 挂单时间
{{ orderInfo.createTime }}
@@ -74,25 +136,26 @@
-
+
+
1. 请您在收货时间前15分钟内到货,否则将视为放弃挂单。
2. 请您在收货地址提供的手机号码收到货物
-
+ -->
-
+
{{ $t('components.contactCustomerService') }}
@@ -112,14 +175,11 @@
customerServicePopup
},
onLoad(options) {
- if (options.orderInfo) {
- this.orderInfo = JSON.parse(decodeURIComponent(options.orderInfo));
- console.log(this.orderInfo, "解析后的订单数据"); // 解析后的订单数据
- }
+ this.orderInfo = this.$store.state.orderDetail
},
data() {
return {
- orderInfo: {}
+ orderInfo: {},
}
},
methods: {
@@ -141,7 +201,7 @@
success(e) {
if (e.confirm) {
self.$api('noShow', {
- id
+ id : self.orderInfo.id
}, res => {
if (res.code == 200) {
uni.showToast({
@@ -164,6 +224,16 @@