huminmin
16 小时以前 fd6abd7553ea3a994ff4bbc843ea61b9eb2f6fc7
src/views/salesManagement/salesLedger/index.vue
@@ -47,6 +47,7 @@
              <el-table-column label="产品大类" prop="productCategory" />
              <el-table-column label="规格型号" prop="specificationModel" />
              <el-table-column label="批号" prop="batchNo" />
              <el-table-column label="UID码" prop="uidNo" />
              <el-table-column label="单位" prop="unit" />
                     <el-table-column label="产品状态"
                                              width="100px"
@@ -367,6 +368,13 @@
            </el-row>
        <el-row :gutter="30">
          <el-col :span="24">
            <el-form-item label="UID码:" prop="uidNo">
              <el-input v-model="productForm.uidNo" placeholder="请输入" disabled />
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="30">
          <el-col :span="24">
            <el-form-item label="批号:" prop="batchNo">
              <el-select v-model="productForm.batchNo" placeholder="请选择" clearable filterable>
                <el-option v-for="item in batchNoOptions" :key="item.value" :label="item.label" :value="item.value" />
@@ -526,6 +534,7 @@
                              <th>产品名称</th>
                              <th>规格型号</th>
                              <th>单位</th>
                              <th>UID码</th>
                              <th>单价</th>
                              <th>零售数量</th>
                              <th>零售金额</th>
@@ -536,6 +545,7 @@
                              <td>{{ product.productCategory || '' }}</td>
                              <td>{{ product.specificationModel || '' }}</td>
                              <td>{{ product.unit || '' }}</td>
                              <td>{{ product.uidNo || '' }}</td>
                              <td>{{ product.taxInclusiveUnitPrice || '0' }}</td>
                              <td>{{ product.quantity || '0' }}</td>
                              <td>{{ product.taxInclusiveTotalPrice || '0' }}</td>
@@ -755,6 +765,7 @@
   productForm: {
      productCategory: "",
      specificationModel: "",
    uidNo: "",
      unit: "",
      quantity: "",
      taxInclusiveUnitPrice: "",
@@ -959,9 +970,11 @@
   if (index !== -1) {
      productForm.value.specificationModel = modelOptions.value[index].model;
      productForm.value.unit = modelOptions.value[index].unit;
    productForm.value.uidNo = modelOptions.value[index].uidNo || "";
   } else {
      productForm.value.specificationModel = null;
      productForm.value.unit = null;
      productForm.value.uidNo = null;
   }
};
const findNodeById = (nodes, productId) => {
@@ -1186,6 +1199,7 @@
         // 台账字段
         productCategory: p.product || p.productName || "",
         specificationModel: p.specification || "",
      uidNo: p.uidNo || "",
         unit: p.unit || "",
         quantity: quantity,
         taxRate: taxRate,
@@ -1721,6 +1735,7 @@
                  <th>产品名称</th>
                  <th>规格型号</th>
                  <th>单位</th>
                  <th>UID码</th>
                  <th>单价</th>
                  <th>零售数量</th>
                  <th>零售金额</th>
@@ -1733,6 +1748,7 @@
                      <td>${product.productCategory || ''}</td>
                      <td>${product.specificationModel || ''}</td>
                      <td>${product.unit || ''}</td>
                      <td>${product.uidNo || ''}</td>
                      <td>${product.taxInclusiveUnitPrice || '0'}</td>
                      <td>${product.quantity || '0'}</td>
                      <td>${product.taxInclusiveTotalPrice || '0'}</td>