yangfeng
2024-03-27 88e42f94b4974f2cd01db617bcd7c401953e2a11
Merge branch 'master' of http://192.168.5.5:10010/r/web/SRM
2个文件已修改
25 ■■■■■ 已修改文件
src/api/purchaseManage/purchase.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/purchaseManage/purchase/index.vue 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/purchaseManage/purchase.js
@@ -105,8 +105,8 @@
// 确认采购单
export function newSubmitPurchase(data) {
  return request({
    url: "/api/purchase/newSubmit/"+data,
    method: "get",
    url: "/api/purchase/newSubmit",
    method: "post",
    data
  })
}
src/views/purchaseManage/purchase/index.vue
@@ -175,9 +175,9 @@
  data() {
    // 产品信息
    const productColumn = [
      { label: "产品编号", prop: "productId", default: true },
      { label: "产品名称", prop: "productName" },
      { label: "规格", prop: "specs" },
      { label: "产品编号", prop: "number", default: true },
      { label: "产品名称", prop: "name" },
      { label: "规格", prop: "specifications" },
      { label: "型号", prop: "modelNumber" },
      { label: "采购数量", prop: "amount" },
      { label: "已发货数量", prop: "sendAmount" },
@@ -481,7 +481,10 @@
          if (!row.supplierName) {
            this.btnEdit(row)
          } else {
            newSubmitPurchase(row.id).then((response) => {
            newSubmitPurchase({
              id: Number(row.id),
              status: 4
            }).then((response) => {
              if (response.code === 200) {
                this.$message.success("提交成功")
                this.getData()
@@ -504,7 +507,10 @@
        type: "warning"
      }).then(
        () => {
          newSubmitPurchase(Number(row.id)).then((response) => {
          newSubmitPurchase({
            id: Number(row.id),
            status: 5
          }).then((response) => {
            if (response.code === 200) {
              this.$message.success("已取消")
              this.getData()
@@ -599,7 +605,7 @@
    // top 行点击
    tableRowClick(row) {
      this.selectRow = row
      if (row.status == 1 && this.TabsIndex == 0) {
      if (this.TabsIndex == 0) {
        getPurchaseInfo({ id: row.id }).then((res) => {
          if (res.code == 200) {
            this.productTableList.tableInfomation = res.data.productList
@@ -676,6 +682,7 @@
        this.setBottomList()
        this.getProductInventoryInfo(this.selectRow)
      } else if (this.TabsIndex == 2) {
        console.log("入库")
        // 入库信息列表
        this.tableBottomColumn = this.inLibraryColumn
        this.showBottomCol = this.inLibraryCol
@@ -705,7 +712,7 @@
    },
    // 获取产品/收货信息
    async getProductInventoryInfo(row) {
      if (this.TabsIndex == 0 && row.status == 1) {
      if (this.TabsIndex == 0) {
        getPurchaseInfo({ id: row.id }).then((res) => {
          if (res.code == 200) {
            this.productTableList.tableInfomation = res.data.productList