|
|
@@ -833,28 +833,21 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import { approveTaskWithVariables } from '@/api/bpm/task';
|
|
|
import { getProductList } from '@/api/bpm/components/saleManage/contact';
|
|
|
import { getLoginUser } from '@/api/login';
|
|
|
import picker from '@/views/bpm/stockManagement/components/picker.vue';
|
|
|
import outin from '@/api/warehouseManagement/outin';
|
|
|
- import { getTreeByPid, getTreeByGroup } from '@/api/classifyManage';
|
|
|
+ import { getTreeByGroup } from '@/api/classifyManage';
|
|
|
import warehouseDefinition from '@/api/warehouseManagement/warehouseDefinition';
|
|
|
import selectUpload from '@/components/selectUpload';
|
|
|
import upload from '@/components/uploadImg';
|
|
|
import { sceneState } from '@/utils/dict/index';
|
|
|
- // import { getInfo, warehousingAdd, getAssetNum } from '@/api/stockManagement';
|
|
|
import selectTree from '@/components/selectTree';
|
|
|
import selectType from '@/views/bpm/stockManagement/components/selectType.vue';
|
|
|
import WareHouseDailog from '@/views/bpm/stockManagement/components/WareHouseDailog.vue';
|
|
|
import ReturnSelect from '@/views/bpm/stockManagement/components/ReturnSelect.vue';
|
|
|
- // import supplier from '@/api/main/supplier';
|
|
|
- // import org from '@/api/main/org';
|
|
|
- // import user from '@/api/main/user';
|
|
|
import { tableHeader } from '@/views/bpm/handleTask/components/inoutBound/common';
|
|
|
import { getCode } from '@/api/codeManagement/index.js';
|
|
|
- import { number } from 'echarts/core';
|
|
|
- // import { purchaseorderGetById, contactlink } from '@/api/mes';
|
|
|
import { getReceiveSaleOrderrecordDetail } from '@/api/bpm/components/purchasingManage/purchaseorderreceive';
|
|
|
|
|
|
export default {
|
|
|
@@ -1595,30 +1588,32 @@
|
|
|
if (item.warehouseLedgerDetails?.length) {
|
|
|
item.warehouseLedgerDetails.forEach((i, index) => {
|
|
|
this.$set(i, 'num', num);
|
|
|
- if (item.measuringUnit == item.weightUnit) {
|
|
|
- this.$set(i, 'weight', item.minPackingCount);
|
|
|
- this.$set(i, 'initWeight', item.minPackingCount);
|
|
|
- } else {
|
|
|
- this.$set(
|
|
|
- i,
|
|
|
- 'weight',
|
|
|
- Number(
|
|
|
- this.$math.format(
|
|
|
- 1 * item.minPackingCount * item.netWeight,
|
|
|
- 14
|
|
|
+ if (row.code == i.code) {
|
|
|
+ if (item.measuringUnit == item.weightUnit) {
|
|
|
+ this.$set(i, 'weight', item.minPackingCount);
|
|
|
+ this.$set(i, 'initWeight', item.minPackingCount);
|
|
|
+ } else {
|
|
|
+ this.$set(
|
|
|
+ i,
|
|
|
+ 'weight',
|
|
|
+ Number(
|
|
|
+ this.$math.format(
|
|
|
+ 1 * item.minPackingCount * item.netWeight,
|
|
|
+ 14
|
|
|
+ )
|
|
|
)
|
|
|
- )
|
|
|
- );
|
|
|
- this.$set(
|
|
|
- i,
|
|
|
- 'initWeight',
|
|
|
- Number(
|
|
|
- this.$math.format(
|
|
|
- 1 * item.minPackingCount * item.netWeight,
|
|
|
- 14
|
|
|
+ );
|
|
|
+ this.$set(
|
|
|
+ i,
|
|
|
+ 'initWeight',
|
|
|
+ Number(
|
|
|
+ this.$math.format(
|
|
|
+ 1 * item.minPackingCount * item.netWeight,
|
|
|
+ 14
|
|
|
+ )
|
|
|
)
|
|
|
- )
|
|
|
- );
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
this.$set(i, 'weightUtil', item.weightUnit);
|