wtt
2025-08-19 d8b46eb0f1bbe8b51528c0b10d0786fe46c43015
pages/weiwaigxOut/form.vue
@@ -28,10 +28,10 @@
               size="20" @click="toScanProcNo"></uni-icons>
         </view>
         <view class="form-item">
             <view class="title">工序编码:</view>
             <view class="righton">
                 <input disabled v-model="hform.HProcNumber" placeholder="请输入工序编码" />
             </view>
            <view class="title">工序编码:</view>
            <view class="righton">
               <input disabled v-model="hform.HProcNumber" placeholder="请输入工序编码" />
            </view>
         </view>
         <view class="form-item">
            <view class="title">未报工数量:</view>
@@ -115,6 +115,7 @@
            <view class="right">
               <picker mode="date" v-model="hform.HDate" @change="HDateChange">
                  <input disabled v-model="hform.HDate" placeholder="请选择日期" />
                  <view class="picker-overlay"></view>
               </picker>
            </view>
         </view>
@@ -383,7 +384,9 @@
      getUserInfo
   } from "@/utils/auth.js";
   import ProcExchListPopupVue from '../../components/ProcExchListPopup/ProcExchListPopup.vue';
import { CommonUtils } from '../../utils/common';
   import {
      CommonUtils
   } from '../../utils/common';
   export default {
      components: {
         ProcExchListPopupVue
@@ -711,30 +714,33 @@
         },
         getHDeptList() { // 获得部门
            CommonUtils.doRequest(
            "/Gy_Department/list",
            {
               sWhere: ` and HUSEORGID=${uni.getStorageSync('OrganizationID')}`,
               user: this.userInfo['Czymc'],
               Organization: uni.getStorageSync('Organization')
            },
            (res) => {
               let {data, count, Message} = res.data
               console.log('data: ',data);
               if(count == 1) {
                  this.HDeptList = data
                  this.arrayHDept = Array.from(data).map(e => e['部门名称'])
               }else {
                  uni.showToast({
                     icon: 'none',
                     Message: Message
                  })
               "/Gy_Department/list", {
                  sWhere: ` and HUSEORGID=${uni.getStorageSync('OrganizationID')}`,
                  user: this.userInfo['Czymc'],
                  Organization: uni.getStorageSync('Organization')
               },
               (res) => {
                  let {
                     data,
                     count,
                     Message
                  } = res.data
                  console.log('data: ', data);
                  if (count == 1) {
                     this.HDeptList = data
                     this.arrayHDept = Array.from(data).map(e => e['部门名称'])
                  } else {
                     uni.showToast({
                        icon: 'none',
                        Message: Message
                     })
                  }
               }
            }
            )
         },
         HHDeptChange(e) {
            for (var i = 0; i < this.HDeptList.length; i++) {
               if (this.HDeptList[i]['部门名称']== e) {
               if (this.HDeptList[i]['部门名称'] == e) {
                  this.hform.HDeptID = this.HDeptList[i].HItemID
               }
            }
@@ -964,7 +970,7 @@
                  console.log(1, res.data.data[0]);
                  if (res.data.code == 1) {
                     var data = res.data.data[0]
                     this.getHBarCodeData(data.HBarCode,1)
                     this.getHBarCodeData(data.HBarCode, 1)
                     // this.getHProcNoData(data.HBarCode, data.HProcNo)
                     this.hform.HInterID = data.HInterID
@@ -1199,7 +1205,7 @@
         },
         submit() {
            //去除分号以免后端分解报错
            this.hform.HMaterName= this.hform.HMaterName.replace(/;/g, '');
            this.hform.HMaterName = this.hform.HMaterName.replace(/;/g, '');
            this.hform.HMaterModel = this.hform.HMaterModel.replace(/;/g, '');
            if (!this.hform.HBarCode) {
               uni.showToast({
@@ -1251,8 +1257,8 @@
                        // prePage.$vm.getList()
                        if (this.isEdit) {
                           uni.showToast({
                               title: '修改成功',
                               icon: 'none'
                              title: '修改成功',
                              icon: 'none'
                           })
                           setTimeout(() => {
                              uni.redirectTo({
@@ -1438,6 +1444,7 @@
      font-size: 30rpx;
      padding: 6rpx 0;
      gap: 10rpx;
      position: relative;
      .title {
         width: 188rpx;