|
@@ -48,9 +48,7 @@
|
|
:disabled="scope.row.packageFinishStatus === '2' || scope.row.packageFinishStatus === '1'"
|
|
:disabled="scope.row.packageFinishStatus === '2' || scope.row.packageFinishStatus === '1'"
|
|
>编辑
|
|
>编辑
|
|
</el-button>
|
|
</el-button>
|
|
- <el-button type="text" v-if="false" size="small" icon="el-icon-close" @click="suspendBtn(scope.row, scope.index)">
|
|
|
|
- 终止
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ <el-button type="text" v-if="false" size="small" icon="el-icon-close" @click="suspendBtn(scope.row, scope.index)"> 终止 </el-button>
|
|
<!-- <el-button
|
|
<!-- <el-button
|
|
type="text"
|
|
type="text"
|
|
size="small"
|
|
size="small"
|
|
@@ -65,9 +63,7 @@
|
|
<!-- 合同下载 -->
|
|
<!-- 合同下载 -->
|
|
</el-button>
|
|
</el-button>
|
|
<!-- :disabled="scope.row.ysh == 0 || scope.row.ysh == null" -->
|
|
<!-- :disabled="scope.row.ysh == 0 || scope.row.ysh == null" -->
|
|
- <el-button v-if="scope.row.contract" type="text" size="small" icon="el-icon-folder-checked" @click="exportFile(scope.row, scope.index)">
|
|
|
|
- 合同下载
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ <el-button v-if="scope.row.contract" type="text" size="small" icon="el-icon-folder-checked" @click="exportFile(scope.row, scope.index)"> 合同下载 </el-button>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</avue-crud>
|
|
</avue-crud>
|
|
@@ -121,7 +117,7 @@
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="服务目标" prop="planId">
|
|
<el-form-item label="服务目标" prop="planId">
|
|
- <el-select v-model="distributionForm.planId" style="width: 100%" @change="planIdChange" :disabled="planIdDisabled">
|
|
|
|
|
|
+ <el-select v-model="distributionForm.planId" style="width: 100%" @change="planIdChange" :disabled="planIdDisabled || editDisabled">
|
|
<el-option v-for="item in planList" :key="item.planId" :label="item.planName" :value="item.planId"> </el-option>
|
|
<el-option v-for="item in planList" :key="item.planId" :label="item.planName" :value="item.planId"> </el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -151,7 +147,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="截止日期" prop="endTimeValue">
|
|
|
|
|
|
+ <el-form-item label="截止日期">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
disabled
|
|
disabled
|
|
class="w100"
|
|
class="w100"
|
|
@@ -189,7 +185,7 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="服务区域" prop="provAbbr" v-if="IS_DLS">
|
|
<el-form-item label="服务区域" prop="provAbbr" v-if="IS_DLS">
|
|
- <el-select v-model="distributionForm.provAbbr" placeholder="请选择服务区域" style="width: 100%" :disabled="!distributionForm.acceptSug">
|
|
|
|
|
|
+ <el-select v-model="distributionForm.provAbbr" placeholder="请选择服务区域" style="width: 100%" :disabled="!distributionForm.acceptSug || editDisabled">
|
|
<el-option v-for="(item, index) in provAbbrList" :key="index" :label="item" :value="item"></el-option>
|
|
<el-option v-for="(item, index) in provAbbrList" :key="index" :label="item" :value="item"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -385,9 +381,9 @@
|
|
</template>
|
|
</template>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
注意: 1.报告将于24小时之内生成完毕,请注意下载。<br />
|
|
注意: 1.报告将于24小时之内生成完毕,请注意下载。<br />
|
|
- <i style="margin-left:62px"></i>2.报告汇总为封面+任务数据汇总+任务列表明细。
|
|
|
|
|
|
+ <i style="margin-left: 62px"></i>2.报告汇总为封面+任务数据汇总+任务列表明细。
|
|
<br />
|
|
<br />
|
|
- <i style="margin-left:10px"></i>3.报告详情为每条任务的任务详情+图片。
|
|
|
|
|
|
+ <i style="margin-left: 10px"></i>3.报告详情为每条任务的任务详情+图片。
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<!-- 终止任务 -->
|
|
<!-- 终止任务 -->
|
|
@@ -403,7 +399,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- <p class="tc" v-if="suspendData.stopStatus === 'NOTHING' && isShengyu" style="color: red;">
|
|
|
|
|
|
+ <p class="tc" v-if="suspendData.stopStatus === 'NOTHING' && isShengyu" style="color: red">
|
|
由于({{ suspendData.score - suspendData.kfpjf }})积分已被下级分派,您将回收({{ suspendData.kfpjf }})积分,是否继续?
|
|
由于({{ suspendData.score - suspendData.kfpjf }})积分已被下级分派,您将回收({{ suspendData.kfpjf }})积分,是否继续?
|
|
</p>
|
|
</p>
|
|
</el-form>
|
|
</el-form>
|
|
@@ -420,7 +416,8 @@
|
|
<el-dialog title="重启积分包" :visible.sync="restartVisible" center width="45%" :before-close="restartVisibleClose">
|
|
<el-dialog title="重启积分包" :visible.sync="restartVisible" center width="45%" :before-close="restartVisibleClose">
|
|
<el-form :model="restartForm" :rules="restartFormRef" ref="restartForm">
|
|
<el-form :model="restartForm" :rules="restartFormRef" ref="restartForm">
|
|
<el-form-item label="截止日期" prop="endTimeValue">
|
|
<el-form-item label="截止日期" prop="endTimeValue">
|
|
- <el-date-picker style="width:500px" v-model="restartForm.endTimeValue" format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" placeholder="选择日期"> </el-date-picker>
|
|
|
|
|
|
+ <el-date-picker style="width: 500px" v-model="restartForm.endTimeValue" format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" placeholder="选择日期">
|
|
|
|
+ </el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
@@ -471,9 +468,9 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import dismantleTable from './components/dismantleTable.vue';
|
|
import dismantleTable from './components/dismantleTable.vue';
|
|
-import {templateDownload} from '@/api/assignPoints/currency/manList';
|
|
|
|
-import {pointsData} from '@/const/crud/points';
|
|
|
|
-import {tree1, tree2, tree3, tree7, pFlist} from '@/const/crud/taskTypeTree/index';
|
|
|
|
|
|
+import { templateDownload } from '@/api/assignPoints/currency/manList';
|
|
|
|
+import { pointsData } from '@/const/crud/points';
|
|
|
|
+import { tree1, tree2, tree3, tree7, pFlist } from '@/const/crud/taskTypeTree/index';
|
|
import store from '@/store';
|
|
import store from '@/store';
|
|
import {
|
|
import {
|
|
selectWmScorePackageLists,
|
|
selectWmScorePackageLists,
|
|
@@ -498,13 +495,14 @@ import {
|
|
settleSave,
|
|
settleSave,
|
|
getSysFileApi,
|
|
getSysFileApi,
|
|
getListAncestorApi,
|
|
getListAncestorApi,
|
|
- pkgInfoExportApi
|
|
|
|
|
|
+ pkgInfoExportApi,
|
|
|
|
+ getPlanInfoApi
|
|
} from '@/api/taskManagement/points.js';
|
|
} from '@/api/taskManagement/points.js';
|
|
-import {getDrugProducerList, getListDrugApi, getTaskTypeTree, updateEnable, exportInfoApi, restartApi} from '@/api/assignPoints/currency/index';
|
|
|
|
|
|
+import { getDrugProducerList, getListDrugApi, getTaskTypeTree, updateEnable, exportInfoApi, restartApi } from '@/api/assignPoints/currency/index';
|
|
// import Form from "../../gen/form.vue";
|
|
// import Form from "../../gen/form.vue";
|
|
-import {mapGetters} from 'vuex';
|
|
|
|
-import {getAvailQuizList} from '@/api/test';
|
|
|
|
-import {getPlanListApi} from '@/api/wmdeptbudget/plan.js';
|
|
|
|
|
|
+import { mapGetters } from 'vuex';
|
|
|
|
+import { getAvailQuizList } from '@/api/test';
|
|
|
|
+import { getPlanListApi } from '@/api/wmdeptbudget/plan.js';
|
|
import taskStatistics from './components/taskStatistics.vue';
|
|
import taskStatistics from './components/taskStatistics.vue';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -585,9 +583,9 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
rules: {
|
|
rules: {
|
|
- scorePackageName: [{required: true, message: '请输入执行包名称', trigger: 'blur'}],
|
|
|
|
- acceptSug: [{required: true, message: '请选择承接对象', trigger: 'blur'}],
|
|
|
|
- provAbbr: [{required: true, message: '请选择服务区域', trigger: 'blur'}],
|
|
|
|
|
|
+ scorePackageName: [{ required: true, message: '请输入执行包名称', trigger: 'blur' }],
|
|
|
|
+ acceptSug: [{ required: true, message: '请选择承接对象', trigger: 'blur' }],
|
|
|
|
+ provAbbr: [{ required: true, message: '请选择服务区域', trigger: 'blur' }],
|
|
relationScoreId: [
|
|
relationScoreId: [
|
|
{
|
|
{
|
|
required: true,
|
|
required: true,
|
|
@@ -595,8 +593,11 @@ export default {
|
|
trigger: 'change'
|
|
trigger: 'change'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- score: [{required: true, message: '请输入执行包总值', trigger: 'blur'}, {pattern: /^[0-9]*$/, message: '请输入正确的执行包总值'}],
|
|
|
|
- planId: [{required: true, message: '请选择服务目标', trigger: 'change'}],
|
|
|
|
|
|
+ score: [
|
|
|
|
+ { required: true, message: '请输入执行包总值', trigger: 'blur' },
|
|
|
|
+ { pattern: /^[0-9]*$/, message: '请输入正确的执行包总值' }
|
|
|
|
+ ],
|
|
|
|
+ planId: [{ required: true, message: '请选择服务目标', trigger: 'change' }],
|
|
packageType1: [
|
|
packageType1: [
|
|
{
|
|
{
|
|
required: true,
|
|
required: true,
|
|
@@ -611,8 +612,8 @@ export default {
|
|
trigger: 'blur'
|
|
trigger: 'blur'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- relatedService: [{required: true, message: '请选择关联服务企业', trigger: 'blur'}],
|
|
|
|
- belongDate: [{required: true, message: '请选择所属月份', trugger: 'blur'}],
|
|
|
|
|
|
+ relatedService: [{ required: true, message: '请选择关联服务企业', trigger: 'blur' }],
|
|
|
|
+ belongDate: [{ required: true, message: '请选择所属月份', trugger: 'blur' }],
|
|
startTime: [
|
|
startTime: [
|
|
{
|
|
{
|
|
required: true,
|
|
required: true,
|
|
@@ -698,7 +699,7 @@ export default {
|
|
enableFlagDig: false,
|
|
enableFlagDig: false,
|
|
enableForm: {},
|
|
enableForm: {},
|
|
enableRule: {
|
|
enableRule: {
|
|
- enableFlag: [{required: true, message: '请选择积分回收方式', trigger: 'change'}]
|
|
|
|
|
|
+ enableFlag: [{ required: true, message: '请选择积分回收方式', trigger: 'change' }]
|
|
},
|
|
},
|
|
isShengyu: false, // 是否剩余
|
|
isShengyu: false, // 是否剩余
|
|
quizList: [], // 测试试卷列表
|
|
quizList: [], // 测试试卷列表
|
|
@@ -719,7 +720,7 @@ export default {
|
|
] // 支持上传的文件类型
|
|
] // 支持上传的文件类型
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- components: {taskStatistics, dismantleTable},
|
|
|
|
|
|
+ components: { taskStatistics, dismantleTable },
|
|
mounted() {
|
|
mounted() {
|
|
if (this.userInfo.roles.includes(39)) {
|
|
if (this.userInfo.roles.includes(39)) {
|
|
this.addShowFlag = false;
|
|
this.addShowFlag = false;
|
|
@@ -780,7 +781,7 @@ export default {
|
|
templateDownload({
|
|
templateDownload({
|
|
fileName: 'ent_pkg_batch_create_tmpl.xlsx'
|
|
fileName: 'ent_pkg_batch_create_tmpl.xlsx'
|
|
})
|
|
})
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
this.importLoading = false;
|
|
this.importLoading = false;
|
|
let url = window.URL.createObjectURL(new Blob([response.data]));
|
|
let url = window.URL.createObjectURL(new Blob([response.data]));
|
|
let link = document.createElement('a');
|
|
let link = document.createElement('a');
|
|
@@ -832,7 +833,7 @@ export default {
|
|
async getPlanList(pkgId, planId) {
|
|
async getPlanList(pkgId, planId) {
|
|
const res = await getPlanListApi('QRT', pkgId);
|
|
const res = await getPlanListApi('QRT', pkgId);
|
|
this.planList = res.data.data;
|
|
this.planList = res.data.data;
|
|
- this.planList.forEach(item => {
|
|
|
|
|
|
+ this.planList.forEach((item) => {
|
|
item.planName = item.planName + `(${item.planIssue} ~ ${item.planExpiry})`;
|
|
item.planName = item.planName + `(${item.planIssue} ~ ${item.planExpiry})`;
|
|
});
|
|
});
|
|
// 编辑
|
|
// 编辑
|
|
@@ -871,7 +872,7 @@ export default {
|
|
|
|
|
|
// 推广产品企业
|
|
// 推广产品企业
|
|
getDrugProducerList() {
|
|
getDrugProducerList() {
|
|
- getDrugProducerList({deptId: this.$store.getters.userInfo.deptId}).then(res => {
|
|
|
|
|
|
+ getDrugProducerList({ deptId: this.$store.getters.userInfo.deptId }).then((res) => {
|
|
this.drugProducerListCopy = res.data.data;
|
|
this.drugProducerListCopy = res.data.data;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -1013,7 +1014,7 @@ export default {
|
|
},
|
|
},
|
|
getTaskTree() {
|
|
getTaskTree() {
|
|
this.distributionForm.wmScoreTaskTypeList = [];
|
|
this.distributionForm.wmScoreTaskTypeList = [];
|
|
- getTaskTree().then(response => {
|
|
|
|
|
|
+ getTaskTree().then((response) => {
|
|
this.distributionForm.wmScoreTaskTypeList = response.data.data;
|
|
this.distributionForm.wmScoreTaskTypeList = response.data.data;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -1031,7 +1032,7 @@ export default {
|
|
obj.onlySelf = true;
|
|
obj.onlySelf = true;
|
|
}
|
|
}
|
|
getListAncestorApi(obj)
|
|
getListAncestorApi(obj)
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
console.log('response', response);
|
|
console.log('response', response);
|
|
// debugger
|
|
// debugger
|
|
this.fwqyOptions = response.data.data;
|
|
this.fwqyOptions = response.data.data;
|
|
@@ -1057,7 +1058,7 @@ export default {
|
|
let arg = {
|
|
let arg = {
|
|
description: '1'
|
|
description: '1'
|
|
};
|
|
};
|
|
- getTaskTypeTree(arg).then(response => {
|
|
|
|
|
|
+ getTaskTypeTree(arg).then((response) => {
|
|
// this.distributionForm.wmScoreTaskTypeList = response.data.data.treeList
|
|
// this.distributionForm.wmScoreTaskTypeList = response.data.data.treeList
|
|
if (type == '1') {
|
|
if (type == '1') {
|
|
this.checkedDsScope = response.data.data.keys;
|
|
this.checkedDsScope = response.data.data.keys;
|
|
@@ -1082,8 +1083,8 @@ export default {
|
|
|
|
|
|
// 积分包任务类型展示
|
|
// 积分包任务类型展示
|
|
showRemote() {
|
|
showRemote() {
|
|
- remote('packsge_type1').then(response => {
|
|
|
|
- response.data.data.forEach(item => {
|
|
|
|
|
|
+ remote('packsge_type1').then((response) => {
|
|
|
|
+ response.data.data.forEach((item) => {
|
|
const addnew = {
|
|
const addnew = {
|
|
value: item.value,
|
|
value: item.value,
|
|
label: item.label
|
|
label: item.label
|
|
@@ -1107,7 +1108,7 @@ export default {
|
|
this.searchForm
|
|
this.searchForm
|
|
)
|
|
)
|
|
)
|
|
)
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
this.tableData = [];
|
|
this.tableData = [];
|
|
this.tableData = response.data.data.records;
|
|
this.tableData = response.data.data.records;
|
|
this.page.total = response.data.data.total;
|
|
this.page.total = response.data.data.total;
|
|
@@ -1181,7 +1182,7 @@ export default {
|
|
let args = {
|
|
let args = {
|
|
scoreId: id
|
|
scoreId: id
|
|
};
|
|
};
|
|
- selectWmScorePackage(args).then(response => {
|
|
|
|
|
|
+ selectWmScorePackage(args).then(async (response) => {
|
|
// this.packsgeTypebtn(this.packageType1Val);
|
|
// this.packsgeTypebtn(this.packageType1Val);
|
|
this.returnVal = [];
|
|
this.returnVal = [];
|
|
// this.returnVal = response.data.data.wmScoreTaskTypeList;
|
|
// this.returnVal = response.data.data.wmScoreTaskTypeList;
|
|
@@ -1191,28 +1192,42 @@ export default {
|
|
for (let i = 0; i < this.returnVal.length; i++) {
|
|
for (let i = 0; i < this.returnVal.length; i++) {
|
|
showVal.push(this.returnVal[i].type);
|
|
showVal.push(this.returnVal[i].type);
|
|
}
|
|
}
|
|
|
|
+
|
|
const data = response.data.data;
|
|
const data = response.data.data;
|
|
|
|
|
|
- data.relatedService = data.relatedService ? Number(data.relatedService) : '';
|
|
|
|
- data.planId = data.planId ? Number(data.planId) : '';
|
|
|
|
- data.acceptSug = data.acceptSug ? Number(data.acceptSug) : '';
|
|
|
|
|
|
+ this.setDetailOptin(data);
|
|
|
|
+
|
|
|
|
+ // data.relatedService = data.relatedService ? Number(data.relatedService) : '';
|
|
|
|
+ // data.planId = data.planId ? Number(data.planId) : '';
|
|
|
|
+ // data.acceptSug = data.acceptSug ? Number(data.acceptSug) : '';
|
|
if (this.IS_DLS) {
|
|
if (this.IS_DLS) {
|
|
- this.getPlanList(data.relationScoreId, data.planId);
|
|
|
|
|
|
+ const planInfo = await getPlanInfoApi(data.planId);
|
|
|
|
+ console.log('planInfo', planInfo);
|
|
|
|
+ // this.getPlanList(data.relationScoreId, data.planId);
|
|
|
|
+ this.planItem = planInfo.data.data.planDetails;
|
|
|
|
+ if (planInfo.data.data.planItems) {
|
|
|
|
+ this.$refs.dismantleTableRef.setData(planInfo.data.data.planItems, planInfo.data.data.planScore);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // if (planDetails) {
|
|
|
|
+ // this.$refs.dismantleTableRef.setData(curr.planItems, curr.planScore);
|
|
|
|
+ // this.distributionForm.score = planDetails.total;
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
this.distributionForm = data; // 查看和编辑的回显
|
|
this.distributionForm = data; // 查看和编辑的回显
|
|
- const timestamp = new Date(this.distributionForm.endTime).getTime();
|
|
|
|
|
|
+ // const timestamp = new Date(this.distributionForm.endTime).getTime();
|
|
this.distributionForm.endTimeValue = this.distributionForm.endTime;
|
|
this.distributionForm.endTimeValue = this.distributionForm.endTime;
|
|
// this.belongDate = this.distributionForm.belongDate;
|
|
// this.belongDate = this.distributionForm.belongDate;
|
|
// this.distributionForm.wmScoreTaskTypeList = this.taskTypeSet; // 回显复选框
|
|
// this.distributionForm.wmScoreTaskTypeList = this.taskTypeSet; // 回显复选框
|
|
// this.getKfpVal(response.data.data.relationScoreId);
|
|
// this.getKfpVal(response.data.data.relationScoreId);
|
|
|
|
|
|
- const list = [
|
|
|
|
- {
|
|
|
|
- relationScoreName: data.relationScoreName,
|
|
|
|
- id: data.relationScoreId
|
|
|
|
- }
|
|
|
|
- ];
|
|
|
|
- this.gljfbOptions = list;
|
|
|
|
|
|
+ // const list = [
|
|
|
|
+ // {
|
|
|
|
+ // relationScoreName: data.relationScoreName,
|
|
|
|
+ // id: data.relationScoreId
|
|
|
|
+ // }
|
|
|
|
+ // ];
|
|
|
|
+ // this.gljfbOptions = list;
|
|
// this.getRelatedVal(response.data.data.relatedService);
|
|
// this.getRelatedVal(response.data.data.relatedService);
|
|
// this.distributionForm.relationScoreId = response.data.data.relationScoreId; // 查看和编辑的回显
|
|
// this.distributionForm.relationScoreId = response.data.data.relationScoreId; // 查看和编辑的回显
|
|
// if (this.distributionForm.wmScoreTaskTypeList == null) {
|
|
// if (this.distributionForm.wmScoreTaskTypeList == null) {
|
|
@@ -1221,10 +1236,40 @@ export default {
|
|
this.showTaskType();
|
|
this.showTaskType();
|
|
// 回显选中的有效服务类型
|
|
// 回显选中的有效服务类型
|
|
this.checkedDsScope = this.distributionForm.taskTypeSet;
|
|
this.checkedDsScope = this.distributionForm.taskTypeSet;
|
|
|
|
+ console.log(' this.checkedDsScope', this.checkedDsScope);
|
|
|
|
+
|
|
|
|
+ this.$forceUpdate();
|
|
this.showDig = true;
|
|
this.showDig = true;
|
|
this.tableLoading = false;
|
|
this.tableLoading = false;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ setDetailOptin(info) {
|
|
|
|
+ this.fwqyOptions = [
|
|
|
|
+ {
|
|
|
|
+ deptId: info.relatedService,
|
|
|
|
+ name: info.relatedServiceName
|
|
|
|
+ }
|
|
|
|
+ ];
|
|
|
|
+ this.gljfbOptions = [
|
|
|
|
+ {
|
|
|
|
+ id: info.relationScoreId,
|
|
|
|
+ relationScoreName: info.relationScoreId == '-1' ? '无' : info.relationScoreName
|
|
|
|
+ }
|
|
|
|
+ ];
|
|
|
|
+ this.planList = [info.plan];
|
|
|
|
+ this.jbdxOptions = [
|
|
|
|
+ {
|
|
|
|
+ id: info.acceptSug,
|
|
|
|
+ gsmc: info.acceptSugName
|
|
|
|
+ }
|
|
|
|
+ ];
|
|
|
|
+ this.drugList = [
|
|
|
|
+ {
|
|
|
|
+ drug_id: info.drugtable[0],
|
|
|
|
+ drug_name: info.drugtableName[0]
|
|
|
|
+ }
|
|
|
|
+ ];
|
|
|
|
+ },
|
|
|
|
|
|
// 获取可分配积分
|
|
// 获取可分配积分
|
|
getKfpVal(id) {
|
|
getKfpVal(id) {
|
|
@@ -1233,7 +1278,7 @@ export default {
|
|
// scoreId: scoreName,
|
|
// scoreId: scoreName,
|
|
id: id
|
|
id: id
|
|
};
|
|
};
|
|
- selectKfpjf(args).then(response => {
|
|
|
|
|
|
+ selectKfpjf(args).then((response) => {
|
|
// debugger
|
|
// debugger
|
|
this.kfpjfz = response.data.data[0].kfpjf == null ? 0 : response.data.data[0].kfpjf;
|
|
this.kfpjfz = response.data.data[0].kfpjf == null ? 0 : response.data.data[0].kfpjf;
|
|
this.jbdxOptions = response.data.data[0].acceptSug;
|
|
this.jbdxOptions = response.data.data[0].acceptSug;
|
|
@@ -1254,7 +1299,7 @@ export default {
|
|
let args = {
|
|
let args = {
|
|
relatedService: relatedService
|
|
relatedService: relatedService
|
|
};
|
|
};
|
|
- selectRelationScoreId(args).then(response => {
|
|
|
|
|
|
+ selectRelationScoreId(args).then((response) => {
|
|
// debugger
|
|
// debugger
|
|
this.gljfbOptions = response.data.data;
|
|
this.gljfbOptions = response.data.data;
|
|
//关联服务企业展示关联积分包
|
|
//关联服务企业展示关联积分包
|
|
@@ -1285,7 +1330,7 @@ export default {
|
|
//
|
|
//
|
|
// });
|
|
// });
|
|
// },
|
|
// },
|
|
- dateFormat: function(time) {
|
|
|
|
|
|
+ dateFormat: function (time) {
|
|
var date = new Date(time);
|
|
var date = new Date(time);
|
|
var year = date.getFullYear();
|
|
var year = date.getFullYear();
|
|
/* 在日期格式中,月份是从0开始的,因此要加0
|
|
/* 在日期格式中,月份是从0开始的,因此要加0
|
|
@@ -1335,7 +1380,7 @@ export default {
|
|
this.drugProducerList = [...this.drugProducerListCopy]; // 推广产品企业
|
|
this.drugProducerList = [...this.drugProducerListCopy]; // 推广产品企业
|
|
this.getListDrug();
|
|
this.getListDrug();
|
|
} else {
|
|
} else {
|
|
- let curr = this.gljfbOptions.find(item => item.id === id);
|
|
|
|
|
|
+ let curr = this.gljfbOptions.find((item) => item.id === id);
|
|
this.distributionForm.wmScoreTaskTypeList = this.wmScoreTaskTypeList;
|
|
this.distributionForm.wmScoreTaskTypeList = this.wmScoreTaskTypeList;
|
|
this.typeList = true;
|
|
this.typeList = true;
|
|
this.packsgeType = true;
|
|
this.packsgeType = true;
|
|
@@ -1346,11 +1391,11 @@ export default {
|
|
id: id
|
|
id: id
|
|
};
|
|
};
|
|
selectKfpjf(arg)
|
|
selectKfpjf(arg)
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
// debugger
|
|
// debugger
|
|
if (response.data.code == '0') {
|
|
if (response.data.code == '0') {
|
|
this.jbdxOptions = [];
|
|
this.jbdxOptions = [];
|
|
- response.data.data[0].acceptSug.forEach(item => {
|
|
|
|
|
|
+ response.data.data[0].acceptSug.forEach((item) => {
|
|
const addnew = {
|
|
const addnew = {
|
|
gsmc: item.gsmc,
|
|
gsmc: item.gsmc,
|
|
deptId: item.deptId,
|
|
deptId: item.deptId,
|
|
@@ -1415,7 +1460,7 @@ export default {
|
|
},
|
|
},
|
|
// 新增按钮-提交
|
|
// 新增按钮-提交
|
|
submitForm(formName) {
|
|
submitForm(formName) {
|
|
- this.$refs[formName].validate(valid => {
|
|
|
|
|
|
+ this.$refs[formName].validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
// const date = this.formatDate(this.distributionForm.endTimeValue);
|
|
// const date = this.formatDate(this.distributionForm.endTimeValue);
|
|
const date = this.distributionForm.endTimeValue;
|
|
const date = this.distributionForm.endTimeValue;
|
|
@@ -1432,7 +1477,7 @@ export default {
|
|
// 代理商发包
|
|
// 代理商发包
|
|
if (this.IS_DLS) {
|
|
if (this.IS_DLS) {
|
|
const tableData = this.$refs.dismantleTableRef.getDetail();
|
|
const tableData = this.$refs.dismantleTableRef.getDetail();
|
|
- pkgTaskTypeQtyList = tableData.map(item => {
|
|
|
|
|
|
+ pkgTaskTypeQtyList = tableData.map((item) => {
|
|
return {
|
|
return {
|
|
taskTypeName: item.taskTypeName,
|
|
taskTypeName: item.taskTypeName,
|
|
price: item.score,
|
|
price: item.score,
|
|
@@ -1441,7 +1486,7 @@ export default {
|
|
};
|
|
};
|
|
});
|
|
});
|
|
|
|
|
|
- let treeArr = tableData.map(item => {
|
|
|
|
|
|
+ let treeArr = tableData.map((item) => {
|
|
return {
|
|
return {
|
|
taskTypeName: item.taskTypeName,
|
|
taskTypeName: item.taskTypeName,
|
|
taskTypeId: item.orgTaskTypeId
|
|
taskTypeId: item.orgTaskTypeId
|
|
@@ -1449,8 +1494,8 @@ export default {
|
|
});
|
|
});
|
|
|
|
|
|
let arr1 = [...pFlist];
|
|
let arr1 = [...pFlist];
|
|
- tableData.forEach(item => {
|
|
|
|
- const curr = arr1.find(iten => iten.taskTypeId === item.parent_id);
|
|
|
|
|
|
+ tableData.forEach((item) => {
|
|
|
|
+ const curr = arr1.find((iten) => iten.taskTypeId === item.parent_id);
|
|
if (curr) {
|
|
if (curr) {
|
|
curr.children.push({
|
|
curr.children.push({
|
|
taskTypeId: item.orgTaskTypeId,
|
|
taskTypeId: item.orgTaskTypeId,
|
|
@@ -1460,7 +1505,7 @@ export default {
|
|
});
|
|
});
|
|
|
|
|
|
let arr3 = arr1.concat(treeArr);
|
|
let arr3 = arr1.concat(treeArr);
|
|
- const arr4 = arr3.filter(item => {
|
|
|
|
|
|
+ const arr4 = arr3.filter((item) => {
|
|
if (!item.children || item.children.length > 0) {
|
|
if (!item.children || item.children.length > 0) {
|
|
return item;
|
|
return item;
|
|
}
|
|
}
|
|
@@ -1509,11 +1554,11 @@ export default {
|
|
args.drugProducerList = this.distributionForm.drugProducerList;
|
|
args.drugProducerList = this.distributionForm.drugProducerList;
|
|
}
|
|
}
|
|
if (!this.distributionForm.drugtable || this.distributionForm.drugtable.length === 0) {
|
|
if (!this.distributionForm.drugtable || this.distributionForm.drugtable.length === 0) {
|
|
- args.drugtable = this.drugList.map(item => item.drug_id);
|
|
|
|
|
|
+ args.drugtable = this.drugList.map((item) => item.drug_id);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
this.distributionForm.drugProducerList = this.drugProducerList; // 推广产品企业
|
|
this.distributionForm.drugProducerList = this.drugProducerList; // 推广产品企业
|
|
- args.drugtable = this.drugList.map(item => item.drug_id);
|
|
|
|
|
|
+ args.drugtable = this.drugList.map((item) => item.drug_id);
|
|
}
|
|
}
|
|
|
|
|
|
if (this.dialogType == 'add') {
|
|
if (this.dialogType == 'add') {
|
|
@@ -1528,7 +1573,7 @@ export default {
|
|
this.buttonLoading = true;
|
|
this.buttonLoading = true;
|
|
saves(args)
|
|
saves(args)
|
|
// saves(this.distributionForm)
|
|
// saves(this.distributionForm)
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
// debugger
|
|
// debugger
|
|
this.planList = [];
|
|
this.planList = [];
|
|
this.buttonLoading = false;
|
|
this.buttonLoading = false;
|
|
@@ -1548,7 +1593,7 @@ export default {
|
|
}
|
|
}
|
|
this.buttonLoading = true;
|
|
this.buttonLoading = true;
|
|
updateByIds(args)
|
|
updateByIds(args)
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
// updateByIds(this.distributionForm).then((response) => {
|
|
// updateByIds(this.distributionForm).then((response) => {
|
|
// debugger
|
|
// debugger
|
|
this.planList = [];
|
|
this.planList = [];
|
|
@@ -1579,48 +1624,18 @@ export default {
|
|
},
|
|
},
|
|
// 编辑回显
|
|
// 编辑回显
|
|
async updateBtn(row) {
|
|
async updateBtn(row) {
|
|
- // debugger
|
|
|
|
- //积分包如果被分派,承接对象不可以修改
|
|
|
|
- this.showRelatedService();
|
|
|
|
- this.packageIsConduct = row.packageIsConduct;
|
|
|
|
- if (row.packageIsConduct == '0') {
|
|
|
|
- this.isAble = false;
|
|
|
|
- } else {
|
|
|
|
- this.isAble = true;
|
|
|
|
- }
|
|
|
|
- //积分包如果已结算,关联积分包不可以修改
|
|
|
|
- this.settleStatus = row.settleStatus;
|
|
|
|
- if (row.settleStatus == '1') {
|
|
|
|
- this.scoreAble = true;
|
|
|
|
- } else {
|
|
|
|
- this.scoreAble = false;
|
|
|
|
- }
|
|
|
|
- //无 可以编辑任务类型,其他不可以编辑
|
|
|
|
- if (row.relationScoreId == '') {
|
|
|
|
- this.typeList = false;
|
|
|
|
- this.packsgeType = false;
|
|
|
|
- this.kfpjfz = '';
|
|
|
|
- this.distributionForm.belongDate = '';
|
|
|
|
- } else {
|
|
|
|
- this.typeList = true;
|
|
|
|
- this.packsgeType = true;
|
|
|
|
- }
|
|
|
|
// debugger
|
|
// debugger
|
|
this.showDig = true;
|
|
this.showDig = true;
|
|
|
|
+ this.showRelatedService();
|
|
this.dialogType = 'edit';
|
|
this.dialogType = 'edit';
|
|
this.showTitle = '编辑';
|
|
this.showTitle = '编辑';
|
|
this.editDisabled = true;
|
|
this.editDisabled = true;
|
|
this.allNot = false;
|
|
this.allNot = false;
|
|
this.addShow = true;
|
|
this.addShow = true;
|
|
this.idVal = row.id;
|
|
this.idVal = row.id;
|
|
- this.packageIsConductVal = row.packageIsConduct;
|
|
|
|
- this.relationScoreIdVal = row.relationScoreId;
|
|
|
|
|
|
+ // this.packageIsConductVal = row.packageIsConduct;
|
|
|
|
+ // this.relationScoreIdVal = row.relationScoreId;
|
|
await this.lookDetail(row.id);
|
|
await this.lookDetail(row.id);
|
|
- if (row.endTime) {
|
|
|
|
- const timestamp = new Date(row.endTime).getTime();
|
|
|
|
- // this.distributionForm.endTimeValue = timestamp;
|
|
|
|
- this.distributionForm.endTimeValue = row.endTime;
|
|
|
|
- }
|
|
|
|
},
|
|
},
|
|
showRestart(row) {
|
|
showRestart(row) {
|
|
return false;
|
|
return false;
|
|
@@ -1651,7 +1666,7 @@ export default {
|
|
this.restartVisible = false;
|
|
this.restartVisible = false;
|
|
},
|
|
},
|
|
restartSubmit() {
|
|
restartSubmit() {
|
|
- this.$refs.restartForm.validate(async valid => {
|
|
|
|
|
|
+ this.$refs.restartForm.validate(async (valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
// const date = this.formatDate(this.restartForm.endTimeValue);
|
|
// const date = this.formatDate(this.restartForm.endTimeValue);
|
|
const date = this.restartForm.endTimeValue;
|
|
const date = this.restartForm.endTimeValue;
|
|
@@ -1675,7 +1690,8 @@ export default {
|
|
|
|
|
|
// 计划包id
|
|
// 计划包id
|
|
planIdChange(e) {
|
|
planIdChange(e) {
|
|
- const curr = this.planList.find(item => item.planId === e);
|
|
|
|
|
|
+ const curr = this.planList.find((item) => item.planId === e);
|
|
|
|
+
|
|
if (this.IS_DLS) {
|
|
if (this.IS_DLS) {
|
|
if (!curr.planDetails) {
|
|
if (!curr.planDetails) {
|
|
this.$refs.dismantleTableRef.setData([]);
|
|
this.$refs.dismantleTableRef.setData([]);
|
|
@@ -1690,7 +1706,7 @@ export default {
|
|
this.distributionForm.endTimeValue = curr.planExpiry;
|
|
this.distributionForm.endTimeValue = curr.planExpiry;
|
|
this.distributionForm.score = curr.planScore;
|
|
this.distributionForm.score = curr.planScore;
|
|
}
|
|
}
|
|
- const currA = this.jbdxOptions.find(item => item.deptId == curr.consigneeId);
|
|
|
|
|
|
+ const currA = this.jbdxOptions.find((item) => item.deptId == curr.consigneeId);
|
|
if (currA) {
|
|
if (currA) {
|
|
this.distributionForm.acceptSug = currA.id;
|
|
this.distributionForm.acceptSug = currA.id;
|
|
if (currA.provAbbr) {
|
|
if (currA.provAbbr) {
|
|
@@ -1723,7 +1739,7 @@ export default {
|
|
relatedService: relatedService
|
|
relatedService: relatedService
|
|
};
|
|
};
|
|
selectRelationScoreId(arg)
|
|
selectRelationScoreId(arg)
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
this.gljfbOptions = response.data.data;
|
|
this.gljfbOptions = response.data.data;
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
@@ -1776,13 +1792,13 @@ export default {
|
|
this.isShengyu = true;
|
|
this.isShengyu = true;
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- this.$refs[formName].validate(valid => {
|
|
|
|
|
|
+ this.$refs[formName].validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
let args = {
|
|
let args = {
|
|
enableType: this.enableForm.enableFlag,
|
|
enableType: this.enableForm.enableFlag,
|
|
id: this.suspendData.id
|
|
id: this.suspendData.id
|
|
};
|
|
};
|
|
- stopWmScorePackage(args).then(response => {
|
|
|
|
|
|
+ stopWmScorePackage(args).then((response) => {
|
|
this.$message.success('终止成功');
|
|
this.$message.success('终止成功');
|
|
this.getList(this.page);
|
|
this.getList(this.page);
|
|
this.stopcancelBtn();
|
|
this.stopcancelBtn();
|
|
@@ -1872,7 +1888,7 @@ export default {
|
|
async settleById(row) {
|
|
async settleById(row) {
|
|
this.id = row.id;
|
|
this.id = row.id;
|
|
this.settleButtonShow = true;
|
|
this.settleButtonShow = true;
|
|
- let {scorePackageName, score, ysh: finishScore, description} = row;
|
|
|
|
|
|
+ let { scorePackageName, score, ysh: finishScore, description } = row;
|
|
this.form = {
|
|
this.form = {
|
|
scorePackageName,
|
|
scorePackageName,
|
|
score,
|
|
score,
|
|
@@ -1931,7 +1947,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getSummaries(param) {
|
|
getSummaries(param) {
|
|
- const {columns, data} = param;
|
|
|
|
|
|
+ const { columns, data } = param;
|
|
const sums = [];
|
|
const sums = [];
|
|
columns.forEach((column, index) => {
|
|
columns.forEach((column, index) => {
|
|
if (index === 0) {
|
|
if (index === 0) {
|
|
@@ -1939,7 +1955,7 @@ export default {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (index === 4) {
|
|
if (index === 4) {
|
|
- let isNumber = num => num === +num;
|
|
|
|
|
|
+ let isNumber = (num) => num === +num;
|
|
let a = data[0] ? data[0].settleAmount : 0;
|
|
let a = data[0] ? data[0].settleAmount : 0;
|
|
let b = data[0] ? data[0].p2pServiceAmount : 0;
|
|
let b = data[0] ? data[0].p2pServiceAmount : 0;
|
|
let pre;
|
|
let pre;
|
|
@@ -1958,10 +1974,7 @@ export default {
|
|
value = value.replace(/[^\d.\-]/g, ''); //清除"数字"和"." "-"负号以外的字符
|
|
value = value.replace(/[^\d.\-]/g, ''); //清除"数字"和"." "-"负号以外的字符
|
|
value = value.replace(/^\./g, ''); //验证第一个字符是数字
|
|
value = value.replace(/^\./g, ''); //验证第一个字符是数字
|
|
value = value.replace(/\.{2,}/g, ''); //只保留第一个, 清除多余的
|
|
value = value.replace(/\.{2,}/g, ''); //只保留第一个, 清除多余的
|
|
- value = value
|
|
|
|
- .replace('.', '$#$')
|
|
|
|
- .replace(/\./g, '')
|
|
|
|
- .replace('$#$', '.');
|
|
|
|
|
|
+ value = value.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.');
|
|
value = value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
|
|
value = value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
|
|
e.discount = value;
|
|
e.discount = value;
|
|
e.settleAmount = (Number(e.allScore) * Number(value)).toFixed(2);
|
|
e.settleAmount = (Number(e.allScore) * Number(value)).toFixed(2);
|
|
@@ -1971,10 +1984,7 @@ export default {
|
|
value = value.replace(/[^\d.\-]/g, ''); //清除"数字"和"." "-"负号以外的字符
|
|
value = value.replace(/[^\d.\-]/g, ''); //清除"数字"和"." "-"负号以外的字符
|
|
value = value.replace(/^\./g, ''); //验证第一个字符是数字
|
|
value = value.replace(/^\./g, ''); //验证第一个字符是数字
|
|
value = value.replace(/\.{2,}/g, ''); //只保留第一个, 清除多余的
|
|
value = value.replace(/\.{2,}/g, ''); //只保留第一个, 清除多余的
|
|
- value = value
|
|
|
|
- .replace('.', '$#$')
|
|
|
|
- .replace(/\./g, '')
|
|
|
|
- .replace('$#$', '.');
|
|
|
|
|
|
+ value = value.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.');
|
|
value = value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
|
|
value = value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
|
|
e.discount = value;
|
|
e.discount = value;
|
|
e.settleAmount = (Number(e.allScore) * Number(value)).toFixed(2);
|
|
e.settleAmount = (Number(e.allScore) * Number(value)).toFixed(2);
|
|
@@ -1985,10 +1995,7 @@ export default {
|
|
if (value) {
|
|
if (value) {
|
|
value = value.replace(/[^\d.\-]/g, ''); //清除"数字"和"." "-"负号以外的字符
|
|
value = value.replace(/[^\d.\-]/g, ''); //清除"数字"和"." "-"负号以外的字符
|
|
value = value.replace(/\.{2,}/g, ''); //只保留第一个, 清除多余的
|
|
value = value.replace(/\.{2,}/g, ''); //只保留第一个, 清除多余的
|
|
- value = value
|
|
|
|
- .replace('.', '$#$')
|
|
|
|
- .replace(/\./g, '')
|
|
|
|
- .replace('$#$', '.');
|
|
|
|
|
|
+ value = value.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.');
|
|
value = value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
|
|
value = value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
|
|
let discount = (Number(value) / Number(e.allScore)).toFixed(2);
|
|
let discount = (Number(value) / Number(e.allScore)).toFixed(2);
|
|
e.settleAmount = value;
|
|
e.settleAmount = value;
|
|
@@ -2002,10 +2009,7 @@ export default {
|
|
let value = e.settleAmount;
|
|
let value = e.settleAmount;
|
|
value = value.replace(/[^\d.\-]/g, ''); //清除"数字"和"." "-"负号以外的字符
|
|
value = value.replace(/[^\d.\-]/g, ''); //清除"数字"和"." "-"负号以外的字符
|
|
value = value.replace(/\.{2,}/g, ''); //只保留第一个, 清除多余的
|
|
value = value.replace(/\.{2,}/g, ''); //只保留第一个, 清除多余的
|
|
- value = value
|
|
|
|
- .replace('.', '$#$')
|
|
|
|
- .replace(/\./g, '')
|
|
|
|
- .replace('$#$', '.');
|
|
|
|
|
|
+ value = value.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.');
|
|
value = value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
|
|
value = value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
|
|
let discount = 0;
|
|
let discount = 0;
|
|
if (value) {
|
|
if (value) {
|