zouyu
4 天以前 d862cefc4c418dafff73805dcfb4bc089ed501db
src/views/plan/customerorder/index.vue
@@ -543,7 +543,7 @@
        isSearch: true, // 高级查询按钮
        defaultOrderBy: { column: 'placeOrderDate', direction: 'desc' },
        cancelRunCreated: true,
        reserveSelection: true // 是否保留之前选择的数据
        reserveSelection: false // 是否保留之前选择的数据
      },
      table: {
        total: 0,
@@ -2000,7 +2000,6 @@
    },
    syncPLM() {
      console.log(this.multipleSelection)
      if (this.multipleSelection.length > 0) {
        this.$confirm('确认同步选中的销售订单吗?', '提示', {
          confirmButtonText: '确定',
@@ -2008,7 +2007,12 @@
          type: 'warning'
        })
          .then(() => {
            syncPlm(this.multipleSelection.map((item) => item.partNo))
            syncPlm(
              this.multipleSelection.map((item) => ({
                id: item.id, // 传递id字段
                partNo: item.partNo // 传递partNo字段
              }))
            )
              .then((res) => {
                if (res.status === 200) {
                  this.$message.success('同步成功')