| | |
| | | stafName: "", |
| | | stafList: [], |
| | | BarcodesDetail: [], |
| | | itemDetail: [], |
| | | taskNo: "", //工单号 |
| | | itemNo: "", //物料编号 |
| | | planQty: "", //计划数量 |
| | | reportedQty: "", //已报工数量 |
| | | currentQty: "", //本次报工数量 |
| | | barcodeQty: "", //条码数量 |
| | | sjBillNo:"",//送检单号 |
| | | sjBillNo: "",//送检单号 |
| | | itemName: "", //物料名称 |
| | | itemModel: "", //物料型号 |
| | | |
| | |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.actions = json.data.tbBillList.map(item => { |
| | | return { name: item.staffName } |
| | | return { name: item.staffName + ' (' + item.staffNo + ')', data: item } |
| | | }); |
| | | |
| | | that.stafId = that.userInfo.loginAccount; |
| | |
| | | // 默认情况下点击选项时不会自动收起 |
| | | // 可以通过 close-on-click-action 属性开启自动收起 |
| | | |
| | | |
| | | |
| | | //this.GetMesItemBlDetailByBillNo(); |
| | | //this.$toast(item.name); |
| | | |
| | | |
| | | |
| | | }, |
| | | methods: { |
| | | getInfo() { |
| | | this.show = true; |
| | | |
| | | var that = this; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'MesStaff/GetList', { |
| | |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.actions = json.data.tbBillList.map(item => { |
| | | return { name: item.staffName } |
| | | }); |
| | | that.$playSound('success'); |
| | | |
| | | that.stafList = json.data.tbBillList; |
| | | |
| | | let searchText = that.stafId ? String(that.stafId).trim().toLowerCase() : ""; |
| | | let filteredList = that.stafList; |
| | | |
| | | if (searchText) { |
| | | filteredList = that.stafList.filter(item => { |
| | | let sName = item.staffName ? String(item.staffName).toLowerCase() : ""; |
| | | let sNo = item.staffNo ? String(item.staffNo).toLowerCase() : ""; |
| | | return sName.includes(searchText) || sNo.includes(searchText); |
| | | }); |
| | | } |
| | | |
| | | if (filteredList.length === 0) { |
| | | that.$toast("未找到匹配的员工"); |
| | | that.actions = []; |
| | | } else { |
| | | that.actions = filteredList.map(item => { |
| | | return { name: item.staffName + ' (' + item.staffNo + ')', data: item } |
| | | }); |
| | | that.show = true; |
| | | that.$playSound('success'); |
| | | } |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | |
| | | var that = this; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'MesWorkProd/GetRksqSelect', |
| | | { |
| | | staffNo: that.stafId |
| | | //name: that.userInfo.loginAccount, |
| | | }, false) |
| | | { |
| | | staffNo: that.stafId |
| | | //name: that.userInfo.loginAccount, |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.billactions = json.data.result.rksqOrderList.map(item => { |
| | | return { name: item.billNo } |
| | | }); |
| | | |
| | | |
| | | |
| | | that.stafList = json.data.result.rksqOrderList; |
| | | that.$playSound('success'); |
| | |
| | | // 可以通过 close-on-click-action 属性开启自动收起 |
| | | this.show = false; |
| | | |
| | | let staf = this.stafList.filter(it => it.staffName === item.name); |
| | | |
| | | if (staf.length > 0) { |
| | | this.stafName = staf[0].staffName; |
| | | this.stafId = staf[0].staffNo; |
| | | if (item.data) { |
| | | this.stafName = item.data.staffName; |
| | | this.stafId = item.data.staffNo; |
| | | this.$refs.barcode.focus(); |
| | | } else { |
| | | this.$toast("未找到匹配的 staffName"); |
| | |
| | | this.$toast("未找到匹配的送检单号"); |
| | | that.$playSound('error'); |
| | | } |
| | | |
| | | this.getBillNo(); |
| | | //this.GetMesItemBlDetailByBillNo(); |
| | | //this.$toast(item.name); |
| | | |
| | |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.actions = json.data.tbBillList.map(item => { |
| | | return { name: item.staffName } |
| | | }); |
| | | |
| | | that.stafList = json.data.tbBillList; |
| | | that.$playSound('success'); |
| | | console.log('DAWDADWDADADADWD' + that.stafList); |
| | | |
| | | let searchText = that.stafId ? String(that.stafId).trim().toLowerCase() : ""; |
| | | let filteredList = that.stafList; |
| | | |
| | | if (searchText) { |
| | | filteredList = that.stafList.filter(item => { |
| | | let sName = item.staffName ? String(item.staffName).toLowerCase() : ""; |
| | | let sNo = item.staffNo ? String(item.staffNo).toLowerCase() : ""; |
| | | return sName.includes(searchText) || sNo.includes(searchText); |
| | | }); |
| | | } |
| | | |
| | | if (filteredList.length === 0) { |
| | | that.$toast("未找到匹配的员工"); |
| | | that.$playSound('error'); |
| | | } else if (filteredList.length === 1) { |
| | | let item = filteredList[0]; |
| | | that.stafName = item.staffName; |
| | | that.stafId = item.staffNo; |
| | | that.$refs.barcode.focus(); |
| | | that.$playSound('success'); |
| | | } else { |
| | | that.actions = filteredList.map(item => { |
| | | return { name: item.staffName + ' (' + item.staffNo + ')', data: item } |
| | | }); |
| | | that.show = true; |
| | | that.$playSound('success'); |
| | | } |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | |
| | | // 默认情况下点击选项时不会自动收起 |
| | | // 可以通过 close-on-click-action 属性开启自动收起 |
| | | |
| | | console.log('DAWDADWDA'+that.stafList); |
| | | console.log('DADADAD'+ this.stafId); |
| | | //console.log('DAWDADWDA' + that.stafList); |
| | | //console.log('DADADAD' + this.stafId); |
| | | |
| | | let staf = that.stafList.filter(it => String(it.staffNo) === String(that.stafId)); |
| | | //let staf = that.stafList.filter(it => String(it.staffNo) === String(that.stafId)); |
| | | |
| | | if (staf.length > 0) { |
| | | that.stafName = staf[0].staffName; |
| | | that.stafId = staf[0].staffNo; |
| | | that.$refs.barcode.focus(); |
| | | } else { |
| | | that.$toast("未找到匹配的 用户名称"); |
| | | } |
| | | //if (staf.length > 0) { |
| | | // that.stafName = staf[0].staffName; |
| | | // that.stafId = staf[0].staffNo; |
| | | // that.$refs.barcode.focus(); |
| | | //} else { |
| | | // that.$toast("未找到匹配的 用户名称"); |
| | | //} |
| | | //this.GetMesItemBlDetailByBillNo(); |
| | | //this.$toast(item.name); |
| | | |
| | |
| | | //this.barcode = value; |
| | | //this.show = true; |
| | | var that = this; |
| | | |
| | | |
| | | |
| | | if (!that.userInfo.loginAccount) { |
| | | this.$toast.fail("请重新检查登录状态"); |
| | |
| | | that.itemModel = entity.itemModel; //物料型号 |
| | | that.sjBillNo = entity.sjBillNo; |
| | | that.BarcodesDetail = entity.barcodesDetail; |
| | | that.itemDetail = entity.itemDetail; |
| | | console.log('DADWADWD WDD AD AD A'); |
| | | console.log(entity.barcodesDetail); |
| | | console.log(that.BarcodesDetail); |
| | |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.$notify({ type: 'success', message: '送检成功' }); |
| | | |
| | | that.sjBillNo = ""; |
| | | that.BarcodesDetail = []; |
| | | that.$playSound('success'); |
| | | } |
| | |
| | | |
| | | let entity = json.data.result; |
| | | that.BarcodesDetail = entity.barcodesDetail; |
| | | that.itemDetail = entity.itemDetail; |
| | | console.log('DADWADWD WDD AD AD A'); |
| | | console.log(entity.barcodesDetail); |
| | | console.log(that.BarcodesDetail); |