diff --git a/api/information.js b/api/information.js index 476cbd8..fedbdda 100644 --- a/api/information.js +++ b/api/information.js @@ -13,4 +13,10 @@ export const informationList = (data) => oahttp.get('/information/list', data) /** * 档案详情 */ -export const informationDetails = (data) => oahttp.get('/information/details', data) \ No newline at end of file +export const informationDetails = (data) => oahttp.get('/information/details', data) + +/** + * 更新商机 + */ +export const informationOpportunityUpdate = (data) => oahttp.post('/information/opportunity_update', data) + diff --git a/api/oaUser.js b/api/oaUser.js index 1f721ed..703316b 100644 --- a/api/oaUser.js +++ b/api/oaUser.js @@ -25,3 +25,23 @@ export const userInfo = (data) => oahttp.get('/user/info', data) */ export const loginAdd = (data) => oahttp.post('/login/add', data) +/** + * 修改人员 + */ +export const userSetInfo = (data) => oahttp.post('/user/setInfo', data) + + +/** + * 设置是否为队长 + */ +export const loginSetInfo = (data) => oahttp.post('/login/setInfo', data) + +/** + * 生成合同 + */ +export const userDraftingcontracts = (data) => oahttp.post('/user/Draftingcontracts', data) + +/** + * 发起合同 + */ +export const userInitiateContract = (data) => oahttp.post('/user/initiate_contract', data) \ No newline at end of file diff --git a/components/newArchives/banquetBirthday.vue b/components/newArchives/banquetBirthday.vue index 0a47d65..b10e235 100644 --- a/components/newArchives/banquetBirthday.vue +++ b/components/newArchives/banquetBirthday.vue @@ -1,157 +1,158 @@ - - - - - - \ No newline at end of file diff --git a/components/newArchives/banquetFullMoon.vue b/components/newArchives/banquetFullMoon.vue index 9f21599..9861e97 100644 --- a/components/newArchives/banquetFullMoon.vue +++ b/components/newArchives/banquetFullMoon.vue @@ -1,157 +1,158 @@ - - - - - - \ No newline at end of file diff --git a/components/newArchives/banquetFuneral.vue b/components/newArchives/banquetFuneral.vue index dcbc40b..867d333 100644 --- a/components/newArchives/banquetFuneral.vue +++ b/components/newArchives/banquetFuneral.vue @@ -1,170 +1,171 @@ - - - - - - \ No newline at end of file diff --git a/components/newArchives/banquetMarry.vue b/components/newArchives/banquetMarry.vue index 2e69180..421c64c 100644 --- a/components/newArchives/banquetMarry.vue +++ b/components/newArchives/banquetMarry.vue @@ -1,165 +1,166 @@ - - - - - - \ No newline at end of file diff --git a/components/newArchives/banquetOther.vue b/components/newArchives/banquetOther.vue index b3e1b2d..461b971 100644 --- a/components/newArchives/banquetOther.vue +++ b/components/newArchives/banquetOther.vue @@ -1,160 +1,161 @@ - - - - - - \ No newline at end of file diff --git a/components/newArchives/breeding.vue b/components/newArchives/breeding.vue index d6881fa..3c3e9e5 100644 --- a/components/newArchives/breeding.vue +++ b/components/newArchives/breeding.vue @@ -1,264 +1,270 @@ - - - - - \ No newline at end of file diff --git a/components/newArchives/deepProcessing.vue b/components/newArchives/deepProcessing.vue index 249600e..6d6ab96 100644 --- a/components/newArchives/deepProcessing.vue +++ b/components/newArchives/deepProcessing.vue @@ -1,280 +1,281 @@ - - - - - - \ No newline at end of file diff --git a/components/newArchives/houseDecoration.vue b/components/newArchives/houseDecoration.vue index ea6f20a..38bed92 100644 --- a/components/newArchives/houseDecoration.vue +++ b/components/newArchives/houseDecoration.vue @@ -1,137 +1,138 @@ - - - - - \ No newline at end of file diff --git a/components/newArchives/houseRenovate.vue b/components/newArchives/houseRenovate.vue index 97f51a1..b30269a 100644 --- a/components/newArchives/houseRenovate.vue +++ b/components/newArchives/houseRenovate.vue @@ -1,127 +1,128 @@ - - - - - \ No newline at end of file diff --git a/components/newArchives/houseRepair.vue b/components/newArchives/houseRepair.vue index c7a3787..f73b7fb 100644 --- a/components/newArchives/houseRepair.vue +++ b/components/newArchives/houseRepair.vue @@ -1,162 +1,163 @@ - - - - - \ No newline at end of file diff --git a/components/newArchives/houseTransaction.vue b/components/newArchives/houseTransaction.vue index 370e05c..0a88c9e 100644 --- a/components/newArchives/houseTransaction.vue +++ b/components/newArchives/houseTransaction.vue @@ -1,153 +1,154 @@ - - - - - \ No newline at end of file diff --git a/components/newArchives/residents.vue b/components/newArchives/residents.vue index ef963bf..018a3be 100644 --- a/components/newArchives/residents.vue +++ b/components/newArchives/residents.vue @@ -1,286 +1,292 @@ - - - - - - \ No newline at end of file diff --git a/components/newArchives/store.vue b/components/newArchives/store.vue index aeda544..c0ad487 100644 --- a/components/newArchives/store.vue +++ b/components/newArchives/store.vue @@ -1,218 +1,224 @@ - - - - - \ No newline at end of file diff --git a/components/newArchives/thickProcessing.vue b/components/newArchives/thickProcessing.vue index e6e1a00..1f7eb8f 100644 --- a/components/newArchives/thickProcessing.vue +++ b/components/newArchives/thickProcessing.vue @@ -1,263 +1,264 @@ - - - - - - \ No newline at end of file diff --git a/pages/oaHome/oaHome.vue b/pages/oaHome/oaHome.vue index 392e4be..38b9d9e 100644 --- a/pages/oaHome/oaHome.vue +++ b/pages/oaHome/oaHome.vue @@ -212,9 +212,15 @@ let arr = oaHomeData.filter(item => !item.admin); //过滤掉管理员专属页面 this.oaHomeData = arr; } else { - this.oaHomeData = oaHomeData; - // let arr = oaHomeData.filter(item=>!item.personnel);//过滤掉普通用户专属页面 - // this.oaHomeData = arr; + // this.oaHomeData = oaHomeData; + let arr = oaHomeData.filter(item=>!item.captain);//过滤掉普通用户专属页面 + this.oaHomeData = arr; + } + // 判断是否需要显示更多按钮 + if(this.oaHomeData>=8){ + this.oaHomeData[7] = this.oaHomeData[this.oaHomeData.length-1]; + }else { + this.oaHomeData.splice(this.oaHomeData.length-1,1) } }, async getApproveList() { diff --git a/static/server/server.js b/static/server/server.js index 7749bee..cadc5d7 100644 --- a/static/server/server.js +++ b/static/server/server.js @@ -207,7 +207,8 @@ export const oaHomeData = [ { text: '固定资产', icon: prefix + 'oa/wcsq@2x.png', - // url: '/subpkg/fixedAssets/fixedAssets' + // url: '/subpkg/fixedAssets/fixedAssets', + admin: true }, { text: '合同管理', @@ -229,7 +230,7 @@ export const oaHomeData = [ text: '档案管理', icon: prefix + 'oa/bxsq@2x.png', url: '/subpkg/archives/archives', - personnel: true + captain: true }, // { // text: '片区经理', diff --git a/subpkg/archives/archives.vue b/subpkg/archives/archives.vue index 7afc748..78de1b3 100644 --- a/subpkg/archives/archives.vue +++ b/subpkg/archives/archives.vue @@ -10,18 +10,17 @@ {{item.name}} - {{item.phone}} + {{item.phone}} {{item.create_time}} - - + + 查看 - + 更新 @@ -29,13 +28,13 @@ 所属片区 - {{item.area_name+item.street_name}} + {{item.address}} - @@ -47,7 +46,7 @@ export default { data() { return { - user_id: 0, + user_id: -1, list: [], loadConfig: { page: 1, @@ -60,8 +59,10 @@ } }, onLoad(options) { - this.user_id = options.id - console.log(options); + if(options.id)this.user_id = options.id; + else if(this.$store.state.app.userInfo.admin_id==0){ //如果用户是小队长,将带上自己的id + this.user_id = this.$store.state.app.userInfo.id; + } }, onShow() { this.initLoadconfig(); @@ -70,7 +71,7 @@ computed: { // 是否显示查看和更新按钮 showView() { - return this.$store.state.app.userInfo.admin_id ? false : true; + return !this.$store.state.app.userInfo.admin_id&&this.$store.state.app.userInfo.is_captain; } }, onReachBottom() { @@ -131,7 +132,7 @@ .personnel_list { padding: 28rpx 0; - margin-bottom: 100rpx; + margin-bottom: 130rpx; .item { margin: 0 auto; diff --git a/subpkg/archivesDetail/archivesDetail.vue b/subpkg/archivesDetail/archivesDetail.vue index bf208f1..185a1f0 100644 --- a/subpkg/archivesDetail/archivesDetail.vue +++ b/subpkg/archivesDetail/archivesDetail.vue @@ -1,247 +1,248 @@ - - - - - \ No newline at end of file diff --git a/subpkg/newArchives/newArchives.vue b/subpkg/newArchives/newArchives.vue index 1563844..e7cd493 100644 --- a/subpkg/newArchives/newArchives.vue +++ b/subpkg/newArchives/newArchives.vue @@ -57,8 +57,8 @@ - - + + @@ -135,13 +135,13 @@ // category_child: '2', // data_type: '1', id_card: '324234234353454343', - sex: 1, + sex: 2, name: '测试的', phone: 14332323444, //电话 highway: 1, //汽车是否能到家 smart_phone: 1, //是否使用智能手机 wechat: 21313132, //微信号 - address: '大师傅大师傅但是', //家庭地址 + address: '张家村', //家庭地址 age: 33, //年龄 category_id: '1', category_child: '2', @@ -161,11 +161,10 @@ trigger: ['change', 'blur'] }, sex: { - type: 'number', - max: 1, - required: true, - message: '请选择男或女', - trigger: ['blur', 'change'] + validator: (rule, value, callback) => { + typeof value === 'number' ? callback() : callback('请选择男或女') + }, + trigger: ['change', 'blur'] }, age: { type: 'number', @@ -207,7 +206,7 @@ methods: { // 新增档案 async addArchives() { - Toast('开发中') + // Toast('开发中') let refsDatas = this.loadRefsDatas(); let flag1 = await this.$refs.districtSelectorRef.validate(); let flag2 = await this.$refs.residentsRef.validate(); @@ -215,7 +214,6 @@ // return console.log(flag1); this.$refs.archives.validate().then(async (e) => { if (e==true && flag1==true && flag2==true && flag3==true) { - console.log('提交'); uni.showLoading() let districtForm = { area_id: this.$refs.districtSelectorRef.formData.area, @@ -241,9 +239,9 @@ icon: "none", title: "添加成功", success: () => { - // setTimeout(() => { - // uni.navigateBack() - // }, 1000) + setTimeout(() => { + uni.navigateBack() + }, 1000) } }) } @@ -302,13 +300,13 @@ + \ No newline at end of file diff --git a/subpkg/updateArchives/updateArchives.vue b/subpkg/updateArchives/updateArchives.vue index 571c189..4df62f1 100644 --- a/subpkg/updateArchives/updateArchives.vue +++ b/subpkg/updateArchives/updateArchives.vue @@ -1,185 +1,207 @@