123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- <template>
- <view class="wrap">
- <view class='content1'>
- <view class='row'>
- <view class="left">{{dataList.warehouseName}}</view>
- </view>
- <view class='row '>
- <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 class='row content-item'>
- <!-- <u-checkbox activeColor="#19be6b" v-model="value" @change="checkBoxChange">显示在易粮易运收购信息中</u-checkbox> -->
- 显示在易粮易运收购信息中
- <view class="right">
- <u-switch v-model="checked" active-color="#22C572" inactive-color="#eee" size='40' disabled="disabled"></u-switch>
- </view>
- </view>
- </view>
- <u-toast ref="uToast" />
- <view style='padding:10px;' class='flex bottom-btn'>
- <u-button v-if='isSHowBtn' @click='reject' type="error" class="btn1" hover-class='none'>驳回</u-button>
- <u-button v-if='isSHowBtn' @click='passSubmit' type="success" class="btn2">通过</u-button>
- </view>
- <u-modal v-model="isShowAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
- :content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='提示'
- :showCancelButton='false' :content="content" @confirm="alertBtn" @cancel="cancelClick"></u-modal>
- </view>
- </template>
- <script>
- import {
- mapState
- } from 'vuex';
- export default {
- components: {},
- data() {
- return {
- isSHowBtn: true,
- isShowAlert: false,
- content: '当前登入信息验证失败,是否重新登录?',
- // textareaValue: '',
- // value: '',
- // show: false,
- // title: "",
- // auditMind: "", //审核意见
- checked: false,
- toexamineId: "",
- isShow: false,
- dataList: {},
- everyCheck: "",
- }
- },
- 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: {
- ...mapState(['hasLogin', 'userInfo']),
- },
- onShow() {
- this.getList()
- },
- methods: {
- 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
- }
- }
- })
- },
- reject() {
- var that = this
- uni.showModal({
- content: "确定驳回该条收购信息审核?",
- showCancel: true,
- confirmText: '确定',
- success: function(res) {
- if (res.confirm) {
- uni.showLoading({
- title: "审核中"
- })
- 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);
- }
- })
- }
- }
- })
- },
- passSubmit(item) {
- var that = this
- uni.showModal({
- content: "确定通过该条收购信息审核?",
- showCancel: true,
- confirmText: '确定',
- success: function(res) {
- if (res.confirm) {
- uni.showLoading({
- title: "审核中"
- })
- 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);
- }
- })
- }
- }
- })
- },
- }
- }
- </script>
- <style lang='scss' scoped>
- .wrap {
- background: #fff;
- margin: 10px;
- border-radius: 10px;
- padding: 40rpx 30rpx;
- }
- .content-item {
- margin-top: 50rpx;
- font-size: 28rpx;
- }
- .row {
- display: flex;
- justify-content: space-between;
- position: relative;
- /* border-bottom: 1px solid #EEEEEE; */
- .right,
- input {
- font-size: 28rpx;
- // color: #333333;
- }
- .left {
- font-size: 34rpx;
- color: #333333;
- font-weight: 600;
- }
- }
- .textarea {
- background: #F9F9FA;
- font-size: 26rpx;
- text-align: left;
- width: 100%;
- height: 60px;
- padding: 32rpx;
- border-radius: 10rpx;
- margin-top: 40rpx;
- height: 50vh;
- padding-bottom: 20rpx;
- color: #AFB3BF;
- }
- .textarea-bottom {
- position: absolute;
- bottom: 20rpx;
- right: 20rpx;
- color: #606266;
- }
- .bottom-btn {
- width: 100%;
- position: fixed;
- bottom: 0;
- display: flex;
- z-index: 2;
- left: 0;
- background-color: #f8f8f8;
- flex-direction: column;
- .btn1,
- .btn2 {
- width: 100%;
- margin-bottom: 26rpx;
- border-radius: 90rpx;
- }
- .btn1 {
- background: white;
- color: #00C265;
- }
- }
- /* .shade {
- position: fixed;
- top: 0;
- left: 0;
- height: 100%;
- width: 100%;
- background: rgba(0, 0, 0, 0.4);
- z-index: 3;
- .wrap {
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- margin: auto;
- background: #fff;
- width: calc(100% - 198rpx);
- height: 700rpx;
- border-radius: 20rpx;
- padding: 20rpx;
- .alert-top {
- padding: 33rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- position: relative;
- }
- .title {
- font-size: 32rpx;
- font-weight: 600;
- color: #333333;
- }
- .close {
- position: absolute;
- right: 33rpx;
- }
- }
- } */
- .cancel,
- .confirm {
- position: absolute;
- display: inline-block;
- width: 50%;
- text-align: center;
- bottom: 0;
- padding: 10px;
- border-top: 1px solid #eee;
- font-size: 34rpx;
- }
- .cancel {
- left: 0;
- border-right: 1px solid #eee;
- color: #AFB3BF;
- }
- .confirm {
- right: 0;
- color: #22C572;
- }
- .u-textarea-style {
- margin: 20rpx;
- background: #F9F9FA;
- border-radius: 10px;
- border: 1px solid #EEEEEE;
- padding: 10rpx 20rpx;
- position: relative;
- .right-bottom {
- position: absolute;
- right: 20rpx;
- bottom: 20rpx;
- color: #AFB3BF;
- }
- }
- </style>
|