diff --git a/canteen/pages/purchase/detail.vue b/canteen/pages/purchase/detail.vue
index 735c2a9..3ee3487 100644
--- a/canteen/pages/purchase/detail.vue
+++ b/canteen/pages/purchase/detail.vue
@@ -23,26 +23,24 @@
-
+
-
-
- 车辆
- {{order.car_license}}
-
-
- 司机
- {{order.deliver_man}}
-
-
- 联系电话
- {{order.deliver_phone}}
-
-
- 收货时间
- {{order.deadline}}
-
-
+
+ 车辆
+ {{order.car_license}}
+
+
+ 司机
+ {{order.deliver_man}}
+
+
+ 联系电话
+ {{order.deliver_phone}}
+
+
+ 收货时间
+ {{order.deadline_text}}
+
证明材料-供应端
@@ -306,23 +304,31 @@
},
// 改变订单状态
orderStateChange(state){
- uni.showModal({
- title: '温馨提示',
- content: '确定继续退单吗?',
- confirmColor: '#FF0000',
- cancelColor: '#11D189',
- success: result => {
- if(result.confirm){
- this.$http(this.API.API_CANTEEN_PURCHASEUPDATE, {
- p_sn: this.p_sn,
- state: state
- }).then(res => {
- console.log("orderStateChange", res);
- this.$msg('操作成功').then(()=> this.getData());
- })
+ let that = this;
+ if(state == '已退单'){
+ uni.showModal({
+ title: '温馨提示',
+ content: '退单前请与供应商协商,以免造成损失!确定继续退单操作吗?',
+ confirmColor: '#FF0000',
+ cancelColor: '#11D189',
+ success: result => {
+ if(result.confirm){
+ $change();
+ }
}
- }
- })
+ })
+ }else{
+ $change();
+ }
+
+ function $change(){
+ that.$http(that.API.API_CANTEEN_PURCHASEUPDATE, {
+ p_sn: that.p_sn,
+ state: state
+ }).then(res => {
+ that.$msg('操作成功').then(()=> that.getData());
+ })
+ }
}
}
}
diff --git a/supplier/pages/order/detail.vue b/supplier/pages/order/detail.vue
index 3f5863e..411f07e 100644
--- a/supplier/pages/order/detail.vue
+++ b/supplier/pages/order/detail.vue
@@ -21,6 +21,10 @@
关联食堂
{{ (order.canteen && order.canteen.canteen_name) || '' }}
+
+ 创建时间
+ {{ order.deadline_text }}
+
diff --git a/supplier/pages/order/index.vue b/supplier/pages/order/index.vue
index f2c23a4..5727bd9 100644
--- a/supplier/pages/order/index.vue
+++ b/supplier/pages/order/index.vue
@@ -13,16 +13,21 @@
:refresher-triggered="tabItem.isRefresher"
@refresherrefresh="onRefresherrefresh">
-
- 订单状态
- {{ item.state }}
+
+ 报价单号
+ {{ item.q_sn }}
-
- 批次号 {{ item.batch_sn }}
+
+ 批次号
+ {{ item.batch_sn }}
-
- 报价单号 {{ item.q_sn }}
- {{ item.deadline }}
+
+ 订单状态
+ {{ item.state }}
+
+
+ 创建时间
+ {{ item.deadline_text }}
@@ -164,41 +169,31 @@
padding: 0 20rpx;
box-sizing: border-box;
margin-bottom: 30rpx;
- .upper{
- width: 100%;
+ .item{
padding: 20rpx 0;
- // border-bottom: 1rpx solid #e5e5e5;
box-sizing: border-box;
- .order-btn{
- width: max-content;
- height: 62rpx;
- border-radius: 32rpx;
- // border: 2rpx solid #777777;
- // padding: 0 20rpx;
- line-height: 60rpx;
- font-size: 28rpx;
- }
- // 已通过
- .quoted-price{
- color: #777777;
- }
- // 待发起
- .wait{
- color: #1833F2;
- }
- // 待审核
- .passed{
- color: #0BCE5F;
- }
- // 未通过
- .refuse{
- color: #FF0000;
+ width: 100%;
+ font-size: 28rpx;
+ &:last-child{
+ border-bottom: none;
}
}
- .lower{
- padding: 20rpx 0;
- font-size: 24rpx;
- color: #777777;
- }
+ }
+
+ // 已通过
+ .quoted-price{
+ color: #777777;
+ }
+ // 待发起
+ .wait{
+ color: #1833F2;
+ }
+ // 待审核
+ .passed{
+ color: #0BCE5F;
+ }
+ // 未通过
+ .refuse{
+ color: #FF0000;
}