haoxuan
2023-08-29 87f7f7a7588e926c6535eea2910ae98ca4101994
src/views/purchaseManage/purchase/DetailSupplier.vue
@@ -153,6 +153,7 @@
<script>
import { deletePurchase } from "@/api/purchaseManage/purchase";
import { getDataByType } from "@/api/data";
export default {
  name: "DetailSupplier",
  props: {
@@ -184,10 +185,11 @@
      tableList: {},
      showSummary:{
        show: true,
        sumProp: ["number", "total"],
        mergeNumber: 4,
        sumProp: ["amount", "total"],
        mergeNumber: 5,
        totalName:'小计'
      },
      purchaseStatusList:getDataByType('purchaseStatus'),
    };
  },
  created() {
@@ -197,6 +199,17 @@
  mounted() {},
  computed: {},
  methods: {
    getpurchaseStatus(val) {
      if (val) {
        for (let i in this.purchaseStatusList) {
          if (this.purchaseStatusList[i].id == val) {
            return this.purchaseStatusList[i].name;
          }
        }
      } else {
        return "--";
      }
    },
    // email 通知下单
    emailClick() {},
    // 删除
@@ -267,7 +280,7 @@
        },
        {
          leftStr: "采购单状态",
          leftValue: item.contact_name,
          leftValue: this.getpurchaseStatus(item.status),
          rightStr: "采购负责人",
          rightValue: item.contact_position,
        },
@@ -285,7 +298,7 @@
        },
        {
          leftStr: "到货仓库",
          leftValue: item.sales_resources,
          leftValue: item.warehouse,
          rightStr: "",
          rightValue: "",
        },
@@ -314,8 +327,8 @@
        tableInfomation: item.productList?item.productList:[],
        selectIndex: true,
        tableColumn: [
          { label: "产品名称", prop: "name", min: 190, isCommonClick: true },
          { label: "产品编码", prop: "number", min: 130, isCommonClick: true },
          { label: "产品名称", prop: "name", min: 160,  },
          { label: "产品编码", prop: "number", min: 130, },
          { label: "计量单位", prop: "unit", min: 130 },
          { label: "规格型号", prop: "specifications", min: 130 },
          { label: "数量", prop: "amount", min: 130 },