|
@@ -2,45 +2,26 @@
|
|
<view class="wrap">
|
|
<view class="wrap">
|
|
<view class='content1'>
|
|
<view class='content1'>
|
|
<view class='row'>
|
|
<view class='row'>
|
|
- <view class="left">鲅鱼圈库</view>
|
|
|
|
- <!-- <view class="right">鲅鱼圈库</view> -->
|
|
|
|
|
|
+ <view class="left">{{dataList.warehouseName}}</view>
|
|
</view>
|
|
</view>
|
|
<view class='row '>
|
|
<view class='row '>
|
|
- <textarea placeholder="请输入仓库信息" class="textarea" maxlength="2000" v-model="textareaValue"></textarea>
|
|
|
|
- <view class="textarea-bottom">{{textareaValue?textareaValue.length:'0'}}/2000字</view>
|
|
|
|
|
|
+ <textarea placeholder="请输入仓库信息" class="textarea" maxlength="2000"
|
|
|
|
+ v-model="dataList.acquisitionInformation" disabled></textarea>
|
|
|
|
+ <view class="textarea-bottom">
|
|
|
|
+ {{dataList.acquisitionInformation?dataList.acquisitionInformation.length:'0'}}/2000字</view>
|
|
</view>
|
|
</view>
|
|
<view class='row content-item'>
|
|
<view class='row content-item'>
|
|
<!-- <u-checkbox activeColor="#19be6b" v-model="value" @change="checkBoxChange">显示在易粮易运收购信息中</u-checkbox> -->
|
|
<!-- <u-checkbox activeColor="#19be6b" v-model="value" @change="checkBoxChange">显示在易粮易运收购信息中</u-checkbox> -->
|
|
显示在易粮易运收购信息中
|
|
显示在易粮易运收购信息中
|
|
<view class="right">
|
|
<view class="right">
|
|
- <u-switch v-model="checked" active-color="#22C572" inactive-color="#eee" size='40' @change="checkBoxChange" disabled="disabled"></u-switch>
|
|
|
|
|
|
+ <u-switch v-model="checked" active-color="#22C572" inactive-color="#eee" size='40' disabled="disabled"></u-switch>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='show' class="shade">
|
|
|
|
- <view class="wrap">
|
|
|
|
- <view class="alert-top">
|
|
|
|
- <view class="title">
|
|
|
|
- {{title}}
|
|
|
|
- </view>
|
|
|
|
- <u-icon name="close" class="close" color="#8890B1" @click="close()"></u-icon>
|
|
|
|
- </view>
|
|
|
|
- <view class="u-textarea-style">
|
|
|
|
- <view class="right-bottom">
|
|
|
|
- {{auditMind.length}}/100个字
|
|
|
|
- </view>
|
|
|
|
- <u-input class="" v-model='auditMind' placeholder="请在此输入审核意见" type="textarea" height="414"
|
|
|
|
- maxlength="100" />
|
|
|
|
- </view>
|
|
|
|
- <view @click='close()' class="cancel">取消</view>
|
|
|
|
- <view @click='passSubmit()' class="confirm">确定</view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
<u-toast ref="uToast" />
|
|
<u-toast ref="uToast" />
|
|
<view style='padding:10px;' class='flex bottom-btn'>
|
|
<view style='padding:10px;' class='flex bottom-btn'>
|
|
- <!-- getRoles("acquisitionQuality.initial") -->
|
|
|
|
<u-button v-if='isSHowBtn' @click='reject' type="error" class="btn1" hover-class='none'>驳回</u-button>
|
|
<u-button v-if='isSHowBtn' @click='reject' type="error" class="btn1" hover-class='none'>驳回</u-button>
|
|
- <u-button v-if='isSHowBtn' @click='pass' type="success" class="btn2">通过</u-button>
|
|
|
|
|
|
+ <u-button v-if='isSHowBtn' @click='passSubmit' type="success" class="btn2">通过</u-button>
|
|
</view>
|
|
</view>
|
|
<u-modal v-model="isShowAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
|
|
<u-modal v-model="isShowAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
|
|
:content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='登录提示'
|
|
:content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='登录提示'
|
|
@@ -51,130 +32,111 @@
|
|
import {
|
|
import {
|
|
mapState
|
|
mapState
|
|
} from 'vuex';
|
|
} from 'vuex';
|
|
-
|
|
|
|
export default {
|
|
export default {
|
|
- components: {
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
|
|
+ components: {},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
isSHowBtn: true,
|
|
isSHowBtn: true,
|
|
isShowAlert: false,
|
|
isShowAlert: false,
|
|
content: '当前登入信息验证失败,是否重新登录?',
|
|
content: '当前登入信息验证失败,是否重新登录?',
|
|
- textareaValue: '',
|
|
|
|
- value: '',
|
|
|
|
- show:false,
|
|
|
|
- title:"",
|
|
|
|
- auditMind:"", //审核意见
|
|
|
|
- checked: false,
|
|
|
|
|
|
+ // textareaValue: '',
|
|
|
|
+ // value: '',
|
|
|
|
+ // show: false,
|
|
|
|
+ // title: "",
|
|
|
|
+ // auditMind: "", //审核意见
|
|
|
|
+ checked: false,
|
|
|
|
+ toexamineId: "",
|
|
|
|
+ isShow: false,
|
|
|
|
+ dataList: {},
|
|
|
|
+ everyCheck: "",
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
- onLoad() {
|
|
|
|
-
|
|
|
|
|
|
+ onBackPress(e) {
|
|
|
|
+ if (this.everyCheck) {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: "/pages/task/my_task"
|
|
|
|
+ })
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ onLoad(options) {
|
|
|
|
+ this.toexamineId = options.id
|
|
|
|
+ this.isShow = options.isShowbtn
|
|
|
|
+ this.everyCheck = uni.getStorageSync("everyTask")
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- this.$api.doRequest('get', '/commonUser/api/checkSession').then(res => {
|
|
|
|
- console.log("checkSession", res)
|
|
|
|
- if (res.data.data == "INVALID") {
|
|
|
|
- this.isShowAlert = true;
|
|
|
|
- // uni.showModal({
|
|
|
|
- // title: '登录提示',
|
|
|
|
- // content: '当前登入信息验证失败,是否重新登录?',
|
|
|
|
- // showCancel: true,
|
|
|
|
- // confirmText: '登录',
|
|
|
|
- // success: (e) => {
|
|
|
|
- // if (e.confirm) {
|
|
|
|
- // uni.navigateTo({
|
|
|
|
- // url: '/pages/public/login'
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
- // fail: () => {},
|
|
|
|
- // complete: () => {}
|
|
|
|
- // })
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- console.log("hasLogin", this.hasLogin)
|
|
|
|
|
|
+ this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- pass(){
|
|
|
|
- this.title = "审核意见(通过)"
|
|
|
|
- this.show = true
|
|
|
|
- },
|
|
|
|
- reject(){
|
|
|
|
- this.title = "驳回原因(驳回)"
|
|
|
|
- this.show = true
|
|
|
|
- },
|
|
|
|
- close(){
|
|
|
|
- this.show = false
|
|
|
|
- },
|
|
|
|
- passSubmit(item){
|
|
|
|
- if(this.title == "审核意见(通过)"){
|
|
|
|
- this.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
|
- taskId: item.taskId,
|
|
|
|
- approved: true,
|
|
|
|
- auditMind: this.auditMind ? this.auditMind : "34",
|
|
|
|
- needReapply:true
|
|
|
|
- }).then(res => {
|
|
|
|
- if (res.data.code == 200) {
|
|
|
|
- this.$api.msg('通过成功')
|
|
|
|
|
|
+ getList() {
|
|
|
|
+ this.$api.doRequest('get', '/acquisitionInfo/getAcquisition', {
|
|
|
|
+ id: this.toexamineId
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ this.dataList = res.data.data
|
|
|
|
+ if (this.dataList.checkFlag == 1) {
|
|
|
|
+ this.checked = true
|
|
|
|
+ } else {
|
|
|
|
+ this.checked = false
|
|
}
|
|
}
|
|
- })
|
|
|
|
-
|
|
|
|
- }else if(this.title == "驳回原因(驳回)"){
|
|
|
|
- if(!this.auditMind){
|
|
|
|
- this.$api.msg('驳回原因不能为空!')
|
|
|
|
- return
|
|
|
|
}
|
|
}
|
|
- this.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
|
- taskId: item.taskId,
|
|
|
|
- approved: false,
|
|
|
|
- auditMind: this.auditMind ? this.auditMind : "34",
|
|
|
|
- needReapply:true
|
|
|
|
- }).then(res => {
|
|
|
|
- if (res.data.code == 200) {
|
|
|
|
- this.$api.msg('驳回成功')
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 统一跳转接口,拦截未登录路由
|
|
|
|
- * navigator标签现在默认没有转场动画,所以用view
|
|
|
|
- */
|
|
|
|
- navTo(url) {
|
|
|
|
- if (!this.hasLogin) {
|
|
|
|
- url = '/pages/public/login';
|
|
|
|
- }
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- alertBtn() {
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: '/pages/public/login'
|
|
|
|
|
|
+ reject() {
|
|
|
|
+ var that = this
|
|
|
|
+ uni.showModal({
|
|
|
|
+ content: "确定驳回该条收购信息审核?",
|
|
|
|
+ showCancel: true,
|
|
|
|
+ confirmText: '确定',
|
|
|
|
+ success: function(res) {
|
|
|
|
+ if (res.confirm) {
|
|
|
|
+ that.$api.doRequest('post', '/acquisitionInfo/api/examine', {
|
|
|
|
+ flag: 2,
|
|
|
|
+ id: that.toexamineId
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ that.$api.msg('驳回成功')
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ uni.navigateBack()
|
|
|
|
+ }, 1000);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- cancelClick() {
|
|
|
|
- this.isShowAlert = false
|
|
|
|
|
|
+ passSubmit(item) {
|
|
|
|
+ var that = this
|
|
|
|
+ uni.showModal({
|
|
|
|
+ content: "确定通过该条收购信息审核?",
|
|
|
|
+ showCancel: true,
|
|
|
|
+ confirmText: '确定',
|
|
|
|
+ success: function(res) {
|
|
|
|
+ if (res.confirm) {
|
|
|
|
+ that.$api.doRequest('post', '/acquisitionInfo/api/examine', {
|
|
|
|
+ flag: 1,
|
|
|
|
+ id: that.toexamineId
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ that.$api.msg('通过成功')
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ uni.navigateBack()
|
|
|
|
+ }, 1000);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
- checkBoxChange(e) {
|
|
|
|
- console.log(e)
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style lang='scss' scoped>
|
|
<style lang='scss' scoped>
|
|
- page {
|
|
|
|
- background: #F5F6FA;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
.wrap {
|
|
.wrap {
|
|
background: #fff;
|
|
background: #fff;
|
|
margin: 10px;
|
|
margin: 10px;
|
|
@@ -182,7 +144,8 @@
|
|
padding: 40rpx 30rpx;
|
|
padding: 40rpx 30rpx;
|
|
|
|
|
|
}
|
|
}
|
|
- .content-item{
|
|
|
|
|
|
+
|
|
|
|
+ .content-item {
|
|
margin-top: 50rpx;
|
|
margin-top: 50rpx;
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|
|
}
|
|
}
|
|
@@ -191,13 +154,15 @@
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
position: relative;
|
|
|
|
+
|
|
/* border-bottom: 1px solid #EEEEEE; */
|
|
/* border-bottom: 1px solid #EEEEEE; */
|
|
.right,
|
|
.right,
|
|
input {
|
|
input {
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|
|
// color: #333333;
|
|
// color: #333333;
|
|
}
|
|
}
|
|
- .left{
|
|
|
|
|
|
+
|
|
|
|
+ .left {
|
|
font-size: 34rpx;
|
|
font-size: 34rpx;
|
|
color: #333333;
|
|
color: #333333;
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
@@ -215,7 +180,7 @@
|
|
margin-top: 40rpx;
|
|
margin-top: 40rpx;
|
|
height: 50vh;
|
|
height: 50vh;
|
|
padding-bottom: 20rpx;
|
|
padding-bottom: 20rpx;
|
|
- color: #AFB3BF ;
|
|
|
|
|
|
+ color: #AFB3BF;
|
|
}
|
|
}
|
|
|
|
|
|
.textarea-bottom {
|
|
.textarea-bottom {
|
|
@@ -224,6 +189,7 @@
|
|
right: 20rpx;
|
|
right: 20rpx;
|
|
color: #606266;
|
|
color: #606266;
|
|
}
|
|
}
|
|
|
|
+
|
|
.bottom-btn {
|
|
.bottom-btn {
|
|
width: 100%;
|
|
width: 100%;
|
|
position: fixed;
|
|
position: fixed;
|
|
@@ -233,20 +199,21 @@
|
|
left: 0;
|
|
left: 0;
|
|
background-color: #f8f8f8;
|
|
background-color: #f8f8f8;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
-
|
|
|
|
|
|
+
|
|
.btn1,
|
|
.btn1,
|
|
.btn2 {
|
|
.btn2 {
|
|
width: 100%;
|
|
width: 100%;
|
|
margin-bottom: 26rpx;
|
|
margin-bottom: 26rpx;
|
|
border-radius: 90rpx;
|
|
border-radius: 90rpx;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.btn1 {
|
|
.btn1 {
|
|
background: white;
|
|
background: white;
|
|
color: #00C265;
|
|
color: #00C265;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .shade {
|
|
|
|
|
|
+
|
|
|
|
+ /* .shade {
|
|
position: fixed;
|
|
position: fixed;
|
|
top: 0;
|
|
top: 0;
|
|
left: 0;
|
|
left: 0;
|
|
@@ -254,7 +221,7 @@
|
|
width: 100%;
|
|
width: 100%;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
background: rgba(0, 0, 0, 0.4);
|
|
z-index: 3;
|
|
z-index: 3;
|
|
-
|
|
|
|
|
|
+
|
|
.wrap {
|
|
.wrap {
|
|
position: absolute;
|
|
position: absolute;
|
|
left: 0;
|
|
left: 0;
|
|
@@ -267,7 +234,7 @@
|
|
height: 700rpx;
|
|
height: 700rpx;
|
|
border-radius: 20rpx;
|
|
border-radius: 20rpx;
|
|
padding: 20rpx;
|
|
padding: 20rpx;
|
|
-
|
|
|
|
|
|
+
|
|
.alert-top {
|
|
.alert-top {
|
|
padding: 33rpx;
|
|
padding: 33rpx;
|
|
display: flex;
|
|
display: flex;
|
|
@@ -275,19 +242,20 @@
|
|
align-items: center;
|
|
align-items: center;
|
|
position: relative;
|
|
position: relative;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.title {
|
|
.title {
|
|
font-size: 32rpx;
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
color: #333333;
|
|
color: #333333;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.close {
|
|
.close {
|
|
position: absolute;
|
|
position: absolute;
|
|
right: 33rpx;
|
|
right: 33rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ } */
|
|
|
|
+
|
|
.cancel,
|
|
.cancel,
|
|
.confirm {
|
|
.confirm {
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -299,17 +267,18 @@
|
|
border-top: 1px solid #eee;
|
|
border-top: 1px solid #eee;
|
|
font-size: 34rpx;
|
|
font-size: 34rpx;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.cancel {
|
|
.cancel {
|
|
left: 0;
|
|
left: 0;
|
|
border-right: 1px solid #eee;
|
|
border-right: 1px solid #eee;
|
|
color: #AFB3BF;
|
|
color: #AFB3BF;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.confirm {
|
|
.confirm {
|
|
right: 0;
|
|
right: 0;
|
|
color: #22C572;
|
|
color: #22C572;
|
|
}
|
|
}
|
|
|
|
+
|
|
.u-textarea-style {
|
|
.u-textarea-style {
|
|
margin: 20rpx;
|
|
margin: 20rpx;
|
|
background: #F9F9FA;
|
|
background: #F9F9FA;
|
|
@@ -317,7 +286,7 @@
|
|
border: 1px solid #EEEEEE;
|
|
border: 1px solid #EEEEEE;
|
|
padding: 10rpx 20rpx;
|
|
padding: 10rpx 20rpx;
|
|
position: relative;
|
|
position: relative;
|
|
-
|
|
|
|
|
|
+
|
|
.right-bottom {
|
|
.right-bottom {
|
|
position: absolute;
|
|
position: absolute;
|
|
right: 20rpx;
|
|
right: 20rpx;
|
|
@@ -325,8 +294,4 @@
|
|
color: #AFB3BF;
|
|
color: #AFB3BF;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- /deep/.u-input__textarea {
|
|
|
|
- height: 300rpx !important;
|
|
|
|
- }
|
|
|
|
</style>
|
|
</style>
|