| | |
| | | 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> |
| | |
| | | <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> |
| | |
| | | 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 |
| | |
| | | }, |
| | | 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 |
| | | } |
| | | } |
| | |
| | | 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 |
| | |
| | | }, |
| | | 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({ |
| | |
| | | // prePage.$vm.getList() |
| | | if (this.isEdit) { |
| | | uni.showToast({ |
| | | title: '修改成功', |
| | | icon: 'none' |
| | | title: '修改成功', |
| | | icon: 'none' |
| | | }) |
| | | setTimeout(() => { |
| | | uni.redirectTo({ |
| | |
| | | font-size: 30rpx; |
| | | padding: 6rpx 0; |
| | | gap: 10rpx; |
| | | position: relative; |
| | | |
| | | .title { |
| | | width: 188rpx; |