haoxuan
2024-03-30 2762603d467165368f53f299b911c753f09dd563
src/views/sales/salesDetails/index.vue
@@ -33,10 +33,10 @@
                    <!-- <el-button @click="delClick(scope.row.id)" type="text" size="small">删除</el-button> -->
                    <el-button @click.stop="closeClick(scope.row)" type="text" size="small">关闭</el-button>
                  </template>
                  <template v-if="scope.row.status === 3 || scope.row.status === 4">
                  <template v-if="scope.row.status === 3">
                    <el-button @click.stop="shipmentsClick(scope.row)" type="text" size="small">发货</el-button>
                  </template>
                  <template v-if="scope.row.status === 3 || scope.row.status === 4">
                  <template v-if="scope.row.status === 3">
                    <el-button @click.stop="confirmClick(scope.row)" type="text" size="small">确认完成</el-button>
                  </template>
                </template>
@@ -192,15 +192,15 @@
        label: "采购数量",
        isClass: true,
        getClassName: this.getFinishAmountClassName,
        prop: "purchaseAmount",
        prop: "purchaseAmount2",
      },
      {
        label: "生产数量", prop: "makeAmount",
        label: "生产数量", prop: "makeAmount2",
        isClass: true,
        getClassName: this.getFinishAmountClassName,
      },
      {
        label: "委外数量", prop: "outsourcingAmount",
        label: "委外数量", prop: "outsourcingAmount2",
        isClass: true,
        getClassName: this.getFinishAmountClassName,
      },
@@ -630,6 +630,7 @@
    },
    // 获取制造信息
    async getProductOrderInfo(number) {
      console.log(number,this.TabsIndex,"number")
      if (number) {
        if (this.TabsIndex == 0) {
          // 产品信息列表
@@ -694,7 +695,7 @@
              let b1 = number1 || number1 == 0 ? number1 : "--";
              string1 = b1 + "/" + a1;
            }
            item.purchaseAmount = string1
            item.purchaseAmount2 = string1
            let string2 = "--";
            let number2 = item.makeFinishAmount;
            let val2 = item.makeAmount
@@ -703,7 +704,7 @@
              let b2 = number2 || number2 == 0 ? number2 : "--";
              string2 = b2 + "/" + a2;
            }
            item.makeAmount = string2
            item.makeAmount2 = string2
            let string3 = "--";
            let number3 = item.outsourcingFinishAmount;
            let val3 = item.outsourcingAmount
@@ -712,7 +713,7 @@
              let b3 = number3 || number3 == 0 ? number3 : "--";
              string3 = b3 + "/" + a3;
            }
            item.outsourcingAmount = string3
            item.outsourcingAmount2 = string3
          }))
        }
        this.productTableList.tableInfomation = res.data && res.data.productInfo ? res.data.productInfo : []