|
@@ -36,7 +36,8 @@
|
|
|
</span>
|
|
</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="orderNum" label="待入库数量" />
|
|
|
|
|
|
|
+ <el-table-column prop="orderNum" label="待入库数量"
|
|
|
|
|
+ v-if="goodsExchangeAddForm.type == 'TRANSFER_ENTRY' || goodsExchangeAddForm.type == 'HAIL_ENTRY' || goodsExchangeAddForm.type == 'SALE_AFTER'" />
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<el-dialog v-model="dialogVisible" :modal=false title="扫码入库" :close-on-click-modal="false" top="80px"
|
|
<el-dialog v-model="dialogVisible" :modal=false title="扫码入库" :close-on-click-modal="false" top="80px"
|
|
@@ -165,7 +166,7 @@ const toSearch = async () => {
|
|
|
} else {
|
|
} else {
|
|
|
ElMessage.warning("请扫描订单内的商品!")
|
|
ElMessage.warning("请扫描订单内的商品!")
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
} else {
|
|
} else {
|
|
|
index.value = indexs;
|
|
index.value = indexs;
|
|
|
}
|
|
}
|
|
@@ -207,8 +208,8 @@ const toSnCode = async () => {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
if (goodsExchangeAddForm.type == 'TRANSFER_ENTRY' || goodsExchangeAddForm.type == 'HAIL_ENTRY' || goodsExchangeAddForm.type == 'SALE_AFTER') {
|
|
if (goodsExchangeAddForm.type == 'TRANSFER_ENTRY' || goodsExchangeAddForm.type == 'HAIL_ENTRY' || goodsExchangeAddForm.type == 'SALE_AFTER') {
|
|
|
- if(goodsExchangeAddForm.product_list[index.value].num >=goodsExchangeAddForm.product_list[index.value].not_entry_num) return ElMessage.warning("录入数量大于未入库数量!")
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (goodsExchangeAddForm.product_list[index.value].num >= goodsExchangeAddForm.product_list[index.value].not_entry_num) return ElMessage.warning("录入数量大于未入库数量!")
|
|
|
|
|
+ }
|
|
|
goodsExchangeAddForm.product_list[index.value].num = goodsExchangeAddForm.product_list[index.value].sn_code_list.length;
|
|
goodsExchangeAddForm.product_list[index.value].num = goodsExchangeAddForm.product_list[index.value].sn_code_list.length;
|
|
|
snCodeForm.bar_code = "";
|
|
snCodeForm.bar_code = "";
|
|
|
nextTick(() => {
|
|
nextTick(() => {
|
|
@@ -318,7 +319,9 @@ const init = async () => {
|
|
|
await infoApi.skuRedis({ send_order_id: id.value, type: 'enter' }).then((response: any) => {
|
|
await infoApi.skuRedis({ send_order_id: id.value, type: 'enter' }).then((response: any) => {
|
|
|
res.data.product_list.map(el => {
|
|
res.data.product_list.map(el => {
|
|
|
el.orderNum = el.num
|
|
el.orderNum = el.num
|
|
|
- el.num = 0
|
|
|
|
|
|
|
+ if (res.data.type == 'TRANSFER_ENTRY' || res.data.type == 'HAIL_ENTRY' || res.data.type == 'SALE_AFTER') {
|
|
|
|
|
+ el.num = 0
|
|
|
|
|
+ }
|
|
|
Object.keys(response.data).map(item => {
|
|
Object.keys(response.data).map(item => {
|
|
|
if (el.id == item) {
|
|
if (el.id == item) {
|
|
|
el.sn_code_list = response.data[item]
|
|
el.sn_code_list = response.data[item]
|