zcx 10 months ago
parent ecc49ec019
commit f6c6002eda
  1. 27
      src/views/zs/clue/ClueForm/index.vue

@ -30,6 +30,8 @@
<!-- :disabled="!canSubmit" --> <!-- :disabled="!canSubmit" -->
<el-button class="footer_button" :disabled="!canSubmit" type="primary" @click="clueSubmit"> </el-button> <el-button class="footer_button" :disabled="!canSubmit" type="primary" @click="clueSubmit"> </el-button>
<el-button class="footer_button" @click="toBackClue"> </el-button> <el-button class="footer_button" @click="toBackClue"> </el-button>
<el-button class="footer_button" v-if="!clueForm.state" v-hasPermi="['zs:clue:discard']" type="primary" @click="handleDiscard()">释放</el-button>
</div> </div>
</div> </div>
<el-divider /> <el-divider />
@ -163,9 +165,9 @@
</template> </template>
<script> <script>
import { getClueInfo, getConsultRecord, addClue, updateClue, } from '@/api/zs/clue' import { getClueInfo, getConsultRecord, addClue, updateClue, discardClue} from '@/api/zs/clue';
import empApi from '@/api/system/employee' import empApi from '@/api/system/employee';
import { getAllPlaces } from '@/api/sch/place' import { getAllPlaces } from '@/api/sch/place';
import PlaceMap from './components/PlaceMap.vue'; import PlaceMap from './components/PlaceMap.vue';
import FollowRecord from './components/FollowRecord.vue'; import FollowRecord from './components/FollowRecord.vue';
@ -360,7 +362,24 @@ export default {
toBackClue() { toBackClue() {
const obj = { path: "/zs/clue" }; const obj = { path: "/zs/clue" };
this.$tab.closeOpenPage(obj); this.$tab.closeOpenPage(obj);
} },
// 线
handleDiscard() {
this.$confirm('是否确认释放该条线索(“' + this.clueForm.name + '/' + this.clueForm.phone + '”)到公海?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then((res) => {
discardClue(this.clueForm).then((resp) => {
if (resp && resp.code === 200) {
this.$message.success('释放成功');
this.toBackClue();
}
});
})
.catch(function () { });
},
} }
}; };

Loading…
Cancel
Save