|
@@ -98,8 +98,11 @@
|
|
|
<span>{{ scope.row.notSurplusStock }}</span>
|
|
<span>{{ scope.row.notSurplusStock }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-table-column>
|
|
</vxe-table-column>
|
|
|
- <vxe-table-column v-if="status === 'audit'" field="surplusNumber" title="库存数量"
|
|
|
|
|
- align="center"></vxe-table-column>
|
|
|
|
|
|
|
+ <vxe-table-column v-if="status === 'audit'" field="surplusNumber" title="库存数量" align="center">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <span>{{ scope.row.surplusNumber * scope.row.spec }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </vxe-table-column>
|
|
|
<vxe-table-column field="company" title="单位" align="center"></vxe-table-column>
|
|
<vxe-table-column field="company" title="单位" align="center"></vxe-table-column>
|
|
|
<vxe-table-column field="remarks" title="备注" align="center"></vxe-table-column>
|
|
<vxe-table-column field="remarks" title="备注" align="center"></vxe-table-column>
|
|
|
<vxe-table-column title="操作" width="170" align="center">
|
|
<vxe-table-column title="操作" width="170" align="center">
|
|
@@ -761,13 +764,10 @@ export default {
|
|
|
|
|
|
|
|
if (parseInt(row.notSurplusStock) && parseInt(row.returnedNum) && parseInt(row.returnedNum) != '0' && parseInt(row.notSurplusStock) != '0') {
|
|
if (parseInt(row.notSurplusStock) && parseInt(row.returnedNum) && parseInt(row.returnedNum) != '0' && parseInt(row.notSurplusStock) != '0') {
|
|
|
if ((parseInt(row.surplusStock) + parseInt(row.returnedNum)) == parseInt(row.collectNumber)) {
|
|
if ((parseInt(row.surplusStock) + parseInt(row.returnedNum)) == parseInt(row.collectNumber)) {
|
|
|
- console.log("走1");
|
|
|
|
|
row.isReturn = '1' // 已退回
|
|
row.isReturn = '1' // 已退回
|
|
|
} else if (parseInt(row.surplusStock) == '0') {
|
|
} else if (parseInt(row.surplusStock) == '0') {
|
|
|
- console.log("走2");
|
|
|
|
|
row.isReturn = '0' // 未退回
|
|
row.isReturn = '0' // 未退回
|
|
|
} else {
|
|
} else {
|
|
|
- console.log("走3");
|
|
|
|
|
row.isReturn = '2' // 部分退回
|
|
row.isReturn = '2' // 部分退回
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|