小小儁爺
2024-11-14 6156331374cefbe908c5aeaebda911646c1d5f10
src/views/produce/productWarehouse2.vue
@@ -657,6 +657,9 @@
    },
    // 获取大列表查询
    async getProductInHouseOrderSearch() {
      if (this.form.wkshopcode === '') {
        return this.$message.info('生产车间不能为空!')
      }
      const data = {
        saleordercode: this.form.saleordercode, // 销售单号
        wkshopcode: this.form.wkshopcode, // 生产车间
@@ -664,8 +667,8 @@
        mesordercode: this.form.mesordercode, // 工单编号
        partcode: this.form.partcode, // 产品编码
        partname: this.form.partname, // 产品名称
        partspec: this.form.partspec // 规格型号
        partspec: this.form.partspec, // 规格型号
        deptno: ''// 入库部门
      }
      const { data: res } = await ProductInHouseOrderSearch(data)
      this.tableDataDetail = res
@@ -765,13 +768,16 @@
      }
      // console.log(JSON.stringify(data))
      this.$store.state.app.buttonIsDisabled = true
      const res = await TProductInHouseOrderSpSeave(data)
      this.$store.state.app.buttonIsDisabled = false
      if (res.code === '200') {
        this.$message.success('入库成功!')
        this.multipleSelection = []
        this.form.deptno = ''
        this.form.stockcode = ''
        await this.getProductInHouseOrderSearch()
        // this.form.deptno = ''
        // this.form.stockcode = ''
        this.reset()
        // await this.getProductInHouseOrderSearch()
        await this.getProductInHouseOrderCodeSearch()
      }
    },