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 @@ + + + \ 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 @@