瀏覽代碼

bug 修复

lilei 3 年之前
父節點
當前提交
7347218831

+ 8 - 0
src/api/shelfReplenish.js

@@ -19,6 +19,14 @@ export const shelfReplenishDetailList = (params) => {
     method: 'post'
   })
 }
+// 出库单详情列表
+export const queryListForOutStock = (params) => {
+  return axios({
+    url: '/shelfReplenish/detail/queryListForOutStock',
+    data: params,
+    method: 'post'
+  })
+}
 //  补货单 取消补货单
 export const shelfReplenishCancel = (params) => {
   return axios({

+ 3 - 4
src/views/numsGoodsShelves/replenishmentManagement/replenishmentDetail.vue

@@ -45,9 +45,8 @@
 
 <script>
 import { commonMixin } from '@/utils/mixin'
-import { getOperationalPrecision } from '@/libs/tools.js'
 import { STable, VSelect } from '@/components'
-import { shelfReplenishDetailList, shelfReplenishDetail } from '@/api/shelfReplenish'
+import { queryListForOutStock, shelfReplenishDetail } from '@/api/shelfReplenish'
 export default {
   name: 'SalesDetail',
   components: { STable, VSelect },
@@ -71,14 +70,14 @@ export default {
         { title: '补货实发数量', dataIndex: 'confirmQty', width: '12%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '单位', dataIndex: 'product.unit', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
         // { title: '成本价', dataIndex: 'product.unit', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
-        // { title: '成本小计', dataIndex: 'product.unit', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '成本小计', dataIndex: 'totalCost', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '是否急件', dataIndex: 'oosFlag', width: '15%', align: 'center', customRender: function (text) { return text == 1 ? '是' : '否' } }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
         this.disabled = true
         this.spinning = true
-        return shelfReplenishDetailList({ replenishBillSn: this.outBizSn || this.$route.params.sn }).then(res => {
+        return queryListForOutStock({ replenishBillSn: this.outBizSn || this.$route.params.sn }).then(res => {
           let data
           if (res.status == 200) {
             data = res.data