Jelajahi Sumber

散件退货清空列表

chenrui 2 tahun lalu
induk
melakukan
149874b290

+ 9 - 1
src/api/sparePartsRet.js

@@ -137,4 +137,12 @@ export const sparePartsRetDetailExport = params => {
     method: 'get',
     responseType: 'blob'
   })
-}
+}
+// 散件退货 清空列表
+export const sparePartsRetDetailClear = (params) => {
+  return axios({
+    url: '/sparePartsRet/detail/clear',
+    data: params,
+    method: 'post'
+  })
+}

+ 3 - 5
src/views/bulkManagement/bulkReturnGoods/edit.vue

@@ -5,9 +5,6 @@
         <!-- 自定义的二级文字标题 -->
         <template slot="subTitle">
           <a id="bulkReturnGoodsEdit-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
-          <a-button type="link" style="margin-left: 20px;">
-            供应商:啦啦啦啦啦
-          </a-button>
         </template>
         <!-- 操作区,位于 title 行的行尾 -->
         <template slot="extra" v-if="$hasPermissions('B_sparePartsRetPrint')">
@@ -219,7 +216,8 @@ import {
   sparePartsRetDetailDel,
   sparePartsRetSubmit,
   sparePartsRetDetailPrint,
-  sparePartsRetDetailExport } from '@/api/sparePartsRet'
+  sparePartsRetDetailExport,
+  sparePartsRetDetailClear } from '@/api/sparePartsRet'
 export default {
   name: 'BulkReturnGoodsEdit',
   components: { STable, VSelect, Print },
@@ -422,7 +420,7 @@ export default {
         centered: true,
         onOk () {
           _this.spinning = true
-          sparePartsRetDetailDel({ }).then(res => {
+          sparePartsRetDetailClear({ sparePartsReturnSn: _this.$route.params.sn }).then(res => {
             if (res.status == 200) {
               _this.$message.success(res.message)
               _this.$refs.table.refresh()

+ 3 - 5
src/views/bulkManagement/bulkReturnGoods/grabEdit.vue

@@ -5,9 +5,6 @@
         <!-- 自定义的二级文字标题 -->
         <template slot="subTitle">
           <a id="bulkReturnGoodsEdit-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
-          <a-button type="link" style="margin-left: 20px;">
-            供应商:啦啦啦啦啦
-          </a-button>
         </template>
         <!-- 操作区,位于 title 行的行尾 -->
         <template slot="extra" v-if="$hasPermissions('B_sparePartsRetPrint')">
@@ -202,7 +199,8 @@ import {
   sparePartsRetDetailDel,
   sparePartsRetSubmit,
   sparePartsRetDetailPrint,
-  sparePartsRetDetailExport } from '@/api/sparePartsRet'
+  sparePartsRetDetailExport,
+  sparePartsRetDetailClear } from '@/api/sparePartsRet'
 export default {
   name: 'BulkReturnGoodsgrabEdit',
   components: { STable, VSelect, Print },
@@ -407,7 +405,7 @@ export default {
         centered: true,
         onOk () {
           _this.spinning = true
-          sparePartsRetDetailDel({ }).then(res => {
+          sparePartsRetDetailClear({ sparePartsReturnSn: _this.$route.params.sn }).then(res => {
             if (res.status == 200) {
               _this.$message.success(res.message)
               _this.$refs.table.refresh()

+ 1 - 0
src/views/reportData/bulkReturnReport/detailList.vue

@@ -183,6 +183,7 @@ export default {
         { title: '产品名称', dataIndex: 'productEntity.name', width: '14%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '单位', dataIndex: 'productEntity.unit', width: '4%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '数量', dataIndex: 'purchaseQty', width: '5%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '退货价', dataIndex: 'productTotalPrice', width: '7%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
         // { title: '成本', dataIndex: 'purchaseTotalCost', width: '5%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '审核时间', dataIndex: 'auditTime', width: '11%', align: 'center', customRender: function (text) { return text || '--' } }
       ]

+ 1 - 1
src/views/reportData/bulkReturnReport/list.vue

@@ -141,7 +141,7 @@ export default {
         { title: '供应商', dataIndex: 'supplierName', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '款数', dataIndex: 'productTotalCategory', width: '7%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '数量', dataIndex: 'productTotalQty', width: '7%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '退货价', dataIndex: 'productTotalQty', width: '7%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '退货价', dataIndex: 'productTotalPrice', width: '7%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
         // { title: '成本', dataIndex: 'productTotalCost', width: '7%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '审核时间', dataIndex: 'auditTime', width: '13%', align: 'center', customRender: function (text) { return text || '--' } }
       ]