loulijun2021
2023-04-14 7651d8d17f9819c7864624e058b6810521049ba7
src/views/scgl/sckbg.vue
@@ -761,7 +761,9 @@
            >
              <template slot-scope="{row}">
                <div class="operationClass">
                  <el-button v-if="(row.isVisible===1&&!userIsSave)||row.isVisible===2" v-waves type="text" @click="userSave(row)">保存</el-button>
                  <el-button v-if="(row.isVisible===1&&!userIsSave)||row.isVisible===2" v-waves type="text"
                             @click="userSave(row)">保存
                  </el-button>
                  <el-button v-if="row.isVisible===1" v-waves type="text" @click="userCancel(row)">取消</el-button>
                  <el-button v-if="row.isVisible===0" v-waves type="text" @click="userDel(row)">删除</el-button>
                  <el-button v-if="row.isVisible===0" v-waves type="text" @click="editRatio(row)">修改比例</el-button>
@@ -1720,13 +1722,16 @@
          orderstepqrcode: orderstepqrcode,
          SelectType: ''
        }
        const res = await MesOrderStepStart(data)
        MesOrderStepStart(data).then(res => {
        if (res.code === '200' && res.count === 0) {
          await this.ZZstart(res.data)
            this.ZZstart(res.data)
          } else if (res.code === '200' && res.count === 1) {
            this.ZZreport(res.data)
        }
        if (res.code === '200' && res.count === 1) {
          await this.ZZreport(res.data)
        }
        }).catch(e => {
          this.form.orderstepqrcode = ''
        })
      }
      if (belong === 'WXproduceCode') {
        const orderstepqrcode = this.WXform.orderstepqrcode
@@ -1735,13 +1740,16 @@
          orderstepqrcode: orderstepqrcode,
          SelectType: this.WXSelected// OUT、IN
        }
        const res = await MesOrderStepStart(data)
        MesOrderStepStart(data).then(res => {
        if (res.code === '200' && res.count === 2) {
          await this.WXsend(res.data)
            this.WXsend(res.data)
          } else if (res.code === '200' && res.count === 3) {
            this.WXback(res.data)
        }
        if (res.code === '200' && res.count === 3) {
          await this.WXback(res.data)
        }
        }).catch(e => {
          this.WXform.orderstepqrcode = ''
        })
      }
      if (belong === 'badProduceCode') {
@@ -1944,7 +1952,8 @@
      this.$refs.tableDataRef.doLayout()
    },
    calculatedValue() {
      const total = 100; let value = 0
      const total = 100;
      let value = 0
      this.userTableData.forEach(item => {
        item.ratio = parseFloat((100 / this.userTableData.length).toFixed(2))
        value += item.ratio
@@ -2239,7 +2248,10 @@
              eqpcode: this.dialogForm.eqpcode, // 设备编码
              usergroupcode: this.dialogForm.usergroupcode, // 班组编码
              // reportuser: reportuser, // 报工人员
              reportuser: this.dialogForm.reckway === 'group' ? this.userTableData : [{ usercode: this.dialogForm.operation, ratio: 100 }],
              reportuser: this.dialogForm.reckway === 'group' ? this.userTableData : [{
                usercode: this.dialogForm.operation,
                ratio: 100
              }],
              taskqty: this.dialogForm.planqty, // 任务数量
              // startqty: this.dialogForm.startqty, // 开工数量
              startqty: this.dialogForm.reportqty, // 开工数量