From 586288a9e606ce224793e4888cca95e964819067 Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期一, 11 九月 2023 16:55:08 +0800
Subject: [PATCH] 小程序
---
minipro_standard/pages/InOperation/InOperation.vue | 66 ++-
minipro_standard/pages_adjust/components/multipleMaterial.vue | 9
minipro_standard/pages/index/index.vue | 29
minipro_standard/pages/login/login.vue | 22
platform_web/src/components/system/menu/OperaMenuH5Window.vue | 6
platform_web/src/views/system/menuH5.vue | 3
minipro_standard/util/request/index.js | 3
minipro_standard/pages/linePatrol/linePatrol.vue | 4
minipro_standard/util/request/requestInterceptors.js | 3
minipro_standard/pages/OutOperation/OutOperation.vue | 28
minipro_standard/pages_adjust/pages/OrderDetail/OrderDetail.vue | 622 +++++++++++++-------------------
minipro_standard/components/SelectMultipleMaterial.vue | 24 +
h5_standard/src/views/LogInAgain.vue | 20
minipro_standard/pages_adjust/pages/workOrder/workOrder.vue | 34 +
minipro_standard/pages/inspectComplete/inspectComplete.vue | 2
minipro_standard/pages_adjust/pages/workOrderReporting/workOrderReporting.vue | 160 +++++---
minipro_standard/pages/workbench/workbench.vue | 3
minipro_standard/common/config.js | 2
platform_web/.env.development | 2
minipro_standard/pages/mine/mine.vue | 2
minipro_standard/components/workOrderInfo.vue | 6
minipro_standard/pages_adjust/pages/manualFeed/manualFeed.vue | 51 ++
minipro_standard/components/selectMaterial.vue | 7
minipro_standard/uni.scss | 12
minipro_standard/components/Search.vue | 2
minipro_standard/pages/inspectPatrol/inspectPatrol.vue | 5
minipro_standard/uni_modules/l-calendar/components/l-calendar/l-calendar.vue | 2
27 files changed, 590 insertions(+), 539 deletions(-)
diff --git a/h5_standard/src/views/LogInAgain.vue b/h5_standard/src/views/LogInAgain.vue
index f1ff54c..fb0da72 100644
--- a/h5_standard/src/views/LogInAgain.vue
+++ b/h5_standard/src/views/LogInAgain.vue
@@ -91,20 +91,20 @@
// uuid: '0000',
// code: '0000'
// })
- // let res = await testLogin({ // 鏂囨
- // username: '18656077929',
- // password: '123456',
- // companyId: '111',
- // uuid: '0000',
- // code: '0000'
- // })
- let res = await testLogin({ // 寮犵楂�
- username: '15256913207',
+ let res = await testLogin({ // 鏂囨
+ username: '18656077929',
password: '123456',
- companyId: '8',
+ companyId: '111',
uuid: '0000',
code: '0000'
})
+ // let res = await testLogin({ // 寮犵楂�
+ // username: '15256913207',
+ // password: '123456',
+ // companyId: '8',
+ // uuid: '0000',
+ // code: '0000'
+ // })
// let res = await testLogin({
// username: '15056231084',
diff --git a/minipro_standard/common/config.js b/minipro_standard/common/config.js
index 3573667..529495d 100644
--- a/minipro_standard/common/config.js
+++ b/minipro_standard/common/config.js
@@ -1,7 +1,7 @@
module.exports = {
// baseUrl: 'http://106.14.20.42/test_hfznzz/',
// baseUrl: 'https://hefei.dtkey.cn/test_hfznzz/',
- // baseUrl: 'http://192.168.0.15:10021',
+ // baseUrl: 'http://192.168.0.18:10021',
baseUrl: 'https://dmtest.ahapp.net/doumeeplant_api',
phoneRegular: /^1[3456789]\d{9}$/,
mailboxRegular: /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,
diff --git a/minipro_standard/components/Search.vue b/minipro_standard/components/Search.vue
index f79d349..efac752 100644
--- a/minipro_standard/components/Search.vue
+++ b/minipro_standard/components/Search.vue
@@ -10,7 +10,7 @@
<image @click="openCate()" src="@/static/filter@2x.png" mode="widthFix">
</view>
</view>
- <u-popup :show="open" :round="10" mode="bottom">
+ <u-popup closeOnClickOverlay :show="open" @close="open=false" :round="10" mode="bottom">
<scroll-view scroll-y class="content">
<slot name="content"></slot>
</scroll-view>
diff --git a/minipro_standard/components/SelectMultipleMaterial.vue b/minipro_standard/components/SelectMultipleMaterial.vue
index b081ce0..884cd0b 100644
--- a/minipro_standard/components/SelectMultipleMaterial.vue
+++ b/minipro_standard/components/SelectMultipleMaterial.vue
@@ -1,8 +1,8 @@
<template>
<u-popup :show="show" :round="10" closeable @close="show=false">
<view class="material-content bbox p30 rp">
- <view class="tc b f24 c2 mb20">閫夋嫨鐗╂枡</view>
- <v-Search ref="V" @searchInput="searchInput" @submit="submit" :isShow="false" placeholder="鎼滅储鐗╂枡鍚嶇О/缂栫爜">
+ <view class="tc b f30 c2 mb20">閫夋嫨鐗╂枡a1</view>
+ <v-Search ref="V" @searchInput="searchInput" @submit="search" :isShow="false" placeholder="鎼滅储鐗╂枡鍚嶇О/缂栫爜">
</v-Search>
<div class="content_total">鍏眥{pages.total}}鏉℃暟鎹�</div>
<view class="scroll-content">
@@ -86,7 +86,8 @@
show: false,
splite: ' | ',
isAll: false,
- refreshing: false,
+ refreshing: false,
+ mixName: '',
pages: {
capacity: 10,
page: 1,
@@ -100,7 +101,7 @@
open(target) {
this.show = true
this.refreshing = false
- this.workorderId = target.workorderId
+ this.warehouseId = target.warehouseId
this.deviceId = target.deviceId
this.list = []
this.selectIndex = []
@@ -112,13 +113,22 @@
total: 0
}
this.loadData()
+ },
+ // 鎼滅储妗�
+ searchInput(data) {
+ this.form.page = 0
+ this.finished = false
+ this.list = []
+ this.mixName = data
+ this.loadData()
},
loadData() {
choiceStockPageForStandard({
...this.pages,
model: {
workorderId: this.workorderId,
- deviceId: this.deviceId
+ deviceId: this.deviceId,
+ materialName: this.mixName
}
}).then(res => {
let {data} = res
@@ -144,6 +154,10 @@
this.refreshing = true;
this.pages.page = 1
this.loadData()
+ },
+ search() {
+ this.pages.page = 1
+ this.loadData()
},
selectMaterialAction(index) {
let i = this.selectIndex.findIndex(item => item==index)
diff --git a/minipro_standard/components/selectMaterial.vue b/minipro_standard/components/selectMaterial.vue
index d3439fd..9d30481 100644
--- a/minipro_standard/components/selectMaterial.vue
+++ b/minipro_standard/components/selectMaterial.vue
@@ -1,10 +1,10 @@
<template>
<u-popup :show="show" :round="10" closeable @close="show=false">
<view class="material-content bbox p30">
- <view class="tc b f24 c2">閫夋嫨鐗╂枡</view>
+ <view class="tc b f30 c2">閫夋嫨鐗╂枡</view>
<scroll-view scroll-y="true" refresher-enabled="true" :refresher-triggered="refreshing"
@scrolltolower="loadMore" @refresherrefresh="onRefresh">
- <view v-for="(item1, index) in list" :key="index" class="" style="height: 20px;" @click="jump(item1)">
+ <view v-for="(item1, index) in list" :key="index" class="mb20" @click="jump(item1)">
<div class="page_content_title_top">
<span>{{ item1.materialName + ' | ' + item1.materialCode }}</span>
</div>
@@ -111,14 +111,13 @@
<style lang="scss" scoped>
.material-content {
- height: 1100rpx;
+ height: 1100rpx;
}
.page_content_title_top {
display: flex;
align-items: center;
justify-content: space-between;
-
span {
&:nth-child(1) {
font-size: 30rpx;
diff --git a/minipro_standard/components/workOrderInfo.vue b/minipro_standard/components/workOrderInfo.vue
index 6f904b5..8918151 100644
--- a/minipro_standard/components/workOrderInfo.vue
+++ b/minipro_standard/components/workOrderInfo.vue
@@ -5,10 +5,10 @@
<view class="mr10 b">{{ `${orederMessage.mmodel.name} |${orederMessage.procedureName}`}}</view>
<u-tag size="mini" bgColor="#03AF76" text="姝e父"></u-tag>
</view>
- <view class="status" :class="orederMessage.status==0?'wc':orederMessage.status==1?'green':orederMessage.status==3?'blue':orederMessage.status==7?'green':'c6'">{{ stausToStr(1) }}</view>
+ <view class="status" :class="orederMessage.status==0?'wc':orederMessage.status==1?'green':orederMessage.status==3?'blue':orederMessage.status==7?'green':'c6'">{{ stausToStr(orederMessage.status) }}</view>
</view>
- <view class="f24 c6 mt20">宸ュ崟缂栧彿锛歿{ orederMessage.code || 'GD202111240001' }}</view>
- <view class="mt20 bg_f7 ptb20 plr30 n">
+ <view class="f24 c6 mt20">宸ュ崟缂栧彿锛歿{ orederMessage.code || '-' }}</view>
+ <view class="f24 mt20 bg_f7 ptb20 plr30 n">
<view class="c2 mb20">
<span class="c6">鐗╂枡缂栫爜锛�</span>
{{ orederMessage.mmodel ? orederMessage.mmodel.code : '-' }}
diff --git a/minipro_standard/pages/InOperation/InOperation.vue b/minipro_standard/pages/InOperation/InOperation.vue
index f3fd8fc..0a4b784 100644
--- a/minipro_standard/pages/InOperation/InOperation.vue
+++ b/minipro_standard/pages/InOperation/InOperation.vue
@@ -382,32 +382,45 @@
}).then(res => {
if (res.code === 200) {
this.$store.dispatch('getUpcomingNum')
- uni.$u.toast('鎿嶄綔鎴愬姛')
- // Toast.success({
- // message: '鎿嶄綔鎴愬姛',
- // forbidClick: true,
- // duration: 2000
- // })
+ uni.$u.toast('鎿嶄綔鎴愬姛')
+ if (this.type == '4') { // 璺宠浆瀹屽伐鍏ュ簱璇︽儏
+ // uni.navigateTo({
+ // url:
+ // })
+ // router.push({
+ // name: 'completionDetails',
+ // query: {
+ // id: route.query.id,
+ // dbid: route.query.dbid,
+ // type: 7,
+ // isShow: 2
+ // }
+ // })
+ return
+ }
+ uni.redirectTo({
+ url: `/pages_adjust/pages/outboundDetails/outboundDetails?id=${this.id}`
+ })
// setTimeout(() => {
- // if (route.query.Type == '4') { // 璺宠浆瀹屽伐鍏ュ簱璇︽儏
- // router.push({
- // name: 'completionDetails',
- // query: {
- // id: route.query.id,
- // dbid: route.query.dbid,
- // type: 7,
- // isShow: 2
- // }
- // })
- // return
- // }
- // router.replace({
- // name: 'wTransferDetail',
- // query: {
- // id: route.query.id
- // }
- // })
+ // if (route.query.Type == '4') { // 璺宠浆瀹屽伐鍏ュ簱璇︽儏
+ // router.push({
+ // name: 'completionDetails',
+ // query: {
+ // id: route.query.id,
+ // dbid: route.query.dbid,
+ // type: 7,
+ // isShow: 2
+ // }
+ // })
+ // return
+ // }
+ // router.replace({
+ // name: 'wTransferDetail',
+ // query: {
+ // id: route.query.id
+ // }
+ // })
// }, 2000)
}
})
@@ -419,7 +432,10 @@
}).then(res => {
if (res.code === 200) {
this.$store.dispatch('getUpcomingNum')
- uni.$u.toast('鎿嶄綔鎴愬姛')
+ uni.$u.toast('鎿嶄綔鎴愬姛')
+ uni.redirectTo({
+ url: `/pages_adjust/pages/warehousingDetails1/warehousingDetails1?id=${this.id}`
+ })
// Toast.success({
// message: '鎿嶄綔鎴愬姛',
// forbidClick: true,
diff --git a/minipro_standard/pages/OutOperation/OutOperation.vue b/minipro_standard/pages/OutOperation/OutOperation.vue
index 80bb6f3..bf9c0d5 100644
--- a/minipro_standard/pages/OutOperation/OutOperation.vue
+++ b/minipro_standard/pages/OutOperation/OutOperation.vue
@@ -208,7 +208,8 @@
onLoad(option) {
this.type = option.type
this.id = option.id
- this.isZKD = this.type == QRCodeType.ZKD
+ this.isZKD = this.type == QRCodeType.ZKD
+ this.dbid = option.dbid
if (option.dbid) {
this.getDBs(option.dbid)
} else {
@@ -242,16 +243,17 @@
} else if (this.type == QRCodeType.ZKD) {
infoAction = wTransferForInOut
data.wTransferType = '0'
- }
+ }
+ console.log('------');
infoAction(data).then(res => {
- // this.warehouseId = this.info.wtransferWarehouseList[0].warehouseId
- console.log(this.type == QRCodeType.ZKD);
if (this.isZKD) {
this.info = res.data.wtransfer
- this.warehouseList = res.data.wtransferWarehouseList
+ this.warehouseList = res.data.wtransferWarehouseList
+ this.warehouseId = this.warehouseList[0].warehouseId
} else {
this.info = res.data.woutbound
- this.woutboundDetailsWait = res.data.woutboundDetailsWait
+ this.woutboundDetailsWait = res.data.woutboundDetailsWait
+ this.warehouseId = this.woutboundDetailsWait[0].warehouseId
}
}).catch(err => {
uni.$u.toast(err)
@@ -294,7 +296,7 @@
})
})
},
- submit() {
+ submit() {
if (this.type == QRCodeType.ZKD) {
if (this.outboundList.length > 0) {
let result = this.outboundList.reduce((a, b) => {
@@ -345,7 +347,10 @@
}).then(res => {
if (res.code === 200) {
this.$store.dispatch.dispatch('getUpcomingNum')
- uni.$u.toast('鎿嶄綔鎴愬姛')
+ uni.$u.toast('鎿嶄綔鎴愬姛')
+ uni.redirectTo({
+ url: `/pages_adjust/pages/outboundDetails/outboundDetails?id=${this.info.id}&dbid=${this.dbid}`
+ })
// setTimeout(() => {
// router.replace({ name: 'wTransferDetail', query: { id: info.value.wtransfer.id, dbid: route.query.dbid } })
// }, 2000)
@@ -361,7 +366,10 @@
}).then(res => {
if (res.code === 200) {
this.$store.dispatch.dispatch('getUpcomingNum')
- uni.$u.toast('鎿嶄綔鎴愬姛')
+ uni.$u.toast('鎿嶄綔鎴愬姛')
+ uni.redirectTo({
+ url: `/pages_adjust/pages/outboundDetails/outboundDetails?id=${this.info.id}`
+ })
// setTimeout(() => {
// // router.go(-1)
// router.replace({ name: 'wOutboundDetail', query: { id: info.value.wtransfer.id } })
@@ -733,7 +741,7 @@
bottom: 0;
left: 30rpx;
padding-bottom: 68rpx;
-
+ z-index: 9999;
.page_footer_qr {
flex: 1;
height: 88rpx;
diff --git a/minipro_standard/pages/index/index.vue b/minipro_standard/pages/index/index.vue
index 6204425..5d46c91 100644
--- a/minipro_standard/pages/index/index.vue
+++ b/minipro_standard/pages/index/index.vue
@@ -14,7 +14,7 @@
<image src="../../static/filter@2x.png" class="img48 ml20" @click="filterAction" mode=""></image>
</view>
<view class="cY mt30">
- <view v-for="item in tagList" :key="item.id" class="sbtn rd8 mr10"
+ <view v-for="item in tagList" :key="item.id" class="tag_item mr10"
:class="searchForm.status==item.id?'sbtn_green':'sbtn_black_rim'" @click="selectType(item.id)">
{{`${item.name}(${item.num})`}}
</view>
@@ -50,7 +50,7 @@
<view class="content">
<u-grid col="2" :border="false">
<u-grid-item v-for="item in types" :key="item.id">
- <view class="ptb20 c9 type-style tc rd10" :class="type===item.id?'sbtn_green':'sbtn_gray'"
+ <view class="ptb20 f26 c9 type-style tc rd10" :class="type===item.id?'sbtn_green':'sbtn_gray'"
@click="type=item.id">{{ item.name }}</view>
</u-grid-item>
</u-grid>
@@ -159,7 +159,6 @@
uni.getSystemInfo({
success: res => {
this.windowHeight = res.windowHeight
-
}
})
this.loadData()
@@ -233,14 +232,7 @@
uni.navigateTo({
url: `/pages/InOperation/InOperation?id=${item.objId}&dbid=${item.id}&type=7`
})
- // router.push({
- // name: 'warehousing',
- // query: {
- // id: item.objId,
- // dbid: item.id,
- // type: 7
- // }
- // })
+
} else if ((item.type === 1 || item.type === 4 || item.type === 6) && item.status === 1) {
if (item.type === 4) { // 璺宠洓瀹屽伐鍏ュ簱璇︽儏
// router.push({
@@ -434,6 +426,19 @@
.bottom-view {
left: 40rpx;
right: 40rpx;
- bottom: 0
+ bottom: 40rpx
+ }
+ .tag_item {
+ min-width: 120rpx;
+ // padding: 0 24rpx;
+ border-radius: 26rpx;
+ text-align: center;
+ flex-shrink: 0;
+ margin-right: 20rpx;
+ border: 1rpx solid #CCCCCC;
+ font-size: 26rpx;
+ font-weight: 400;
+ height: 52rpx;
+ line-height: 52rpx;
}
</style>
diff --git a/minipro_standard/pages/inspectComplete/inspectComplete.vue b/minipro_standard/pages/inspectComplete/inspectComplete.vue
index f38b8c4..92a37f6 100644
--- a/minipro_standard/pages/inspectComplete/inspectComplete.vue
+++ b/minipro_standard/pages/inspectComplete/inspectComplete.vue
@@ -42,7 +42,7 @@
<span class="dw" v-if="info.umodel">{{info.umodel.name}}</span>
</div>
</div>
- <div class="inspection_list_item" @click="selectBad" v-show="form.blsl > 0">
+ <div class="inspection_list_item" @click="selectBad" v-if="form.blsl > 0">
<span>涓嶈壇璇存槑</span>
<div class="right1">
<span :style="form.blsm ? 'color: #000;' : ''">{{ form.blsm ? form.blsm : '鐐瑰嚮閫夋嫨涓嶈壇鍘熷洜'}}</span>
diff --git a/minipro_standard/pages/inspectPatrol/inspectPatrol.vue b/minipro_standard/pages/inspectPatrol/inspectPatrol.vue
index b80a33f..3ff35e8 100644
--- a/minipro_standard/pages/inspectPatrol/inspectPatrol.vue
+++ b/minipro_standard/pages/inspectPatrol/inspectPatrol.vue
@@ -43,7 +43,7 @@
<span class="dw" v-if="info.umodel">{{info.umodel.name}}</span>
</div>
</div>
- <div class="inspection_list_item" @click="selectBad" v-show="form.blsl > 0">
+ <div class="inspection_list_item" @click="selectBad" v-if="Number(form.blsl) > 0">
<span>涓嶈壇璇存槑</span>
<div class="right1">
<span :style="form.blsm ? 'color: #000;' : ''">{{ form.blsm ? form.blsm : '鐐瑰嚮閫夋嫨涓嶈壇鍘熷洜'}}</span>
@@ -54,7 +54,7 @@
<div class="inspection_footer">
<button class="inspection_footer_sub" @click="submit" v-preventReClick>鎻愪氦</button>
</div>
- <u-picker :show="show1" title="璇烽�夋嫨涓嶈壇璇存槑" :columns="columns" @cancel="show1=false" @confirm="badConfirm"></u-picker>
+ <u-picker :show="show1" title="璇烽�夋嫨涓嶈壇璇存槑" :columns="columns" keyName="name" @cancel="show1=false" @confirm="badConfirm"></u-picker>
</view>
</template>
@@ -98,6 +98,7 @@
id: item.id
}
})
+ console.log(bad);
this.columns = [bad]
})
uni.$on('workOrder', (data) => {
diff --git a/minipro_standard/pages/linePatrol/linePatrol.vue b/minipro_standard/pages/linePatrol/linePatrol.vue
index b422379..4192cd9 100644
--- a/minipro_standard/pages/linePatrol/linePatrol.vue
+++ b/minipro_standard/pages/linePatrol/linePatrol.vue
@@ -41,7 +41,7 @@
<span class="dw" v-if="info.umodel">{{info.umodel.name}}</span>
</div>
</div>
- <div class="inspection_list_item" @click="selectBad" v-show="form.blsl > 0">
+ <div class="inspection_list_item" @click="selectBad" v-if="form.blsl > 0">
<span>涓嶈壇璇存槑</span>
<div class="right1">
<span :style="form.blsm ? 'color: #000;' : ''">{{ form.blsm ? form.blsm : '鐐瑰嚮閫夋嫨涓嶈壇鍘熷洜'}}</span>
@@ -52,7 +52,7 @@
<div class="inspection_footer">
<button class="inspection_footer_sub" @click="submit" v-preventReClick>鎻愪氦</button>
</div>
- <u-picker :show="show1" title="璇烽�夋嫨涓嶈壇璇存槑" :columns="columns" @cancel="show1=false" @confirm="badConfirm"></u-picker>
+ <u-picker :show="show1" title="璇烽�夋嫨涓嶈壇璇存槑" :columns="columns" keyName="name" @cancel="show1=false" @confirm="badConfirm"></u-picker>
</view>
</template>
diff --git a/minipro_standard/pages/login/login.vue b/minipro_standard/pages/login/login.vue
index 46d088a..5ff60ab 100644
--- a/minipro_standard/pages/login/login.vue
+++ b/minipro_standard/pages/login/login.vue
@@ -7,15 +7,15 @@
</view>
<view class="bg_w rd8 ptb30 pl40 bbox com-input flex input-height">
<image src="@/static/login_ic_code@2x.png" mode="" class="img40 mr25"></image>
- <u--input placeholder="浼佷笟浠g爜" border="none" v-model="from.companyId"></u--input>
+ <u--input placeholder="浼佷笟浠g爜" border="none" v-model="form.companyId"></u--input>
</view>
<view class="bg_w rd8 ptb30 pl40 bbox mt40 flex input-height">
<image src="@/static/login_ic_phone@2x.png" mode="" class="img40 mr25"></image>
- <u--input placeholder="鎵嬫満鍙�" border="none" v-model="from.username"></u--input>
+ <u--input placeholder="鎵嬫満鍙�" border="none" v-model="form.username"></u--input>
</view>
<view class="bg_w rd8 ptb30 pl40 bbox mt40 flex input-height">
<image src="@/static/login_ic_password@2x.png" mode="" class="img40 mr25"></image>
- <u--input placeholder="瀵嗙爜" border="none" v-model="from.password"></u--input>
+ <u--input placeholder="瀵嗙爜" border="none" password v-model="form.password"></u--input>
</view>
<view class="login-btn mt80" @click="loginAction">绔嬪嵆鐧诲綍</view>
</view>
@@ -26,7 +26,7 @@
export default {
data() {
return {
- from: {
+ form: {
openid: '',
unionid: '',
companyId: '',
@@ -56,8 +56,8 @@
});
}
} else {
- that.from.openid = res.data.openid
- that.from.unionid = res.data.unionid
+ that.form.openid = res.data.openid
+ that.form.unionid = res.data.unionid
}
}
})
@@ -66,10 +66,10 @@
},
methods: {
async loginAction() {
- if (!this.from.companyId) return uni.showToast({ title: '浼佷笟浠g爜涓嶈兘涓虹┖', icon:"error", duration: 2000 });
- if (!this.from.username) return uni.showToast({ title: '鎵嬫満鍙蜂笉鑳戒负绌�', icon:"error", duration: 2000 });
- if (!this.from.password) return uni.showToast({ title: '瀵嗙爜涓嶈兘涓虹┖', icon:"error", duration: 2000 });
- let res = await wxAccountLogin(this.from)
+ if (!this.form.companyId) return uni.showToast({ title: '浼佷笟浠g爜涓嶈兘涓虹┖', icon:"error", duration: 2000 });
+ if (!this.form.username) return uni.showToast({ title: '鎵嬫満鍙蜂笉鑳戒负绌�', icon:"error", duration: 2000 });
+ if (!this.form.password) return uni.showToast({ title: '瀵嗙爜涓嶈兘涓虹┖', icon:"error", duration: 2000 });
+ let res = await wxAccountLogin(this.form)
if (res.code === 200) {
await this.$store.commit('SETSESSION', res.data)
let user = await getUserInfo({})
@@ -122,6 +122,8 @@
}
.com-input {
margin-top: -60px;
+ position: relative;
+ z-index: 2;
}
.login-btn {
height: 98rpx;
diff --git a/minipro_standard/pages/mine/mine.vue b/minipro_standard/pages/mine/mine.vue
index 1fbb9f3..f39a243 100644
--- a/minipro_standard/pages/mine/mine.vue
+++ b/minipro_standard/pages/mine/mine.vue
@@ -192,7 +192,7 @@
width: 350rpx;
height: 88rpx;
background: #F7F7F7;
- border-radius: 8rpx;
+ border-radius: 44rpx;
display: flex;
align-items: center;
justify-content: center;
diff --git a/minipro_standard/pages/workbench/workbench.vue b/minipro_standard/pages/workbench/workbench.vue
index a171433..a301b62 100644
--- a/minipro_standard/pages/workbench/workbench.vue
+++ b/minipro_standard/pages/workbench/workbench.vue
@@ -6,7 +6,7 @@
<span>{{row.label}}</span>
</view>
<div class="menu_list_list">
- <view class="menu_list_item" v-for="item in row.children" :key="item.id" @click="jump(item.url)">
+ <view class="menu_list_item" v-for="item in row.children" :key="item.id" @click="jump(item.urlSec)">
<image :src="item.icon" mode="widthFix" />
<span>{{item.label}}</span>
</view>
@@ -37,6 +37,7 @@
};
},
onLoad() {
+ this.$store.dispatch('getUpcomingNum')
uni.hideTabBar()
},
methods: {
diff --git a/minipro_standard/pages_adjust/components/multipleMaterial.vue b/minipro_standard/pages_adjust/components/multipleMaterial.vue
index 40549be..3d34724 100644
--- a/minipro_standard/pages_adjust/components/multipleMaterial.vue
+++ b/minipro_standard/pages_adjust/components/multipleMaterial.vue
@@ -3,7 +3,7 @@
<view class="material-content bbox p30 rp">
<view class="tc b f24 c2 mb20">閫夋嫨鐗╂枡</view>
<v-Search @searchInput="searchInput" @submit="submit" :isShow="false" placeholder="鎼滅储鐗╂枡鍚嶇О/缂栫爜" />
- <div class="content_total">鍏眥{form.total}}鏉℃暟鎹�</div>
+ <div class="content_total">鍏眥{form.total}}鏉℃暟鎹�12</div>
<view class="scroll-content">
<!-- refresher-enabled="true"
:refresher-triggered="refreshing"
@@ -157,7 +157,7 @@
this.form.page = 0
this.finished = false
this.list = []
- this.onLoad()
+ this.loadData()
},
// 鎼滅储妗�
searchInput(data) {
@@ -165,7 +165,7 @@
this.finished = false
this.list = []
this.form.smodelLabel = data
- this.onLoad()
+ this.loadData()
},
loadData() {
if (!this.finished) {
@@ -177,7 +177,8 @@
model: {
warehouseId: this.warehouseId,
warehouseQualityType: this.warehouseQualityType,
- ids: this.selected.length > 0 ? this.selected.join(',') : ''
+ ids: this.selected.length > 0 ? this.selected.join(',') : '',
+ materialName: this.form.smodelLabel
}
}).then(res => {
if (this.refreshing) {
diff --git a/minipro_standard/pages_adjust/pages/OrderDetail/OrderDetail.vue b/minipro_standard/pages_adjust/pages/OrderDetail/OrderDetail.vue
index 50dc001..5b49724 100644
--- a/minipro_standard/pages_adjust/pages/OrderDetail/OrderDetail.vue
+++ b/minipro_standard/pages_adjust/pages/OrderDetail/OrderDetail.vue
@@ -1,34 +1,25 @@
<template>
<view>
<workOrderInfo :orederMessage="info" />
- <view class="bg_cate">
+ <!-- <view class="bg_cate">
<view @click="clickIten(index)" :class="typeView == index ? 'bg_cate_item active' : 'bg_cate_item'"
v-for="(item, index) in cate" :key="index">{{ item.name }}</view>
- </view>
- <div class="bg_list" v-if="typeView === 0">
+ </view> -->
+ <div class="bg_list">
<div class="bg_list_item">
<div class="bg_list_item_top">
<div class="bg_list_item_top_left">
<div class="bg_list_item_top_left_x bg_m"></div>
<span>鎶曟枡鏄庣粏</span>
</div>
- <div class="bg_list_item_top_right" @click="jumpTL">
- <!-- v-if="proxy.$auth('h5:workorderinput:create') && (info.bomType !== 1 || info.bomType == 0 || !info.bomType)" -->
- <!-- <img src="@/assets/icon/gongdan_ic_shoudong@2x.png" alt="" /> -->
- <!-- <img src="@/static/gongdan_ic_shoudong@2x.ong" alt="" /> -->
- <image src="../../static/gongdan_ic_shoudong@2x.png" class="img28" mode=""></image>
- <span class="cm">鏂板鎶曟枡</span>
- </div>
</div>
<template v-if="feedingData && feedingData.length > 0">
- <u-swipe-action>
- <u-swipe-action-item v-for="(item, index) in feedingData" :key="index" :options="options"
- @click="deleItem(item.id, 'T')">
+ <view>
+ <view v-for="(item, index) in feedingData" :key="index">
<div class="bg_list_item_h">
<div class="bg_list_item_num">
<div class="bg_list_item_num_item">
- <!-- <span>{{item.code}}</span> -->
<div class="bg_list_item_num_item_wl">
<span> {{ item.materialName || '澧欎綋鐮�' }}{{ item.procedureName ? ` | ${item.procedureName}` : ''
}}</span>
@@ -41,25 +32,17 @@
</div>
</div>
<div class="bg_list_item_num_item_sr">
- <!-- :disabled="!proxy.$auth('h5:workorderinput:update')" -->
- <!-- <view class="cY">
- <span>{{item.num}}{{ item.unitName }}</span>
- <image src="../../../static/ic_edit@2x.png" class="img48" mode=""></image>
- <span class="red">鍒犻櫎</span>
- </view> -->
- <view class="cY">
- <input v-model="item.num"
- @blur="change(item.id, item.num, 'T', item.maxNum, item, item.unitAttribute)"
- type="number" />
- <span class="cm">淇濆瓨</span>
+ <view class="cY">
+ <view class="mr10">{{ item.num }}</view>
+ <span v-if="info.umodel">{{ info.umodel.name }}</span>
</view>
-
+
</div>
</div>
</div>
</div>
- </u-swipe-action-item>
- </u-swipe-action>
+ </view>
+ </view>
</template>
<template v-else>
@@ -73,6 +56,10 @@
<div class="bg_list_item_top_left">
<div class="bg_list_item_top_left_x bg_m"></div>
<span>浜у嚭鏄庣粏</span>
+ </div>
+ <div class="bg_list_item_top_right" @click="proRecord">
+ <span style="color: #4275FC;">鏌ョ湅妫�楠岃褰�</span>
+ <u-icon name="arrow-right" color="#4275FC" />
</div>
</div>
<div class="bg_list_item_h">
@@ -80,11 +67,7 @@
<div class="bg_list_item_num_item">
<span>鑹搧鏁皗{ info.umodel ? `(${info.umodel.name})` : '' }}</span>
<div class="bg_list_item_num_item_sr">
- <!-- :disabled="!proxy.$auth('h5:workorderoutput:update')" -->
- <!-- @blur="change(item.id, item.num, 'C', item.maxNum, item)" -->
- <input type="number" v-model="produceFrom.qualified"
- @blur="changeCC('0', produceFrom.qualified, produceFrom.qualifiedId)"
- placeholder="璇疯緭鍏�" />
+ <view class="mr10">{{ produceFrom.qualified }}</view>
<span v-if="info.umodel">{{ info.umodel.name }}</span>
</div>
</div>
@@ -92,193 +75,90 @@
</div>
<div class="bg_list_item_h">
<div class="bg_list_item_num">
- <!-- @blur="change(item.id, item.num, 'C', item.maxNum, item)" -->
<div class="bg_list_item_num_item">
<span>涓嶈壇鏁皗{ info.umodel ? `(${info.umodel.name})` : '' }}</span>
<div class="bg_list_item_num_item_sr">
- <!-- :disabled="!proxy.$auth('h5:workorderoutput:update')" -->
- <!-- @blur="change(item.id, item.num, 'C', item.maxNum, item)" -->
- <input type="number" v-model="produceFrom.undesirable"
- @blur="changeCC('1', produceFrom.undesirable, produceFrom.undesirableId)"
- placeholder="璇疯緭鍏�" />
+ <view class="mr10">{{ produceFrom.undesirable }}</view>
<span v-if="info.umodel">{{ info.umodel.name }}</span>
</div>
</div>
</div>
</div>
- <div class="bg_list_item_h" v-if="produceFrom.undesirable > 0">
- <div class="bg_list_item_num">
- <div class="bg_list_item_num_item" @click="badShow = true">
- <span>涓嶈壇椤�</span>
- <div class="bg_list_item_num_item_sr">
- <span class="wulll" :style="{ color: form.defectiveName ? '#305ED5' : '' }">{{ form.defectiveName ?
- form.defectiveName : '璁剧疆' }}</span>
- <image src="../../../static/ic_ar@2x.png" class="img_ar" mode=""></image>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="bg_plan" @click="TimeShow = true">
- <div class="bg_plan_label">
- <span>鎶ュ伐鏃堕暱</span>
- </div>
- <div class="bg_plan_label_val">
- <span
- :style="{ color: form.durationName ? '#333' : '' }">{{ form.durationName ? form.durationName : '璇烽�夋嫨' }}</span>
- <image src="../../../static/ic_ar@2x.png" class="img_ar" mode=""></image>
- </div>
- </div>
- <div class="bg_list_item" v-if="arrType && arrType.length > 0">
- <div class="bg_list_item_top">
- <div class="bg_list_item_top_left">
- <div class="bg_list_item_top_left_x bg_m"></div>
- <span>宸ヨ祫缁╂晥</span>
- </div>
- </div>
- <div class="bg_list_item_h">
- <div class="bg_list_item_num">
- <div class="bg_list_item_num_item">
- <span>璁′欢鏂瑰紡</span>
- <div class="bg_list_item_num_item_list">
- <div :class="form.index == index ? 'bg_list_item_num_item_list_item active' : 'bg_list_item_num_item_list_item'"
- v-for="(item, index) in arrType" :key="index"
- @click="clickPerformanceType(item, index)">
- {{ item.name }}
- </div>
- </div>
- </div>
- </div>
- <div class="bg_list_item_num">
- <div class="bg_list_item_num_item">
- <span>宸ヨ祫鍗曚环</span>
- <div class="bg_list_item_num_item_sr">
- <span class="color1">{{ (arrType[form.index].salary / 10 / 10).toFixed(2) }}鍏�/{{ arrType[form.index].type ==
- 0 ? '浠�' : '鏃�' }}</span>
- </div>
- </div>
- </div>
- <div class="bg_list_item_num">
- <div class="bg_list_item_num_item">
- <span>棰勮宸ヨ祫</span>
- <div class="bg_list_item_num_item_sr">
- <span class="color1">{{ expectedSalary }}鍏�</span>
- </div>
- </div>
- </div>
- <div class="bg_list_item_num">
- <div class="bg_list_item_num_item">
- <span>杈炬爣鐜�</span>
- <div class="bg_list_item_num_item_sr">
- <span class="color1">{{ complianceRate }}%</span>
- </div>
- </div>
- </div>
- </div>
- </div>
-
+ </div>
+ <div class="bg_list_item">
+ <div class="bg_list_item_top">
+ <div class="bg_list_item_top_left">
+ <div class="bg_list_item_top_left_x bg_m"></div>
+ <span>鐢熶骇鐐规</span>
+ </div>
+ </div>
+ <template v-if="djData && djData.length > 0">
+ <div class="details_dj">
+
+ <div class="details_dj_list">
+ <scroll-view scroll-y="true" refresher-enabled="true" @scrolltolower="getLists">
+ <view v-for="(item, index) in djData" :key="index">
+ <div class="details_dj_list_item">
+ <span>{{ item.attrName }}锛歿{ item.val }}</span>
+ <span>{{ item.userName }} {{ item.createTime }}</span>
+ </div>
+ </view>
+ </scroll-view>
+ </div>
+ </div>
+ </template>
+ <template v-else>
+ <div class="kong">
+ <span>鏆傛棤鏁版嵁</span>
+ </div>
+ </template>
+ </div>
</div>
- <div class="details_dj" v-if="typeView === 1">
-
- <div class="details_dj_list">
- <scroll-view scroll-y="true" refresher-enabled="true" @scrolltolower="getLists">
- <u-swipe-action v-for="(item, index) in djData" :key="index">
- <u-swipe-action-item :options="options" @click="dele(item.id)">
- <div class="details_dj_list_item">
- <span>{{ item.attrName }}锛歿{ item.val }}</span>
- <span>{{ item.userName }} {{ item.createTime }}</span>
- </div>
- </u-swipe-action-item>
- </u-swipe-action>
- </scroll-view>
- <!-- <u-swipe-action>
- <u-swipe-action-item v-for="(item, index) in djData" :key="index" :options="options"
- @click="dele(item.id)">
- <div class="details_dj_list_item">
- <span>{{ item.attrName }}锛歿{ item.val }}</span>
- <span>{{ item.userName }} {{ item.createTime }}</span>
- </div>
- </u-swipe-action-item>
- </u-swipe-action> -->
- </div>
- </div>
- <!-- v-if="info.status === 2 || info.procedureNeedcheck === 1" -->
- <template>
- <div class="bh_zw"></div>
- <div class="bg_footer bg_f7">
- <div class="bg_footer_submit bg_m" v-if="typeView == 0" @click="submit">纭鎶ュ伐</div>
- <!-- proxy.$auth('h5:workorder:processRecord') && -->
- <div class="bg_footer_submit1" @click="jumpdj" v-if="typeView == 1">
- <image src="../../../static/gongdan_ic_shoudong@2x.png" class="fornt-img" mode=""></image>
- <span>鏂板鐐规</span>
- </div>
- </div>
- </template>
- <u-datetime-picker :show="TimeShow" @cancel="TimeShow=false" @confirm="timeConfirm" v-model="form.time"
- mode="time"></u-datetime-picker>
- <u-popup :show="badShow" @close="badShow=false" :round="8" closeable zIndex="20000">
- <view class="rp p40 contanir">
- <view class="c2 b tc">涓嶈壇椤�</view>
- <view class="content bl_list">
- <div class="bl_list_item" v-for="(item, i) in cateList" :key="i" @click="changeChecked(i)">
- <div class="bl_list_item_left">
- <u-checkbox-group>
- <u-checkbox :checked="item.active" :label="item.name"
- :name="item.name">
- </u-checkbox>
- </u-checkbox-group>
- </div>
- <div class="bl_list_item_right">
- <input type="number" @click.stop v-model="item.num" placeholder="0" />
- </div>
- </div>
- </view>
- <view class="flex ap tc bottom-view">
- <view class="fx1 ml20 ptb20 sbtn_green" @click="confirm">纭畾</view>
- </view>
- </view>
- </u-popup>
+
</view>
</template>
<script>
- import workOrderInfo from '@/components/workOrderInfo.vue'
- import {
- getBarcodeContent,
- queryById,
- getOrocessRecord,
- deleteCT,
- updateById,
- comfirmDone,
- comfirmDoneStandard,
- getListByCondition,
- allForStandard,
- pageDJ,
- deletedj,
- dealWorkorderRecordStandard,
- getWorkorderRecordListStandard,
- createMaterial,
- createMaterialStandard
- } from '@/util/api/WorkOrderAPI'
- import {
- categoryExtList,
- queryOne,
- queryList
- } from '@/util/api/PlanningAPI'
- import { REGULAR } from '@/util/utils'
+ import workOrderInfo from '@/components/workOrderInfo.vue'
+ import {
+ getBarcodeContent,
+ queryById,
+ getOrocessRecord,
+ deleteCT,
+ updateById,
+ comfirmDone,
+ comfirmDoneStandard,
+ getListByCondition,
+ allForStandard,
+ pageDJ,
+ deletedj,
+ dealWorkorderRecordStandard,
+ getWorkorderRecordListStandard,
+ createMaterial,
+ createMaterialStandard
+ } from '@/util/api/WorkOrderAPI'
+ import {
+ categoryExtList,
+ queryOne,
+ queryList
+ } from '@/util/api/PlanningAPI'
+ import {
+ REGULAR
+ } from '@/util/utils'
export default {
components: {
workOrderInfo
},
data() {
- return {
+ return {
workorderId: '',
cate: [{
name: '鐢熶骇'
},
{
name: '鐐规'
- }],
+ }
+ ],
form: {
time: '',
efective: [],
@@ -287,7 +167,7 @@
duration: 0,
type: 0,
index: 0
- },
+ },
info: {},
TimeShow: false,
badShow: false,
@@ -308,21 +188,22 @@
undesirable: 5 // 涓嶈壇
},
djData: [],
- cateList: [],
+ cateList: [],
finished: true,
};
- },
- onLoad(obj) {
- this.workorderId = obj.id
- this.queryByIds()
- this.getOrocessRecords()
- this.getData()
- uni.$on('spotAdd', () => {
- if (this.typeView == 1) {
- this.pages.page = 1
- this.pageDJs()
- }
- })
+ },
+ onLoad(obj) {
+ this.workorderId = obj.id
+ this.queryByIds()
+ this.getOrocessRecords()
+ this.getData()
+ this.getOrocessRecordCC()
+ uni.$on('spotAdd', () => {
+ if (this.typeView == 1) {
+ this.pages.page = 1
+ this.pageDJs()
+ }
+ })
},
computed: {
expectedSalary() {
@@ -364,36 +245,36 @@
// return Number(from.qualified) * infoBox.value.salary;
}
}
- },
+ },
methods: {
- getData() {
- categoryExtList({
- cateType: "3"
- }).then(res => {
- if (res.code === 200) {
- res.data.forEach(item => {
- item.active = false
- item.num = ''
- })
- this.cateList = res.data
- }
- })
+ getData() {
+ categoryExtList({
+ cateType: "3"
+ }).then(res => {
+ if (res.code === 200) {
+ res.data.forEach(item => {
+ item.active = false
+ item.num = ''
+ })
+ this.cateList = res.data
+ }
+ })
},
clickIten(index) {
- this.typeView = index
- if (this.typeView == 1) {
- this.pages.page = 1
- this.finished = true
- this.pageDJs()
+ this.typeView = index
+ if (this.typeView == 1) {
+ this.pages.page = 1
+ this.finished = true
+ this.pageDJs()
}
- },
- getLists() {
- if (!this.finished) {
- return
- }
- this.finished = false
- this.pages.page += 1
- this.pageDJs()
+ },
+ getLists() {
+ if (!this.finished) {
+ return
+ }
+ this.finished = false
+ this.pages.page += 1
+ this.pageDJs()
},
timeConfirm({
value
@@ -418,166 +299,183 @@
if (type === 'T') {
if (unitAttribute == 0 && num != '') {
if (!REGULAR.positiveInteger.test(num)) {
- obj.num = obj.ynum
+ obj.num = obj.ynum
uni.$u.toast('鍙兘杈撳叆姝f暣鏁�')
return
}
}
if (unitAttribute == 1 && num != '') {
- if (!REGULAR.number.test(num)) {
+ if (!REGULAR.number.test(num)) {
uni.$u.toast('鍙兘杈撳叆姝f暣鏁版垨灏忔暟锛堟渶澶氬洓浣嶏級')
-
+
obj.num = obj.ynum
return
}
}
if (num > maxNum) {
- obj.num = obj.ynum
+ obj.num = obj.ynum
uni.$u.toast('瓒呭嚭宸ヨ鎬绘暟')
-
+
return
}
} else if (type === 'C' && num > info.value.planNum) {
- obj.num = obj.ynum
+ obj.num = obj.ynum
uni.$u.toast('浜у嚭鏁伴噺涓嶈兘瓒呰繃璁″垝鏁伴噺')
-
+
return
}
-
+
},
clickPerformanceType(item, index) {
this.form.index = index
this.form.type = item.type
},
- submit() {
-
+ submit() {
+
},
- jumpdj() {
+ jumpdj() {
+ uni.navigateTo({
+ url: `/pages_adjust/pages/spotCheck/spotCheck?id=${this.workorderId}`
+ })
+ },
+ proRecord() {
uni.navigateTo({
- url: `/pages_adjust/pages/spotCheck/spotCheck?id=${this.workorderId}`
+ url: `/pages_inspect/pages/InspectionRecords/InspectionRecords?id=${this.workorderId}`
})
},
- pageDJs() {
- pageDJ({
- capacity: this.pages.capacity,
- page: this.pages.page,
- model: {
- workorderId: this.workorderId
- }
- }).then(res => {
- let {data} = res
- if (data.page == 1) {
- this.djData = []
- }
- this.djData.push(...data.records)
- // loading.value = false
- }).catch(err => {
- // loading.value = false
- // finished.value = true
- })
- .finally(() => {
- this.finished = true
- })
+ pageDJs() {
+ pageDJ({
+ capacity: this.pages.capacity,
+ page: this.pages.page,
+ model: {
+ workorderId: this.workorderId
+ }
+ }).then(res => {
+ let {
+ data
+ } = res
+ if (data.page == 1) {
+ this.djData = []
+ }
+ this.djData.push(...data.records)
+ // loading.value = false
+ }).catch(err => {
+ // loading.value = false
+ // finished.value = true
+ })
+ .finally(() => {
+ this.finished = true
+ })
},
dele(id) {
deletedj(id)
- .then(res => {
- if (res.code === 200) {
- this.finished = false
- this.pages.page = 1
- this.pageDJs()
- }
- })
+ .then(res => {
+ if (res.code === 200) {
+ this.finished = false
+ this.pages.page = 1
+ this.pageDJs()
+ }
+ })
},
- confirm() {
- let isOpen = false
- this.cateList.forEach((item, index) => {
- if (item.active) {
- isOpen = true
- }
- })
- if (!isOpen) {
- uni.showToast({
- title: '璇烽�夋嫨涓嶈壇椤�',
- duration: 2000,
- icon: 'none'
- })
- return
- }
- let arr = []
- let total = 0
- let name = ''
- this.cateList.forEach((item, index) => {
- if (item.active) {
- if (item.num <= 0) {
- uni.showToast({
- title: '涓嶈壇鏁伴噺蹇呴』澶т簬0',
- duration: 2000,
- icon: 'none'
- })
- return
- }
- total = total += item.num
- arr.push(item)
- name += item.name + item.num + '锛�'
- }
- })
- if (total != Number(this.produceFrom.undesirable)) {
- uni.showToast({
- title: '涓嶈壇鏁板繀椤荤瓑浜庝骇鍑轰笉鑹暟',
- duration: 2000,
- icon: 'none'
- })
- return
- }
- this.form.defective = arr
+ confirm() {
+ let isOpen = false
+ this.cateList.forEach((item, index) => {
+ if (item.active) {
+ isOpen = true
+ }
+ })
+ if (!isOpen) {
+ uni.showToast({
+ title: '璇烽�夋嫨涓嶈壇椤�',
+ duration: 2000,
+ icon: 'none'
+ })
+ return
+ }
+ let arr = []
+ let total = 0
+ let name = ''
+ this.cateList.forEach((item, index) => {
+ if (item.active) {
+ if (item.num <= 0) {
+ uni.showToast({
+ title: '涓嶈壇鏁伴噺蹇呴』澶т簬0',
+ duration: 2000,
+ icon: 'none'
+ })
+ return
+ }
+ total = total += item.num
+ arr.push(item)
+ name += item.name + item.num + '锛�'
+ }
+ })
+ if (total != Number(this.produceFrom.undesirable)) {
+ uni.showToast({
+ title: '涓嶈壇鏁板繀椤荤瓑浜庝骇鍑轰笉鑹暟',
+ duration: 2000,
+ icon: 'none'
+ })
+ return
+ }
+ this.form.defective = arr
this.form.defectiveName = name
this.badShow = false
},
changeChecked(i) {
this.cateList[i].active = !this.cateList[i].active
- },
- queryByIds() {
- queryById(this.workorderId)
- .then(res => {
- this.info = res.data
- queryList({
- deleted: 0,
- departId: res.data.factoryId,
- materialId: res.data.materialId,
- procedureId: res.data.procedureId
- }).then(result => {
- if (result.code === 200) {
- if (result.data && result.data.length > 0) {
- result.data.forEach((item, index) => {
- item.name = item.type == 0 ? '璁′欢' : '璁℃椂'
- item.id = item.type
- item.active = index == 0
- })
- this.arrType = result.data
- } else {
- this.arrType = []
- }
- }
- })
- })
- },
- getOrocessRecords() {
- this.feedingData = []
- allForStandard({
- workorderId: this.workorderId,
- type: 0
- }).then(res => {
- if (res.code === 200) {
- this.feedingData = res.data
- }
- })
- },
- jumpTL() {
- uni.navigateTo({
- // url: ''
- url: `/pages_adjust/pages/manualFeed/manualFeed?id=${this.workorderId}`
- })
+ },
+ queryByIds() {
+ queryById(this.workorderId)
+ .then(res => {
+ this.info = res.data
+ queryList({
+ deleted: 0,
+ departId: res.data.factoryId,
+ materialId: res.data.materialId,
+ procedureId: res.data.procedureId
+ }).then(result => {
+ if (result.code === 200) {
+ if (result.data && result.data.length > 0) {
+ result.data.forEach((item, index) => {
+ item.name = item.type == 0 ? '璁′欢' : '璁℃椂'
+ item.id = item.type
+ item.active = index == 0
+ })
+ this.arrType = result.data
+ } else {
+ this.arrType = []
+ }
+ }
+ })
+ })
+ },
+ getOrocessRecords() {
+ this.feedingData = []
+ allForStandard({
+ workorderId: this.workorderId,
+ type: 0
+ }).then(res => {
+ if (res.code === 200) {
+ this.feedingData = res.data
+ }
+ })
+ },
+ getOrocessRecordCC() {
+ getWorkorderRecordListStandard({
+ workorderId: this.workorderId
+ }).then(res => {
+ if (res.data.length > 0) {
+ this.produceFrom.qualified = res.data[0].qualifiedNum
+ this.produceFrom.undesirable = res.data[0].unqualifiedNum
+ }
+ })
+ },
+ jumpTL() {
+ uni.navigateTo({
+ // url: ''
+ url: `/pages_adjust/pages/manualFeed/manualFeed?id=${this.workorderId}`
+ })
}
}
}
@@ -838,9 +736,9 @@
display: flex;
align-items: center;
justify-content: flex-end;
-
+ font-size: 28rpx;
.color1 {
- font-size: 28rpx;
+
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #333333;
diff --git a/minipro_standard/pages_adjust/pages/manualFeed/manualFeed.vue b/minipro_standard/pages_adjust/pages/manualFeed/manualFeed.vue
index e500034..418c60b 100644
--- a/minipro_standard/pages_adjust/pages/manualFeed/manualFeed.vue
+++ b/minipro_standard/pages_adjust/pages/manualFeed/manualFeed.vue
@@ -48,6 +48,11 @@
</div>
</u-swipe-action-item>
</u-swipe-action>
+ <view class="" style="height: 88rpx;"></view>
+ <u-safe-bottom></u-safe-bottom>
+ <div class="tl_footer">
+ <button class="tl_footer_submit" v-preventReClick @click="submit">鎻愪氦</button>
+ </div>
<SelectMaterial ref="selectMaterial" @selectAction="getValue" />
<!-- <SelectMultipleMaterial ref="selectMultipleMaterial" @selected="getMaterails"/> -->
</view>
@@ -171,7 +176,7 @@
this.materialList[index].num = ''
}
},
- getValue(v) {
+ getValue(item) {
for (let i = 0; i < this.materialList.length; i++) {
if (item.id === this.materialList[i].id) {
uni.$u.toast({
@@ -190,9 +195,42 @@
this.materialList[this.index].qualityType = item.qualityType
this.materialList[this.index].unitAttribute = item.unitAttribute
},
- // getMaterails({materials}) {
- // console.log(item);
- // }
+ submit() {
+ let temp = this.materialList.findIndex(item => !item.id || !item.num)
+ if (temp != -1) {
+ uni.$u.toast(`璇峰厛瀹屽杽绗�${temp + 1}鏉℃姇鏂欎俊鎭痐)
+ return
+ }
+ let total = this.materialList.reduce((accumulator, currentValue) => accumulator + Number(currentValue.num),
+ 0)
+ console.log(total);
+ if (this.info.bomType != 1 && this.info.hasBom != 1) {
+ if (total > this.info.planNum) {
+ uni.$u.toast(`鎶曟枡鏁伴噺涓嶈兘澶т簬璁″垝鏁伴噺`)
+ return
+ }
+ }
+ let recordList = this.materialList.map(item => {
+ return {
+ wstockId: item.id,
+ num: item.num
+ }
+ })
+ createMaterialStandard({
+ id: this.workorderId,
+ recordList
+ }).then(res => {
+ if (res.code === 200) {
+ // Toast.success({ message: '鎶曟枡鎴愬姛', duration: 2000, forbidClick: true })
+ // setTimeout(() => {
+ // router.go(-1)
+ // }, 2000)
+ uni.$u.toast(`鎶曟枡鎴愬姛`)
+ uni.$emit('addMaterial')
+ uni.navigateBack()
+ }
+ })
+ }
}
}
</script>
@@ -341,9 +379,10 @@
width: 100%;
position: fixed;
bottom: 0;
- left: 0;
- padding: 0 30rpx 68rpx 30rpx;
+ padding: 0 30rpx calc(env(safe-area-inset-bottom) + 20rpx);
box-sizing: border-box;
+ z-index: 999;
+ background-color: #fff;
.tl_footer_submit {
width: 690rpx;
diff --git a/minipro_standard/pages_adjust/pages/workOrder/workOrder.vue b/minipro_standard/pages_adjust/pages/workOrder/workOrder.vue
index 512aa00..3425d8c 100644
--- a/minipro_standard/pages_adjust/pages/workOrder/workOrder.vue
+++ b/minipro_standard/pages_adjust/pages/workOrder/workOrder.vue
@@ -1,7 +1,7 @@
<template>
<view class="content p30">
<div class="content_search">
- <v-Search @searchInput="searchInput" @submit="submit" @reset="reset" :isShow="true"
+ <v-Search @searchInput="searchForm.mixParam" @submit="search" @reset="reset" :isShow="true"
placeholder="鎼滅储宸ュ崟缂栫爜/宸ュ簭鍚嶇О">
<template v-slot:content>
<div class="Search_item">
@@ -28,7 +28,7 @@
<div class="content_list_item" v-for="(item, i) in list" :key="i" @click="jump(item)">
<div class="content_list_item_top">
<div class="content_list_item_top_left">
- <span v-if="item.mmodel">{{item.mmodel.name}} | {{item.procedureName}}</span>
+ <span class="f32" v-if="item.mmodel">{{item.mmodel.name}} | {{item.procedureName}}</span>
<div class="content_list_item_top_left_tag" v-if="item.urgent">浼樺厛{{item.urgent}}</div>
<div class="content_list_item_top_left_tag backgreen" v-if="item.type === 0">姝e父</div>
<div class="content_list_item_top_left_tag backyellow" v-if="item.type === 2">杩斿伐杩斾慨</div>
@@ -45,7 +45,7 @@
<span class="green" v-if="item.status === 7">杩涜涓�</span>
</div>
</div>
- <span>宸ュ崟缂栧彿: {{item.code}}</span>
+ <span class="f24">宸ュ崟缂栧彿: {{item.code}}</span>
<div class="content_list_item_content">
<div class="content_list_item_content_item">
<div class="content_list_item_content_item_label">鐗╂枡缂栫爜锛�</div>
@@ -79,7 +79,9 @@
</div>
</div>
</scroll-view>
- <u-calendar :show="isOpenDate" mode="range" @confirm="dateConfirm"></u-calendar>
+ <!-- <u-calendar :show="isOpenDate" mode="range" @confirm="dateConfirm"></u-calendar> -->
+ <l-calendar :lunar="false" v-model="isOpenDate" @change="onConfirm" :isRange="true" activeBgColor="#305ED5"
+ rangeColor="#305ED5" rangeBgColor="rgba(48, 80, 213, 0.1)"></l-calendar>
</view>
</template>
@@ -89,7 +91,8 @@
import {
getList,
pageCount
- } from '@/util/api/WorkOrderAPI.js'
+ } from '@/util/api/WorkOrderAPI.js'
+ import { gsdate } from '@/util/utils.js'
export default {
components: {
vSearch,
@@ -119,7 +122,7 @@
searchForm: {
mixParam: '',
startDate: '',
- endDate: '',
+ endDate: gsdate(new Date()),
statusList: []
},
page: {
@@ -134,7 +137,18 @@
this.pageCounts()
this.loadData()
},
- methods: {
+ methods: {
+ reset() {
+ this.searchForm = {
+ mixParam: '',
+ startDate: '',
+ endDate: gsdate(new Date()),
+ statusList: []
+ }
+ this.page.page = 1
+ this.pageCounts()
+ this.loadData()
+ },
loadData() {
getList({
@@ -163,7 +177,7 @@
pageCounts() {
pageCount({
...this.searchForm,
- endDate: this.searchForm.endDate ? (this.searchForm.endDate + ' 23:59:59') : '',
+ endDate: this.searchForm.endDate || '',
statusList: this.searchForm.statusList.length === 0 ? this.tagList[0].id : this.searchForm
.statusList
}).then(res => {
@@ -194,6 +208,10 @@
this.triggered = true;
this.page.page = 1
this.loadData()
+ },
+ search() {
+ this.page.page = 1
+ this.loadData()
},
jump(item) {
// uni.navigateTo({
diff --git a/minipro_standard/pages_adjust/pages/workOrderReporting/workOrderReporting.vue b/minipro_standard/pages_adjust/pages/workOrderReporting/workOrderReporting.vue
index 192b5f4..7f7965e 100644
--- a/minipro_standard/pages_adjust/pages/workOrderReporting/workOrderReporting.vue
+++ b/minipro_standard/pages_adjust/pages/workOrderReporting/workOrderReporting.vue
@@ -189,7 +189,7 @@
</div>
</div>
<!-- v-if="info.status === 2 || info.procedureNeedcheck === 1" -->
- <template>
+ <template v-if="info.status === 2 || info.procedureNeedcheck === 1">
<div class="bh_zw"></div>
<div class="bg_footer bg_f7">
<div class="bg_footer_submit bg_m" v-if="typeView == 0" @click="submit">纭鎶ュ伐</div>
@@ -247,8 +247,10 @@
categoryExtList,
queryOne,
queryList
- } from '@/util/api/PlanningAPI'
- import { REGULAR } from '@/util/utils'
+ } from '@/util/api/PlanningAPI'
+ import {
+ REGULAR
+ } from '@/util/utils'
export default {
components: {
workOrderInfo
@@ -291,7 +293,7 @@
undesirableId: '',
undesirable: '' // 涓嶈壇
},
- triggered: false,
+ triggered: false,
finished: true,
djData: [],
cateList: [],
@@ -306,12 +308,15 @@
this.workorderId = obj.id
this.queryByIds()
this.getOrocessRecords()
- this.getData()
- uni.$on('spotAdd', () => {
- if (this.typeView == 1) {
- this.pages.page = 1
- this.pageDJs()
- }
+ this.getData()
+ uni.$on('spotAdd', () => {
+ if (this.typeView == 1) {
+ this.pages.page = 1
+ this.pageDJs()
+ }
+ })
+ uni.$on('addMaterial', () => {
+ this.getOrocessRecords()
})
},
computed: {
@@ -410,7 +415,7 @@
},
clickIten(index) {
this.typeView = index
- if (this.typeView == 1) {
+ if (this.typeView == 1) {
this.pages.page = 1
this.pageDJs()
}
@@ -514,67 +519,71 @@
this.form.index = index
this.form.type = item.type
},
- submit() {
- let createUnqualifiedDTOList = this.form.defective.map((item) => {
- return {
- categoryId: item.id,
- unQualifiedNum: item.num
- }
- })
- let createWorkorderRecordDTO = {
- workorderId: this.workorderId,
- duration: this.form.duration ? this.form.duration : 0,
- qualifiedNum: this.produceFrom.qualified ? this.produceFrom.qualified : 0,
- unQualifiedNum: this.produceFrom.undesirable ? this.produceFrom.undesirable : 0
- }
- // id: route.query.id
- comfirmDoneStandard({
- createUnqualifiedDTOList,
- createWorkorderRecordDTO
- }).then(res => {
- if (res.code === 200) {
- uni.$u.toast('鎶ュ伐鎴愬姛')
- setTimeout(() => {
- uni.navigateBack({ data: 2})
- }, 2000)
- }
- })
+ submit() {
+ let createUnqualifiedDTOList = this.form.defective.map((item) => {
+ return {
+ categoryId: item.id,
+ unQualifiedNum: item.num
+ }
+ })
+ let createWorkorderRecordDTO = {
+ workorderId: this.workorderId,
+ duration: this.form.duration ? this.form.duration : 0,
+ qualifiedNum: this.produceFrom.qualified ? this.produceFrom.qualified : 0,
+ unQualifiedNum: this.produceFrom.undesirable ? this.produceFrom.undesirable : 0
+ }
+ // id: route.query.id
+ comfirmDoneStandard({
+ createUnqualifiedDTOList,
+ createWorkorderRecordDTO
+ }).then(res => {
+ if (res.code === 200) {
+ uni.$u.toast('鎶ュ伐鎴愬姛')
+ setTimeout(() => {
+ uni.navigateBack({
+ data: 2
+ })
+ }, 2000)
+ }
+ })
},
jumpdj() {
uni.navigateTo({
url: `/pages_adjust/pages/spotCheck/spotCheck?id=${this.workorderId}`
})
- },
- getLists() {
- if (!this.finished) {
- return
- }
- this.finished = false
- this.pages.page += 1
- this.pageDJs()
},
- pageDJs() {
-
+ getLists() {
+ if (!this.finished) {
+ return
+ }
+ this.finished = false
+ this.pages.page += 1
+ this.pageDJs()
+ },
+ pageDJs() {
+
pageDJ({
- capacity: this.pages.capacity,
- page: this.pages.page,
- model: {
- workorderId: this.workorderId
- }
- }).then(res => {
- let {data} = res
- if (data.page == 1) {
- this.djData = []
- }
- this.djData.push(...data.records)
- // loading.value = false
- }).catch(err => {
- // loading.value = false
- // finished.value = true
- })
- .finally(() => {
- this.finished = true
- })
+ capacity: this.pages.capacity,
+ page: this.pages.page,
+ model: {
+ workorderId: this.workorderId
+ }
+ }).then(res => {
+ let {
+ data
+ } = res
+ if (data.page == 1) {
+ this.djData = []
+ }
+ this.djData.push(...data.records)
+ // loading.value = false
+ }).catch(err => {
+ // loading.value = false
+ // finished.value = true
+ })
+ .finally(() => {
+ this.finished = true
+ })
},
dele(id) {
deletedj(id)
@@ -639,6 +648,27 @@
// url: ''
url: `/pages_adjust/pages/manualFeed/manualFeed?id=${this.workorderId}`
})
+ },
+ deleItem(id, type) {
+ uni.showModal({
+ title: '鎻愮ず',
+ content: '纭畾鍒犻櫎姝ゆ潯璁板綍鍚楋紵',
+ success: (res) => {
+ if (res.confirm) {
+ console.log('鐢ㄦ埛鐐瑰嚮纭畾');
+ deleteCT(id)
+ .then(res => {
+ this.getOrocessRecords()
+ // if (type === 'C') {
+ // this.getOrocessRecordCC()
+ // } else if (type === 'T') {
+ // this.getOrocessRecords()
+ // }
+ })
+ .catch(err => {})
+ }
+ }
+ })
}
}
}
diff --git a/minipro_standard/uni.scss b/minipro_standard/uni.scss
index 04138e5..caaba55 100644
--- a/minipro_standard/uni.scss
+++ b/minipro_standard/uni.scss
@@ -86,3 +86,15 @@
$uni-font-size-subtitle:26px;
$uni-color-paragraph: #3F536E; // 鏂囩珷娈佃惤棰滆壊
$uni-font-size-paragraph:15px;
+
+.backgreen {
+ background: $nav-stateColor2 !important;
+}
+
+.backyellow {
+ background: $nav-stateColor5 !important;
+}
+
+.backred {
+ background: $nav-stateColor4 !important;
+}
\ No newline at end of file
diff --git a/minipro_standard/uni_modules/l-calendar/components/l-calendar/l-calendar.vue b/minipro_standard/uni_modules/l-calendar/components/l-calendar/l-calendar.vue
index cd1ea4a..544c2bc 100644
--- a/minipro_standard/uni_modules/l-calendar/components/l-calendar/l-calendar.vue
+++ b/minipro_standard/uni_modules/l-calendar/components/l-calendar/l-calendar.vue
@@ -528,7 +528,7 @@
left: 0;
right: 0;
bottom: 0;
- z-index: 9999;
+ z-index: 99999;
visibility: hidden;
transform: translate3d(0, 100%, 0);
transform-origin: center;
diff --git a/minipro_standard/util/request/index.js b/minipro_standard/util/request/index.js
index 9bd5596..7bf64c8 100644
--- a/minipro_standard/util/request/index.js
+++ b/minipro_standard/util/request/index.js
@@ -1,5 +1,6 @@
// 寮曞叆閰嶇疆
-import { baseUrl } from '@/common/config'
+import { baseUrl } from '@/common/config'
+console.log(baseUrl);
// 鍒濆鍖栬姹傞厤缃�
uni.$u.http.setConfig((defaultConfig) => {
/* defaultConfig 涓洪粯璁ゅ叏灞�閰嶇疆 */
diff --git a/minipro_standard/util/request/requestInterceptors.js b/minipro_standard/util/request/requestInterceptors.js
index fa7a17c..e9b5240 100644
--- a/minipro_standard/util/request/requestInterceptors.js
+++ b/minipro_standard/util/request/requestInterceptors.js
@@ -3,7 +3,8 @@
* @param {Object} http
*/
module.exports = (vm) => {
- uni.$u.http.interceptors.request.use((config) => { // 鍙娇鐢╝sync await 鍋氬紓姝ユ搷浣�
+ uni.$u.http.interceptors.request.use((config) => { // 鍙娇鐢╝sync await 鍋氬紓姝ユ搷浣�
+ console.log(config);
if (vm.$store.state.session) {
config.header['Cookie'] = 'eva-auth-token=' + vm.$store.state.session
}
diff --git a/platform_web/.env.development b/platform_web/.env.development
index 797c589..46d9e64 100644
--- a/platform_web/.env.development
+++ b/platform_web/.env.development
@@ -22,5 +22,5 @@
#VUE_APP_BASE_URL = 'http://192.168.0.36:10021/'
#鍒樼纾婃湰鍦�
-# VUE_APP_BASE_URL = 'http://192.168.0.18:10021/'
+VUE_APP_BASE_URL = 'http://192.168.0.18:10021/'
# VUE_APP_BASE_URL = 'https://dmtest.ahapp.net/doumeeplant_api/'
\ No newline at end of file
diff --git a/platform_web/src/components/system/menu/OperaMenuH5Window.vue b/platform_web/src/components/system/menu/OperaMenuH5Window.vue
index 0c2c453..bd851f5 100644
--- a/platform_web/src/components/system/menu/OperaMenuH5Window.vue
+++ b/platform_web/src/components/system/menu/OperaMenuH5Window.vue
@@ -14,8 +14,11 @@
<el-form-item label="鑿滃崟鍚嶇О" prop="name" required>
<el-input v-model="form.name" placeholder="璇疯緭鍏ヨ彍鍗曞悕绉�" v-trim maxlength="50"/>
</el-form-item>
- <el-form-item label="璁块棶璺緞" prop="path">
+ <el-form-item label="h5璁块棶璺緞" prop="path">
<el-input v-model="form.path" placeholder="璇疯緭鍏ヨ闂矾寰�" v-trim maxlength="200"/>
+ </el-form-item>
+ <el-form-item label="灏忕▼搴忚闂矾寰�" prop="pathSec">
+ <el-input v-model="form.pathSec" placeholder="璇疯緭鍏ヨ闂矾寰�" v-trim maxlength="200"/>
</el-form-item>
<el-form-item label="鍥炬爣" prop="icon" class="form-item-icon">
<div style="display: flex;">
@@ -69,6 +72,7 @@
parentId: null,
name: '',
path: '',
+ pathSec: '',
icon: '',
fullIcon: '',
remark: '',
diff --git a/platform_web/src/views/system/menuH5.vue b/platform_web/src/views/system/menuH5.vue
index b023771..ebae085 100644
--- a/platform_web/src/views/system/menuH5.vue
+++ b/platform_web/src/views/system/menuH5.vue
@@ -27,7 +27,8 @@
<template v-else>鏈缃�</template>
</template>
</el-table-column>
- <el-table-column prop="path" label="璁块棶璺緞" align="center" min-width="140px"></el-table-column>
+ <el-table-column prop="path" label="h5璁块棶璺緞" align="center" min-width="140px"></el-table-column>
+ <el-table-column prop="pathSec" label="灏忕▼搴忚闂矾寰�" align="center" min-width="140px"></el-table-column>
<el-table-column prop="remark" label="澶囨敞" align="center" min-width="120px"></el-table-column>
<el-table-column prop="createUser" label="鍒涘缓浜�" align="center" min-width="100px">
<template slot-scope="{row}">{{row.createUserInfo == null ? '' : row.createUserInfo.username}}</template>
--
Gitblit v1.9.3