|
@@ -1,5 +1,11 @@
|
|
|
<template>
|
|
|
<div class="changeDetail">
|
|
|
+ <Modal class-name="vertical-center-modal" title='保存' v-model='show' :width="400" @on-ok="then"
|
|
|
+ @on-cancel="show = false">
|
|
|
+ <div>
|
|
|
+ <span>确认保存吗?</span>
|
|
|
+ </div>
|
|
|
+ </Modal>
|
|
|
<Toptitle title="变更">
|
|
|
<slot name="titleButton">
|
|
|
<Button
|
|
@@ -386,7 +392,7 @@
|
|
|
<span v-else>{{ tableData[index].model }}</span>
|
|
|
</template>
|
|
|
<template slot="status" slot-scope="{ row }">
|
|
|
- <span>{{ row.status === 5 ||row.status === 0||row.status === 2?'':row.status === 4?'变更':'新增' }}</span>
|
|
|
+ <span>{{ row.status === 5 ||row.status === 2?'':row.status === 4||row.check_state?'变更':'新增' }}</span>
|
|
|
</template>
|
|
|
<template slot="long" slot-scope="{ row, index }">
|
|
|
<Input
|
|
@@ -487,9 +493,11 @@ export default {
|
|
|
},
|
|
|
cascader_list: [],
|
|
|
building_list: [],
|
|
|
+ show:false,
|
|
|
type: 1,
|
|
|
unit_list: [],
|
|
|
floor_list: [],
|
|
|
+ affirm:false,
|
|
|
room_number_list: [],
|
|
|
product_title_list: [],
|
|
|
pic_number_list: [],
|
|
@@ -697,15 +705,8 @@ export default {
|
|
|
);
|
|
|
},
|
|
|
methods: {
|
|
|
- handleFinish(){
|
|
|
- if(this.formData.depart_end ==null||
|
|
|
- this.formData.depart_start == null||
|
|
|
- this.formData.change_type == null||
|
|
|
- this.formData.msg == null||
|
|
|
- this.formData.contact_order_no == null){
|
|
|
- this.$Message.error('请填写完整信息');
|
|
|
- }else{
|
|
|
- let arr = [];
|
|
|
+ then(){
|
|
|
+ let arr = [];
|
|
|
let arr1 = [];
|
|
|
this.tableData.forEach(item=>{
|
|
|
item.product_title = item.title
|
|
@@ -737,6 +738,20 @@ export default {
|
|
|
this.goback()
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ handleFinish(){
|
|
|
+ if(this.formData.depart_end ==null||
|
|
|
+ this.formData.depart_start == null||
|
|
|
+ this.formData.change_type == null||
|
|
|
+ this.formData.msg == null||
|
|
|
+ this.formData.contact_order_no == null){
|
|
|
+ this.$Message.error('请填写完整信息');
|
|
|
+ }else{
|
|
|
+ if(this.affirm){
|
|
|
+ this.$Message.warning('变更请确认!');
|
|
|
+ }else{
|
|
|
+ this.show = true;
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
add_line() {
|
|
@@ -810,7 +825,7 @@ export default {
|
|
|
handleSet(row, index, type) {
|
|
|
switch (type) {
|
|
|
case 1:
|
|
|
-
|
|
|
+ this.affirm = false;
|
|
|
if (!row.check_state) {
|
|
|
this.copy_data[row.table_id-1].state = '变更';
|
|
|
this.ListData.push(this.copy_data[row.table_id-1]);
|
|
@@ -905,6 +920,7 @@ export default {
|
|
|
row.input_state = true;
|
|
|
this.tableData[index].status = 4;
|
|
|
row.status = 4;
|
|
|
+ this.affirm = true;
|
|
|
break;
|
|
|
}
|
|
|
},
|