yangfeng
2023-08-17 79b0a1a4f81ec7750e6deeb02bc9865785b6fee9
src/views/sales/subOrder/AddSubOrderDialog.vue
@@ -118,14 +118,8 @@
            产品管理
            <div style="margin-left: 400px">
              币种
              <el-select
                v-model="editConfig.infomation.currency"
                placeholder="请选择"
                size="mini"
                style="width: 63%"
                disabled
              >
                <el-option v-for="item in currencyOptions" :key="item.value" :label="item.label" :value="item.value">
              <el-select v-model="editConfig.infomation.currency" placeholder="请选择" size="mini" style="width: 63%">
                <el-option v-for="item in currencyOptions" :key="item.id" :label="item.name" :value="item.id">
                </el-option>
              </el-select>
            </div>
@@ -135,6 +129,8 @@
              :product-table-list="productTableList"
              @inputContent="inputContent"
              @addProductClick="addProductClick"
              @emptyProductClick="emptyProductClick"
              @recalculateProductClick="recalculateProductClick"
            />
          </div>
          <!-- 合计 -->
@@ -257,7 +253,7 @@
      },
      memberOptions: [],
      discount: "2",
      currencyOptions: [],
      currencyOptions: [{ id: 1, name: "人民币" }], // 币种
      discountOptions: [
        { value: "1", label: "百分比降价" },
        { value: "2", label: "直接降价" }
@@ -460,7 +456,7 @@
          { label: "产品编号", prop: "Number" },
          { label: "数量", prop: "Amount", input: true, isRequird: true },
          { label: "销售单价", prop: "Unit", input: true },
          { label: "价税合计", prop: "other3", input: true },
          { label: "价税合计", prop: "total", input: true },
          { label: "描述", prop: "other8" }
        ]
      }
@@ -492,7 +488,28 @@
        SalePrice: 0,
        Unit: ""
      })
    }
    },
    //  产品清空
    emptyProductClick() {
      this.productId = 1
      this.tableData = [
        {
          id: 1,
          Amount: 0,
          IsSale: true,
          MaterialMode: "",
          MinInventory: 0,
          Name: "",
          Number: "",
          PurchaseType: "",
          SalePrice: 0,
          Unit: ""
        }
      ]
      this.productTableList.tableData = this.tableData
    },
    // 产品重算
    recalculateProductClick() {}
  }
}
</script>