diff --git a/api/api.js b/api/api.js
index 9301696..85c7c18 100644
--- a/api/api.js
+++ b/api/api.js
@@ -13,8 +13,26 @@ const config = {
// auth : false, showLoading : true, loadingTitle : '加载中...',
// limit : 1000
// },
+
+ getConfig: {
+ url: '/api/getConfig',
+ method: 'GET',
+ limit: 500
+ },
+
+
+ //轮播图-轮播图列表
+ queryBannerList: {
+ url: '/workorder/banner/queryBannerList',
+ method: 'GET',
+ },
+
- getConfig : {url : '/api/getConfig', method : 'GET', limit : 500},
+ //工单信息-查询工单列表
+ queryTemplateList: {
+ url: '/workorder/template/queryTemplateList',
+ method: 'GET',
+ },
}
@@ -53,27 +71,27 @@ export function api(key, data, callback, loadingTitle) {
return
}
}
-
+
// 接口防抖
- if(req.debounce){
-
+ if (req.debounce) {
+
let storageKey = req.url
let storage = debounce[storageKey]
-
+
if (storage) {
clearTimeout(storage)
}
-
+
debounce[storageKey] = setTimeout(() => {
-
+
clearTimeout(storage)
-
+
delete debounce[storageKey]
-
+
http.http(req.url, data, callback, req.method,
loadingTitle || req.showLoading, loadingTitle || req.loadingTitle)
}, req.debounce)
-
+
return
}
@@ -83,9 +101,9 @@ export function api(key, data, callback, loadingTitle) {
-function addApiModel(model, key){
- for(let k in model){
- if(config[`${k}`]){
+function addApiModel(model, key) {
+ for (let k in model) {
+ if (config[`${k}`]) {
console.error(`重名api------model=${key},key=${k}`);
continue
}
diff --git a/components/ProcessCard/ProcessCard.vue b/components/ProcessCard/ProcessCard.vue
new file mode 100644
index 0000000..8183fd0
--- /dev/null
+++ b/components/ProcessCard/ProcessCard.vue
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
diff --git a/components/work/WorkOrderitem.vue b/components/work/WorkOrderitem.vue
new file mode 100644
index 0000000..51a393e
--- /dev/null
+++ b/components/work/WorkOrderitem.vue
@@ -0,0 +1,55 @@
+
+
+
+ 任务号:{{ obj.taskNo }}
+
+
+ 担当信息:{{obj.responsibler}}
+
+
+
+ 机型信息:{{obj.model}}
+
+
+ 数量:{{obj.number}}
+
+
+ 工单状态:{{obj.remark}}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/config.js b/config.js
index bc0bb92..0383a22 100644
--- a/config.js
+++ b/config.js
@@ -7,7 +7,7 @@ import uvUI from '@/uni_modules/uv-ui-tools'
Vue.use(uvUI);
// 当前环境
-const type = 'dev'
+const type = 'prod'
// 环境配置
@@ -16,7 +16,7 @@ const config = {
baseUrl : 'http://www.gcosc.fun:82',
},
prod : {
- baseUrl : 'http://xxx.xxx.xxx/xxx',
+ baseUrl : 'https://workorderadmin.augcl.com/workorder-admin',
}
}
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 11dca36..1ad2662 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -4,7 +4,12 @@
-
+
+
@@ -50,7 +55,8 @@
@@ -67,12 +73,13 @@
import tabber from '@/components/base/tabbar.vue'
import productList from '@/components/user/productList.vue'
import WorkOrderitem from '@/components/work/WorkOrderitem.vue'
-
+ import mixinsList from '@/mixins/list.js'
import {
mapGetters
} from 'vuex'
// import selectArea from '../../components/selectArea.vue';
export default {
+ mixins: [mixinsList],
components: {
tabber,
productList,
@@ -81,33 +88,24 @@
},
data() {
return {
- list: [
- 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
- 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
- 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
- ],
- area: '长沙',
- text: '长沙市刘师傅在服务过程中客户投诉“服务过程中有不文明的行为”.....',
- queryParams: {
- pageNo: 1,
- pageSize: 10,
- title: ''
- },
- bannerList: [{
- url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
- },
- {
- url: 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
- },
- {
- url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
- },
- ],
+ bannerList: [],
+ mixinsListApi : 'queryTemplateList',
}
},
computed: {
},
+ onLoad() {
+ this.queryBannerList()
+ },
methods: {
+ queryBannerList(){
+ this.$api('queryBannerList', res =>{
+ if(res.code == 200){
+ console.log(res.result.records[0].image);
+ this.bannerList = res.result.records
+ }
+ })
+ }
}
}
diff --git a/pages_order/order/FavoriteList.vue b/pages_order/order/FavoriteList.vue
new file mode 100644
index 0000000..e366e4a
--- /dev/null
+++ b/pages_order/order/FavoriteList.vue
@@ -0,0 +1,154 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages_order/order/ModifyWorkOrder.vue b/pages_order/order/ModifyWorkOrder.vue
new file mode 100644
index 0000000..567baae
--- /dev/null
+++ b/pages_order/order/ModifyWorkOrder.vue
@@ -0,0 +1,137 @@
+
+
+
+
+
+
+
+
+ 任务号:
+
+
+ GY1269103AC0
+
+
+
+
+ 担当信息:
+
+
+ 李林珠-15197216688
+
+
+
+
+ 机型信息:
+
+
+ BSZ24861768
+
+
+
+
+ 数量:
+
+
+
+
+
+
+
+ 状态:
+
+
+
+
+
+
+
+ 备注:
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages_order/order/ProcessCardFour.vue b/pages_order/order/ProcessCardFour.vue
new file mode 100644
index 0000000..b1abe06
--- /dev/null
+++ b/pages_order/order/ProcessCardFour.vue
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
diff --git a/pages_order/order/ProcessCardOne.vue b/pages_order/order/ProcessCardOne.vue
new file mode 100644
index 0000000..c3f7694
--- /dev/null
+++ b/pages_order/order/ProcessCardOne.vue
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
diff --git a/pages_order/order/ProcessCardThree.vue b/pages_order/order/ProcessCardThree.vue
new file mode 100644
index 0000000..c3f7694
--- /dev/null
+++ b/pages_order/order/ProcessCardThree.vue
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
diff --git a/pages_order/order/ProcessCardTo.vue b/pages_order/order/ProcessCardTo.vue
new file mode 100644
index 0000000..9c2df10
--- /dev/null
+++ b/pages_order/order/ProcessCardTo.vue
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
diff --git a/pages_order/order/WorkOrderListitem.vue b/pages_order/order/WorkOrderListitem.vue
new file mode 100644
index 0000000..bceeaa9
--- /dev/null
+++ b/pages_order/order/WorkOrderListitem.vue
@@ -0,0 +1,112 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages_order/order/WorkOrders.vue b/pages_order/order/WorkOrders.vue
new file mode 100644
index 0000000..a9cf2ad
--- /dev/null
+++ b/pages_order/order/WorkOrders.vue
@@ -0,0 +1,161 @@
+
+
+
+
+
+
+
+
+ 任务号:
+
+
+ GY1269103AC0
+
+
+
+
+ 担当信息:
+
+
+ 李林珠-15197216688
+
+
+
+
+ 机型信息:
+
+
+ BSZ24861768
+
+
+
+
+ 数量:
+
+
+ 88
+
+
+
+
+ 状态:
+
+
+ 本体加工
+
+
+
+
+ 备注:
+
+
+ 备料已完成,等待本体加工,进入下一步气
+
+ 密检测55555555
+
+
+
+
+
+
+
+ 中试压缩机试作工序卡1(选配)
+
+
+ 中试压缩机试作工序卡2
+
+
+ 中试压缩机试作工序卡2
+
+
+ 中试压缩机试作工序卡4(总成)
+
+
+
+
+ 修改
+
+
+
+
+
+
+
+
+
\ No newline at end of file