|
@@ -104,6 +104,7 @@
|
|
|
<el-button size="small" class="ch-button-export" style="float: right" @click="handleExcel"><i class="el-icon-menu" /> 导出EXCEL</el-button>
|
|
|
<el-button class="ch-button-warning" size="small" style="float: right" @click="handleReset()"><i class="el-icon-search" /> 重置</el-button>
|
|
|
<el-button class="ch-button" size="small" style="float: right" @click="handleSearch()"><i class="el-icon-search" /> 查询</el-button>
|
|
|
+ <el-button type="primary" size="small" style="float: right" @click="handleAdd()"> NCC提交</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row class="handle-box">
|
|
@@ -146,15 +147,30 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
+ <!-- ncc提交 -->
|
|
|
+ <el-dialog
|
|
|
+ :title="dialogTitle"
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
+ width="50%"
|
|
|
+ top="50px"
|
|
|
+ :close-on-press-escape="false"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ append-to-body
|
|
|
+ @close="handleClose"
|
|
|
+ >
|
|
|
+ <ncc-submit-index v-if="dialogVisible" ref="nccSubmit" @editClose="handleClose" />
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import Base from '@/views/base/base'
|
|
|
import BaseData from '@/views/base/baseData'
|
|
|
+import NccSubmitIndex from '@/views/transactionRecord/nccSubmitIndex.vue'
|
|
|
|
|
|
export default {
|
|
|
name: 'RefundRecordIndexVue',
|
|
|
- components: { },
|
|
|
+ components: { NccSubmitIndex },
|
|
|
mixins: [Base, BaseData],
|
|
|
props: {
|
|
|
fromAddress: {
|
|
@@ -206,7 +222,7 @@ export default {
|
|
|
})
|
|
|
this.search.discIds = data.join(',')
|
|
|
}
|
|
|
- this.baseRequest('collectionRecord', this.search).then((res) => {
|
|
|
+ this.baseRequest('refundRecord', this.search).then((res) => {
|
|
|
if (res.data.rows) {
|
|
|
res.data.rows.forEach(function(item) {
|
|
|
const json = _this.getItemJson(item)
|
|
@@ -237,9 +253,17 @@ export default {
|
|
|
item.ncSubmitStatusStr = item.ncSubmitStatus == '1' ? '已提交' : '未提交'
|
|
|
return item
|
|
|
},
|
|
|
- /* 编辑*/
|
|
|
- handleEdit: function(val) {
|
|
|
-
|
|
|
+ /* ncc提交*/
|
|
|
+ handleAdd: function(val) {
|
|
|
+ this.dialogTitle = 'NCC提交'
|
|
|
+ this.dialogVisible = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.nccSubmit.initData('收款')
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleClose(refresh) {
|
|
|
+ this.dialogVisible = false
|
|
|
+ this.getData()
|
|
|
},
|
|
|
handleView(val) {
|
|
|
|
|
@@ -256,7 +280,7 @@ export default {
|
|
|
'可售状态', '已售状态']
|
|
|
this.OutData.push(title)
|
|
|
const temp = []
|
|
|
- this.baseRequest('collectionRecordExcelList', _this.search).then(res => {
|
|
|
+ this.baseRequest('refundRecordListAll', _this.search).then(res => {
|
|
|
const data = res.data
|
|
|
data.data.forEach(function(item) {
|
|
|
const json = _this.getItemJson(item)
|