|
@@ -89,6 +89,7 @@
|
|
:header-cell-style="{background:'#f2f2f2'}"
|
|
:header-cell-style="{background:'#f2f2f2'}"
|
|
@selection-change="handleSelectionChange"
|
|
@selection-change="handleSelectionChange"
|
|
>
|
|
>
|
|
|
|
+ <el-table-column type="selection" width="55" />
|
|
<el-table-column type="index" width="60" />
|
|
<el-table-column type="index" width="60" />
|
|
<el-table-column label="房屋" prop="houseName" width="250" />
|
|
<el-table-column label="房屋" prop="houseName" width="250" />
|
|
<el-table-column label="流水号" prop="serialNumber" width="250" />
|
|
<el-table-column label="流水号" prop="serialNumber" width="250" />
|
|
@@ -228,11 +229,44 @@ export default {
|
|
},
|
|
},
|
|
/* ncc提交*/
|
|
/* ncc提交*/
|
|
handleAdd: function(val) {
|
|
handleAdd: function(val) {
|
|
- this.dialogTitle = 'NCC提交'
|
|
|
|
- this.dialogVisible = true
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
- this.$refs.nccSubmit.initData('转换')
|
|
|
|
|
|
+ const _this = this
|
|
|
|
+ if (!_this.multipleSelection.length) {
|
|
|
|
+ _this.$message.warning('请先勾选要推送的数据')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ const ids = this.multipleSelection.map((obj, index) => {
|
|
|
|
+ return obj.id
|
|
|
|
+ }).join(',')
|
|
|
|
+ _this.loading = true
|
|
|
|
+ const postData = {
|
|
|
|
+ ids: ids
|
|
|
|
+ }
|
|
|
|
+ this.baseRequest('convertRecordSubmit', postData).then(res => {
|
|
|
|
+ if (res.data.code === 200) {
|
|
|
|
+ _this.$message({
|
|
|
|
+ message: '提交成功',
|
|
|
|
+ type: 'success'
|
|
|
|
+ })
|
|
|
|
+ _this.handleClose()
|
|
|
|
+ } else {
|
|
|
|
+ _this.$message({
|
|
|
|
+ message: res.msg,
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ _this.loading = false
|
|
|
|
+ }).catch(err => {
|
|
|
|
+ _this.$message({
|
|
|
|
+ message: err,
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ _this.loading = false
|
|
})
|
|
})
|
|
|
|
+ // this.dialogTitle = 'NCC提交'
|
|
|
|
+ // this.dialogVisible = true
|
|
|
|
+ // this.$nextTick(() => {
|
|
|
|
+ // this.$refs.nccSubmit.initData('转换')
|
|
|
|
+ // })
|
|
},
|
|
},
|
|
handleClose(refresh) {
|
|
handleClose(refresh) {
|
|
this.dialogVisible = false
|
|
this.dialogVisible = false
|