liuguocan
2023-11-28 ed2117c738eedd3143d3b2ad6b0d40b2116afcf6
admin-web/src/views/departmentitem/itemdis/distribution/edit.vue
@@ -93,12 +93,7 @@
              <el-form-item
                label="规格型号"
                :prop="`procureGoods[${goodsIndex}].modelsIds`"
                :rules="{
                  required: true,
                  message: '请选择',
                  trigger: 'change',
                }"
              >
                :rules="{required: true,message: '请选择',trigger: 'change',}">
                <el-select
                  v-model="goodsItem.modelsIds"
                  multiple
@@ -130,45 +125,49 @@
                  50
                </el-form-item>
              </el-col>
              <el-col :span="10" v-if="true">
              <!--A类商品 -->
              <el-col :span="24" v-if="goodsItem.type===1">
                <el-table :data="mItem.clist" :stripe="true" >
                  <el-table-column prop="count" label="分发数量" align="center">
                    <template slot-scope="scope">
                      <el-input v-model="scope.row.count"></el-input>
                    </template>
                  </el-table-column>
                  <el-table-column prop="count" label="使用人" align="center">
                    <template slot-scope="scope">
                      <el-input v-model="scope.row.user" maxlength="20"></el-input>
                    </template>
                  </el-table-column>
                  <el-table-column prop="count" label="联系电话" align="center">
                    <template slot-scope="scope">
                      <el-input v-model.number="scope.row.phone" maxlength="11"></el-input>
                    </template>
                  </el-table-column>
                  <el-table-column align="left" width="60">
                    <template slot-scope="scope">
                      <i
                        v-if="mItem.clist.length > 1"
                        class="el-icon-remove-outline"
                        style="color: #f56c6c; font-size: 16px; cursor: pointer"
                        @click="handleDel(goodsIndex, mIndex, scope.$index)"
                      ></i>
                      <i
                        v-if="mItem.clist.length - 1 == scope.$index"
                        class="el-icon-circle-plus-outline"
                        style="color: #0d997c; font-size: 16px; cursor: pointer"
                        @click="handleAdd(goodsIndex, mIndex, scope.$index)"
                      ></i>
                    </template>
                  </el-table-column>
                </el-table>
              </el-col>
              <!--BC类商品 -->
              <el-col :span="10" v-else>
                <el-form-item label="分发数量:" prop="baseGoodsModelsId" style="margin-bottom: 0" label-width="80">
                  <el-input v-model.number="mItem.count" style="width: 160px;"></el-input>
                </el-form-item>
              </el-col>
            </el-row>
            <el-table :data="mItem.clist" :stripe="true" v-if="false">
              <el-table-column prop="count" label="分发数量" align="center">
                <template slot-scope="scope">
                  <el-input v-model="scope.row.count"></el-input>
                </template>
              </el-table-column>
              <el-table-column prop="count" label="使用人" align="center">
                <template slot-scope="scope">
                  <el-input v-model="scope.row.user" maxlength="20"></el-input>
                </template>
              </el-table-column>
              <el-table-column prop="count" label="联系电话" align="center">
                <template slot-scope="scope">
                  <el-input v-model.number="scope.row.phone" maxlength="11"></el-input>
                </template>
              </el-table-column>
              <el-table-column align="left" width="60">
                <template slot-scope="scope">
                  <i
                    v-if="mItem.clist.length > 1"
                    class="el-icon-remove-outline"
                    style="color: #f56c6c; font-size: 16px; cursor: pointer"
                    @click="handleDel(goodsIndex, mIndex, scope.$index)"
                  ></i>
                  <i
                    v-if="mItem.clist.length - 1 == scope.$index"
                    class="el-icon-circle-plus-outline"
                    style="color: #0d997c; font-size: 16px; cursor: pointer"
                    @click="handleAdd(goodsIndex, mIndex, scope.$index)"
                  ></i>
                </template>
              </el-table-column>
            </el-table>
          </el-row>
          <div class="btn-group">
            <el-button
@@ -178,8 +177,7 @@
              plain
              size="mini"
              @click="removeGoods(goodsIndex)"
              >移除</el-button
            >
              >移除</el-button>
            <el-button
              v-if="formData.procureGoods.length - 1 == goodsIndex"
              name="新增物品"
@@ -187,8 +185,7 @@
              plain
              size="mini"
              @click="addGoods"
              >新增物品</el-button
            >
              >新增物品</el-button>
          </div>
        </div>
      </div>