| | |
| | | <view class="form-item"> |
| | | <view class="title">条形码:</view> |
| | | <view class="right"> |
| | | <input type="text" name="HBarCode" id="HBarCode" v-model="HBarCode" |
| | | @confirm="getCode(HBarCode)" /> |
| | | <input type="text" name="HBarCode" id="HBarCode" v-model="HBarCode" @confirm="getCode(HBarCode)" /> |
| | | </view> |
| | | <view class="right-icon" @click="toScanCode"> |
| | | <uni-icons color="#fff" type="scan" size="24"></uni-icons> |
| | |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | |
| | | <view class="form-item"> |
| | | <view class="title">还样员:</view> |
| | | <view class="right"> |
| | |
| | | v-model="hform.HShiftsName" @input="HShiftsNameChangeHandler"></uni-combox> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view class="form-item"> |
| | | <view class="title">单据日期:</view> |
| | | <view class="right disabled"> |
| | |
| | | this.GetDepartmentList() |
| | | }, |
| | | methods: { |
| | | HDeptNameChangeHandler(){ |
| | | HDeptNameChangeHandler() { |
| | | let index = this.HDeptNameArray.findIndex(item => item == e) |
| | | |
| | | |
| | | if (index != -1) { |
| | | this.hform.HDeptID = this.HDeptNameArraySource[index]["HItemID"] |
| | | this.hform.HDeptName = this.HDeptNameArraySource[index]["HName"] |
| | |
| | | this.hform.HSourceID = this.HSourceNameArraySource[index]["HItemID"] |
| | | this.hform.HSourceName = this.HSourceNameArraySource[index]["生产资源"] |
| | | } |
| | | |
| | | console.log('this.hform: ',this.hform); |
| | | |
| | | console.log('this.hform: ', this.hform); |
| | | }, |
| | | // 获取生产资源 |
| | | getSourceList() { |
| | |
| | | HProcExchQty: data[0]['流转卡数量'], |
| | | HCenterID: data[0]['HCenterID'] || getUserInfo()['HWorkCenterID'], |
| | | }) |
| | | |
| | | |
| | | } |
| | | } |
| | | }) |
| | |
| | | title: '条形码不能为空' |
| | | }) |
| | | } |
| | | let sWhere = " and 单据号='" + HBarCode + "'"; |
| | | CommonUtils.doRequest2({ |
| | | url: '/api/newBill/getHbarCodeDetail', |
| | | url: '/QC_TakeSampleCheckBill/Get_BackSampleList', |
| | | data: { |
| | | "sBillBarCode": HBarCode |
| | | "sWhere": sWhere |
| | | }, |
| | | resFunction: (res) => { |
| | | let { |
| | |
| | | "HDeptID": data1[0].HWorkShopID, //车间ID |
| | | "HDeptName": data1[0].生产车间, //车间 |
| | | }) |
| | | |
| | | |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: msg |
| | |
| | | title: '生产资源未选择' |
| | | }) |
| | | } |
| | | |
| | | console.log('this.hform: ',this.hform); |
| | | |
| | | console.log('this.hform: ', this.hform); |
| | | let sMainStr = JSON.stringify(this.hform) |
| | | console.log('sMainStr: ',sMainStr); |
| | | console.log('sMainStr: ', sMainStr); |
| | | let sMainSub = sMainStr + ';' + this.refSav + ';' + getUserInfo()['Czymc']; |
| | | CommonUtils.doRequest2({ |
| | | method: 'POST', |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | |
| | | .scroll-content { |
| | | box-sizing: border-box; |
| | | padding: 20rpx; |