diff --git a/apis/factoryApi.js b/apis/factoryApi.js
index b882ef2..225cc92 100644
--- a/apis/factoryApi.js
+++ b/apis/factoryApi.js
@@ -83,3 +83,13 @@ export function getMyFactoryList(data = {}) {
data
})
}
+
+/**
+ * 获取我的工厂列表
+ */
+export function getMachinList(data = {}) {
+ return http.get({
+ url: `/cloud-print-cloud-factory/user/get/factory/machine/list`,
+ data
+ })
+}
\ No newline at end of file
diff --git a/apis/orderApi.js b/apis/orderApi.js
index 3210efa..0c8c83a 100644
--- a/apis/orderApi.js
+++ b/apis/orderApi.js
@@ -172,3 +172,16 @@ export function makeSupplierPay(data) {
data
})
}
+
+export const getProdOrderList = (data) => {
+ return http.get({
+ url: '/cloud-print-cloud-factory/get/my-enterprise/purchasing-order-list/by-supplier',
+ data
+ })
+}
+
+export const getProdOrderInfo = (id) => {
+ return http.get({
+ url: `/cloud-print-cloud-factory/get/my-enterprise/purchasing-order/${id}`
+ })
+}
diff --git a/components/countdown/countdown.vue b/components/countdown/countdown.vue
new file mode 100644
index 0000000..0e8048a
--- /dev/null
+++ b/components/countdown/countdown.vue
@@ -0,0 +1,264 @@
+
+
+ {{ d }}
+ {{dayText}}
+ {{ h }}
+ {{ showColon ? ':' : hourText }}
+ {{ i }}
+ {{ showColon ? ':' : minuteText }}
+ {{ s }}
+ {{secondText}}
+
+
+
+
\ No newline at end of file
diff --git a/components/uni-status-bar/uni-status-bar.vue b/components/uni-status-bar/uni-status-bar.vue
new file mode 100644
index 0000000..976af6c
--- /dev/null
+++ b/components/uni-status-bar/uni-status-bar.vue
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
diff --git a/components/uni-steps/uni-steps.vue b/components/uni-steps/uni-steps.vue
index 954b599..d2a9b2e 100644
--- a/components/uni-steps/uni-steps.vue
+++ b/components/uni-steps/uni-steps.vue
@@ -137,9 +137,7 @@ export default {
.uni-steps__column-text {
padding: 6px 0px;
- border-bottom-style: solid;
- border-bottom-width: 1px;
- border-bottom-color: $uni-border-color;
+ min-height: 100rpx;
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
diff --git a/enums/index.js b/enums/index.js
index 8b251ed..57a36b8 100644
--- a/enums/index.js
+++ b/enums/index.js
@@ -38,11 +38,11 @@ export const enterpriseType = {
}
/**
- * 设备状态: 空闲中 1 ; 工作中 2
+ * 设备状态: 空闲中 0 ; 工作中 1
*/
export const deviceStatus = {
- FREE: 1,
- WORKING: 2
+ FREE: 0,
+ WORKING: 1
}
/**
* 账号类型
@@ -353,3 +353,40 @@ export const applyingTypeEnum = {
REJECT: 3,
EXPIRED: 4
}
+
+// 状态。-1:待提交,4:生产中,1:已发货,3:已完成
+export const StatusEnum = {
+ ALL: -2,
+ WAIT_CONFIRM: -1,
+ WAIT_SUPPLIER_CONFIRM: 4,
+ ORDERED: 1,
+ FINISHED: 3
+}
+
+export const StatusMap = {
+ [StatusEnum.ALL]: '全部',
+ [StatusEnum.WAIT_CONFIRM]: '待排产',
+ [StatusEnum.WAIT_SUPPLIER_CONFIRM]: '生产中',
+ [StatusEnum.ORDERED]: '已发货',
+ [StatusEnum.FINISHED]: '已完成'
+}
+
+// 状态。-1:待提交,4:生产中,1:已发货,2:已完成
+export const orderStatusList = [
+ {
+ value: StatusEnum.ALL,
+ label: '全部'
+ },
+ {
+ value: StatusEnum.WAIT_CONFIRM,
+ label: '待排产'
+ },
+ {
+ value: StatusEnum.WAIT_SUPPLIER_CONFIRM,
+ label: '生产中'
+ },
+ {
+ value: StatusEnum.FINISHED,
+ label: '已完成'
+ }
+]
diff --git a/pages.json b/pages.json
index e4b77ee..9fe4647 100644
--- a/pages.json
+++ b/pages.json
@@ -235,6 +235,14 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "pages/order-info/index",
+ "style": {
+ "navigationBarTitleText": "订单详情",
+ "enablePullDownRefresh": true,
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "pages/apply-detail/index",
"style": {
diff --git a/pages/digital-workshops/DeviceItem.vue b/pages/digital-workshops/DeviceItem.vue
index 7003f22..8d97b5d 100644
--- a/pages/digital-workshops/DeviceItem.vue
+++ b/pages/digital-workshops/DeviceItem.vue
@@ -1,15 +1,22 @@
+
-
+
生产中
-
+
空闲
-
+
+ {{ deviceInfo.typeName }}
+
+
+
@@ -69,10 +76,10 @@ export default {
},
computed: {
hasCloudBox() {
- return this.deviceInfo.cloudBoxId || false
+ return this.deviceInfo.hasCloudBox || false
},
hasCamera() {
- return this.deviceInfo.cameraId || false
+ return this.deviceInfo.hlsUrl || false
}
},
methods: {
@@ -111,7 +118,7 @@ export default {
diff --git a/pages/digital-workshops/index.vue b/pages/digital-workshops/index.vue
index fa0dbf9..9416b5d 100644
--- a/pages/digital-workshops/index.vue
+++ b/pages/digital-workshops/index.vue
@@ -1,110 +1,126 @@
-
-
-
-
-
-
-
-
-
- 工厂管理
-
-
-
-
-
- 推广
-
-
-
-
-
-
- {{ key }}
-
-
-
-
-
-
-
-
- {{ key }}(
- {{ value[0] }}
- /
- {{ value[1] }}
- )
-
-
-
- 设备列表为空
-
-
-
-
- 摄像机({{ cameraList.length }}台)
-
-
-
-
- {{ cameraList[0].address }}
-
-
-
-
- 设备列表
-
- 新增
-
-
-
-
-
-
-
-
-
-
-
-
-
- 设备列表为空
-
-
- 添加设备
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ 工厂管理
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ key }}
+
+
+
+
+
+
+
+
+
+ {{ key }}(
+ {{ value[0] }}
+
+ )
+
+
+
+ 设备列表为空
+
+
+
+
+ 摄像机({{ cameraList.length }}台)
+
+
+
+
+ {{ cameraList[0].address }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 设备列表为空
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+
+
diff --git a/pages/factory/index.vue b/pages/factory/index.vue
index 04e14f4..1a0952b 100644
--- a/pages/factory/index.vue
+++ b/pages/factory/index.vue
@@ -185,7 +185,7 @@ export default {
diff --git a/static/imgs/cart/icon-time.png b/static/imgs/cart/icon-time.png
new file mode 100644
index 0000000..b5f5437
Binary files /dev/null and b/static/imgs/cart/icon-time.png differ