| | |
| | | > |
| | | <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> |
| | |
| | | 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 |
| | |
| | | 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') { |
| | |
| | | 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 |
| | |
| | | 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, // 开工数量 |