flat: 暂存, 删除qq地图

This commit is contained in:
Apcallover
2024-05-17 14:51:26 +08:00
parent 5e0154261c
commit 42534ac881
20 changed files with 939 additions and 880 deletions

View File

@@ -9,7 +9,7 @@
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no"> <meta name="format-detection" content="telephone=no">
<meta http-equiv="X-UA-Compatible" content="chrome=1" /> <meta http-equiv="X-UA-Compatible" content="chrome=1"/>
<link rel="stylesheet" href="<%= BASE_URL %>cdn/element-ui/2.12.0/theme-chalk/index.css"> <link rel="stylesheet" href="<%= BASE_URL %>cdn/element-ui/2.12.0/theme-chalk/index.css">
<link rel="stylesheet" href="<%= BASE_URL %>cdn/animate/3.5.2/animate.css"> <link rel="stylesheet" href="<%= BASE_URL %>cdn/animate/3.5.2/animate.css">
<link rel="stylesheet" href="<%= BASE_URL %>cdn/iconfont/1.0.0/index.css"> <link rel="stylesheet" href="<%= BASE_URL %>cdn/iconfont/1.0.0/index.css">
@@ -51,7 +51,7 @@
padding: 1em 0; padding: 1em 0;
} }
.avue-home__footer>a { .avue-home__footer > a {
font-size: 12px; font-size: 12px;
color: #ABABAB; color: #ABABAB;
text-decoration: none; text-decoration: none;
@@ -77,38 +77,38 @@
</head> </head>
<body> <body>
<noscript> <noscript>
<strong> <strong>
请启用浏览器的 JavaScript 然后继续。 请启用浏览器的 JavaScript 然后继续。
</strong> </strong>
</noscript> </noscript>
<div id="app"> <div id="app">
<div class="avue-home"> <div class="avue-home">
<div class="avue-home__main"> <div class="avue-home__main">
<!-- <img class="avue-home__loading" src="/manage/svg/loading-spin.svg" alt="loading"> --> <!-- <img class="avue-home__loading" src="/manage/svg/loading-spin.svg" alt="loading"> -->
<div class="avue-home__title"> <div class="avue-home__title">
正在加载,请耐心等待... 正在加载,请耐心等待...
</div>
</div>
<div class="avue-home__footer">
</div> </div>
</div> </div>
<div class="avue-home__footer">
</div>
</div> </div>
<script src="<%= BASE_URL %>cdn/tinymce5.6.2/tinymce.min.js"></script> </div>
<!-- built files will be auto injected --> <script src="<%= BASE_URL %>cdn/tinymce5.6.2/tinymce.min.js"></script>
<script src="<%= BASE_URL %>util/aes.js" charset="utf-8"></script> <!-- built files will be auto injected -->
<script src="<%= BASE_URL %>cdn/vue/2.6.10/vue.min.js" charset="utf-8"></script> <script src="<%= BASE_URL %>util/aes.js" charset="utf-8"></script>
<script src="<%= BASE_URL %>cdn/vuex/3.1.1/vuex.min.js" charset="utf-8"></script> <script src="<%= BASE_URL %>cdn/vue/2.6.10/vue.min.js" charset="utf-8"></script>
<script src="<%= BASE_URL %>cdn/vue-router/3.0.1/vue-router.min.js" charset="utf-8"></script> <script src="<%= BASE_URL %>cdn/vuex/3.1.1/vuex.min.js" charset="utf-8"></script>
<script src="<%= BASE_URL %>cdn/axios/1.0.0/axios.min.js" charset="utf-8"></script> <script src="<%= BASE_URL %>cdn/vue-router/3.0.1/vue-router.min.js" charset="utf-8"></script>
<script src="<%= BASE_URL %>cdn/element-ui/2.12.0/index.js" charset="utf-8"></script> <script src="<%= BASE_URL %>cdn/axios/1.0.0/axios.min.js" charset="utf-8"></script>
<script src="<%= BASE_URL %>cdn/xlsx/FileSaver.min.js"></script> <script src="<%= BASE_URL %>cdn/element-ui/2.12.0/index.js" charset="utf-8"></script>
<script src="<%= BASE_URL %>cdn/xlsx/xlsx.full.min.js"></script> <script src="<%= BASE_URL %>cdn/xlsx/FileSaver.min.js"></script>
<script src="<%= BASE_URL %>cdn/xlsx/xlsx.full.min.js"></script>
<!-- <script src="//map.qq.com/api/js?v=2.exp&key=FW3BZ-6JTK6-GCUS5-MZCRR-3GPR5-HJFEI"></script>--> <!-- <script src="//map.qq.com/api/js?v=2.exp&key=FW3BZ-6JTK6-GCUS5-MZCRR-3GPR5-HJFEI"></script>-->
<!-- <script src="//3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>--> <!-- <script src="//3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>-->
<script defer src="//map.qq.com/api/js?v=2.exp&key=FW3BZ-6JTK6-GCUS5-MZCRR-3GPR5-HJFEI"></script> <!-- <script defer src="//map.qq.com/api/js?v=2.exp&key=FW3BZ-6JTK6-GCUS5-MZCRR-3GPR5-HJFEI"></script>-->
<script defer src="<%= BASE_URL %>resource/geolocation.min.js"></script> <script defer src="<%= BASE_URL %>resource/geolocation.min.js"></script>
</body> </body>
</html> </html>

View File

@@ -35,16 +35,16 @@
></super-map-view> ></super-map-view>
</template> </template>
<template slot="companyAddressForm" slot-scope="{ disabled }"> <template slot="companyAddressForm" slot-scope="{ disabled }">
<select-map <!-- <select-map-->
ref="selectMap" <!-- ref="selectMap"-->
@addAddress="addAddress" <!-- @addAddress="addAddress"-->
@addressDel="addressDel" <!-- @addressDel="addressDel"-->
:isCanEdit="!disabled" <!-- :isCanEdit="!disabled"-->
:lng="obj.lon" <!-- :lng="obj.lon"-->
:lat="obj.lat" <!-- :lat="obj.lat"-->
:address="form.companyAddress" <!-- :address="form.companyAddress"-->
:type="type" <!-- :type="type"-->
></select-map> <!-- ></select-map>-->
</template> </template>
<template slot="authUrlIdImgForm"> <template slot="authUrlIdImgForm">
<el-image style="width: 100px; height: 100px" :src="form.authUrlId" :preview-src-list="[form.authUrlId]"> <el-image style="width: 100px; height: 100px" :src="form.authUrlId" :preview-src-list="[form.authUrlId]">
@@ -150,7 +150,6 @@ import {check18IdCardNo} from "@/util/validate";
import {moneyFormat} from "@/util/money"; import {moneyFormat} from "@/util/money";
import companyRecord from "./companyRecord"; import companyRecord from "./companyRecord";
import {companyStatus} from "@/const/company"; import {companyStatus} from "@/const/company";
import SelectMap from "@/components/map/selectLocation";
const accept = [ const accept = [
"image/png", "image/png",
@@ -169,7 +168,7 @@ function getPath(path) {
} }
export default { export default {
components: {addAccount, companyConfig, companyCheck, companyRecord, SelectMap}, components: {addAccount, companyConfig, companyCheck, companyRecord},
name: "manage_compan_companyList", name: "manage_compan_companyList",
data() { data() {
const validateTradeId = (rule, value, callback) => { const validateTradeId = (rule, value, callback) => {

View File

@@ -17,25 +17,25 @@
@on-load="onLoad" @on-load="onLoad"
@selection-change="selectionChange" @selection-change="selectionChange"
> >
<!-- 应发工资 --> <!-- 应发工资 -->
<template slot="wage" slot-scope="{ row }"> <template slot="wage" slot-scope="{ row }">
<span>{{moneyFormat(row.wage) }}</span> <span>{{ moneyFormat(row.wage) }}</span>
</template> </template>
<!-- 个税 wageReal--> <!-- 个税 wageReal-->
<template slot="tax" slot-scope="{ row }"> <template slot="tax" slot-scope="{ row }">
<span>{{moneyFormat(row.taxTotal) }}</span> <span>{{ moneyFormat(row.taxTotal) }}</span>
</template> </template>
<!-- 实发工资--> <!-- 实发工资-->
<template slot="wageReal" slot-scope="{row }"> <template slot="wageReal" slot-scope="{row }">
<span>{{moneyFormat(row.wageReal) }}</span> <span>{{ moneyFormat(row.wageReal) }}</span>
</template> </template>
<!-- 归属月 --> <!-- 归属月 -->
<template slot="belongMonth" slot-scope="{row }"> <template slot="belongMonth" slot-scope="{row }">
<span>{{row.belongYear}}-{{row.belongMonth}}</span> <span>{{ row.belongYear }}-{{ row.belongMonth }}</span>
</template> </template>
<template slot="durationContract" slot-scope="{row}"> <template slot="durationContract" slot-scope="{row}">
<span>{{format(row.stime)}}{{format(row.etime)}}</span> <span>{{ format(row.stime) }}{{ format(row.etime) }}</span>
</template> </template>
<!--自定义按钮--> <!--自定义按钮-->
<!-- <template slot="menuLeft"> <!-- <template slot="menuLeft">
<el-button @click="excelBox = true" size="small" type="primary" <el-button @click="excelBox = true" size="small" type="primary"
@@ -45,110 +45,112 @@
<!--自定义操作栏--> <!--自定义操作栏-->
<div slot="menu" slot-scope="{row}"> <div slot="menu" slot-scope="{row}">
<el-button type="text" size="mini" @click.stop="calibration(row)" <el-button type="text" size="mini" @click.stop="calibration(row)"
>查看</el-button >查看
</el-button
> >
<el-button type="text" size="mini" @click="downloadContract(row)" <el-button type="text" size="mini" @click="downloadContract(row)"
>下载</el-button >下载
> </el-button
>
</div> </div>
<template slot="menuLeft"> <template slot="menuLeft">
<el-button type="primary" size="mini" @click="mutiDown" <el-button type="primary" size="mini" @click="mutiDown"
>批量下载</el-button >批量下载
> </el-button
>
</template> </template>
</avue-crud> </avue-crud>
<!-- 查看详情dialog --> <!-- 查看详情dialog -->
<!-- <check ref="check" v-show="false"></check> --> <!-- <check ref="check" v-show="false"></check> -->
<!-- /查看详情dialog --> <!-- /查看详情dialog -->
<el-dialog <el-dialog
title="上传" title="上传"
:visible.sync="calibrationDialog" :visible.sync="calibrationDialog"
width="300px" width="300px"
:modal="false" :modal="false"
class="calibrationForm excelBox"> class="calibrationForm excelBox">
<el-form :model="form" :rules="rules"> <el-form :model="form" :rules="rules">
<el-form-item label="" :label-width="0"> <el-form-item label="" :label-width="0">
<p>{{form.companyName}}</p> <p>{{ form.companyName }}</p>
</el-form-item> </el-form-item>
<el-form-item label="" prop="authUrlId"> <el-form-item label="" prop="authUrlId">
<el-upload <el-upload
:show-file-list="false" :show-file-list="false"
:on-progress=" :on-progress="
() => { () => {
uploading = true; uploading = true;
} }
" "
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload" :before-upload="beforeAvatarUpload"
:http-request="httpRequest" :http-request="httpRequest"
> >
<div v-loading="uploading"> <div v-loading="uploading">
<img <img
class="companyInfo-upload-image" class="companyInfo-upload-image"
:src="form.authUrlId || imageUrl" :src="form.authUrlId || imageUrl"
/> />
</div> </div>
<!-- <div class="companyInfo-upload-tip" slot="tip"> <!-- <div class="companyInfo-upload-tip" slot="tip">
请上传营业执照 请上传营业执照
</div> --> </div> -->
</el-upload> </el-upload>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="calibrationDialog = false">取 消</el-button> <el-button @click="calibrationDialog = false">取 消</el-button>
<el-button type="primary" @click="drawbackClick">确 定</el-button> <el-button type="primary" @click="drawbackClick">确 定</el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- /查看合同dialog --> <!-- /查看合同dialog -->
<el-dialog <el-dialog
title="查看合同" title="查看合同"
:visible.sync="viewLetterDialog" :visible.sync="viewLetterDialog"
width="50%" width="50%"
:modal="false" :modal="false"
class="view-letter-dialog" class="view-letter-dialog"
> >
<el-form :model="viewLetterForm" :rules="rules"> <el-form :model="viewLetterForm" :rules="rules">
<el-form-item label="" prop="authUrlId" > <el-form-item label="" prop="authUrlId">
<div v-loading="uploading"> <div v-loading="uploading">
<img style="width: 100%;" <img style="width: 100%;"
:src="'data:image/png;base64,'+viewLetterForm.imgStr" :src="'data:image/png;base64,'+viewLetterForm.imgStr"
/> />
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="" prop="" > <el-form-item label="" prop="">
<el-button type="primary" @click="handelDownloadLetter"> <el-button type="primary" @click="handelDownloadLetter">
下载合同 下载合同
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import {excelImportOrder} from "@/api/manage/agentpay";//api import {excelImportOrder} from "@/api/manage/agentpay";//api
import {tenantList,downLetter,mutiDownPdf} from "@/api/manage/econtract";//api import {tenantList, downLetter, mutiDownPdf} from "@/api/manage/econtract";//api
import {signSealImg,downloadEsignature,signSeal,signSeals} from "@/api/manage/esignature";//api import {signSealImg, downloadEsignature, signSeal, signSeals} from "@/api/manage/esignature";//api
//import Check from "../Dialog/IncomeTaxCheck";//查看详情 //import Check from "../Dialog/IncomeTaxCheck";//查看详情
import SelectMap from "@/components/map/selectLocation"; import {mapGetters} from "vuex";
import { mapGetters } from "vuex"; import {moneyFormat} from "@/util/money";
import { moneyFormat } from "@/util/money"; import {dateFormat} from "@/util/date";
import { dateFormat } from "@/util/date";
import saveButton from "./saveButton"; import saveButton from "./saveButton";
import { excelAccept } from "@/common/accept"; import {excelAccept} from "@/common/accept";
import httpRequest from "./httpRequest"; import httpRequest from "./httpRequest";
const accept = ["image/png", "image/jpeg", "image/svg+xml", "image/gif"]; const accept = ["image/png", "image/jpeg", "image/svg+xml", "image/gif"];
export default { export default {
components: { components: {
SelectMap,
saveButton, saveButton,
// Check // Check
}, },
@@ -162,45 +164,45 @@ export default {
}, },
}, },
data() { data() {
let taxReal=(rule, value, callback)=>{ let taxReal = (rule, value, callback) => {
let reg = new RegExp("[\\u4E00-\\u9FFF]+","g"); let reg = new RegExp("[\\u4E00-\\u9FFF]+", "g");
let reg1 = new RegExp("/[a-z]/i;"); let reg1 = new RegExp("/[a-z]/i;");
if(reg.test(value)){ if (reg.test(value)) {
this.btnClickFlag = false; this.btnClickFlag = false;
callback(new Error('只能输入数字!')) callback(new Error('只能输入数字!'))
}else if (reg1.test(value)) { } else if (reg1.test(value)) {
this.btnClickFlag = false; this.btnClickFlag = false;
callback(new Error('只能输入数字!')) callback(new Error('只能输入数字!'))
}else{ } else {
this.btnClickFlag = true; this.btnClickFlag = true;
callback() callback()
} }
} }
return { return {
downLetterId:'',//下载合同id downLetterId: '',//下载合同id
viewLetterDialog:false, viewLetterDialog: false,
calibrationDialog:false, calibrationDialog: false,
excelBox: false, excelBox: false,
excelForm: {}, excelForm: {},
imageUrl: "/img/scimg.png", imageUrl: "/img/scimg.png",
imgFile:'', imgFile: '',
btnClickFlag:false, btnClickFlag: false,
formLabelWidth: '120px', formLabelWidth: '120px',
form:{ form: {
num:30, num: 30,
}, },
viewLetterForm:{imgStr:''}, viewLetterForm: {imgStr: ''},
rules: { rules: {
taxReal: [ taxReal: [
{ validator: taxReal , trigger: ['blur', 'change'] }, {validator: taxReal, trigger: ['blur', 'change']},
], ],
}, },
formSubmit:{ formSubmit: {
id:111, id: 111,
taxReal:111, taxReal: 111,
}, },
ceNum:0, ceNum: 0,
taxReal:0, taxReal: 0,
// status: 1, // status: 1,
selectionList: [], selectionList: [],
viewDrawer: false, viewDrawer: false,
@@ -218,13 +220,13 @@ export default {
}, },
data: [], data: [],
obj: {}, obj: {},
missionNo:'', missionNo: '',
leibie:'wait',//查询类别(必填,取值范围:=all 代表返回所有,=wait 待确定,=ing 发放中,=success 发放成功,fail=失败pause 暂不发放;) leibie: 'wait',//查询类别(必填,取值范围:=all 代表返回所有,=wait 待确定,=ing 发放中,=success 发放成功,fail=失败pause 暂不发放;)
}; };
}, },
created() {}, created() {
watch: {
}, },
watch: {},
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(["permission"]),
// ids () { // ids () {
@@ -241,7 +243,7 @@ export default {
}); });
return ids; return ids;
}, },
wageRealTotal () { wageRealTotal() {
let wageRealTotal = 0; let wageRealTotal = 0;
this.selectionList.forEach(ele => { this.selectionList.forEach(ele => {
wageRealTotal += ele.wageReal; wageRealTotal += ele.wageReal;
@@ -288,23 +290,23 @@ export default {
searchShow: false, searchShow: false,
border: true, border: true,
index: true, index: true,
esignatureId:'', esignatureId: '',
imageUrl: "/img/license.png", imageUrl: "/img/license.png",
indexLabel: "序号", indexLabel: "序号",
selection: true, selection: true,
dialogType: "drawer", dialogType: "drawer",
dialogWidth: "60%", dialogWidth: "60%",
delBtnText: "取消", delBtnText: "取消",
dialogClickModal: false, dialogClickModal: false,
column: [ column: [
{ {
width:"180px", width: "180px",
label: "合同编号", label: "合同编号",
prop: "contractNo", prop: "contractNo",
display: false, display: false,
}, },
{ {
width:"180px", width: "180px",
label: "岗位编号", label: "岗位编号",
prop: "servicesNo", prop: "servicesNo",
display: false, display: false,
@@ -322,22 +324,22 @@ export default {
{ {
label: "员工签署日期", label: "员工签署日期",
prop: "createTime", prop: "createTime",
type:"date", type: "date",
format:"yyyy-MM-dd", format: "yyyy-MM-dd",
display: false, display: false,
}, },
{ {
label: "企业签署日期", label: "企业签署日期",
prop: "submitTime", prop: "submitTime",
type:"date", type: "date",
format:"yyyy-MM-dd", format: "yyyy-MM-dd",
display: false, display: false,
}, },
{ {
width:"180px", width: "180px",
label: "合同有效期", label: "合同有效期",
prop: "durationContract", prop: "durationContract",
slot:"true", slot: "true",
display: false, display: false,
} }
], ],
@@ -346,16 +348,16 @@ export default {
}, },
methods: { methods: {
//批量签发 //批量签发
batchIssue(){ batchIssue() {
let fd = new FormData(); let fd = new FormData();
fd.append('ids',this.ids.join(",")); fd.append('ids', this.ids.join(","));
signSeals(fd) signSeals(fd)
.then(() => { .then(() => {
this.onLoad(this.page, this.params); this.onLoad(this.page, this.params);
}) })
.catch(() => { .catch(() => {
}); });
}, },
/**上传图片**/ /**上传图片**/
handleAvatarSuccess(res, file) { handleAvatarSuccess(res, file) {
@@ -367,23 +369,23 @@ export default {
const isJPG = accept.includes(file.type); const isJPG = accept.includes(file.type);
this.imgFile = file; this.imgFile = file;
let fd = new FormData(); let fd = new FormData();
fd.append('file',file); fd.append('file', file);
fd.append('id',this.form.id); fd.append('id', this.form.id);
if (!isJPG) { if (!isJPG) {
this.$message.error("图片格式不正确!"); this.$message.error("图片格式不正确!");
} }
signSealImg(fd) signSealImg(fd)
.then(() => { .then(() => {
}) })
.catch(() => { .catch(() => {
}); });
return isJPG; return isJPG;
}, },
/**上传图片*/ /**上传图片*/
httpRequest, httpRequest,
moneyFormat, moneyFormat,
//下载建行客户端工资发放模板 //下载建行客户端工资发放模板
uploadAfter(res, done) { uploadAfter(res, done) {
this.onLoad(this.page, this.params); this.onLoad(this.page, this.params);
done(); done();
@@ -405,24 +407,24 @@ export default {
// } // }
// }, // },
//单挑数据发起校准确定按钮 //单挑数据发起校准确定按钮
drawbackClick(){ drawbackClick() {
let fd = new FormData(); let fd = new FormData();
fd.append('id',this.form.id); fd.append('id', this.form.id);
signSeal(fd) signSeal(fd)
.then(() => { .then(() => {
this.onLoad(this.page, this.params); this.onLoad(this.page, this.params);
}) })
.catch(() => { .catch(() => {
}); });
this.calibrationDialog = false; this.calibrationDialog = false;
}, },
taxRealChaneg(){ taxRealChaneg() {
this.form.taxReal = this.taxReal; this.form.taxReal = this.taxReal;
this.formSubmit.taxReal = this.taxReal*100; this.formSubmit.taxReal = this.taxReal * 100;
this.ceNum = this.form.taxTotal - this.formSubmit.taxReal ; this.ceNum = this.form.taxTotal - this.formSubmit.taxReal;
}, },
selectionChange (list) { selectionChange(list) {
this.selectionList = list; this.selectionList = list;
}, },
format(date) { format(date) {
@@ -431,10 +433,10 @@ export default {
} }
}, },
//下载合同 //下载合同
downloadContract(row){ downloadContract(row) {
window.open(downLetter(row.id)) window.open(downLetter(row.id))
}, },
calibration(row){ calibration(row) {
window.open(row.contractSecondUrl) window.open(row.contractSecondUrl)
}, },
//查看详情 //查看详情
@@ -442,7 +444,7 @@ export default {
// this.$refs.check.openDialog(row); // this.$refs.check.openDialog(row);
// }, // },
//下载申请表 //下载申请表
downloadEsignature(row){ downloadEsignature(row) {
window.open(downloadEsignature(row.id)) window.open(downloadEsignature(row.id))
}, },
currentChange(currentPage) { currentChange(currentPage) {
@@ -456,7 +458,7 @@ export default {
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
/*下载合同*/ /*下载合同*/
handelDownloadLetter(){ handelDownloadLetter() {
window.open(downLetter(this.downLetterId)); window.open(downLetter(this.downLetterId));
}, },
/*加载数据*/ /*加载数据*/
@@ -478,20 +480,19 @@ export default {
backIndex() { backIndex() {
this.$emit("refresh"); this.$emit("refresh");
}, },
mutiDown(){ mutiDown() {
// //mutiDownPdf(this.ids.join(',')) // //mutiDownPdf(this.ids.join(','))
// mutiDownPdf(this.ids.join(',')).then(res=>{ // mutiDownPdf(this.ids.join(',')).then(res=>{
// window.open(res) // window.open(res)
// // console.log(res.data,'muti down') // // console.log(res.data,'muti down')
// }) // })
if(this.selectionList.length==0){ if (this.selectionList.length == 0) {
this.$message.error('至少选择一条数据') this.$message.error('至少选择一条数据')
} } else {
else{
window.open(mutiDownPdf(this.ids.join(','))); window.open(mutiDownPdf(this.ids.join(',')));
} }
} }
}, },
}; };
@@ -501,10 +502,12 @@ export default {
height: 160px; height: 160px;
width: 160px; width: 160px;
} }
.el-col, .el-col,
.el-form-item { .el-form-item {
margin-bottom: 0px; margin-bottom: 0px;
} }
.map { .map {
width: 100%; width: 100%;
height: 300px; height: 300px;
@@ -514,27 +517,34 @@ export default {
.slotForm { .slotForm {
font-size: 12px; font-size: 12px;
} }
.calibrationForm .el-form{
.calibrationForm .el-form {
padding-bottom: 0 !important; padding-bottom: 0 !important;
} }
.calibrationForm .el-dialog--center .el-dialog__body{
.calibrationForm .el-dialog--center .el-dialog__body {
padding: 0 10px !important; padding: 0 10px !important;
} }
.calibrationForm .el-dialog--center .el-dialog__body .el-input__inner{
.calibrationForm .el-dialog--center .el-dialog__body .el-input__inner {
padding: 0 !important; padding: 0 !important;
height:30px !important; height: 30px !important;
line-height: 30px !important; line-height: 30px !important;
} }
.excelBox .el-dialog__body{
padding: 0 10px!important; .excelBox .el-dialog__body {
padding: 0 10px !important;
} }
.excelBox .el-form-item__content{
margin-left: 0 !important; .excelBox .el-form-item__content {
text-align: center; margin-left: 0 !important;
text-align: center;
} }
.excelBox .el-dialog{
width:360px !important; .excelBox .el-dialog {
width: 360px !important;
} }
/* .contentIndex-table .avue-crud{ /* .contentIndex-table .avue-crud{
margin-top: -40px; margin-top: -40px;
} */ } */

View File

@@ -17,26 +17,27 @@
@on-load="onLoad" @on-load="onLoad"
@selection-change="selectionChange" @selection-change="selectionChange"
> >
<template slot="menuLeft"> <template slot="menuLeft">
<el-button @click="batchIssue" size="small" :disabled="ids.length === 0" type="primary" <el-button @click="batchIssue" size="small" :disabled="ids.length === 0" type="primary"
>批量重新签发</el-button> >批量重新签发
</el-button>
</template>
<!-- 应发工资 -->
<template slot="wage" slot-scope="{ row }">
<span>{{ moneyFormat(row.wage) }}</span>
</template>
<!-- 个税 wageReal-->
<template slot="tax" slot-scope="{ row }">
<span>{{ moneyFormat(row.taxTotal) }}</span>
</template>
<!-- 实发工资-->
<template slot="wageReal" slot-scope="{row }">
<span>{{ moneyFormat(row.wageReal) }}</span>
</template>
<!-- 归属月 -->
<template slot="belongMonth" slot-scope="{row }">
<span>{{ row.belongYear }}-{{ row.belongMonth }}</span>
</template> </template>
<!-- 应发工资 -->
<template slot="wage" slot-scope="{ row }">
<span>{{moneyFormat(row.wage) }}</span>
</template>
<!-- 个税 wageReal-->
<template slot="tax" slot-scope="{ row }">
<span>{{moneyFormat(row.taxTotal) }}</span>
</template>
<!-- 实发工资-->
<template slot="wageReal" slot-scope="{row }">
<span>{{moneyFormat(row.wageReal) }}</span>
</template>
<!-- 归属月 -->
<template slot="belongMonth" slot-scope="{row }">
<span>{{row.belongYear}}-{{row.belongMonth}}</span>
</template>
<!--自定义按钮--> <!--自定义按钮-->
<!-- <template slot="menuLeft"> <!-- <template slot="menuLeft">
<el-button @click="excelBox = true" size="small" type="primary" <el-button @click="excelBox = true" size="small" type="primary"
@@ -49,7 +50,8 @@
>下载申请表</el-button >下载申请表</el-button
> --> > -->
<el-button type="text" size="mini" @click.stop="calibration(row)" <el-button type="text" size="mini" @click.stop="calibration(row)"
>重新签发</el-button >重新签发
</el-button
> >
</div> </div>
</avue-crud> </avue-crud>
@@ -57,65 +59,64 @@
<check ref="check" v-show="false"></check> <check ref="check" v-show="false"></check>
<!-- /查看详情dialog --> <!-- /查看详情dialog -->
<el-dialog <el-dialog
title="上传" title="上传"
:visible.sync="calibrationDialog" :visible.sync="calibrationDialog"
width="300px" width="300px"
:modal="false" :modal="false"
class="calibrationForm excelBox"> class="calibrationForm excelBox">
<el-form :model="form" :rules="rules"> <el-form :model="form" :rules="rules">
<el-form-item label="" :label-width="0"> <el-form-item label="" :label-width="0">
<p>{{form.companyName}}</p> <p>{{ form.companyName }}</p>
</el-form-item> </el-form-item>
<el-form-item label="" prop="authUrlId"> <el-form-item label="" prop="authUrlId">
<el-upload <el-upload
:show-file-list="false" :show-file-list="false"
:on-progress=" :on-progress="
() => { () => {
uploading = true; uploading = true;
} }
" "
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload" :before-upload="beforeAvatarUpload"
:http-request="httpRequest" :http-request="httpRequest"
> >
<div v-loading="uploading"> <div v-loading="uploading">
<img <img
class="companyInfo-upload-image" class="companyInfo-upload-image"
:src="form.authUrlId || imageUrl" :src="form.authUrlId || imageUrl"
/> />
</div> </div>
<!-- <div class="companyInfo-upload-tip" slot="tip"> <!-- <div class="companyInfo-upload-tip" slot="tip">
请上传营业执照 请上传营业执照
</div> --> </div> -->
</el-upload> </el-upload>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="calibrationDialog = false">取 消</el-button> <el-button @click="calibrationDialog = false">取 消</el-button>
<el-button type="primary" @click="drawbackClick">确 定</el-button> <el-button type="primary" @click="drawbackClick">确 定</el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import {excelImportOrder} from "@/api/manage/agentpay";//api import {excelImportOrder} from "@/api/manage/agentpay";//api
import {esignatureStatus,signSealImg,downloadEsignature,signSeal,signSeals} from "@/api/manage/esignature";//api import {esignatureStatus, signSealImg, downloadEsignature, signSeal, signSeals} from "@/api/manage/esignature";//api
import Check from "../Dialog/IncomeTaxCheck";//查看详情 import Check from "../Dialog/IncomeTaxCheck";//查看详情
import SelectMap from "@/components/map/selectLocation"; import {mapGetters} from "vuex";
import { mapGetters } from "vuex"; import {moneyFormat} from "@/util/money";
import { moneyFormat } from "@/util/money"; import {dateFormat} from "@/util/date";
import { dateFormat } from "@/util/date";
import saveButton from "./saveButton"; import saveButton from "./saveButton";
import { excelAccept } from "@/common/accept"; import {excelAccept} from "@/common/accept";
import httpRequest from "../httpRequest"; import httpRequest from "../httpRequest";
const accept = ["image/png", "image/jpeg", "image/svg+xml", "image/gif"]; const accept = ["image/png", "image/jpeg", "image/svg+xml", "image/gif"];
export default { export default {
components: { components: {
SelectMap,
saveButton, saveButton,
Check Check
}, },
@@ -129,42 +130,42 @@ export default {
}, },
}, },
data() { data() {
let taxReal=(rule, value, callback)=>{ let taxReal = (rule, value, callback) => {
let reg = new RegExp("[\\u4E00-\\u9FFF]+","g"); let reg = new RegExp("[\\u4E00-\\u9FFF]+", "g");
let reg1 = new RegExp("/[a-z]/i;"); let reg1 = new RegExp("/[a-z]/i;");
if(reg.test(value)){ if (reg.test(value)) {
this.btnClickFlag = false; this.btnClickFlag = false;
callback(new Error('只能输入数字!')) callback(new Error('只能输入数字!'))
}else if (reg1.test(value)) { } else if (reg1.test(value)) {
this.btnClickFlag = false; this.btnClickFlag = false;
callback(new Error('只能输入数字!')) callback(new Error('只能输入数字!'))
}else{ } else {
this.btnClickFlag = true; this.btnClickFlag = true;
callback() callback()
} }
} }
return { return {
calibrationDialog:false, calibrationDialog: false,
excelBox: false, excelBox: false,
excelForm: {}, excelForm: {},
imageUrl: "/img/scimg.png", imageUrl: "/img/scimg.png",
imgFile:'', imgFile: '',
btnClickFlag:false, btnClickFlag: false,
formLabelWidth: '120px', formLabelWidth: '120px',
form:{ form: {
num:30, num: 30,
}, },
rules: { rules: {
taxReal: [ taxReal: [
{ validator: taxReal , trigger: ['blur', 'change'] }, {validator: taxReal, trigger: ['blur', 'change']},
], ],
}, },
formSubmit:{ formSubmit: {
id:111, id: 111,
taxReal:111, taxReal: 111,
}, },
ceNum:0, ceNum: 0,
taxReal:0, taxReal: 0,
status: 1, status: 1,
selectionList: [], selectionList: [],
viewDrawer: false, viewDrawer: false,
@@ -182,13 +183,13 @@ export default {
}, },
data: [], data: [],
obj: {}, obj: {},
missionNo:'', missionNo: '',
leibie:'wait',//查询类别(必填,取值范围:=all 代表返回所有,=wait 待确定,=ing 发放中,=success 发放成功,fail=失败pause 暂不发放;) leibie: 'wait',//查询类别(必填,取值范围:=all 代表返回所有,=wait 待确定,=ing 发放中,=success 发放成功,fail=失败pause 暂不发放;)
}; };
}, },
created() {}, created() {
watch: {
}, },
watch: {},
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(["permission"]),
// ids () { // ids () {
@@ -205,7 +206,7 @@ export default {
}); });
return ids; return ids;
}, },
wageRealTotal () { wageRealTotal() {
let wageRealTotal = 0; let wageRealTotal = 0;
this.selectionList.forEach(ele => { this.selectionList.forEach(ele => {
wageRealTotal += ele.wageReal; wageRealTotal += ele.wageReal;
@@ -252,7 +253,7 @@ export default {
searchShow: false, searchShow: false,
border: true, border: true,
index: true, index: true,
esignatureId:'', esignatureId: '',
imageUrl: "/img/license.png", imageUrl: "/img/license.png",
indexLabel: "序号", indexLabel: "序号",
selection: true, selection: true,
@@ -286,16 +287,16 @@ export default {
}, },
methods: { methods: {
//批量签发 //批量签发
batchIssue(){ batchIssue() {
let fd = new FormData(); let fd = new FormData();
fd.append('ids',this.ids.join(",")); fd.append('ids', this.ids.join(","));
signSeals(fd) signSeals(fd)
.then(() => { .then(() => {
this.onLoad(this.page, this.params); this.onLoad(this.page, this.params);
}) })
.catch(() => { .catch(() => {
}); });
}, },
/**上传图片**/ /**上传图片**/
handleAvatarSuccess(res, file) { handleAvatarSuccess(res, file) {
@@ -307,23 +308,23 @@ export default {
const isJPG = accept.includes(file.type); const isJPG = accept.includes(file.type);
this.imgFile = file; this.imgFile = file;
let fd = new FormData(); let fd = new FormData();
fd.append('file',file); fd.append('file', file);
fd.append('id',this.form.id); fd.append('id', this.form.id);
if (!isJPG) { if (!isJPG) {
this.$message.error("图片格式不正确!"); this.$message.error("图片格式不正确!");
} }
signSealImg(fd) signSealImg(fd)
.then(() => { .then(() => {
}) })
.catch(() => { .catch(() => {
}); });
return isJPG; return isJPG;
}, },
/**上传图片*/ /**上传图片*/
httpRequest, httpRequest,
moneyFormat, moneyFormat,
//下载建行客户端工资发放模板 //下载建行客户端工资发放模板
uploadAfter(res, done) { uploadAfter(res, done) {
this.onLoad(this.page, this.params); this.onLoad(this.page, this.params);
done(); done();
@@ -345,24 +346,24 @@ export default {
// } // }
// }, // },
//单挑数据发起校准确定按钮 //单挑数据发起校准确定按钮
drawbackClick(){ drawbackClick() {
let fd = new FormData(); let fd = new FormData();
fd.append('id',this.form.id); fd.append('id', this.form.id);
signSeal(fd) signSeal(fd)
.then(() => { .then(() => {
this.onLoad(this.page, this.params); this.onLoad(this.page, this.params);
}) })
.catch(() => { .catch(() => {
}); });
this.calibrationDialog = false; this.calibrationDialog = false;
}, },
taxRealChaneg(){ taxRealChaneg() {
this.form.taxReal = this.taxReal; this.form.taxReal = this.taxReal;
this.formSubmit.taxReal = this.taxReal*100; this.formSubmit.taxReal = this.taxReal * 100;
this.ceNum = this.form.taxTotal - this.formSubmit.taxReal ; this.ceNum = this.form.taxTotal - this.formSubmit.taxReal;
}, },
selectionChange (list) { selectionChange(list) {
this.selectionList = list; this.selectionList = list;
}, },
format(date) { format(date) {
@@ -371,12 +372,12 @@ export default {
} }
}, },
//发起校准 //发起校准
calibration(row){ calibration(row) {
this.form = row; this.form = row;
this.calibrationDialog = true; this.calibrationDialog = true;
}, },
//下载申请表 //下载申请表
downloadEsignature(row){ downloadEsignature(row) {
window.open(downloadEsignature(row.id)) window.open(downloadEsignature(row.id))
}, },
currentChange(currentPage) { currentChange(currentPage) {
@@ -416,10 +417,12 @@ export default {
height: 160px; height: 160px;
width: 160px; width: 160px;
} }
.el-col, .el-col,
.el-form-item { .el-form-item {
margin-bottom: 0px; margin-bottom: 0px;
} }
.map { .map {
width: 100%; width: 100%;
height: 300px; height: 300px;
@@ -429,25 +432,31 @@ export default {
.slotForm { .slotForm {
font-size: 12px; font-size: 12px;
} }
.calibrationForm .el-form{
.calibrationForm .el-form {
padding-bottom: 0 !important; padding-bottom: 0 !important;
} }
.calibrationForm .el-dialog--center .el-dialog__body{
.calibrationForm .el-dialog--center .el-dialog__body {
padding: 0 10px !important; padding: 0 10px !important;
} }
.calibrationForm .el-dialog--center .el-dialog__body .el-input__inner{
.calibrationForm .el-dialog--center .el-dialog__body .el-input__inner {
padding: 0 !important; padding: 0 !important;
height:30px !important; height: 30px !important;
line-height: 30px !important; line-height: 30px !important;
} }
.excelBox .el-dialog__body{
padding: 0 10px!important; .excelBox .el-dialog__body {
padding: 0 10px !important;
} }
.excelBox .el-form-item__content{
margin-left: 0 !important; .excelBox .el-form-item__content {
text-align: center; margin-left: 0 !important;
text-align: center;
} }
.excelBox .el-dialog{
width:360px !important; .excelBox .el-dialog {
width: 360px !important;
} }
</style> </style>

View File

@@ -17,26 +17,27 @@
@on-load="onLoad" @on-load="onLoad"
@selection-change="selectionChange" @selection-change="selectionChange"
> >
<!-- 应发工资 --> <!-- 应发工资 -->
<template slot="wage" slot-scope="{ row }"> <template slot="wage" slot-scope="{ row }">
<span>{{moneyFormat(row.wage) }}</span> <span>{{ moneyFormat(row.wage) }}</span>
</template> </template>
<!-- 个税 wageReal--> <!-- 个税 wageReal-->
<template slot="tax" slot-scope="{ row }"> <template slot="tax" slot-scope="{ row }">
<span>{{moneyFormat(row.taxTotal) }}</span> <span>{{ moneyFormat(row.taxTotal) }}</span>
</template> </template>
<!-- 实发工资--> <!-- 实发工资-->
<template slot="wageReal" slot-scope="{row }"> <template slot="wageReal" slot-scope="{row }">
<span>{{moneyFormat(row.wageReal) }}</span> <span>{{ moneyFormat(row.wageReal) }}</span>
</template> </template>
<!-- 归属月 --> <!-- 归属月 -->
<template slot="belongMonth" slot-scope="{row }"> <template slot="belongMonth" slot-scope="{row }">
<span>{{row.belongYear}}-{{row.belongMonth}}</span> <span>{{ row.belongYear }}-{{ row.belongMonth }}</span>
</template> </template>
<!--自定义操作栏--> <!--自定义操作栏-->
<div slot="menu" slot-scope="{row}"> <div slot="menu" slot-scope="{row}">
<el-button type="text" size="mini" @click.stop="checkClick(row)" <el-button type="text" size="mini" @click.stop="checkClick(row)"
>查看</el-button >查看
</el-button
> >
</div> </div>
</avue-crud> </avue-crud>
@@ -44,46 +45,45 @@
<check ref="check" v-show="false"></check> <check ref="check" v-show="false"></check>
<!-- /查看详情dialog --> <!-- /查看详情dialog -->
<el-dialog <el-dialog
title="查看" title="查看"
:visible.sync="calibrationDialog" :visible.sync="calibrationDialog"
width="300px" width="300px"
:modal="false" :modal="false"
class="calibrationForm excelBox checkForm"> class="calibrationForm excelBox checkForm">
<el-form :model="form" :rules="rules"> <el-form :model="form" :rules="rules">
<el-form-item label="公章:" prop="authUrlId" > <el-form-item label="公章:" prop="authUrlId">
<div v-loading="uploading"> <div v-loading="uploading">
<img <img
class="companyInfo-upload-image" class="companyInfo-upload-image"
:src="'data:image/png;base64,'+form.imgStr" :src="'data:image/png;base64,'+form.imgStr"
/> />
</div> </div>
<!-- <div class="companyInfo-upload-tip" slot="tip"> <!-- <div class="companyInfo-upload-tip" slot="tip">
请上传营业执照 请上传营业执照
</div> --> </div> -->
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import {excelImportOrder} from "@/api/manage/agentpay";//api import {excelImportOrder} from "@/api/manage/agentpay";//api
import {esignatureStatus,signSealImg,signSeal,detailsImg} from "@/api/manage/esignature";//api import {esignatureStatus, signSealImg, signSeal, detailsImg} from "@/api/manage/esignature";//api
import Check from "../Dialog/IncomeTaxCheck";//查看详情 import Check from "../Dialog/IncomeTaxCheck";//查看详情
import SelectMap from "@/components/map/selectLocation"; import {mapGetters} from "vuex";
import { mapGetters } from "vuex"; import {moneyFormat} from "@/util/money";
import { moneyFormat } from "@/util/money"; import {dateFormat} from "@/util/date";
import { dateFormat } from "@/util/date";
import saveButton from "./saveButton"; import saveButton from "./saveButton";
import { excelAccept } from "@/common/accept"; import {excelAccept} from "@/common/accept";
import httpRequest from "../httpRequest"; import httpRequest from "../httpRequest";
const accept = ["image/png", "image/jpeg", "image/svg+xml", "image/gif"]; const accept = ["image/png", "image/jpeg", "image/svg+xml", "image/gif"];
export default { export default {
components: { components: {
SelectMap,
saveButton, saveButton,
Check Check
}, },
@@ -97,42 +97,42 @@ export default {
}, },
}, },
data() { data() {
let taxReal=(rule, value, callback)=>{ let taxReal = (rule, value, callback) => {
let reg = new RegExp("[\\u4E00-\\u9FFF]+","g"); let reg = new RegExp("[\\u4E00-\\u9FFF]+", "g");
let reg1 = new RegExp("/[a-z]/i;"); let reg1 = new RegExp("/[a-z]/i;");
if(reg.test(value)){ if (reg.test(value)) {
this.btnClickFlag = false; this.btnClickFlag = false;
callback(new Error('只能输入数字!')) callback(new Error('只能输入数字!'))
}else if (reg1.test(value)) { } else if (reg1.test(value)) {
this.btnClickFlag = false; this.btnClickFlag = false;
callback(new Error('只能输入数字!')) callback(new Error('只能输入数字!'))
}else{ } else {
this.btnClickFlag = true; this.btnClickFlag = true;
callback() callback()
} }
} }
return { return {
calibrationDialog:false, calibrationDialog: false,
excelBox: false, excelBox: false,
excelForm: {}, excelForm: {},
imageUrl: "/img/scimg.png", imageUrl: "/img/scimg.png",
imgFile:'', imgFile: '',
btnClickFlag:false, btnClickFlag: false,
formLabelWidth: '120px', formLabelWidth: '120px',
form:{ form: {
num:30, num: 30,
}, },
rules: { rules: {
taxReal: [ taxReal: [
{ validator: taxReal , trigger: ['blur', 'change'] }, {validator: taxReal, trigger: ['blur', 'change']},
], ],
}, },
formSubmit:{ formSubmit: {
id:111, id: 111,
taxReal:111, taxReal: 111,
}, },
ceNum:0, ceNum: 0,
taxReal:0, taxReal: 0,
status: 1, status: 1,
selectionList: [], selectionList: [],
viewDrawer: false, viewDrawer: false,
@@ -150,23 +150,23 @@ export default {
}, },
data: [], data: [],
obj: {}, obj: {},
missionNo:'', missionNo: '',
leibie:'wait',//查询类别(必填,取值范围:=all 代表返回所有,=wait 待确定,=ing 发放中,=success 发放成功,fail=失败pause 暂不发放;) leibie: 'wait',//查询类别(必填,取值范围:=all 代表返回所有,=wait 待确定,=ing 发放中,=success 发放成功,fail=失败pause 暂不发放;)
}; };
}, },
created() {}, created() {
watch: {
}, },
watch: {},
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(["permission"]),
ids () { ids() {
let ids = []; let ids = [];
this.selectionList.forEach(ele => { this.selectionList.forEach(ele => {
ids.push(ele.id); ids.push(ele.id);
}); });
return ids.join(","); return ids.join(",");
}, },
wageRealTotal () { wageRealTotal() {
let wageRealTotal = 0; let wageRealTotal = 0;
this.selectionList.forEach(ele => { this.selectionList.forEach(ele => {
wageRealTotal += ele.wageReal; wageRealTotal += ele.wageReal;
@@ -213,7 +213,7 @@ export default {
searchShow: false, searchShow: false,
border: true, border: true,
index: true, index: true,
esignatureId:'', esignatureId: '',
imageUrl: "/img/license.png", imageUrl: "/img/license.png",
dialogType: "drawer", dialogType: "drawer",
dialogWidth: "60%", dialogWidth: "60%",
@@ -284,23 +284,23 @@ export default {
const isJPG = accept.includes(file.type); const isJPG = accept.includes(file.type);
this.imgFile = file; this.imgFile = file;
let fd = new FormData(); let fd = new FormData();
fd.append('file',file); fd.append('file', file);
fd.append('id',this.form.id); fd.append('id', this.form.id);
if (!isJPG) { if (!isJPG) {
this.$message.error("图片格式不正确!"); this.$message.error("图片格式不正确!");
} }
signSealImg(fd) signSealImg(fd)
.then(() => { .then(() => {
}) })
.catch(() => { .catch(() => {
}); });
return isJPG; return isJPG;
}, },
/**上传图片*/ /**上传图片*/
httpRequest, httpRequest,
moneyFormat, moneyFormat,
//下载建行客户端工资发放模板 //下载建行客户端工资发放模板
uploadAfter(res, done) { uploadAfter(res, done) {
this.onLoad(this.page, this.params); this.onLoad(this.page, this.params);
done(); done();
@@ -314,23 +314,23 @@ export default {
} }
}, },
//单挑数据发起校准确定按钮 //单挑数据发起校准确定按钮
drawbackClick(){ drawbackClick() {
let fd = new FormData(); let fd = new FormData();
fd.append('id',this.form.id); fd.append('id', this.form.id);
signSeal(fd) signSeal(fd)
.then(() => { .then(() => {
}) })
.catch(() => { .catch(() => {
}); });
this.calibrationDialog = false; this.calibrationDialog = false;
}, },
taxRealChaneg(){ taxRealChaneg() {
this.form.taxReal = this.taxReal; this.form.taxReal = this.taxReal;
this.formSubmit.taxReal = this.taxReal*100; this.formSubmit.taxReal = this.taxReal * 100;
this.ceNum = this.form.taxTotal - this.formSubmit.taxReal ; this.ceNum = this.form.taxTotal - this.formSubmit.taxReal;
}, },
selectionChange (list) { selectionChange(list) {
this.selectionList = list; this.selectionList = list;
}, },
format(date) { format(date) {
@@ -338,15 +338,15 @@ export default {
return dateFormat(new Date(date), "yyyy/MM/dd"); return dateFormat(new Date(date), "yyyy/MM/dd");
} }
}, },
checkClick (row){ checkClick(row) {
this.form = row; this.form = row;
detailsImg(row.id).then((res) => { detailsImg(row.id).then((res) => {
this.form.imgStr = res.data.data; this.form.imgStr = res.data.data;
this.calibrationDialog = true; this.calibrationDialog = true;
}) })
.catch(() => { .catch(() => {
}); });
}, },
currentChange(currentPage) { currentChange(currentPage) {
@@ -386,14 +386,17 @@ export default {
font-size: 18px; font-size: 18px;
margin-left: 20px; margin-left: 20px;
} }
.companyInfo-upload-image { .companyInfo-upload-image {
height: 160px; height: 160px;
width: 160px; width: 160px;
} }
.el-col, .el-col,
.el-form-item { .el-form-item {
margin-bottom: 0px; margin-bottom: 0px;
} }
.map { .map {
width: 100%; width: 100%;
height: 300px; height: 300px;
@@ -403,24 +406,30 @@ export default {
.slotForm { .slotForm {
font-size: 12px; font-size: 12px;
} }
.calibrationForm .el-form{
.calibrationForm .el-form {
padding-bottom: 0 !important; padding-bottom: 0 !important;
} }
.calibrationForm .el-dialog--center .el-dialog__body{
.calibrationForm .el-dialog--center .el-dialog__body {
padding: 0 10px !important; padding: 0 10px !important;
} }
.calibrationForm .el-dialog--center .el-dialog__body .el-input__inner{
.calibrationForm .el-dialog--center .el-dialog__body .el-input__inner {
padding: 0 !important; padding: 0 !important;
height:30px !important; height: 30px !important;
line-height: 30px !important; line-height: 30px !important;
} }
.excelBox .el-dialog__body{
padding: 0 10px!important; .excelBox .el-dialog__body {
padding: 0 10px !important;
} }
.excelBox .el-form-item__content{
margin-left: 0 !important; .excelBox .el-form-item__content {
margin-left: 0 !important;
} }
.excelBox .el-dialog{
width:360px !important; .excelBox .el-dialog {
width: 360px !important;
} }
</style> </style>

View File

@@ -17,22 +17,22 @@
@on-load="onLoad" @on-load="onLoad"
@selection-change="selectionChange" @selection-change="selectionChange"
> >
<!-- 应发工资 --> <!-- 应发工资 -->
<template slot="wage" slot-scope="{ row }"> <template slot="wage" slot-scope="{ row }">
<span>{{moneyFormat(row.wage) }}</span> <span>{{ moneyFormat(row.wage) }}</span>
</template> </template>
<!-- 个税 wageReal--> <!-- 个税 wageReal-->
<template slot="tax" slot-scope="{ row }"> <template slot="tax" slot-scope="{ row }">
<span>{{moneyFormat(row.taxTotal) }}</span> <span>{{ moneyFormat(row.taxTotal) }}</span>
</template> </template>
<!-- 实发工资--> <!-- 实发工资-->
<template slot="wageReal" slot-scope="{row }"> <template slot="wageReal" slot-scope="{row }">
<span>{{moneyFormat(row.wageReal) }}</span> <span>{{ moneyFormat(row.wageReal) }}</span>
</template> </template>
<!-- 归属月 --> <!-- 归属月 -->
<template slot="belongMonth" slot-scope="{row }"> <template slot="belongMonth" slot-scope="{row }">
<span>{{row.belongYear}}-{{row.belongMonth}}</span> <span>{{ row.belongYear }}-{{ row.belongMonth }}</span>
</template> </template>
<!--自定义按钮--> <!--自定义按钮-->
<!-- <template slot="menuLeft"> <!-- <template slot="menuLeft">
<el-button @click="excelBox = true" size="small" type="primary" <el-button @click="excelBox = true" size="small" type="primary"
@@ -42,10 +42,12 @@
<!--自定义操作栏--> <!--自定义操作栏-->
<div slot="menu" slot-scope="{row}"> <div slot="menu" slot-scope="{row}">
<el-button type="text" size="mini" @click="downloadEsignature(row)" <el-button type="text" size="mini" @click="downloadEsignature(row)"
>下载申请表</el-button >下载申请表
</el-button
> >
<el-button type="text" size="mini" @click.stop="calibration(row)" <el-button type="text" size="mini" @click.stop="calibration(row)"
>签发</el-button >签发
</el-button
> >
</div> </div>
</avue-crud> </avue-crud>
@@ -53,65 +55,64 @@
<check ref="check" v-show="false"></check> <check ref="check" v-show="false"></check>
<!-- /查看详情dialog --> <!-- /查看详情dialog -->
<el-dialog <el-dialog
title="上传" title="上传"
:visible.sync="calibrationDialog" :visible.sync="calibrationDialog"
width="300px" width="300px"
:modal="false" :modal="false"
class="calibrationForm excelBox"> class="calibrationForm excelBox">
<el-form :model="form" :rules="rules"> <el-form :model="form" :rules="rules">
<el-form-item label="" :label-width="0"> <el-form-item label="" :label-width="0">
<p>{{form.companyName}}</p> <p>{{ form.companyName }}</p>
</el-form-item> </el-form-item>
<el-form-item label="" prop="authUrlId"> <el-form-item label="" prop="authUrlId">
<el-upload <el-upload
:show-file-list="false" :show-file-list="false"
:on-progress=" :on-progress="
() => { () => {
uploading = true; uploading = true;
} }
" "
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload" :before-upload="beforeAvatarUpload"
:http-request="httpRequest" :http-request="httpRequest"
> >
<div v-loading="uploading"> <div v-loading="uploading">
<img <img
class="companyInfo-upload-image" class="companyInfo-upload-image"
:src="form.authUrlId || imageUrl" :src="form.authUrlId || imageUrl"
/> />
</div> </div>
<!-- <div class="companyInfo-upload-tip" slot="tip"> <!-- <div class="companyInfo-upload-tip" slot="tip">
请上传营业执照 请上传营业执照
</div> --> </div> -->
</el-upload> </el-upload>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="calibrationDialog = false">取 消</el-button> <el-button @click="calibrationDialog = false">取 消</el-button>
<el-button type="primary" @click="drawbackClick">确 定</el-button> <el-button type="primary" @click="drawbackClick">确 定</el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import {excelImportOrder} from "@/api/manage/agentpay";//api import {excelImportOrder} from "@/api/manage/agentpay";//api
import {esignatureStatus,signSealImg,downloadEsignature,signSeal} from "@/api/manage/esignature";//api import {esignatureStatus, signSealImg, downloadEsignature, signSeal} from "@/api/manage/esignature";//api
import Check from "../Dialog/IncomeTaxCheck";//查看详情 import Check from "../Dialog/IncomeTaxCheck";//查看详情
import SelectMap from "@/components/map/selectLocation"; import {mapGetters} from "vuex";
import { mapGetters } from "vuex"; import {moneyFormat} from "@/util/money";
import { moneyFormat } from "@/util/money"; import {dateFormat} from "@/util/date";
import { dateFormat } from "@/util/date";
import saveButton from "./saveButton"; import saveButton from "./saveButton";
import { excelAccept } from "@/common/accept"; import {excelAccept} from "@/common/accept";
import httpRequest from "../httpRequest"; import httpRequest from "../httpRequest";
const accept = ["image/png", "image/jpeg", "image/svg+xml", "image/gif"]; const accept = ["image/png", "image/jpeg", "image/svg+xml", "image/gif"];
export default { export default {
components: { components: {
SelectMap,
saveButton, saveButton,
Check Check
}, },
@@ -125,42 +126,42 @@ export default {
}, },
}, },
data() { data() {
let taxReal=(rule, value, callback)=>{ let taxReal = (rule, value, callback) => {
let reg = new RegExp("[\\u4E00-\\u9FFF]+","g"); let reg = new RegExp("[\\u4E00-\\u9FFF]+", "g");
let reg1 = new RegExp("/[a-z]/i;"); let reg1 = new RegExp("/[a-z]/i;");
if(reg.test(value)){ if (reg.test(value)) {
this.btnClickFlag = false; this.btnClickFlag = false;
callback(new Error('只能输入数字!')) callback(new Error('只能输入数字!'))
}else if (reg1.test(value)) { } else if (reg1.test(value)) {
this.btnClickFlag = false; this.btnClickFlag = false;
callback(new Error('只能输入数字!')) callback(new Error('只能输入数字!'))
}else{ } else {
this.btnClickFlag = true; this.btnClickFlag = true;
callback() callback()
} }
} }
return { return {
calibrationDialog:false, calibrationDialog: false,
excelBox: false, excelBox: false,
excelForm: {}, excelForm: {},
imageUrl: "/img/scimg.png", imageUrl: "/img/scimg.png",
imgFile:'', imgFile: '',
btnClickFlag:false, btnClickFlag: false,
formLabelWidth: '120px', formLabelWidth: '120px',
form:{ form: {
num:30, num: 30,
}, },
rules: { rules: {
taxReal: [ taxReal: [
{ validator: taxReal , trigger: ['blur', 'change'] }, {validator: taxReal, trigger: ['blur', 'change']},
], ],
}, },
formSubmit:{ formSubmit: {
id:111, id: 111,
taxReal:111, taxReal: 111,
}, },
ceNum:0, ceNum: 0,
taxReal:0, taxReal: 0,
status: 1, status: 1,
selectionList: [], selectionList: [],
viewDrawer: false, viewDrawer: false,
@@ -178,23 +179,23 @@ export default {
}, },
data: [], data: [],
obj: {}, obj: {},
missionNo:'', missionNo: '',
leibie:'wait',//查询类别(必填,取值范围:=all 代表返回所有,=wait 待确定,=ing 发放中,=success 发放成功,fail=失败pause 暂不发放;) leibie: 'wait',//查询类别(必填,取值范围:=all 代表返回所有,=wait 待确定,=ing 发放中,=success 发放成功,fail=失败pause 暂不发放;)
}; };
}, },
created() {}, created() {
watch: {
}, },
watch: {},
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(["permission"]),
ids () { ids() {
let ids = []; let ids = [];
this.selectionList.forEach(ele => { this.selectionList.forEach(ele => {
ids.push(ele.id); ids.push(ele.id);
}); });
return ids.join(","); return ids.join(",");
}, },
wageRealTotal () { wageRealTotal() {
let wageRealTotal = 0; let wageRealTotal = 0;
this.selectionList.forEach(ele => { this.selectionList.forEach(ele => {
wageRealTotal += ele.wageReal; wageRealTotal += ele.wageReal;
@@ -241,7 +242,7 @@ export default {
searchShow: false, searchShow: false,
border: true, border: true,
index: true, index: true,
esignatureId:'', esignatureId: '',
imageUrl: "/img/license.png", imageUrl: "/img/license.png",
indexLabel: "序号", indexLabel: "序号",
// selection: true, // selection: true,
@@ -277,24 +278,24 @@ export default {
const isJPG = accept.includes(file.type); const isJPG = accept.includes(file.type);
this.imgFile = file; this.imgFile = file;
let fd = new FormData(); let fd = new FormData();
fd.append('file',file); fd.append('file', file);
fd.append('id',this.form.id); fd.append('id', this.form.id);
if (!isJPG) { if (!isJPG) {
this.$message.error("图片格式不正确!"); this.$message.error("图片格式不正确!");
} }
signSealImg(fd) signSealImg(fd)
.then((res) => { .then((res) => {
console.log(res); console.log(res);
}) })
.catch(() => { .catch(() => {
}); });
return isJPG; return isJPG;
}, },
/**上传图片*/ /**上传图片*/
httpRequest, httpRequest,
moneyFormat, moneyFormat,
//下载建行客户端工资发放模板 //下载建行客户端工资发放模板
uploadAfter(res, done) { uploadAfter(res, done) {
this.onLoad(this.page, this.params); this.onLoad(this.page, this.params);
done(); done();
@@ -316,24 +317,24 @@ export default {
// } // }
// }, // },
//单挑数据发起校准确定按钮 //单挑数据发起校准确定按钮
drawbackClick(){ drawbackClick() {
let fd = new FormData(); let fd = new FormData();
fd.append('id',this.form.id); fd.append('id', this.form.id);
signSeal(fd) signSeal(fd)
.then((res) => { .then((res) => {
console.log(res); console.log(res);
}) })
.catch(() => { .catch(() => {
}); });
this.calibrationDialog = false; this.calibrationDialog = false;
}, },
taxRealChaneg(){ taxRealChaneg() {
this.form.taxReal = this.taxReal; this.form.taxReal = this.taxReal;
this.formSubmit.taxReal = this.taxReal*100; this.formSubmit.taxReal = this.taxReal * 100;
this.ceNum = this.form.taxTotal - this.formSubmit.taxReal ; this.ceNum = this.form.taxTotal - this.formSubmit.taxReal;
}, },
selectionChange (list) { selectionChange(list) {
this.selectionList = list; this.selectionList = list;
}, },
format(date) { format(date) {
@@ -342,10 +343,10 @@ export default {
} }
}, },
//发起校准 //发起校准
calibration(row){ calibration(row) {
this.imageUrl="/img/scimg.png"; this.imageUrl = "/img/scimg.png";
this.form = row; this.form = row;
console.log(this.form,'form') console.log(this.form, 'form')
// this.ceNum = row.taxTotal - row.taxReal // this.ceNum = row.taxTotal - row.taxReal
// this.taxReal = 0; // this.taxReal = 0;
@@ -356,7 +357,7 @@ export default {
// this.$refs.check.openDialog(row); // this.$refs.check.openDialog(row);
// }, // },
//下载申请表 //下载申请表
downloadEsignature(row){ downloadEsignature(row) {
console.log(row); console.log(row);
window.open(downloadEsignature(row.id)) window.open(downloadEsignature(row.id))
}, },
@@ -398,10 +399,12 @@ export default {
height: 160px; height: 160px;
width: 160px; width: 160px;
} }
.el-col, .el-col,
.el-form-item { .el-form-item {
margin-bottom: 0px; margin-bottom: 0px;
} }
.map { .map {
width: 100%; width: 100%;
height: 300px; height: 300px;
@@ -411,25 +414,31 @@ export default {
.slotForm { .slotForm {
font-size: 12px; font-size: 12px;
} }
.calibrationForm .el-form{
.calibrationForm .el-form {
padding-bottom: 0 !important; padding-bottom: 0 !important;
} }
.calibrationForm .el-dialog--center .el-dialog__body{
.calibrationForm .el-dialog--center .el-dialog__body {
padding: 0 10px !important; padding: 0 10px !important;
} }
.calibrationForm .el-dialog--center .el-dialog__body .el-input__inner{
.calibrationForm .el-dialog--center .el-dialog__body .el-input__inner {
padding: 0 !important; padding: 0 !important;
height:30px !important; height: 30px !important;
line-height: 30px !important; line-height: 30px !important;
} }
.excelBox .el-dialog__body{
padding: 0 10px!important; .excelBox .el-dialog__body {
padding: 0 10px !important;
} }
.excelBox .el-form-item__content{
margin-left: 0 !important; .excelBox .el-form-item__content {
text-align: center; margin-left: 0 !important;
text-align: center;
} }
.excelBox .el-dialog{
width:360px !important; .excelBox .el-dialog {
width: 360px !important;
} }
</style> </style>

View File

@@ -17,22 +17,22 @@
@on-load="onLoad" @on-load="onLoad"
@selection-change="selectionChange" @selection-change="selectionChange"
> >
<!-- 应发工资 --> <!-- 应发工资 -->
<template slot="wage" slot-scope="{ row }"> <template slot="wage" slot-scope="{ row }">
<span>{{moneyFormat(row.wage) }}</span> <span>{{ moneyFormat(row.wage) }}</span>
</template> </template>
<!-- 个税 wageReal--> <!-- 个税 wageReal-->
<template slot="tax" slot-scope="{ row }"> <template slot="tax" slot-scope="{ row }">
<span>{{moneyFormat(row.taxTotal) }}</span> <span>{{ moneyFormat(row.taxTotal) }}</span>
</template> </template>
<!-- 实发工资--> <!-- 实发工资-->
<template slot="wageReal" slot-scope="{row }"> <template slot="wageReal" slot-scope="{row }">
<span>{{moneyFormat(row.wageReal) }}</span> <span>{{ moneyFormat(row.wageReal) }}</span>
</template> </template>
<!-- 归属月 --> <!-- 归属月 -->
<template slot="belongMonth" slot-scope="{row }"> <template slot="belongMonth" slot-scope="{row }">
<span>{{row.belongYear}}-{{row.belongMonth}}</span> <span>{{ row.belongYear }}-{{ row.belongMonth }}</span>
</template> </template>
<!--自定义按钮--> <!--自定义按钮-->
<!-- <template slot="menuLeft"> <!-- <template slot="menuLeft">
<el-button @click="excelBox = true" size="small" type="primary" <el-button @click="excelBox = true" size="small" type="primary"
@@ -45,7 +45,8 @@
>下载申请表</el-button >下载申请表</el-button
> --> > -->
<el-button type="text" size="mini" @click.stop="calibration(row)" <el-button type="text" size="mini" @click.stop="calibration(row)"
>查看</el-button >查看
</el-button
> >
</div> </div>
</avue-crud> </avue-crud>
@@ -53,38 +54,45 @@
<check ref="check" v-show="false"></check> <check ref="check" v-show="false"></check>
<!-- /查看详情dialog --> <!-- /查看详情dialog -->
<el-dialog <el-dialog
title="" title=""
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="35%" width="35%"
:modal=false :modal=false
:before-close="handleClose"> :before-close="handleClose">
<div> <div>
<img class="" :src="'data:image/png;base64,'+imgStr" width="100%"/> <img class="" :src="'data:image/png;base64,'+imgStr" width="100%"/>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false"> </el-button> <el-button @click="dialogVisible = false"> </el-button>
<el-button type="primary" @click="downLoadContract">下载合同</el-button> <el-button type="primary" @click="downLoadContract">下载合同</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import {excelImportOrder} from "@/api/manage/agentpay";//apitenantList import {excelImportOrder} from "@/api/manage/agentpay";//apitenantList
import {managerList,signSealImg,downloadEsignature,signSeal,signSeals,viewContractImg,contractDownload} from "@/api/manage/esignature";//api import {
managerList,
signSealImg,
downloadEsignature,
signSeal,
signSeals,
viewContractImg,
contractDownload
} from "@/api/manage/esignature";//api
import Check from "../Dialog/IncomeTaxCheck";//查看详情 import Check from "../Dialog/IncomeTaxCheck";//查看详情
import SelectMap from "@/components/map/selectLocation"; import {mapGetters} from "vuex";
import { mapGetters } from "vuex"; import {moneyFormat} from "@/util/money";
import { moneyFormat } from "@/util/money"; import {dateFormat} from "@/util/date";
import { dateFormat } from "@/util/date";
import saveButton from "./saveButton"; import saveButton from "./saveButton";
import { excelAccept } from "@/common/accept"; import {excelAccept} from "@/common/accept";
import httpRequest from "../httpRequest"; import httpRequest from "../httpRequest";
const accept = ["image/png", "image/jpeg", "image/svg+xml", "image/gif"]; const accept = ["image/png", "image/jpeg", "image/svg+xml", "image/gif"];
export default { export default {
components: { components: {
SelectMap,
saveButton, saveButton,
Check Check
}, },
@@ -98,45 +106,45 @@ export default {
}, },
}, },
data() { data() {
let taxReal=(rule, value, callback)=>{ let taxReal = (rule, value, callback) => {
let reg = new RegExp("[\\u4E00-\\u9FFF]+","g"); let reg = new RegExp("[\\u4E00-\\u9FFF]+", "g");
let reg1 = new RegExp("/[a-z]/i;"); let reg1 = new RegExp("/[a-z]/i;");
if(reg.test(value)){ if (reg.test(value)) {
this.btnClickFlag = false; this.btnClickFlag = false;
callback(new Error('只能输入数字!')) callback(new Error('只能输入数字!'))
}else if (reg1.test(value)) { } else if (reg1.test(value)) {
this.btnClickFlag = false; this.btnClickFlag = false;
callback(new Error('只能输入数字!')) callback(new Error('只能输入数字!'))
}else{ } else {
this.btnClickFlag = true; this.btnClickFlag = true;
callback() callback()
} }
} }
return { return {
calibrationDialog:false, calibrationDialog: false,
contractId:'', contractId: '',
excelBox: false, excelBox: false,
dialogVisible: false, dialogVisible: false,
imgStr:'', imgStr: '',
excelForm: {}, excelForm: {},
imageUrl: "/img/scimg.png", imageUrl: "/img/scimg.png",
imgFile:'', imgFile: '',
btnClickFlag:false, btnClickFlag: false,
formLabelWidth: '120px', formLabelWidth: '120px',
form:{ form: {
num:30, num: 30,
}, },
rules: { rules: {
taxReal: [ taxReal: [
{ validator: taxReal , trigger: ['blur', 'change'] }, {validator: taxReal, trigger: ['blur', 'change']},
], ],
}, },
formSubmit:{ formSubmit: {
id:111, id: 111,
taxReal:111, taxReal: 111,
}, },
ceNum:0, ceNum: 0,
taxReal:0, taxReal: 0,
// status: 1, // status: 1,
selectionList: [], selectionList: [],
viewDrawer: false, viewDrawer: false,
@@ -154,13 +162,13 @@ export default {
}, },
data: [], data: [],
obj: {}, obj: {},
missionNo:'', missionNo: '',
leibie:'wait',//查询类别(必填,取值范围:=all 代表返回所有,=wait 待确定,=ing 发放中,=success 发放成功,fail=失败pause 暂不发放;) leibie: 'wait',//查询类别(必填,取值范围:=all 代表返回所有,=wait 待确定,=ing 发放中,=success 发放成功,fail=失败pause 暂不发放;)
}; };
}, },
created() {}, created() {
watch: {
}, },
watch: {},
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(["permission"]),
ids() { ids() {
@@ -170,7 +178,7 @@ export default {
}); });
return ids; return ids;
}, },
wageRealTotal () { wageRealTotal() {
let wageRealTotal = 0; let wageRealTotal = 0;
this.selectionList.forEach(ele => { this.selectionList.forEach(ele => {
wageRealTotal += ele.wageReal; wageRealTotal += ele.wageReal;
@@ -217,7 +225,7 @@ export default {
searchShow: false, searchShow: false,
border: true, border: true,
index: true, index: true,
esignatureId:'', esignatureId: '',
imageUrl: "/img/license.png", imageUrl: "/img/license.png",
indexLabel: "序号", indexLabel: "序号",
// selection: true, // selection: true,
@@ -266,24 +274,25 @@ export default {
}, },
methods: { methods: {
//批量签发 //批量签发
batchIssue(){ batchIssue() {
let fd = new FormData(); let fd = new FormData();
fd.append('ids',this.ids.join(",")); fd.append('ids', this.ids.join(","));
signSeals(fd) signSeals(fd)
.then(() => { .then(() => {
this.onLoad(this.page, this.params); this.onLoad(this.page, this.params);
}) })
.catch(() => { .catch(() => {
}); });
}, },
handleClose(done) { handleClose(done) {
this.$confirm('确认关闭?') this.$confirm('确认关闭?')
.then(()=> { .then(() => {
done(); done();
}) })
.catch(() => {}); .catch(() => {
}, });
},
/**上传图片**/ /**上传图片**/
handleAvatarSuccess(res, file) { handleAvatarSuccess(res, file) {
this.imageUrl = URL.createObjectURL(file.raw); this.imageUrl = URL.createObjectURL(file.raw);
@@ -294,23 +303,23 @@ export default {
const isJPG = accept.includes(file.type); const isJPG = accept.includes(file.type);
this.imgFile = file; this.imgFile = file;
let fd = new FormData(); let fd = new FormData();
fd.append('file',file); fd.append('file', file);
fd.append('id',this.form.id); fd.append('id', this.form.id);
if (!isJPG) { if (!isJPG) {
this.$message.error("图片格式不正确!"); this.$message.error("图片格式不正确!");
} }
signSealImg(fd) signSealImg(fd)
.then(() => { .then(() => {
}) })
.catch(() => { .catch(() => {
}); });
return isJPG; return isJPG;
}, },
/**上传图片*/ /**上传图片*/
httpRequest, httpRequest,
moneyFormat, moneyFormat,
//下载建行客户端工资发放模板 //下载建行客户端工资发放模板
uploadAfter(res, done) { uploadAfter(res, done) {
this.onLoad(this.page, this.params); this.onLoad(this.page, this.params);
done(); done();
@@ -324,24 +333,24 @@ export default {
} }
}, },
//单挑数据发起校准确定按钮 //单挑数据发起校准确定按钮
drawbackClick(){ drawbackClick() {
let fd = new FormData(); let fd = new FormData();
fd.append('id',this.form.id); fd.append('id', this.form.id);
signSeal(fd) signSeal(fd)
.then(() => { .then(() => {
this.onLoad(this.page, this.params); this.onLoad(this.page, this.params);
}) })
.catch(() => { .catch(() => {
}); });
this.calibrationDialog = false; this.calibrationDialog = false;
}, },
taxRealChaneg(){ taxRealChaneg() {
this.form.taxReal = this.taxReal; this.form.taxReal = this.taxReal;
this.formSubmit.taxReal = this.taxReal*100; this.formSubmit.taxReal = this.taxReal * 100;
this.ceNum = this.form.taxTotal - this.formSubmit.taxReal ; this.ceNum = this.form.taxTotal - this.formSubmit.taxReal;
}, },
selectionChange (list) { selectionChange(list) {
this.selectionList = list; this.selectionList = list;
}, },
format(date) { format(date) {
@@ -350,24 +359,24 @@ export default {
} }
}, },
//查看 //查看
calibration(row){ calibration(row) {
this.form = row; this.form = row;
this.contractId = row.id; this.contractId = row.id;
viewContractImg(row.id).then((res) => { viewContractImg(row.id).then((res) => {
this.imgStr = res.data.data; this.imgStr = res.data.data;
this.dialogVisible = true; this.dialogVisible = true;
}) })
.catch(() => { .catch(() => {
}); });
//contractDetailsImg() //contractDetailsImg()
}, },
//下载合同 //下载合同
downLoadContract(){ downLoadContract() {
window.open(contractDownload(this.contractId)) window.open(contractDownload(this.contractId))
}, },
//下载申请表 //下载申请表
downloadEsignature(row){ downloadEsignature(row) {
window.open(downloadEsignature(row.id)) window.open(downloadEsignature(row.id))
}, },
currentChange(currentPage) { currentChange(currentPage) {
@@ -407,10 +416,12 @@ export default {
height: 160px; height: 160px;
width: 160px; width: 160px;
} }
.el-col, .el-col,
.el-form-item { .el-form-item {
margin-bottom: 0px; margin-bottom: 0px;
} }
.map { .map {
width: 100%; width: 100%;
height: 300px; height: 300px;
@@ -420,25 +431,31 @@ export default {
.slotForm { .slotForm {
font-size: 12px; font-size: 12px;
} }
.calibrationForm .el-form{
.calibrationForm .el-form {
padding-bottom: 0 !important; padding-bottom: 0 !important;
} }
.calibrationForm .el-dialog--center .el-dialog__body{
.calibrationForm .el-dialog--center .el-dialog__body {
padding: 0 10px !important; padding: 0 10px !important;
} }
.calibrationForm .el-dialog--center .el-dialog__body .el-input__inner{
.calibrationForm .el-dialog--center .el-dialog__body .el-input__inner {
padding: 0 !important; padding: 0 !important;
height:30px !important; height: 30px !important;
line-height: 30px !important; line-height: 30px !important;
} }
.excelBox .el-dialog__body{
padding: 0 10px!important; .excelBox .el-dialog__body {
padding: 0 10px !important;
} }
.excelBox .el-form-item__content{
margin-left: 0 !important; .excelBox .el-form-item__content {
text-align: center; margin-left: 0 !important;
text-align: center;
} }
.excelBox .el-dialog{
width:360px !important; .excelBox .el-dialog {
width: 360px !important;
} }
</style> </style>

View File

@@ -130,7 +130,6 @@
import {add, detail, update, tradeListAdd, workListAdd, getMounthDays, getDictionary} from "@/api/tenant/mission"; import {add, detail, update, tradeListAdd, workListAdd, getMounthDays, getDictionary} from "@/api/tenant/mission";
import {getTrade, getWork, getWorkTypes} from "@/api/tenant/common"; import {getTrade, getWork, getWorkTypes} from "@/api/tenant/common";
import SkillSelect from "../Dialog/Skill"; import SkillSelect from "../Dialog/Skill";
import SelectMap from "@/components/map/selectLocation";
import {isvalidatemobile} from "@/util/validate"; import {isvalidatemobile} from "@/util/validate";
import {mapGetters} from "vuex"; import {mapGetters} from "vuex";
import { import {
@@ -195,7 +194,6 @@ export default {
}, },
components: { components: {
SkillSelect, SkillSelect,
SelectMap,
}, },
created() { created() {
this.$store.dispatch("InitArea"); this.$store.dispatch("InitArea");

View File

@@ -1,8 +1,9 @@
<template> <template>
<div> <div>
<avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="obj" @row-del="rowDel" <avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="obj" @row-del="rowDel"
@row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen" :page.sync="page" @row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen" :page.sync="page"
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange"
@on-load="onLoad">
<!--自定义列--> <!--自定义列-->
<template slot="missionTitle" slot-scope="{ row }"> <template slot="missionTitle" slot-scope="{ row }">
<el-tooltip effect="dark" :content="row.missionTitle" placement="top"> <el-tooltip effect="dark" :content="row.missionTitle" placement="top">
@@ -44,15 +45,18 @@
v-show="vaildData(permission.tenant_mission_view,false)" v-show="vaildData(permission.tenant_mission_view,false)"
>查看</el-button>--> >查看</el-button>-->
<el-button icon="el-icon-check" :size="size" :type="type" @click="rowCopy(row, 'copy')" <el-button icon="el-icon-check" :size="size" :type="type" @click="rowCopy(row, 'copy')"
v-show="vaildData(permission.tenant_mission_add, false)">复制</el-button> v-show="vaildData(permission.tenant_mission_add, false)">复制
</el-button>
<el-button icon="el-icon-delete" :size="size" :type="type" @click="$refs.crud.rowDel(row)" <el-button icon="el-icon-delete" :size="size" :type="type" @click="$refs.crud.rowDel(row)"
v-show="vaildData(permission.tenant_mission_delete, false)">删除</el-button> v-show="vaildData(permission.tenant_mission_delete, false)">删除
</el-button>
</div> </div>
<!--/自定义操作栏--> <!--/自定义操作栏-->
<!--自定义按钮--> <!--自定义按钮-->
<template slot="menuLeft"> <template slot="menuLeft">
<el-button type="warning" plain icon="el-icon-plus" size="small" @click="rowCopy('', 'add')" <el-button type="warning" plain icon="el-icon-plus" size="small" @click="rowCopy('', 'add')"
v-show="vaildData(permission.tenant_mission_add, false)">发布任务</el-button> v-show="vaildData(permission.tenant_mission_add, false)">发布任务
</el-button>
</template> </template>
<!--/自定义按钮--> <!--/自定义按钮-->
</avue-crud> </avue-crud>
@@ -64,13 +68,12 @@
</template> </template>
<script> <script>
import { getExpiredList, remove, detail } from "@/api/tenant/mission"; import {getExpiredList, remove, detail} from "@/api/tenant/mission";
import CopyMission from "../Dialog/CopyMission"; import CopyMission from "../Dialog/CopyMission";
import SkillSelect from "../Dialog/Skill"; import SkillSelect from "../Dialog/Skill";
import missionView from "./missionView.vue"; import missionView from "./missionView.vue";
import SelectMap from "@/components/map/selectLocation"; import {mapGetters} from "vuex";
import { mapGetters } from "vuex"; import {dateFormat} from "@/util/date";
import { dateFormat } from "@/util/date";
import saveButton from "./saveButton"; import saveButton from "./saveButton";
export default { export default {
@@ -135,11 +138,11 @@ export default {
components: { components: {
CopyMission, CopyMission,
SkillSelect, SkillSelect,
SelectMap,
missionView, missionView,
saveButton, saveButton,
}, },
created() { }, created() {
},
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(["permission"]),
option() { option() {
@@ -240,8 +243,8 @@ export default {
const h = this.$createElement; const h = this.$createElement;
this.$confirm( this.$confirm(
h("div", null, [ h("div", null, [
h("p", { style: "font-size: 16px" }, "您确定要删除此任务吗? "), h("p", {style: "font-size: 16px"}, "您确定要删除此任务吗? "),
h("p", { style: "color: red" }, "一旦删除则无法找回"), h("p", {style: "color: red"}, "一旦删除则无法找回"),
]), ]),
{ {
type: "warning", type: "warning",

View File

@@ -25,17 +25,17 @@
</el-tooltip> </el-tooltip>
</template> </template>
<template slot="takeOnCount" slot-scope="{ row }"> <template slot="takeOnCount" slot-scope="{ row }">
<div style="color: #409eff;cursor: pointer;" @click="employmentNum(row)"> <div style="color: #409eff;cursor: pointer;" @click="employmentNum(row)">
<b>{{ row.takeOnCount }}</b> <b>{{ row.takeOnCount }}</b>
</div> </div>
</template> </template>
<!-- 开始日期 --> <!-- 开始日期 -->
<template slot="stime" slot-scope="{row}"> <template slot="stime" slot-scope="{row}">
<span>{{format(row.stime)}}</span> <span>{{ format(row.stime) }}</span>
</template> </template>
<!-- 完成日期 --> <!-- 完成日期 -->
<template slot="etime" slot-scope="{row}"> <template slot="etime" slot-scope="{row}">
<span>{{format(row.etime)}}</span> <span>{{ format(row.etime) }}</span>
</template> </template>
<template slot="toPayEnd" slot-scope="{ row }"> <template slot="toPayEnd" slot-scope="{ row }">
<div v-if="row.toPayEnd < 0" style="color: #f56c6c"> <div v-if="row.toPayEnd < 0" style="color: #f56c6c">
@@ -70,7 +70,8 @@
size="small" size="small"
@click="rowCopy('', 'add')" @click="rowCopy('', 'add')"
v-show="vaildData(permission.tenant_mission_add, false)" v-show="vaildData(permission.tenant_mission_add, false)"
>发布任务</save-button> >发布任务
</save-button>
</template> </template>
<!--/自定义按钮--> <!--/自定义按钮-->
<!--自定义操作栏--> <!--自定义操作栏-->
@@ -80,7 +81,8 @@
:type="type" :type="type"
@click="appraise(row)" @click="appraise(row)"
v-show="vaildData(permission.tenant_mission_appraise,false)" v-show="vaildData(permission.tenant_mission_appraise,false)"
>评价</el-button> >评价
</el-button>
<!-- <el-button <!-- <el-button
icon="el-icon-view" icon="el-icon-view"
:size="size" :size="size"
@@ -94,7 +96,8 @@
:type="type" :type="type"
@click="rowCopy(row, 'copy')" @click="rowCopy(row, 'copy')"
v-show="vaildData(permission.tenant_mission_add, false)" v-show="vaildData(permission.tenant_mission_add, false)"
>复制</el-button> >复制
</el-button>
</div> </div>
<!--/自定义操作栏--> <!--/自定义操作栏-->
</avue-crud> </avue-crud>
@@ -115,21 +118,20 @@
</template> </template>
<script> <script>
import { getList, detail, getWagePerson } from "@/api/tenant/mission"; import {getList, detail, getWagePerson} from "@/api/tenant/mission";
import CopyMission from "../Dialog/CopyMission"; import CopyMission from "../Dialog/CopyMission";
import Appraise from "../Dialog/Appraise"; import Appraise from "../Dialog/Appraise";
import Employ from "../Dialog/Employ"; import Employ from "../Dialog/Employ";
import SkillSelect from "../Dialog/Skill"; import SkillSelect from "../Dialog/Skill";
import missionView from "./missionView.vue"; import missionView from "./missionView.vue";
import employmentNum from "../Dialog/EmployNumber"; import employmentNum from "../Dialog/EmployNumber";
import SelectMap from "@/components/map/selectLocation"; import {mapGetters} from "vuex";
import { mapGetters } from "vuex"; import {dateFormat} from "@/util/date";
import { dateFormat } from "@/util/date";
import saveButton from "./saveButton"; import saveButton from "./saveButton";
export default { export default {
filters: { filters: {
ellipsis (value) { ellipsis(value) {
if (!value) return ""; if (!value) return "";
if (value.length > 15) { if (value.length > 15) {
return value.slice(0, 14) + "..."; return value.slice(0, 14) + "...";
@@ -137,7 +139,7 @@ export default {
return value; return value;
}, },
}, },
data () { data() {
return { return {
viewDrawer: false, viewDrawer: false,
view: {}, view: {},
@@ -160,15 +162,15 @@ export default {
Appraise, Appraise,
Employ, Employ,
SkillSelect, SkillSelect,
SelectMap,
missionView, missionView,
saveButton, saveButton,
employmentNum employmentNum
}, },
created () { }, created() {
},
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(["permission"]),
option () { option() {
return { return {
height: "auto", height: "auto",
calcHeight: 40, calcHeight: 40,
@@ -307,46 +309,46 @@ export default {
}, },
watch: {}, watch: {},
methods: { methods: {
format (date) { format(date) {
if (date) { if (date) {
return dateFormat(new Date(date), "yyyy/MM/dd"); return dateFormat(new Date(date), "yyyy/MM/dd");
} }
}, },
// 录用人数 // 录用人数
employmentNum(row){ employmentNum(row) {
this.$refs.employmentNumber.openDialog(row, 2);//查看已录用人员 this.$refs.employmentNumber.openDialog(row, 2);//查看已录用人员
}, },
/*查看*/ /*查看*/
rowView (row) { rowView(row) {
detail(row.missionNo).then((res) => { detail(row.missionNo).then((res) => {
this.viewDrawer = true; this.viewDrawer = true;
this.view = res; this.view = res;
}); });
}, },
/*打开录用人员*/ /*打开录用人员*/
employ (row, state) { employ(row, state) {
this.$refs.employ.openDialog(row, state); this.$refs.employ.openDialog(row, state);
}, },
/*打开复制*/ /*打开复制*/
rowCopy (row, type) { rowCopy(row, type) {
this.$refs.copy.onLoad(row, type); this.$refs.copy.onLoad(row, type);
}, },
/*打开评价*/ /*打开评价*/
appraise (row) { appraise(row) {
this.$refs.appraise.openDialog(row); this.$refs.appraise.openDialog(row);
}, },
currentChange (currentPage) { currentChange(currentPage) {
this.page.currentPage = currentPage; this.page.currentPage = currentPage;
}, },
sizeChange (pageSize) { sizeChange(pageSize) {
this.page.pageSize = pageSize; this.page.pageSize = pageSize;
}, },
/*刷新本页 带搜索参数*/ /*刷新本页 带搜索参数*/
refreshChange () { refreshChange() {
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
/*加载数据*/ /*加载数据*/
onLoad (page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
getList( getList(
page.currentPage, page.currentPage,
@@ -368,7 +370,7 @@ export default {
}); });
}, },
/*返回首页*/ /*返回首页*/
backIndex () { backIndex() {
this.$emit("refresh"); this.$emit("refresh");
}, },
}, },

View File

@@ -26,11 +26,11 @@
</template> </template>
<!-- 开始日期 --> <!-- 开始日期 -->
<template slot="stime" slot-scope="{row}"> <template slot="stime" slot-scope="{row}">
<span>{{format(row.stime)}}</span> <span>{{ format(row.stime) }}</span>
</template> </template>
<!-- 完成日期 --> <!-- 完成日期 -->
<template slot="etime" slot-scope="{row}"> <template slot="etime" slot-scope="{row}">
<span>{{format(row.etime)}}</span> <span>{{ format(row.etime) }}</span>
</template> </template>
<template slot="takeOnCount" slot-scope="{ row }"> <template slot="takeOnCount" slot-scope="{ row }">
<div style="color: #409eff; cursor: pointer;" @click="employmentNum(row)"> <div style="color: #409eff; cursor: pointer;" @click="employmentNum(row)">
@@ -59,7 +59,8 @@
size="small" size="small"
@click="rowCopy('', 'add')" @click="rowCopy('', 'add')"
v-show="vaildData(permission.tenant_mission_add, false)" v-show="vaildData(permission.tenant_mission_add, false)"
>发布任务</save-button >发布任务
</save-button
> >
</template> </template>
<!--/自定义按钮--> <!--/自定义按钮-->
@@ -70,7 +71,8 @@
:type="type" :type="type"
@click="rowComplete(row)" @click="rowComplete(row)"
v-show="vaildData(permission.tenant_mission_finish, false)" v-show="vaildData(permission.tenant_mission_finish, false)"
>完成任务</save-button >完成任务
</save-button
> >
<el-button <el-button
icon="el-icon-view" icon="el-icon-view"
@@ -78,7 +80,8 @@
:type="type" :type="type"
@click="rowView(row)" @click="rowView(row)"
v-show="vaildData(permission.tenant_mission_view, false)" v-show="vaildData(permission.tenant_mission_view, false)"
>查看</el-button >查看
</el-button
> >
<save-button <save-button
icon="el-icon-check" icon="el-icon-check"
@@ -86,7 +89,8 @@
:type="type" :type="type"
@click="rowCopy(row, 'copy')" @click="rowCopy(row, 'copy')"
v-show="vaildData(permission.tenant_mission_add, false)" v-show="vaildData(permission.tenant_mission_add, false)"
>复制</save-button >复制
</save-button
> >
</div> </div>
<!--/自定义操作栏--> <!--/自定义操作栏-->
@@ -97,7 +101,7 @@
<!--录用人员dialog--> <!--录用人员dialog-->
<Employ ref="employ" :status="status" v-show="false"></Employ> <Employ ref="employ" :status="status" v-show="false"></Employ>
<!-- 录用人数 --> <!-- 录用人数 -->
<employment-num <employment-num
ref="employmentNum" ref="employmentNum"
:status="1" :status="1"
v-show="false" v-show="false"
@@ -110,21 +114,18 @@
</template> </template>
<script> <script>
import { getList, complete, detail } from "@/api/tenant/mission"; import {getList, complete, detail} from "@/api/tenant/mission";
import CopyMission from "../Dialog/CopyMission"; import CopyMission from "../Dialog/CopyMission";
import SkillSelect from "../Dialog/Skill"; import SkillSelect from "../Dialog/Skill";
import Employ from "../Dialog/Employ"; import Employ from "../Dialog/Employ";
import missionView from "./missionView.vue"; import missionView from "./missionView.vue";
import SelectMap from "@/components/map/selectLocation";
import employmentNum from "../Dialog/EmployNumber"; import employmentNum from "../Dialog/EmployNumber";
import { mapGetters } from "vuex"; import {mapGetters} from "vuex";
import { dateFormat } from "@/util/date"; import {dateFormat} from "@/util/date";
import saveButton from "./saveButton"; import saveButton from "./saveButton";
export default { export default {
comments: { comments: {},
},
filters: { filters: {
ellipsis(value) { ellipsis(value) {
if (!value) return ""; if (!value) return "";
@@ -156,12 +157,12 @@ export default {
CopyMission, CopyMission,
SkillSelect, SkillSelect,
Employ, Employ,
SelectMap,
missionView, missionView,
saveButton, saveButton,
employmentNum employmentNum
}, },
created() {}, created() {
},
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(["permission"]),
option() { option() {
@@ -300,7 +301,7 @@ export default {
} }
}, },
// 录用人数 // 录用人数
employmentNum(row){ employmentNum(row) {
this.$refs.employmentNum.openDialog(row, 2);//查看已录用人员 this.$refs.employmentNum.openDialog(row, 2);//查看已录用人员
}, },
/*查看*/ /*查看*/
@@ -323,7 +324,7 @@ export default {
const h = this.$createElement; const h = this.$createElement;
this.$confirm( this.$confirm(
h("div", null, [ h("div", null, [
h("p", { style: "font-size: 16px" }, "您确定此任务已经完成吗? "), h("p", {style: "font-size: 16px"}, "您确定此任务已经完成吗? "),
]), ]),
{ {
type: "warning", type: "warning",

View File

@@ -113,7 +113,6 @@ import Recommend from "../Dialog/Recommend";
import Contrast from "../Dialog/Contrast" import Contrast from "../Dialog/Contrast"
import SkillSelect from "../Dialog/Skill"; import SkillSelect from "../Dialog/Skill";
import missionView from "./missionView.vue"; import missionView from "./missionView.vue";
import SelectMap from "@/components/map/selectLocation";
import {isExcel} from "@/util/validate"; import {isExcel} from "@/util/validate";
import {excelAccept} from "@/common/accept"; import {excelAccept} from "@/common/accept";
import {mapGetters} from "vuex"; import {mapGetters} from "vuex";
@@ -132,7 +131,6 @@ export default {
Employ, Employ,
Recommend, Recommend,
SkillSelect, SkillSelect,
SelectMap,
missionView, missionView,
saveButton, saveButton,
Contrast, Contrast,

View File

@@ -168,7 +168,6 @@
import {add, detail, update, tradeListAdd, getMounthDays, getDictionary} from "@/api/tenant/postzp"; import {add, detail, update, tradeListAdd, getMounthDays, getDictionary} from "@/api/tenant/postzp";
import {getTrade, getWork, getSkillList, getWorkTypes} from "@/api/tenant/common"; import {getTrade, getWork, getSkillList, getWorkTypes} from "@/api/tenant/common";
import SkillSelect from "../Dialog/Skill"; import SkillSelect from "../Dialog/Skill";
import SelectMap from "@/components/map/selectLocation";
import {isvalidatemobile} from "@/util/validate"; import {isvalidatemobile} from "@/util/validate";
import {mapGetters} from "vuex"; import {mapGetters} from "vuex";
import { import {
@@ -236,7 +235,6 @@ export default {
}, },
components: { components: {
SkillSelect, SkillSelect,
SelectMap,
}, },
created() { created() {
this.$store.dispatch("InitArea"); this.$store.dispatch("InitArea");

View File

@@ -26,11 +26,11 @@
</template> </template>
<!-- 开始日期 --> <!-- 开始日期 -->
<template slot="stime" slot-scope="{row}"> <template slot="stime" slot-scope="{row}">
<span>{{format(row.stime)}}</span> <span>{{ format(row.stime) }}</span>
</template> </template>
<!-- 完成日期 --> <!-- 完成日期 -->
<template slot="etime" slot-scope="{row}"> <template slot="etime" slot-scope="{row}">
<span>{{format(row.etime)}}</span> <span>{{ format(row.etime) }}</span>
</template> </template>
<template slot="signUpCount" slot-scope="{ row }"> <template slot="signUpCount" slot-scope="{ row }">
<div style="color: #409eff"> <div style="color: #409eff">
@@ -62,14 +62,16 @@
:type="type" :type="type"
@click="rowCopy(row, 'copy')" @click="rowCopy(row, 'copy')"
v-show="vaildData(permission.tenant_mission_add, false)" v-show="vaildData(permission.tenant_mission_add, false)"
>复制</el-button> >复制
</el-button>
<el-button <el-button
icon="el-icon-delete" icon="el-icon-delete"
:size="size" :size="size"
:type="type" :type="type"
@click="$refs.crud.rowDel(row)" @click="$refs.crud.rowDel(row)"
v-show="vaildData(permission.tenant_mission_delete, false)" v-show="vaildData(permission.tenant_mission_delete, false)"
>删除</el-button> >删除
</el-button>
</div> </div>
<!--/自定义操作栏--> <!--/自定义操作栏-->
<!--自定义按钮--> <!--自定义按钮-->
@@ -81,7 +83,8 @@
size="small" size="small"
@click="rowCopy('', 'add')" @click="rowCopy('', 'add')"
v-show="vaildData(permission.tenant_mission_add, false)" v-show="vaildData(permission.tenant_mission_add, false)"
>发布岗位</el-button> >发布岗位
</el-button>
</template> </template>
<!--/自定义按钮--> <!--/自定义按钮-->
</avue-crud> </avue-crud>
@@ -93,19 +96,18 @@
</template> </template>
<script> <script>
import { getExpiredList, remove, detail } from "@/api/tenant/postzp"; import {getExpiredList, remove, detail} from "@/api/tenant/postzp";
import CopyMission from "../Dialog/CopyMission"; import CopyMission from "../Dialog/CopyMission";
import SkillSelect from "../Dialog/Skill"; import SkillSelect from "../Dialog/Skill";
import missionView from "./missionView.vue"; import missionView from "./missionView.vue";
import SelectMap from "@/components/map/selectLocation"; import {mapGetters} from "vuex";
import { mapGetters } from "vuex"; import {dateFormat} from "@/util/date";
import { dateFormat } from "@/util/date";
import saveButton from "./saveButton"; import saveButton from "./saveButton";
export default { export default {
comments: {}, comments: {},
filters: { filters: {
ellipsis (value) { ellipsis(value) {
if (!value) return ""; if (!value) return "";
if (value.length > 15) { if (value.length > 15) {
return value.slice(0, 14) + "..."; return value.slice(0, 14) + "...";
@@ -113,7 +115,7 @@ export default {
return value; return value;
}, },
}, },
data () { data() {
return { return {
viewDrawer: false, viewDrawer: false,
view: {}, view: {},
@@ -164,14 +166,14 @@ export default {
components: { components: {
CopyMission, CopyMission,
SkillSelect, SkillSelect,
SelectMap,
missionView, missionView,
saveButton, saveButton,
}, },
created () { }, created() {
},
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(["permission"]),
option () { option() {
return { return {
height: "auto", height: "auto",
calcHeight: 40, calcHeight: 40,
@@ -210,14 +212,14 @@ export default {
prop: "stime", prop: "stime",
display: false, display: false,
width: 130, width: 130,
slot:true slot: true
}, },
{ {
label: "完成时间", label: "完成时间",
prop: "etime", prop: "etime",
display: false, display: false,
width: 130, width: 130,
slot:true slot: true
}, },
// { // {
// label: "岗位时间", // label: "岗位时间",
@@ -248,32 +250,32 @@ export default {
}, },
}, },
methods: { methods: {
format (date) { format(date) {
if (date) { if (date) {
return dateFormat(new Date(date), "yyyy/MM/dd"); return dateFormat(new Date(date), "yyyy/MM/dd");
} }
}, },
/*查看*/ /*查看*/
rowView (row) { rowView(row) {
detail(row.missionNo).then((res) => { detail(row.missionNo).then((res) => {
this.viewDrawer = true; this.viewDrawer = true;
this.view = res; this.view = res;
}); });
}, },
/*打开新建 复制*/ /*打开新建 复制*/
rowCopy (row, type) { rowCopy(row, type) {
this.$refs.copy.onLoad(row, type); this.$refs.copy.onLoad(row, type);
this.$nextTick(()=>{ this.$nextTick(() => {
this.$refs.copy.resetFields();//等弹窗里的form表单的dom渲染完在执行this.$refs.staffForm.resetFields(),去除验证 this.$refs.copy.resetFields();//等弹窗里的form表单的dom渲染完在执行this.$refs.staffForm.resetFields(),去除验证
}) })
}, },
/*删除岗位*/ /*删除岗位*/
rowDel (row) { rowDel(row) {
const h = this.$createElement; const h = this.$createElement;
this.$confirm( this.$confirm(
h("div", null, [ h("div", null, [
h("p", { style: "font-size: 16px" }, "您确定要删除此岗位吗? "), h("p", {style: "font-size: 16px"}, "您确定要删除此岗位吗? "),
h("p", { style: "color: red" }, "一旦删除则无法找回"), h("p", {style: "color: red"}, "一旦删除则无法找回"),
]), ]),
{ {
type: "warning", type: "warning",
@@ -321,18 +323,18 @@ export default {
// }); // });
}); });
}, },
currentChange (currentPage) { currentChange(currentPage) {
this.page.currentPage = currentPage; this.page.currentPage = currentPage;
}, },
sizeChange (pageSize) { sizeChange(pageSize) {
this.page.pageSize = pageSize; this.page.pageSize = pageSize;
}, },
/*刷新本页 带搜索参数*/ /*刷新本页 带搜索参数*/
refreshChange () { refreshChange() {
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
/*加载数据*/ /*加载数据*/
onLoad (page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
getExpiredList( getExpiredList(
page.currentPage, page.currentPage,
@@ -346,7 +348,7 @@ export default {
}); });
}, },
/*返回首页*/ /*返回首页*/
backIndex () { backIndex() {
this.$emit("refresh"); this.$emit("refresh");
}, },
}, },

View File

@@ -25,17 +25,17 @@
</el-tooltip> </el-tooltip>
</template> </template>
<template slot="takeOnCount" slot-scope="{ row }"> <template slot="takeOnCount" slot-scope="{ row }">
<div style="color: #409eff;cursor: pointer;" @click="employmentNum(row)"> <div style="color: #409eff;cursor: pointer;" @click="employmentNum(row)">
<b>{{ row.takeOnCount }}</b> <b>{{ row.takeOnCount }}</b>
</div> </div>
</template> </template>
<!-- 开始日期 --> <!-- 开始日期 -->
<template slot="stime" slot-scope="{row}"> <template slot="stime" slot-scope="{row}">
<span>{{format(row.stime)}}</span> <span>{{ format(row.stime) }}</span>
</template> </template>
<!-- 完成日期 --> <!-- 完成日期 -->
<template slot="etime" slot-scope="{row}"> <template slot="etime" slot-scope="{row}">
<span>{{format(row.etime)}}</span> <span>{{ format(row.etime) }}</span>
</template> </template>
<template slot="toPayEnd" slot-scope="{ row }"> <template slot="toPayEnd" slot-scope="{ row }">
<div v-if="row.toPayEnd < 0" style="color: #f56c6c"> <div v-if="row.toPayEnd < 0" style="color: #f56c6c">
@@ -70,7 +70,8 @@
size="small" size="small"
@click="rowCopy('', 'add')" @click="rowCopy('', 'add')"
v-show="vaildData(permission.tenant_mission_add, false)" v-show="vaildData(permission.tenant_mission_add, false)"
>发布岗位</save-button> >发布岗位
</save-button>
</template> </template>
<!--/自定义按钮--> <!--/自定义按钮-->
<!--自定义操作栏--> <!--自定义操作栏-->
@@ -80,7 +81,8 @@
:type="type" :type="type"
@click="appraise(row)" @click="appraise(row)"
v-show="vaildData(permission.tenant_mission_appraise,false)" v-show="vaildData(permission.tenant_mission_appraise,false)"
>评价</el-button> >评价
</el-button>
<!-- <el-button <!-- <el-button
icon="el-icon-view" icon="el-icon-view"
:size="size" :size="size"
@@ -94,7 +96,8 @@
:type="type" :type="type"
@click="rowCopy(row, 'copy')" @click="rowCopy(row, 'copy')"
v-show="vaildData(permission.tenant_mission_add, false)" v-show="vaildData(permission.tenant_mission_add, false)"
>复制</el-button> >复制
</el-button>
</div> </div>
<!--/自定义操作栏--> <!--/自定义操作栏-->
</avue-crud> </avue-crud>
@@ -115,21 +118,20 @@
</template> </template>
<script> <script>
import { getList, detail, getWagePerson } from "@/api/tenant/postzp"; import {getList, detail, getWagePerson} from "@/api/tenant/postzp";
import CopyMission from "../Dialog/CopyMission"; import CopyMission from "../Dialog/CopyMission";
import Appraise from "../Dialog/Appraise"; import Appraise from "../Dialog/Appraise";
import Employ from "../Dialog/Employ"; import Employ from "../Dialog/Employ";
import SkillSelect from "../Dialog/Skill"; import SkillSelect from "../Dialog/Skill";
import missionView from "./missionView.vue"; import missionView from "./missionView.vue";
import employmentNum from "../Dialog/EmployNumber"; import employmentNum from "../Dialog/EmployNumber";
import SelectMap from "@/components/map/selectLocation"; import {mapGetters} from "vuex";
import { mapGetters } from "vuex"; import {dateFormat} from "@/util/date";
import { dateFormat } from "@/util/date";
import saveButton from "./saveButton"; import saveButton from "./saveButton";
export default { export default {
filters: { filters: {
ellipsis (value) { ellipsis(value) {
if (!value) return ""; if (!value) return "";
if (value.length > 15) { if (value.length > 15) {
return value.slice(0, 14) + "..."; return value.slice(0, 14) + "...";
@@ -137,7 +139,7 @@ export default {
return value; return value;
}, },
}, },
data () { data() {
return { return {
viewDrawer: false, viewDrawer: false,
view: {}, view: {},
@@ -160,15 +162,15 @@ export default {
Appraise, Appraise,
Employ, Employ,
SkillSelect, SkillSelect,
SelectMap,
missionView, missionView,
saveButton, saveButton,
employmentNum employmentNum
}, },
created () { }, created() {
},
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(["permission"]),
option () { option() {
return { return {
height: "auto", height: "auto",
calcHeight: 40, calcHeight: 40,
@@ -215,14 +217,14 @@ export default {
prop: "stime", prop: "stime",
display: false, display: false,
width: 130, width: 130,
slot:true slot: true
}, },
{ {
label: "完成日期", label: "完成日期",
prop: "etime", prop: "etime",
display: false, display: false,
width: 130, width: 130,
slot:true slot: true
}, },
{ {
label: "录用人数", label: "录用人数",
@@ -259,46 +261,46 @@ export default {
}, },
watch: {}, watch: {},
methods: { methods: {
format (date) { format(date) {
if (date) { if (date) {
return dateFormat(new Date(date), "yyyy/MM/dd"); return dateFormat(new Date(date), "yyyy/MM/dd");
} }
}, },
// 录用人数 // 录用人数
employmentNum(row){ employmentNum(row) {
this.$refs.employmentNumber.openDialog(row, 2);//查看已录用人员 this.$refs.employmentNumber.openDialog(row, 2);//查看已录用人员
}, },
/*查看*/ /*查看*/
rowView (row) { rowView(row) {
detail(row.id).then((res) => { detail(row.id).then((res) => {
this.viewDrawer = true; this.viewDrawer = true;
this.view = res; this.view = res;
}); });
}, },
/*打开录用人员*/ /*打开录用人员*/
employ (row, state) { employ(row, state) {
this.$refs.employ.openDialog(row, state); this.$refs.employ.openDialog(row, state);
}, },
/*打开复制*/ /*打开复制*/
rowCopy (row, type) { rowCopy(row, type) {
this.$refs.copy.onLoad(row, type); this.$refs.copy.onLoad(row, type);
}, },
/*打开评价*/ /*打开评价*/
appraise (row) { appraise(row) {
this.$refs.appraise.openDialog(row); this.$refs.appraise.openDialog(row);
}, },
currentChange (currentPage) { currentChange(currentPage) {
this.page.currentPage = currentPage; this.page.currentPage = currentPage;
}, },
sizeChange (pageSize) { sizeChange(pageSize) {
this.page.pageSize = pageSize; this.page.pageSize = pageSize;
}, },
/*刷新本页 带搜索参数*/ /*刷新本页 带搜索参数*/
refreshChange () { refreshChange() {
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
/*加载数据*/ /*加载数据*/
onLoad (page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
getList( getList(
page.currentPage, page.currentPage,
@@ -320,7 +322,7 @@ export default {
}); });
}, },
/*返回首页*/ /*返回首页*/
backIndex () { backIndex() {
this.$emit("refresh"); this.$emit("refresh");
}, },
}, },

View File

@@ -26,11 +26,11 @@
</template> </template>
<!-- 开始日期 --> <!-- 开始日期 -->
<template slot="stime" slot-scope="{row}"> <template slot="stime" slot-scope="{row}">
<span>{{format(row.stime)}}</span> <span>{{ format(row.stime) }}</span>
</template> </template>
<!-- 完成日期 --> <!-- 完成日期 -->
<template slot="etime" slot-scope="{row}"> <template slot="etime" slot-scope="{row}">
<span>{{format(row.etime)}}</span> <span>{{ format(row.etime) }}</span>
</template> </template>
<template slot="takeOnCount" slot-scope="{ row }"> <template slot="takeOnCount" slot-scope="{ row }">
<div style="color: #409eff; cursor: pointer;" @click="employmentNum(row)"> <div style="color: #409eff; cursor: pointer;" @click="employmentNum(row)">
@@ -59,7 +59,8 @@
size="small" size="small"
@click="rowCopy('', 'add')" @click="rowCopy('', 'add')"
v-show="vaildData(permission.tenant_mission_add, false)" v-show="vaildData(permission.tenant_mission_add, false)"
>发布岗位</save-button >发布岗位
</save-button
> >
</template> </template>
<!--/自定义按钮--> <!--/自定义按钮-->
@@ -70,7 +71,8 @@
:type="type" :type="type"
@click="rowComplete(row)" @click="rowComplete(row)"
v-show="vaildData(permission.tenant_mission_finish, false)" v-show="vaildData(permission.tenant_mission_finish, false)"
>完成岗位</save-button >完成岗位
</save-button
> >
<el-button <el-button
icon="el-icon-view" icon="el-icon-view"
@@ -78,7 +80,8 @@
:type="type" :type="type"
@click="rowView(row)" @click="rowView(row)"
v-show="vaildData(permission.tenant_mission_view, false)" v-show="vaildData(permission.tenant_mission_view, false)"
>查看</el-button >查看
</el-button
> >
<save-button <save-button
icon="el-icon-check" icon="el-icon-check"
@@ -86,7 +89,8 @@
:type="type" :type="type"
@click="rowCopy(row, 'copy')" @click="rowCopy(row, 'copy')"
v-show="vaildData(permission.tenant_mission_add, false)" v-show="vaildData(permission.tenant_mission_add, false)"
>复制</save-button >复制
</save-button
> >
</div> </div>
<!--/自定义操作栏--> <!--/自定义操作栏-->
@@ -97,7 +101,7 @@
<!--录用人员dialog--> <!--录用人员dialog-->
<Employ ref="employ" :status="status" v-show="false"></Employ> <Employ ref="employ" :status="status" v-show="false"></Employ>
<!-- 录用人数 --> <!-- 录用人数 -->
<employment-num <employment-num
ref="employmentNum" ref="employmentNum"
:status="1" :status="1"
v-show="false" v-show="false"
@@ -110,21 +114,18 @@
</template> </template>
<script> <script>
import { getList, complete, detail } from "@/api/tenant/postzp"; import {getList, complete, detail} from "@/api/tenant/postzp";
import CopyMission from "../Dialog/CopyMission"; import CopyMission from "../Dialog/CopyMission";
import SkillSelect from "../Dialog/Skill"; import SkillSelect from "../Dialog/Skill";
import Employ from "../Dialog/Employ"; import Employ from "../Dialog/Employ";
import missionView from "./missionView.vue"; import missionView from "./missionView.vue";
import SelectMap from "@/components/map/selectLocation";
import employmentNum from "../Dialog/EmployNumber"; import employmentNum from "../Dialog/EmployNumber";
import { mapGetters } from "vuex"; import {mapGetters} from "vuex";
import { dateFormat } from "@/util/date"; import {dateFormat} from "@/util/date";
import saveButton from "./saveButton"; import saveButton from "./saveButton";
export default { export default {
comments: { comments: {},
},
filters: { filters: {
ellipsis(value) { ellipsis(value) {
if (!value) return ""; if (!value) return "";
@@ -156,12 +157,12 @@ export default {
CopyMission, CopyMission,
SkillSelect, SkillSelect,
Employ, Employ,
SelectMap,
missionView, missionView,
saveButton, saveButton,
employmentNum employmentNum
}, },
created() {}, created() {
},
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(["permission"]),
option() { option() {
@@ -244,7 +245,7 @@ export default {
} }
}, },
// 录用人数 // 录用人数
employmentNum(row){ employmentNum(row) {
this.$refs.employmentNum.openDialog(row, 2);//查看已录用人员 this.$refs.employmentNum.openDialog(row, 2);//查看已录用人员
}, },
/*查看*/ /*查看*/
@@ -267,7 +268,7 @@ export default {
const h = this.$createElement; const h = this.$createElement;
this.$confirm( this.$confirm(
h("div", null, [ h("div", null, [
h("p", { style: "font-size: 16px" }, "您确定此岗位已经完成吗? "), h("p", {style: "font-size: 16px"}, "您确定此岗位已经完成吗? "),
]), ]),
{ {
type: "warning", type: "warning",

View File

@@ -1,17 +1,20 @@
<template> <template>
<div> <div>
<avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="obj" @row-del="rowDel" <avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="obj" @row-del="rowDel"
@row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen" :page.sync="page" @row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen" :page.sync="page"
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange"
@on-load="onLoad">
<!--自定义按钮--> <!--自定义按钮-->
<template slot="menuLeft"> <template slot="menuLeft">
<save-button type="warning" plain icon="el-icon-plus" size="small" @click="rowCopy('', 'add')" <save-button type="warning" plain icon="el-icon-plus" size="small" @click="rowCopy('', 'add')"
v-show="vaildData(permission.tenant_works_add, false)">发布岗位</save-button> v-show="vaildData(permission.tenant_works_add, false)">发布岗位
<el-button type="success" size="small" plain icon="el-icon-plus" @click="handleImport" </save-button>
v-show="vaildData(permission.tenant_works_add, false)">批量导入</el-button> <el-button type="success" size="small" plain icon="el-icon-plus" @click="handleImport"
v-show="vaildData(permission.tenant_works_add, false)">批量导入
</el-button>
</template> </template>
<template slot="wage"slot-scope="{ row }"> <template slot="wage" slot-scope="{ row }">
<div>{{row.wage}}{{wageUnitCategoryStateEnum[row.wageUnitCategory]}}</div> <div>{{ row.wage }}{{ wageUnitCategoryStateEnum[row.wageUnitCategory] }}</div>
</template> </template>
<!--/自定义按钮--> <!--/自定义按钮-->
<!--自定义列--> <!--自定义列-->
@@ -58,12 +61,15 @@
<!-- <el-button type="text" size="mini" @click="recommend(row)">重点人群推送</el-button> --> <!-- <el-button type="text" size="mini" @click="recommend(row)">重点人群推送</el-button> -->
<el-button type="text" size="mini" @click="employ(row, 1)">申请录用</el-button> <el-button type="text" size="mini" @click="employ(row, 1)">申请录用</el-button>
<el-button icon="el-icon-view" :size="size" :type="type" @click.stop="rowView(row)" <el-button icon="el-icon-view" :size="size" :type="type" @click.stop="rowView(row)"
v-show="vaildData(permission.tenant_mission_view, false)">查看</el-button> v-show="vaildData(permission.tenant_mission_view, false)">查看
</el-button>
<!-- <save-button icon="el-icon-check" :size="size" :type="type" @click="rowCopy(row, 'copy')">复制</save-button> --> <!-- <save-button icon="el-icon-check" :size="size" :type="type" @click="rowCopy(row, 'copy')">复制</save-button> -->
<el-button icon="el-icon-edit" :size="size" :type="type" @click="rowCopy(row, 'edit')" :disabled="false" <el-button icon="el-icon-edit" :size="size" :type="type" @click="rowCopy(row, 'edit')" :disabled="false"
v-show="vaildData(permission.tenant_mission_edit, false)">编辑</el-button> v-show="vaildData(permission.tenant_mission_edit, false)">编辑
</el-button>
<el-button icon="el-icon-delete" :size="size" :type="type" @click="$refs.crud.rowDel(row)" :disabled="false" <el-button icon="el-icon-delete" :size="size" :type="type" @click="$refs.crud.rowDel(row)" :disabled="false"
v-show="vaildData(permission.tenant_mission_cancel, false)" v-if="row.reviewState !== 8">取消</el-button> v-show="vaildData(permission.tenant_mission_cancel, false)" v-if="row.reviewState !== 8">取消
</el-button>
<!-- <el-button type="text" size="mini" @click="contrast(row)" <!-- <el-button type="text" size="mini" @click="contrast(row)"
>比对人才库</el-button> --> >比对人才库</el-button> -->
</div> </div>
@@ -87,8 +93,9 @@
<!--批量导入--> <!--批量导入-->
<el-dialog title="导入" append-to-body :visible.sync="excelBox" :close-on-click-modal="false" width="555px"> <el-dialog title="导入" append-to-body :visible.sync="excelBox" :close-on-click-modal="false" width="555px">
<avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter" :upload-before="beforeAvatarUpload" <avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter"
:upload-error="uploadError"> :upload-before="beforeAvatarUpload"
:upload-error="uploadError">
<template slot="excelTemplate"> <template slot="excelTemplate">
<el-button type="primary" @click="handleTemplate()" :loading="templateLoading"> <el-button type="primary" @click="handleTemplate()" :loading="templateLoading">
点击下载 点击下载
@@ -102,7 +109,7 @@
</template> </template>
<script> <script>
import { getList, cancel, detail ,upload} from "@/api/tenant/postzp"; import {getList, cancel, detail, upload} from "@/api/tenant/postzp";
import CopyMission from "../Dialog/CopyMission"; import CopyMission from "../Dialog/CopyMission";
import Employ from "../Dialog/Employ"; import Employ from "../Dialog/Employ";
import employmentNum from "../Dialog/EmployNumber"; import employmentNum from "../Dialog/EmployNumber";
@@ -110,14 +117,14 @@ import Recommend from "../Dialog/Recommend";
import Contrast from "../Dialog/Contrast" import Contrast from "../Dialog/Contrast"
import SkillSelect from "../Dialog/Skill"; import SkillSelect from "../Dialog/Skill";
import missionView from "./missionView.vue"; import missionView from "./missionView.vue";
import SelectMap from "@/components/map/selectLocation"; import {isExcel} from "@/util/validate";
import { isExcel } from "@/util/validate"; import {excelAccept} from "@/common/accept";
import { excelAccept } from "@/common/accept"; import {mapGetters} from "vuex";
import { mapGetters } from "vuex"; import {dateFormat} from "@/util/date";
import { dateFormat } from "@/util/date"; import {getTemplate} from "@/api/resource/template";
import { getTemplate } from "@/api/resource/template";
import saveButton from "./saveButton"; import saveButton from "./saveButton";
import {dataSourcesEnum, educationState, missionState, recruitStatus, wageUnitCategoryState} from "@/common/dic"; import {dataSourcesEnum, educationState, missionState, recruitStatus, wageUnitCategoryState} from "@/common/dic";
const wageUnitCategoryStateEnum = {} const wageUnitCategoryStateEnum = {}
wageUnitCategoryState.map((item) => { wageUnitCategoryState.map((item) => {
wageUnitCategoryStateEnum[item.value] = item.label wageUnitCategoryStateEnum[item.value] = item.label
@@ -128,7 +135,6 @@ export default {
Employ, Employ,
Recommend, Recommend,
SkillSelect, SkillSelect,
SelectMap,
missionView, missionView,
saveButton, saveButton,
Contrast, Contrast,
@@ -147,7 +153,7 @@ export default {
return { return {
wageUnitCategoryStateEnum, wageUnitCategoryStateEnum,
excelBox: false, excelBox: false,
excelForm: { isCovered: 1 }, excelForm: {isCovered: 1},
excelOption: { excelOption: {
submitBtn: false, submitBtn: false,
emptyBtn: false, emptyBtn: false,
@@ -194,7 +200,8 @@ export default {
missionNo: '', missionNo: '',
}; };
}, },
created() { }, created() {
},
watch: {}, watch: {},
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(["permission"]),
@@ -263,14 +270,14 @@ export default {
prop: "ageDesc", prop: "ageDesc",
search: false, search: false,
display: false, display: false,
},{ }, {
label: "学历要求", label: "学历要求",
prop: "education", prop: "education",
type: "select", type: "select",
dicData: educationState, dicData: educationState,
search: false, search: false,
display: false, display: false,
},{ }, {
label: "经验要求", label: "经验要求",
prop: "experienceDesc", prop: "experienceDesc",
search: false, search: false,
@@ -409,8 +416,8 @@ export default {
const h = this.$createElement; const h = this.$createElement;
this.$confirm( this.$confirm(
h("div", null, [ h("div", null, [
h("p", { style: "font-size: 16px" }, "您确定要取消此岗位吗? "), h("p", {style: "font-size: 16px"}, "您确定要取消此岗位吗? "),
h("p", { style: "color: red" }, "一旦取消则岗位失效"), h("p", {style: "color: red"}, "一旦取消则岗位失效"),
]), ]),
{ {
type: "warning", type: "warning",
@@ -504,13 +511,13 @@ export default {
const arr = []; const arr = [];
const data = res.data.data; const data = res.data.data;
data.error && data.error &&
data.error.errorList.forEach((item) => { data.error.errorList.forEach((item) => {
arr.push(`${item.name} ${item.remarks}`); arr.push(`${item.name} ${item.remarks}`);
}); });
data.auth && data.auth &&
data.auth.authList.forEach((item) => { data.auth.authList.forEach((item) => {
arr.push(`${item.name} ${item.remarks}`); arr.push(`${item.name} ${item.remarks}`);
}); });
this.$refs.ied.show(arr); this.$refs.ied.show(arr);
} }
this.refreshChange(); this.refreshChange();

View File

@@ -227,7 +227,6 @@
</template> </template>
<script> <script>
import SelectMap from "@/components/map/selectLocation";
import {mapGetters} from "vuex"; import {mapGetters} from "vuex";
import {dateFormat} from "@/util/date"; import {dateFormat} from "@/util/date";
import { import {
@@ -246,7 +245,6 @@ function getDic(arr) {
} }
export default { export default {
components: {SelectMap},
props: {model: Object}, props: {model: Object},
data() { data() {
return { return {

View File

@@ -233,7 +233,6 @@
</template> </template>
<script> <script>
import SelectMap from "@/components/map/selectLocation";
import {mapGetters} from "vuex"; import {mapGetters} from "vuex";
import {dateFormat} from "@/util/date"; import {dateFormat} from "@/util/date";
import { import {
@@ -251,7 +250,6 @@ function getDic(arr) {
} }
export default { export default {
components: {SelectMap},
props: {model: Object}, props: {model: Object},
data() { data() {
return { return {

View File

@@ -210,7 +210,6 @@
</template> </template>
<script> <script>
import SelectMap from "@/components/map/selectLocation";
import {mapGetters} from "vuex"; import {mapGetters} from "vuex";
import {dateFormat} from "@/util/date"; import {dateFormat} from "@/util/date";
import { import {
@@ -228,7 +227,6 @@ function getDic(arr) {
} }
export default { export default {
components: {SelectMap},
props: {model: Object}, props: {model: Object},
data() { data() {
return { return {