loulijun2021
2023-09-23 86f08ecff780071e294b6c50757b70dda01fa764
src/views/workOrder/workOrderList.vue
@@ -269,6 +269,13 @@
              <div v-else>/</div>
            </template>
          </el-table-column>
          <el-table-column
            prop="data_sources"
            show-tooltip-when-overflow
            label="数据来源"
            sortable="custom"
            width="120"
          />
          <el-table-column
            prop="lm_user"
@@ -295,12 +302,12 @@
                  <i
                    class="el-icon-edit-outline"
                    :style="{color:$store.state.settings.theme}"
                    @click="edit('edit',row)"
                    @click.stop="edit('edit',row)"
                  />
                </el-tooltip>
                <el-tooltip v-del-tab-index class="item" effect="dark" content="删除" placement="top">
                  <i class="el-icon-delete" :style="{color:$store.state.settings.theme}" @click="del(row)" />
                  <i class="el-icon-delete" :style="{color:$store.state.settings.theme}" @click.stop="del(row)" />
                </el-tooltip>
                <el-tooltip class="item" effect="dark" content="打印工单" placement="top">
@@ -313,7 +320,7 @@
                    :style="{color:$store.state.settings.theme}"
                    class="el-icon-printer"
                    style="cursor: pointer;margin-right: 15px"
                    @click="handlePrint(row.wo_code)"
                    @click.stop="handlePrint(row.wo_code)"
                  />
                </el-tooltip>
@@ -322,7 +329,7 @@
                    class="el-icon-view"
                    style="cursor: pointer;"
                    :style="{color:$store.state.settings.theme}"
                    @click="edit('view',row)"
                    @click.stop="edit('view',row)"
                  />
                </el-tooltip>
@@ -1984,7 +1991,9 @@
        wkshopname: '', // 生产车间名称
        deliverydate: '', // 交付时间
        data_sources: '' // 数据来源
        data_sources: '', // 数据来源
        mesmaxqty: 0// 工单的最大值
      },
      ordertypeArr: [// 工单类型
        { code: 'PO', name: '标准工单' },
@@ -2355,7 +2364,7 @@
    },
    selected(row, index) {
    // && row.isstep === 'Y'
    // && row.isstep === 'Y'  //后端这个字段还没放出来
      if (row.status === 'NEW') {
        return true
      } else {
@@ -2427,6 +2436,7 @@
      this.dialogForm.partspec = row.partspec
      this.dialogForm.wkshopcode = row.wkshp_code
      this.dialogForm.deliverydate = row.saleOrderDeliveryDate.substring(0, 11)
      this.dialogForm.mesqty = row.plan_qty
      const data = {
        sourceid: this.dialogForm.sourceorderid,
@@ -2435,7 +2445,8 @@
        data_sources: this.dialogForm.data_sources
      }
      const { data: res } = await UpdateMesOrderStepSearch(data)
      this.dialogForm.mesqty = res.canupdate_qty
      this.dialogForm.mesmaxqty = res.canupdate_qty
      res.stepdata.forEach(i => {
        this.stepTableData.push(
          {
@@ -2496,6 +2507,10 @@
            return this.$message.info('源单单号不能为空!')
          }
          if (this.dialogForm.data_sources === 'ERP' && this.dialogForm.mesmaxqty < this.dialogForm.mesqty) {
            return this.$message.info('此工单的最大修改数值为:' + this.dialogForm.mesmaxqty)
          }
          const workListSub = []
          this.stepTableData.forEach((i, j) => {
            workListSub.push(