小小儁爺
2024-05-31 70c12f32f5741af1f4fe6bb2490ebbe2e6ece953
1.修改工单下达时的bug
已修改3个文件
34 ■■■■■ 文件已修改
src/views/basicSettings/meterPrice.vue 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/workOrder/produceOrderList.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/workOrder/workOrderList.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicSettings/meterPrice.vue
@@ -433,7 +433,27 @@
          width: false,
          prop: 'unprice',
          label: '计件单价',
          id: 17,
          id: 12,
          show: true,
          fixed: false,
          sortable: true
        },
        {
          minWidth: false,
          width: 110,
          prop: 'lm_user',
          label: '创建人员',
          id: 13,
          show: true,
          fixed: false,
          sortable: true
        },
        {
          minWidth: false,
          width: 160,
          prop: 'lm_date',
          label: '创建时间',
          id: 14,
          show: true,
          fixed: false,
          sortable: true
src/views/workOrder/produceOrderList.vue
@@ -823,7 +823,7 @@
      this.form.paystartdate = ''
      this.form.payenddate = ''
      this.form.creatuser = ''
      this.form.erpordercode = ''
      this.form.saleordercode = ''
      this.form.createdate = ''
      this.form.timeValue = []
src/views/workOrder/workOrderList.vue
@@ -2067,7 +2067,8 @@
        deliverydate: '', // 交付时间
        data_sources: '', // 数据来源
        mesmaxqty: 0// 工单的最大值
        mesmaxqty: 0, // 工单的最大值
        mesqtyinit: 0// 工单数量初始值
      },
      ordertypeArr: [// 工单类型
        { code: 'PO', name: '标准工单' },
@@ -2536,6 +2537,8 @@
      this.dialogForm.deliverydate = row.saleOrderDeliveryDate.substring(0, 11)
      this.dialogForm.mesqty = row.plan_qty
      this.dialogForm.mesqtyinit = row.plan_qty
      const data = {
        sourceid: this.dialogForm.sourceorderid,
        sourcewo: this.dialogForm.sourceorder,
@@ -2654,6 +2657,10 @@
            return this.$message.info('源单单号不能为空!')
          }
          if (this.dialogForm.mesqty <= 0) {
            return this.$message.info('工单数量不能等于零!')
          }
          if (this.dialogForm.data_sources === 'ERP' && this.dialogForm.mesmaxqty < this.dialogForm.mesqty) {
            return this.$message.info('此工单的最大修改数值为:' + this.dialogForm.mesmaxqty)
          }
@@ -2687,6 +2694,7 @@
            deliverydate: this.dialogForm.deliverydate, // 交付时间
            data_sources: this.dialogForm.data_sources, // 数据来源
            isstep: workListSub.length > 0 ? 'Y' : 'N', //
            difference: this.dialogForm.mesqty - this.dialogForm.mesqtyinit, // 数据差值
            workListSub
          }