曹睿
2 天以前 41a76543a91e6c39c6ec66e0f2af8244500d1b0b
src/views/salesManagement/invoiceRegistration/index.vue
@@ -74,7 +74,11 @@
                width="60"
              />
              <el-table-column label="产品大类" prop="productCategory" />
              <el-table-column label="规格型号" prop="specificationModel" />
              <el-table-column
                label="规格型号"
                prop="specificationModel"
                width="150"
              />
              <el-table-column label="单位" prop="unit" width="70" />
              <el-table-column label="数量" prop="quantity" width="70" />
              <el-table-column label="税率(%)" prop="taxRate" width="70" />
@@ -274,7 +278,11 @@
            width="60"
          />
          <el-table-column label="产品大类" prop="productCategory" />
          <el-table-column label="规格型号" prop="specificationModel" />
          <el-table-column
            label="规格型号"
            prop="specificationModel"
            width="150"
          />
          <el-table-column label="单位" prop="unit" />
          <el-table-column label="数量" prop="quantity" width="70" />
          <el-table-column label="税率(%)" prop="taxRate" width="70" />
@@ -347,12 +355,12 @@
              ></el-input>
            </template>
          </el-table-column>
          <el-table-column label="登记人" prop="register">
          <el-table-column label="登记人" prop="register" width="100">
            <template #default="{ row }">
              <el-input v-model="row.register" placeholder="请输入登记人" />
            </template>
          </el-table-column>
          <el-table-column label="登记日期" prop="registerDate">
          <el-table-column label="登记日期" prop="registerDate" width="150">
            <template #default="{ row }">
              <el-date-picker
                style="width: 100%"
@@ -362,6 +370,7 @@
                type="date"
                placeholder="请选择"
                clearable
                disabled
              />
            </template>
          </el-table-column>
@@ -449,7 +458,7 @@
};
const formattedInputNumber = (value) => {
  return parseFloat(value).toFixed(2);
  return value ? parseFloat(value).toFixed(2) : 0;
};
// 查询列表
@@ -488,7 +497,7 @@
      productList({ salesLedgerId: row.id, type: 1 }).then((res) => {
        const index = tableData.value.findIndex((item) => item.id === row.id);
        if (index > -1) {
          tableData.value[index].children = res;
          tableData.value[index].children = res.data;
        }
        expandedRowKeys.value.push(row.id);
      });