|  |  | 
 |  |  |             return customColSpanProps(index)
 | 
 |  |  |         },
 | 
 |  |  |     },
 | 
 |  |  |     {
 | 
 |  |  |         title: '库位类型',
 | 
 |  |  |         dataIndex: 'type',
 | 
 |  |  |         width: 110,
 | 
 |  |  |         ellipsis: true,
 | 
 |  |  |         ...getColumnSearchProps('type'),
 | 
 |  |  |         customCell: (_, index) => {
 | 
 |  |  |             return customColSpanProps(index)
 | 
 |  |  |         },
 | 
 |  |  |     }
 | 
 |  |  | ];
 | 
 |  |  | 
 | 
 |  |  | const state = reactive({
 | 
 |  |  | 
 |  |  |         tmp.push({
 | 
 |  |  |             title: formatMessage('db.man_order_detl.anfme', '数量'),
 | 
 |  |  |             dataIndex: 'anfme',
 | 
 |  |  |             width: 140,
 | 
 |  |  |             width: 60,
 | 
 |  |  |             ellipsis: true,
 | 
 |  |  |             fixed: 'right',
 | 
 |  |  |         })
 | 
 |  |  | 
 | 
 |  |  |         tmp.push({
 | 
 |  |  |             title: formatMessage('db.man_order_detl.locNo', '出库库位'),
 | 
 |  |  |             dataIndex: 'locNo',
 | 
 |  |  | 
 |  |  |                     dataTmp.locNo = null;
 | 
 |  |  |                     dataTmp.locDetlId = null;
 | 
 |  |  |                     dataTmp.anfme = item.anfme;
 | 
 |  |  |                     dataTmp.typeId = val.typeId;
 | 
 |  |  |                     dataTmp.workQty = val.workQty;
 | 
 |  |  |                     dataTmp.typeId = item.typeId;
 | 
 |  |  |                     dataTmp.workQty = item.workQty;
 | 
 |  |  |                     dataTmp.key = idx;
 | 
 |  |  |                     dataTmp.operationPort = defaultOperationPort;
 | 
 |  |  | 
 | 
 |  |  | 
 |  |  |                         tableDataTmp.push(dataTmp);
 | 
 |  |  |                     }
 | 
 |  |  | 
 | 
 |  |  |                     if (isused > 0) {
 | 
 |  |  |                         let dataTmp = JSON.parse(JSON.stringify(item));
 | 
 |  |  |                         dataTmp.locId = null;
 | 
 |  |  |                         dataTmp.locNo = null;
 | 
 |  |  |                         dataTmp.locDetlId = null;
 | 
 |  |  |                         dataTmp.typeId = val.typeId;
 | 
 |  |  |                         dataTmp.workQty = val.workQty;
 | 
 |  |  |                         dataTmp.anfme = isused;
 | 
 |  |  |                         dataTmp.key = idx;
 | 
 |  |  |                         dataTmp.operationPort = defaultOperationPort;
 | 
 |  |  |                     // if (isused > 0) {
 | 
 |  |  |                     //     let dataTmp = JSON.parse(JSON.stringify(item));
 | 
 |  |  |                     //     dataTmp.locId = null;
 | 
 |  |  |                     //     dataTmp.locNo = null;
 | 
 |  |  |                     //     dataTmp.locDetlId = null;
 | 
 |  |  |                     //     dataTmp.typeId = item.typeId;
 | 
 |  |  |                     //     dataTmp.workQty = item.workQty;
 | 
 |  |  |                     //     dataTmp.anfme = isused;
 | 
 |  |  |                     //     dataTmp.key = idx;
 | 
 |  |  |                     //     dataTmp.operationPort = defaultOperationPort;
 | 
 |  |  | 
 | 
 |  |  |                         tableDataTmp.push(dataTmp);
 | 
 |  |  |                         count++;
 | 
 |  |  |                     }
 | 
 |  |  |                     //     tableDataTmp.push(dataTmp);
 | 
 |  |  |                     //     count++;
 | 
 |  |  |                     // }
 | 
 |  |  |                 }
 | 
 |  |  | 
 | 
 |  |  |                 colSpan[idx] = count;
 | 
 |  |  | 
 |  |  |                 <template #bodyCell="{ column, text, record, index }">
 | 
 |  |  |                     <template v-if="column.dataIndex === 'locNo'">
 | 
 |  |  |                         <div v-if="record.locId != null && record.anfme > 0">
 | 
 |  |  |                             <!-- <a-tag color="green">{{ record.locNo }}</a-tag> -->
 | 
 |  |  |                             <a-select v-model:value="record.locId" :options="record.otherLocs"
 | 
 |  |  | <!--                             <a-tag color="green">{{ record.locNo }}</a-tag>-->
 | 
 |  |  |                             <a-select v-model:value="record.locNo" :options="record.otherLocs"
 | 
 |  |  |                                 :fieldNames="{ label: 'locNo', value: 'locId' }"
 | 
 |  |  |                                 @change="handleOtherLocChange(index, record)"></a-select>
 | 
 |  |  |                                 @change="handleOtherLocChange(index, record)">
 | 
 |  |  | 
 | 
 |  |  |                             </a-select>
 | 
 |  |  |                         </div>
 | 
 |  |  |                         <div v-else>
 | 
 |  |  |                             <a-tag color="red">库存不足</a-tag>
 |