|
@@ -1,26 +1,35 @@
|
|
|
<template>
|
|
|
<div class="salesReturnEdit-wrap">
|
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
|
- <a-page-header :ghost="false" :backIcon="false" class="salesReturnEdit-back" >
|
|
|
+ <a-page-header :ghost="false" :backIcon="false" class="salesReturnEdit-back">
|
|
|
<!-- 自定义的二级文字标题 -->
|
|
|
<template slot="subTitle">
|
|
|
- <a id="salesReturnEdit-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
|
+ <a id="salesReturnEdit-back-btn" href="javascript:;" @click="handleBack">
|
|
|
+ <a-icon type="left" />
|
|
|
+ 返回列表
|
|
|
+ </a>
|
|
|
</template>
|
|
|
</a-page-header>
|
|
|
<a-card size="small" :bordered="false" class="outboundOrderDetail-cont">
|
|
|
<a-collapse :activeKey="['1']">
|
|
|
<a-collapse-panel key="1" header="基础信息">
|
|
|
- <div slot="extra" style="padding: 0 20px; color: #00aaff;" @click.stop="handleEditBase" >
|
|
|
- <a-icon type="edit" /> 编辑基础信息
|
|
|
+ <div slot="extra" style="padding: 0 20px; color: #00aaff;" @click.stop="handleEditBase">
|
|
|
+ <a-icon type="edit" />
|
|
|
+ 编辑基础信息
|
|
|
</div>
|
|
|
- <a-descriptions size="small" :column="4" style="margin-bottom: 10px;">
|
|
|
- <a-descriptions-item label="采购退货单号">CT20221229000001</a-descriptions-item>
|
|
|
- <a-descriptions-item label="入库单号">SJ221222000001</a-descriptions-item>
|
|
|
- <a-descriptions-item label="批次号">SJ221222000001</a-descriptions-item>
|
|
|
- <a-descriptions-item label="供应商名称">东莞市绿冠滤清器有限公司</a-descriptions-item>
|
|
|
- <a-descriptions-item label="退货原因">2022-12-30 14:22</a-descriptions-item>
|
|
|
- <a-descriptions-item label="补充说明">2022-12-30 14:22</a-descriptions-item>
|
|
|
- <a-descriptions-item label="附件">2022-12-30 14:22</a-descriptions-item>
|
|
|
+ <a-descriptions size="small" :column="3" style="margin-bottom: 10px;">
|
|
|
+ <a-descriptions-item label="采购退货单号">{{ detailsData&&detailsData.sparePartsReturnNo || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="供应商名称">{{ detailsData&&detailsData.supplierName || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="退货原因">{{ detailsData&&detailsData.returnReason || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="补充说明" :span="3">{{ detailsData&&detailsData.explainInfo || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="附件" :span="3">
|
|
|
+ <span v-if="detailsData&&detailsData.attachmentList">
|
|
|
+ <a target="_blank" style="color: #00aaff;text-decoration: underline;margin-right: 15px;" :href="item.filePath" v-for="item in detailsData.attachmentList" :key="item.id">
|
|
|
+ {{ item.fileName }}
|
|
|
+ </a>
|
|
|
+ </span>
|
|
|
+ <span v-else>--</span>
|
|
|
+ </a-descriptions-item>
|
|
|
</a-descriptions>
|
|
|
</a-collapse-panel>
|
|
|
</a-collapse>
|
|
@@ -34,7 +43,7 @@
|
|
|
<a-alert style="margin-bottom: 10px;" type="info">
|
|
|
<div slot="message" class="total-bar">
|
|
|
<div v-if="statisticsObj">
|
|
|
- <span>申请退货数量:{{ (statisticsObj.returnedQty || statisticsObj.returnedQty==0) ? statisticsObj.returnedQty : '--' }};</span>
|
|
|
+ <span>申请退货数量:{{ statisticsObj.qty || statisticsObj.qty == 0 ? statisticsObj.qty : '--' }};</span>
|
|
|
<span>退货金额:{{ statisticsObj.totalCost }}元;</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -44,14 +53,13 @@
|
|
|
<a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
|
<a-row :gutter="15">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="产品编码">
|
|
|
- <a-input v-model.trim="productForm.productCode" allowClear placeholder="请输入产品编码"/>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-item label="入库单号"><a-input v-model.trim="productForm.sparePartsNo" allowClear placeholder="请输入入库单号" /></a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="产品名称">
|
|
|
- <a-input v-model.trim="productForm.productName" allowClear placeholder="请输入产品名称"/>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-item label="产品编码"><a-input v-model.trim="productForm.productCode" allowClear placeholder="请输入产品编码" /></a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-item label="产品名称"><a-input v-model.trim="productForm.productName" allowClear placeholder="请输入产品名称" /></a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled">查询</a-button>
|
|
@@ -66,26 +74,27 @@
|
|
|
class="sTable"
|
|
|
ref="table"
|
|
|
size="small"
|
|
|
- :rowKey="(record) => record.id"
|
|
|
+ :rowKey="record => record.id"
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
|
:defaultLoadData="false"
|
|
|
:scroll="{ y: 300 }"
|
|
|
bordered>
|
|
|
<!--申请退货数量 -->
|
|
|
- <template slot="returnQty" slot-scope="text, record">
|
|
|
+ <template slot="qty" slot-scope="text, record">
|
|
|
<a-input-number
|
|
|
id="salesReturn-qty"
|
|
|
size="small"
|
|
|
- v-model="record.returnedQty"
|
|
|
+ v-model="record.qty"
|
|
|
:precision="0"
|
|
|
- :min="0"
|
|
|
- :max="record.returnedQty"
|
|
|
+ :min="1"
|
|
|
+ :max="record.currentStockQty"
|
|
|
placeholder="请输入"
|
|
|
style="width: 100%;"
|
|
|
- @blur="e => onCellBlur(e.target.value, record, 'qty')"/>
|
|
|
+ @blur="e => onCellBlur(e.target.value, record, 'qty')"
|
|
|
+ />
|
|
|
</template>
|
|
|
-
|
|
|
+
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
<a-button
|
|
@@ -110,11 +119,11 @@
|
|
|
id="salesReturn-handleSubmit">提交</a-button>
|
|
|
</div>
|
|
|
<!-- 选择审核人员 -->
|
|
|
- <chooseDepartUserModal ref="chooseDepart" :openModal="openDepartUserModal" @close="openDepartUserModal=false" @submit="handleSubmit"></chooseDepartUserModal>
|
|
|
+ <chooseDepartUserModal ref="chooseDepart" :openModal="openDepartUserModal" @close="openDepartUserModal = false" @submit="handleSubmit"></chooseDepartUserModal>
|
|
|
<!-- 导入产品 -->
|
|
|
<!-- <importGuideModal :openModal="openGuideModal" :params="{salesReturnBillSn: $route.params.sn}" @close="closeGuideModel" @ok="hanldeOk" /> -->
|
|
|
<!-- 批量设置退货原因 -->
|
|
|
- <commonModal modalTit="批量设置退货原因" :openModal="showPlModal" @cancel="showPlModal=false" @ok="setPlReturnReason">
|
|
|
+ <commonModal modalTit="批量设置退货原因" :openModal="showPlModal" @cancel="showPlModal = false" @ok="setPlReturnReason">
|
|
|
<div style="text-align: center;">
|
|
|
<div style="margin-bottom: 15px;font-size: 14px;"><strong>请输入退货原因</strong></div>
|
|
|
<div style="line-height: 24px;">
|
|
@@ -123,7 +132,7 @@
|
|
|
</div>
|
|
|
</commonModal>
|
|
|
<!-- 编辑基础信息弹窗 -->
|
|
|
- <add-modal v-drag :openModal="openModal" @ok="handleOk" @close="openModal=false" />
|
|
|
+ <add-modal v-drag :openModal="openModal" :itemSn="sparePartsReturnSn" @ok="handleOk" @close="openModal = false" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -138,13 +147,7 @@ import commonModal from '@/views/common/commonModal.vue'
|
|
|
import EditableCell from '@/views/common/editInput.js'
|
|
|
import chooseDepartUserModal from './chooseDepartUserModal.vue'
|
|
|
import returnReason from '@/views/common/returnReason'
|
|
|
-import {
|
|
|
- salesReturnDetail,
|
|
|
- salesReturnSubmit,
|
|
|
- salesReturnBatchInsert,
|
|
|
- salesReturnPrint,
|
|
|
- salesReturnExport
|
|
|
-} from '@/api/salesReturn'
|
|
|
+import { salesReturnDetail, salesReturnSubmit, salesReturnBatchInsert, salesReturnPrint, salesReturnExport } from '@/api/salesReturn'
|
|
|
import {
|
|
|
salesReturnDetailList,
|
|
|
salesReturnDetailDel,
|
|
@@ -153,10 +156,10 @@ import {
|
|
|
salesReturnDetailUpdateReason,
|
|
|
salesReturnDetailSetReason
|
|
|
} from '@/api/salesReturnDetail'
|
|
|
-import { sparePartsReturnQueryPage, queryPageCount,sparePartsReturnDetailDelete,sparePartsReturnDetailSave,sparePartsReturnSubmit} from '@/api/sparePartsReturn'
|
|
|
+import { sparePartsReturnQueryPage, queryPageCount, sparePartsReturnDetailDelete, sparePartsReturnDetailSave, sparePartsReturnSubmit, sparePartsReturnInfo } from '@/api/sparePartsReturn'
|
|
|
import { toFixedDecimal } from '@/libs/tools.js'
|
|
|
export default {
|
|
|
- name: 'purchaseReturnEdit',
|
|
|
+ name: 'PurchaseReturnEdit',
|
|
|
mixins: [commonMixin],
|
|
|
components: {
|
|
|
STable,
|
|
@@ -184,23 +187,85 @@ export default {
|
|
|
productForm: {
|
|
|
sn: '',
|
|
|
productName: '',
|
|
|
- productCode: ''
|
|
|
+ productCode: '',
|
|
|
+ sparePartsNo: ''
|
|
|
},
|
|
|
chooseLoadData: [],
|
|
|
- columns :[
|
|
|
+ sparePartsReturnSn: null,
|
|
|
+ sparePartsReturnNo: null,
|
|
|
+ columns: [
|
|
|
{ title: '序号', dataIndex: 'no', align: 'center', width: '4%' },
|
|
|
- { title: '产品编码', dataIndex: 'product.code', width: '18%', align: 'center', customRender: function (text) { return text || '--' }},
|
|
|
- { title: '产品名称', dataIndex: 'product.name', width: '25%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '单位', dataIndex: 'product.unit', align: 'center', width: '6%', customRender: function (text) { return text || '--' }},
|
|
|
- { title: '退货单价', dataIndex: 'cost', align: 'center', width: '8%',customRender: function (text) { return text || '--' }},
|
|
|
- { title: '申请退货数量', align: 'center', width: '13%', scopedSlots: { customRender: 'returnQty' }},
|
|
|
- { title: '退款金额', dataIndex: 'totalCost', align: 'center', width: '13%', customRender: function (text) { return text || '--' }},
|
|
|
+ {
|
|
|
+ title: '入库单号',
|
|
|
+ dataIndex: 'sparePartsNo',
|
|
|
+ width: '18%',
|
|
|
+ align: 'center',
|
|
|
+ customRender: function (text) {
|
|
|
+ return text || '--'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '产品编码',
|
|
|
+ dataIndex: 'product.code',
|
|
|
+ width: '18%',
|
|
|
+ align: 'center',
|
|
|
+ customRender: function (text) {
|
|
|
+ return text || '--'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '产品名称',
|
|
|
+ dataIndex: 'product.name',
|
|
|
+ width: '25%',
|
|
|
+ align: 'left',
|
|
|
+ customRender: function (text) {
|
|
|
+ return text || '--'
|
|
|
+ },
|
|
|
+ ellipsis: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '单位',
|
|
|
+ dataIndex: 'product.unit',
|
|
|
+ align: 'center',
|
|
|
+ width: '6%',
|
|
|
+ customRender: function (text) {
|
|
|
+ return text || '--'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '批次号',
|
|
|
+ dataIndex: 'sparePartsBatchNo',
|
|
|
+ align: 'center',
|
|
|
+ width: '18%',
|
|
|
+ customRender: function (text) {
|
|
|
+ return text || '--'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '退货单价',
|
|
|
+ dataIndex: 'cost',
|
|
|
+ align: 'center',
|
|
|
+ width: '8%',
|
|
|
+ customRender: function (text) {
|
|
|
+ return text || text == 0 ? toFixedDecimal(text, 2) : '--'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { title: '申请退货数量', align: 'center', width: '13%', scopedSlots: { customRender: 'qty' } },
|
|
|
+ {
|
|
|
+ title: '退款金额',
|
|
|
+ dataIndex: 'totalCost',
|
|
|
+ align: 'center',
|
|
|
+ width: '13%',
|
|
|
+ customRender: function (text) {
|
|
|
+ return text || text == 0 ? toFixedDecimal(text, 2) : '--'
|
|
|
+ }
|
|
|
+ },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
|
],
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
|
this.disabled = true
|
|
|
- this.productForm.sn = this.$route.params.returnSn;
|
|
|
+ this.productForm.sn = this.$route.query.returnSn
|
|
|
return sparePartsReturnQueryPage(Object.assign(parameter, this.productForm)).then(res => {
|
|
|
let data
|
|
|
if (res.status == 200) {
|
|
@@ -224,7 +289,8 @@ export default {
|
|
|
plReturnReason: '',
|
|
|
showPlModal: false,
|
|
|
openModal: false,
|
|
|
- statisticsObj:null
|
|
|
+ statisticsObj: null,
|
|
|
+ detailsData: null
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -236,7 +302,7 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
selNums () {
|
|
|
- return this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length || 0
|
|
|
+ return (this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length) || 0
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -252,31 +318,6 @@ export default {
|
|
|
rowSelectionFun (obj) {
|
|
|
this.rowSelectionInfo = obj || null
|
|
|
},
|
|
|
- // 已选产品 blur
|
|
|
- onCellBlur (val, record, type) {
|
|
|
- const valBackups = record.qtyBackups
|
|
|
- // 光标移出,值发生改变再调用编辑接口
|
|
|
- if (val && val != valBackups) {
|
|
|
- this.spinning = true
|
|
|
- salesReturnDetailUpdateQty({
|
|
|
- salesReturnDetailSn: record.salesReturnDetailSn,
|
|
|
- initialQty: record.initialQty,
|
|
|
- price: record.price
|
|
|
- }).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- this.resetTable(false)
|
|
|
- this.$message.success(res.message)
|
|
|
- this.spinning = false
|
|
|
- record.qtyBackups = record.initialQty
|
|
|
- } else {
|
|
|
- this.spinning = false
|
|
|
- record.initialQty = valBackups
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- record.initialQty = valBackups
|
|
|
- }
|
|
|
- },
|
|
|
// 修改退货原因
|
|
|
updateReason (row) {
|
|
|
console.log(row.returnReason)
|
|
@@ -313,7 +354,7 @@ export default {
|
|
|
} else {
|
|
|
this.spinning = true
|
|
|
const snList = []
|
|
|
- const arr = this.rowSelectionInfo && this.rowSelectionInfo.selectedRows || []
|
|
|
+ const arr = (this.rowSelectionInfo && this.rowSelectionInfo.selectedRows) || []
|
|
|
arr.map(item => {
|
|
|
snList.push(item.salesReturnDetailSn)
|
|
|
})
|
|
@@ -347,7 +388,7 @@ export default {
|
|
|
onOk () {
|
|
|
_this.delLoading = true
|
|
|
_this.spinning = true
|
|
|
- sparePartsReturnDetailDelete({ detailSn: row.sparePartsReturnDetailSn }).then(res => {
|
|
|
+ sparePartsReturnDetailDelete({ detailSn: row.id }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
_this.resetTable(false)
|
|
|
}
|
|
@@ -369,30 +410,41 @@ export default {
|
|
|
this.$refs.table.refresh(!!flag)
|
|
|
// this.getOrderDetail()
|
|
|
},
|
|
|
+ // 已选产品 blur
|
|
|
+ onCellBlur (val, record, type) {
|
|
|
+ const ajax_data = {
|
|
|
+ id: record.id,
|
|
|
+ qty: val
|
|
|
+ }
|
|
|
+ this.saveEdit(ajax_data)
|
|
|
+ },
|
|
|
// 添加或修改产品
|
|
|
saveProduct (row) {
|
|
|
- if (this.isInster) {// 防止多次添加产品
|
|
|
+ if (this.isInster) {
|
|
|
+ // 防止多次添加产品
|
|
|
return
|
|
|
}
|
|
|
this.isInster = true
|
|
|
const paramsData = {
|
|
|
- 'sparePartsReturnSn': this.orderSn,
|
|
|
- 'sparePartsReturnNo': this.ordeDetail.salesReturnBillNo,
|
|
|
- 'sparePartsDetailSn': row.productPrice,
|
|
|
- 'productSn': row.lastStockCost,
|
|
|
- 'productCode': row.returnReason,
|
|
|
- 'putQty': row.productSn,
|
|
|
- 'returnedQty': row.qty,
|
|
|
- 'qty': row.qty,
|
|
|
- 'cost': row.qty,
|
|
|
- 'stockBatchNo': row.qty,
|
|
|
- 'warehouseSn': row.qty,
|
|
|
- 'warehouseLocationSn': row.qty
|
|
|
+ sparePartsReturnSn: this.sparePartsReturnSn,
|
|
|
+ sparePartsReturnNo: this.sparePartsReturnNo,
|
|
|
+ sparePartsDetailSn: row.sparePartsDetailSn,
|
|
|
+ productSn: row.productSn,
|
|
|
+ productCode: row.productCode,
|
|
|
+ putQty: row.productQty, // 入库数量
|
|
|
+ returnedQty: row.returnedQty, // 已退数量
|
|
|
+ qty: row.qty, // 申退数量
|
|
|
+ cost: row.productCost, // 成本
|
|
|
+ stockBatchNo: row.sparePartsBatchNo, // 批次号
|
|
|
+ warehouseSn: row.warehouseSn, // 仓库sn
|
|
|
+ warehouseLocationSn: row.warehouseLocationSn, // 仓位sn
|
|
|
+ sparePartsNo: row.sparePartsNo,
|
|
|
+ sparePartsSn: row.sparePartsSn
|
|
|
}
|
|
|
this.spinning = true
|
|
|
- this.saveEdit(paramsData);
|
|
|
+ this.saveEdit(paramsData)
|
|
|
},
|
|
|
- saveEdit(params){
|
|
|
+ saveEdit (params) {
|
|
|
sparePartsReturnDetailSave(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.resetSearchForm(true)
|
|
@@ -402,9 +454,9 @@ export default {
|
|
|
this.spinning = false
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
beforeSubmit () {
|
|
|
- this.openDepartUserModal = true
|
|
|
+ this.openDepartUserModal = true
|
|
|
// if (this.total) {
|
|
|
// const hasKong = this.chooseLoadData.find(item => !item.returnReason)
|
|
|
// if (hasKong) {
|
|
@@ -419,7 +471,7 @@ export default {
|
|
|
// this.$message.warning('请添加产品!')
|
|
|
// }
|
|
|
},
|
|
|
- // 提交销售退货
|
|
|
+ // 提交采购退货
|
|
|
handleSubmit (data) {
|
|
|
this.spinning = true
|
|
|
sparePartsReturnSubmit({ sparePartsReturnSn: this.sparePartsReturnSn, ...data }).then(res => {
|
|
@@ -446,7 +498,7 @@ export default {
|
|
|
const _this = this
|
|
|
const a = ['WAIT_CUSTOMER_SERVICE_CONFIRM', 'WAIT_FINANCIAL_AUDIT', 'FINANCIAL_REJECT', 'FINISH'].find(item => item == this.ordeDetail.billStatus)
|
|
|
const status = a ? 'SALES_RETURN_AMOUNT' : 'SALES_RETURN_REASON'
|
|
|
- const params = { salesReturnBillSn: this.$route.params.sn, priceType: status }
|
|
|
+ const params = { salesReturnBillSn: this.$route.query.sn, priceType: status }
|
|
|
_this.spinning = true
|
|
|
// 导出
|
|
|
if (type == 'export') {
|
|
@@ -461,28 +513,45 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
pageInit () {
|
|
|
- this.sparePartsNo = this.$route.params.no
|
|
|
- this.sparePartsReturnSn = this.$route.params.returnSn
|
|
|
+ this.supplierSn = this.$route.query.sn
|
|
|
+ this.sparePartsReturnSn = this.$route.query.returnSn
|
|
|
+ this.sparePartsReturnNo = this.$route.query.no
|
|
|
+ this.$refs.partQuery.pageInit(this.supplierSn, 0)
|
|
|
+ this.getStatisticsData()
|
|
|
+ this.getBasicsData()
|
|
|
this.resetSearchForm(true)
|
|
|
- this.$refs.partQuery.pageInit(this.sparePartsNo, 0)
|
|
|
},
|
|
|
+ // 获取页面统计数据
|
|
|
getStatisticsData () {
|
|
|
- queryPageCount({ sn: this.$route.params.returnSn }).then(res => {
|
|
|
+ queryPageCount({ sn: this.sparePartsReturnSn }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- res.data.totalCost =(res.data&&(res.data.totalCost ||res.data.totalCost==0)) ? toFixedDecimal(res.data.totalCost,2):'--'
|
|
|
+ res.data.totalCost = (res.data && (res.data.totalCost || res.data.totalCost == 0)) ? toFixedDecimal(res.data.totalCost, 2) : '--'
|
|
|
this.statisticsObj = res.data
|
|
|
} else {
|
|
|
this.statisticsObj = null
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ // 获取基础信息
|
|
|
+ getBasicsData () {
|
|
|
+ sparePartsReturnInfo({ sn: this.sparePartsReturnSn }).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ this.detailsData = res.data
|
|
|
+ } else {
|
|
|
+ this.detailsData = null
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 修改成功
|
|
|
+ handleOk (data) {
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
- if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
|
|
|
+ if (!this.$store.state.app.isNewTab) {
|
|
|
+ // 页签刷新时调用
|
|
|
this.pageInit()
|
|
|
}
|
|
|
- // 获取页面统计数据
|
|
|
- this.getStatisticsData();
|
|
|
},
|
|
|
activated () {
|
|
|
// 如果是新页签打开或者进入新的子页(例:存在列表第2条数据编辑页页签时再打开第4条数据的编辑页),则重置当前页面
|
|
@@ -497,35 +566,35 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|
|
|
- .salesReturnEdit-wrap{
|
|
|
- position: relative;
|
|
|
+.salesReturnEdit-wrap {
|
|
|
+ position: relative;
|
|
|
+ height: 100%;
|
|
|
+ padding-bottom: 51px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ > .ant-spin-nested-loading {
|
|
|
+ overflow-y: scroll;
|
|
|
height: 100%;
|
|
|
- padding-bottom: 51px;
|
|
|
- box-sizing: border-box;
|
|
|
- >.ant-spin-nested-loading{
|
|
|
- overflow-y: scroll;
|
|
|
- height: 100%;
|
|
|
+ }
|
|
|
+ .salesReturnEdit-cont {
|
|
|
+ margin-top: 10px;
|
|
|
+ .ant-divider-horizontal {
|
|
|
+ margin: 10px 0 24px;
|
|
|
}
|
|
|
- .salesReturnEdit-cont{
|
|
|
- margin-top: 10px;
|
|
|
- .ant-divider-horizontal{
|
|
|
- margin:10px 0 24px;
|
|
|
- }
|
|
|
- .total-bar{
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- > div{
|
|
|
- &:last-child{
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- > div{
|
|
|
- padding: 0 10px;
|
|
|
- }
|
|
|
+ .total-bar {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ > div {
|
|
|
+ &:last-child {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ > div {
|
|
|
+ padding: 0 10px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+}
|
|
|
</style>
|