小小儁爺
2025-12-31 e85057e243138f5ddf8a2b7c427fdefdec2c6879
pages/scgl/scbg2.vue
@@ -491,10 +491,12 @@
               // this.operSheetList = res.data
               this.operSheetList = res.data.map(({
                  usercode,
                  username
                  username,
                  payrate
               }) => ({
                  code: usercode,
                  name: username
                  name: username,
                  payrate: payrate
               }))
               this.operColumns = [this.operSheetList.map(i => i.name)]
               this.userSelectArrAll = this.operSheetList
@@ -533,6 +535,7 @@
         },
         userCheckboxChange(val) {
            this.userCheckBoxValue = val.join(',')
            this.operSheetValue = this.userCheckBoxValue
         },
         //获取开工信息
@@ -592,9 +595,9 @@
            if (this.reckway === '个人' && this.operSheetValue === "") {
               return uni.$u.toast('报工人员不能为空!')
            }
            if (this.eqpSheetValue === "") {
               return uni.$u.toast('设备名称不能为空!')
            }
            // if (this.eqpSheetValue === "") {
            //    return uni.$u.toast('设备名称不能为空!')
            // }
            if (this.reportqty === "") {
               return uni.$u.toast('报工数量不能为空!')
            }
@@ -669,7 +672,8 @@
               stepcode: this.topContent[0].stepcode,
               stepprice: this.topContent[0].stepprice,
               eqpcode: this.eqpSheetList.find(i => i.name === this.eqpSheetValue).code,
               eqpcode: this.eqpSheetValue ? this.eqpSheetList.find(i => i.name === this.eqpSheetValue).code :
                  '',
               reckway: this.reckway === '班组' ? 'group' : 'person',
@@ -677,6 +681,8 @@
                  .userGroupSheetValue).code : '', // 班组编码
               reportuser: this.reckway === '班组' ? reportuser.join(',') : this.userSelectArrAll.find(i => i
                  .name === this.operSheetValue).code,
               payrate: this.reckway === '班组' ? reportuser.join(',') : this.userSelectArrAll.find(i => i
                  .name === this.operSheetValue).payrate,
               taskqty: this.topContent[0].planqty,
               startqty: parseFloat(this.reportqty),
               reportqty: parseFloat(this.reportqty),
@@ -732,7 +738,8 @@
               if (this.fromType === '1') {
                  let pages = getCurrentPages(); // 页面集合
                  let beforePage = pages[pages.length - 2]; //上一个页面
                  beforePage.$vm.getProductionScheduleKanban()
                  // beforePage.$vm.getProductionScheduleKanban()
                  beforePage.$vm.getProductOrderSearch()
                  uni.navigateBack()
               }