wtt
6 天以前 44095eec404a9a1e0a45f0b8daeee1b5b1c2b017
pages/weiwaigxIn/Cj_StationEntrustInBill.vue
@@ -20,6 +20,9 @@
            <view class="right" style="width: 380rpx;">
               <input v-model="hform.HProcNo" placeholder="请输入(或扫描)流水号" @blur="getHProcNoData2(hform.HBarCode,hform.HProcNo,hform.HSEQNumber)"/>
            </view>
            <view class="icon-wrapper" >
               <uni-icons type="search" size="20" @click="showBillList"></uni-icons>
            </view>
            <uni-icons type="scan" style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;" size="20" @click="toScanProcNo"></uni-icons>
         </view>
         <view class="form-item">
@@ -315,12 +318,16 @@
            <button class="btn-c" size="mini" @tap="goBack">退出</button>
         </view>
      </view>
      <ProcListPopupVue ref="billList" :HProcExchHBillNo="hform.HProcExchBillNo" :HProcExchHInteID="hform.HProcExchHinteID" :HType="1"
          ></ProcListPopupVue>
   </view>
</template>
<script>
   import getDateTime from '@/utils/getdateTime.js';
   import { getUserInfo } from "@/utils/auth.js";
   import ProcListPopupVue from '../../components/ProcListPopup/ProcListPopup.vue';
    export default {
      components: { ProcListPopupVue },
        data() {
            return {
            userInfo:getUserInfo(),
@@ -373,7 +380,7 @@
               HSEQNumber:0,
               // HICMOInterID:'',
               // HICMOQty:'',
               // HProcExchHinteID:'',
               HProcExchHinteID:0,
               // HPlanQty:'',
               // HPieceQty:'',
               // HTaxRate:'',
@@ -425,8 +432,29 @@
         this.getHEmpList()
         
         this.getDefValByUser()
         uni.$on('HProcNoSelectComplete', (e) => {
             console.log("接收到的消息: ", e.HProcNo)
             this.hform.HProcNo=e.HProcNo;
            this.hform.HSEQNumber = e.HSEQNumber;
            this.getHProcNoData2(this.hform.HBarCode,this.hform.HProcNo,this.hform.HSEQNumber)
            this.$refs.billList.exit()
         })
      },
      onUnload() {
          uni.$off('HProcNoSelectComplete')
      },
        methods: {
         showBillList() {
            if(this.hform.HProcExchBillNo!=""){
               this.$refs.billList.showPopup()
            }else{
               uni.showToast({
                   title: '请先扫描流转卡',
                   icon: 'none'
               })
            }
         },
         //通过登录用户获取默认值
         getDefValByUser(){
            uni.request({
@@ -650,7 +678,7 @@
         getHEmpList(){
            uni.request({
               url: this.serverUrl + '/Web/GetEmployeeList_Json', 
               data: { Employee: '',HGroupID:0 },
               data: { Employee: '',HGroupID:0, HDeptID: uni.getStorageSync("HDeptID") },
               success: (res) => {
                  if(res.data.count == 1){
                     this.HEmpNameList = res.data.data
@@ -1059,23 +1087,30 @@
                              })
                           },1000)
                        }else{
                           uni.showModal({
                               title: '提示',
                               content: res.data.Message + '。是否继续新增?(点击取消返回上级页面)',
                               success: (res) => {
                                   if (res.confirm) {
                                       console.log('用户点击确定');
                                    uni.redirectTo({
                                       url:'/pages/weiwaigxIn/Cj_StationEntrustInBill?OperationType=1'
                                    })
                                   } else if (res.cancel) {
                                       console.log('用户点击取消');
                                    setTimeout(()=>{
                                       uni.navigateBack();
                                    },50)
                                   }
                               }
                           });
                           //自动审核
                           //this.check()
                           if(res.data.Verify=="Y"){
                              this.check()
                           }else{
                              uni.showModal({
                                 title: '提示',
                                 content: res.data.Message + '。是否继续新增?(点击取消返回上级页面)',
                                 success: (res) => {
                                    if (res.confirm) {
                                       console.log('用户点击确定');
                                       uni.redirectTo({
                                          url:'/pages/weiwaigxIn/Cj_StationEntrustInBill?OperationType=1'
                                       })
                                    } else if (res.cancel) {
                                       console.log('用户点击取消');
                                       setTimeout(()=>{
                                          uni.navigateBack();
                                       },50)
                                    }
                                 }
                              });
                           }
                        }
                        }else{
                        uni.showToast({
@@ -1102,18 +1137,16 @@
               dataType:"json",
               data:{ 
                  CurUserName: uni.getStorageSync('HUserName'),
                  HInterID: this.linterid,
                  HInterID: this.hform.HInterID,
               },
                success: (res) => {
                    console.log(1,res);
                  uni.hideLoading()
                  if(res.data.count == 1){
                     this.btnType = 3
                     let pages = getCurrentPages();
                     let prePage = pages[pages.length - 2];
                     prePage.$vm.getList()
                     uni.showModal({
                         title: '操作成功',
                         title: '审核成功',
                         content: '是否继续停留在当前页面?‘是’可进行反审核,‘否’则回到上一级列表',
                        confirmText:'是',
                        cancelText:'否',
@@ -1136,7 +1169,7 @@
               fail: (res) => {
                  console.log(res);
                  uni.showToast({
                     title:'接口请求失败',
                     title:'审核失败接口请求失败',
                     icon:'none'
                  })
               },
@@ -1156,12 +1189,10 @@
                    console.log(1,res);
                  uni.hideLoading()
                  if(res.data.count == 1){
                     let pages = getCurrentPages();
                     let prePage = pages[pages.length - 2];
                     prePage.$vm.getList()
                     this.btnType = 2
                     uni.showModal({
                         title: '操作成功',
                         title: '自动审核成功',
                         content: '是否继续停留在当前页面?‘是’可进行审核,‘否’则回到上一级列表',
                        confirmText:'是',
                        cancelText:'否',
@@ -1209,6 +1240,7 @@
</script>
<style lang="scss" scoped>
   .form{
      width: 668rpx;
      margin: 20rpx auto;
@@ -1218,6 +1250,19 @@
      width: 100%;
      height: 50rpx;
   }
   .icon-wrapper {
       background-color: #3A78FF;
       border-radius: 100%;
       width: 52rpx;
       height: 52rpx;
       display: flex;
       justify-content: center;
       align-items: center;
       .uni-icons {
           color: #fff !important;
       }
   }
   .other{
      margin-top: 8rpx;
      text-align: center;