小小儁爺
2024-07-09 eb5aca176bf68e13be87c98eb1ead8aa72adee28
1.工单打印新增销售订单号2.综合看板修改
已修改2个文件
17 ■■■■ 文件已修改
src/views/kanbanManager/zhkb.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/workOrder/workOrderList.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/kanbanManager/zhkb.vue
@@ -215,6 +215,9 @@
          this.LeftTopData02.push(data)
        }
      }
      const t1 = this.LeftTopData02[ this.LeftTopData02.length - 1]
      this.LeftTopData02.splice(7, 1)
      this.LeftTopData02.splice(3, 0, t1)
      loadEcharts('all01', all01(this.legendData, this.LeftTopData02))
      setInterval(() => {
@@ -253,6 +256,9 @@
              this.LeftTopData02.push(data)
            }
          }
          const t1 = this.LeftTopData02[ this.LeftTopData02.length - 1]
          this.LeftTopData02.splice(7, 1)
          this.LeftTopData02.splice(3, 0, t1)
          loadEcharts('all01', all01(this.legendData, this.LeftTopData02))
        })
      }, 1000 * 30)
src/views/workOrder/workOrderList.vue
@@ -383,7 +383,7 @@
                    :style="{color:$store.state.settings.theme}"
                    class="el-icon-printer"
                    style="cursor: pointer;margin-right: 15px"
                    @click.stop="handlePrint(row.wo_code)"
                    @click.stop="handlePrint(row.wo_code,row.saleOrderCod)"
                  />
                </el-tooltip>
@@ -1331,6 +1331,9 @@
              style="display: flex;justify-content: space-between"
            >
              <div class="elForm">
                <el-form-item label="销售单号:" class="formContent">
                  {{ formApprove.saleOrderCode ?formApprove.saleOrderCode :'/' }}
                </el-form-item>
                <el-form-item label="工单编号:" class="formContent">
                  {{ formApprove.mesordercode }}
                </el-form-item>
@@ -3047,11 +3050,11 @@
      this.dialogVisibleSearch = false
    },
    // 处理打印
    handlePrint(wo_code) {
    handlePrint(wo_code, saleOrderCode) {
      // const number = Math.random() * Math.random()
      // this.number = number === 0 ? (10 + Math.random()) : number
      // console.log(number)
      this.formApprove.saleOrderCode = this.formApprove.saleOrderCode !== '' ? this.formApprove.saleOrderCode : saleOrderCode
      const data2 = {
        mesordercode: wo_code || this.dialogForm.mesordercode
      }
@@ -3137,6 +3140,7 @@
    },
    dialogVisibleConfirmClose() {
      this.formApprove.saleOrderCode = ''
      // this.dialogForm.mesordercode = ''
      this.formApprove.mesordercode = ''
      this.formApprove.m_po = ''
@@ -3438,6 +3442,7 @@
    },
    //  行点击事件
    async rowClick(row, event, column) {
      this.formApprove.saleOrderCode = row.saleOrderCode
      this.routeCode = row.route_code ? row.route_code : ''
      this.partCode = row.partcode ? row.partcode : ''
      const data = {