| | |
| | | <template #default="scope"> |
| | | <el-tag v-if="getShippingStatusText(scope.row) === '已发货'" |
| | | type="success">已出库</el-tag> |
| | | <el-tag v-else-if="scope.row.approveStatus === 2" |
| | | <el-tag v-else-if="scope.row.hasSufficientStock" |
| | | type="success">充足</el-tag> |
| | | <el-tag v-else |
| | | type="danger">不足</el-tag> |
| | |
| | | <el-form-item label="客户名称:" prop="customerId"> |
| | | <el-select v-model="form.customerId" placeholder="请选择" clearable :disabled="operationType === 'view'"> |
| | | <el-option v-for="item in customerOption" :key="item.id" :label="item.customerName" :value="item.id"> |
| | | {{ |
| | | item.customerName + "——" + item.taxpayerIdentificationNumber |
| | | {{ |
| | | item.customerName |
| | | }} |
| | | </el-option> |
| | | </el-select> |
| | |
| | | * @param row 行数据 |
| | | */ |
| | | const canShip = (row) => { |
| | | // 产品状态必须是充足(approveStatus === 1) |
| | | if (row.approveStatus !== 1) { |
| | | // 产品状态必须是充足(基于 hasSufficientStock 判断) |
| | | if (!row || !row.hasSufficientStock) { |
| | | return false; |
| | | } |
| | | |