Browse Source

出入库明细

lilei 3 years ago
parent
commit
5bd152a0e5

+ 8 - 0
src/api/stockOut.js

@@ -27,3 +27,11 @@ export const stockOutBatchOut = (params) => {
     method: 'post'
   })
 }
+// 出入库明细
+export const stockOutDetailList = (params) => {
+  return axios({
+    url: '/stockOut/detail/queryList ',
+    data: params,
+    method: 'post'
+  })
+}

+ 2 - 1
src/views/salesManagement/salesQuery/edit.vue

@@ -285,8 +285,9 @@ export default {
         arr.splice(5, 0, { title: '仓库', dataIndex: 'warehouseEntity.name', width: '8%', align: 'center', sorter: true, customRender: function (text) { return text || '--' } })
         arr.splice(6, 0, { title: '仓位', dataIndex: 'warehouseLocationEntity.name', width: '8%', align: 'center', customRender: function (text) { return text || '--' } })
       }
+      // 实际总成本
       if (this.isCosts) {
-        arr.splice(7, 0, { slots: { title: 'costTitle' }, dataIndex: 'cost', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
+        arr.splice(7, 0, { slots: { title: 'costTitle' }, dataIndex: 'totalCost', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
       }
       return arr
     }

+ 3 - 2
src/views/salesManagement/salesQuery/outInDetialModal.vue

@@ -42,7 +42,7 @@
 <script>
 import { commonMixin } from '@/utils/mixin'
 import { STable } from '@/components'
-import { storeCallOutList } from '@/api/storeCallOut'
+import { stockOutDetailList } from '@/api/stockOut'
 export default {
   name: 'OutinDetailModal',
   components: { STable },
@@ -63,7 +63,8 @@ export default {
       loadData: parameter => {
         this.disabled = true
         this.spinning = true
-        return storeCallOutList(Object.assign(parameter, this.queryParam)).then(res => {
+        // outBizType = SHOP_CALL_OUT(店内调出)   /  SALES (销售)
+        return stockOutDetailList(Object.assign(parameter, { outBizSn: this.outBizSn, outBizNo: this.outBizNo, outBizType: this.outBizType })).then(res => {
           let data
           if (res.status == 200) {
             data = res.data