|
@@ -244,7 +244,7 @@
|
|
|
<el-collapse-item
|
|
|
title="待产品审核"
|
|
|
name="1"
|
|
|
- v-if="status == '2' && ppowers.some((i) => i == '2')"
|
|
|
+ v-if="status == '2' && ppowers.some((i) => i == '2') && !isSupertube"
|
|
|
>
|
|
|
<online-form
|
|
|
:newTime="newTime"
|
|
@@ -255,8 +255,6 @@
|
|
|
:disabled="false"
|
|
|
:isMust="false"
|
|
|
@resSuccess="initForm"
|
|
|
- @searchChange="examForm1"
|
|
|
- @rejectRes="examForm2"
|
|
|
/>
|
|
|
</el-collapse-item>
|
|
|
</el-collapse>
|
|
@@ -311,7 +309,13 @@ export default {
|
|
|
processRemarkTimeLine,
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters(["tablebtnSize", "searchSize", "size", "private_field"]),
|
|
|
+ ...mapGetters([
|
|
|
+ "tablebtnSize",
|
|
|
+ "searchSize",
|
|
|
+ "size",
|
|
|
+ "private_field",
|
|
|
+ ', "isSupertube"',
|
|
|
+ ]),
|
|
|
powers() {
|
|
|
const tran =
|
|
|
this.$store.getters.btnList.find(
|
|
@@ -374,136 +378,6 @@ export default {
|
|
|
|
|
|
this.loading = false;
|
|
|
},
|
|
|
- // 点击业务审核的按钮
|
|
|
- async examForm(e) {
|
|
|
- console.log(e);
|
|
|
- if (!this.loading) {
|
|
|
- let model = {
|
|
|
- skuCode: this.queryId,
|
|
|
- exam_status: e.numStatus,
|
|
|
- online_time: e.online_time,
|
|
|
- remark: e.remark,
|
|
|
- };
|
|
|
-
|
|
|
- if ((e.numStatus ?? "") == "") {
|
|
|
- //驳回重新审核
|
|
|
- await this.setstatus("提交产品部门审核结果", model);
|
|
|
- } else if (e.numStatus == "3") {
|
|
|
- //点击保存
|
|
|
- // return;
|
|
|
- await this.setstatus("提交产品部门审核结果", model);
|
|
|
- } else {
|
|
|
- //驳回下线
|
|
|
- await this.setstatus("驳回下线吗", model);
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- // 点击财务定价的驳回按钮
|
|
|
- async examForm1(e) {
|
|
|
- if ((e.numStatus ?? "") == "") {
|
|
|
- if (!this.loading) {
|
|
|
- let model = {
|
|
|
- skuCode: this.queryId,
|
|
|
- exam_status: e.numStatus,
|
|
|
- remark: e.remark,
|
|
|
- };
|
|
|
- await this.setstatus("驳回重新审核吗", model);
|
|
|
- }
|
|
|
- } else {
|
|
|
- // return;
|
|
|
- if (!this.loading) {
|
|
|
- let model = {
|
|
|
- skuCode: this.queryId,
|
|
|
- exam_status: e.numStatus,
|
|
|
- remark: e.remark,
|
|
|
- };
|
|
|
- await this.setstatus("驳回下线吗", model);
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- // 财务审核的保存按钮
|
|
|
- async examForm2(e) {
|
|
|
- console.log(e);
|
|
|
- if (!this.loading) {
|
|
|
- let model = {
|
|
|
- skuCode: this.queryId,
|
|
|
- exam_status: e.numStatus,
|
|
|
- remark: e.remark,
|
|
|
- };
|
|
|
-
|
|
|
- if ((e.numStatus ?? "") == "") {
|
|
|
- //驳回重新审核
|
|
|
- await this.setstatus("驳回重新审核吗", model);
|
|
|
- } else if (e.numStatus == "5") {
|
|
|
- //点击保存
|
|
|
- // return;
|
|
|
- await this.setstatus("提交财务审核结果", model);
|
|
|
- } else if (e.numStatus == "7") {
|
|
|
- await this.setstatus("提交审核驳回吗", model);
|
|
|
- } else {
|
|
|
- //驳回下线
|
|
|
- await this.setstatus("驳回下线吗", model);
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- // 操作上线的保存按钮
|
|
|
- async examForm3(e) {
|
|
|
- console.log(e);
|
|
|
- if (!this.loading) {
|
|
|
- let model = {
|
|
|
- skuCode: this.queryId,
|
|
|
- exam_status: e.numStatus,
|
|
|
- plat_code: e.plat_code,
|
|
|
- remark: e.remark || "",
|
|
|
- };
|
|
|
-
|
|
|
- if ((e.numStatus ?? "") == "") {
|
|
|
- //驳回重新审核
|
|
|
- await this.setstatus("驳回重新审核吗", model);
|
|
|
- } else if (e.numStatus == "6") {
|
|
|
- //点击保存
|
|
|
- // return;
|
|
|
- await this.setstatus("提交商品上线结果", model);
|
|
|
- } else {
|
|
|
- //驳回下线
|
|
|
- await this.setstatus("驳回下线吗", model);
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
-
|
|
|
- async setstatus(detail, model) {
|
|
|
- await this.$confirm(`确定要${detail}?`, {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- })
|
|
|
- .then(async () => {
|
|
|
- let res = null;
|
|
|
- if (model.exam_status == "") {
|
|
|
- model.exam_remark = model.remark;
|
|
|
- delete model["remark"];
|
|
|
- res = await asyncRequest.goodupreject(model);
|
|
|
- } else {
|
|
|
- model.exam_remark = model.remark;
|
|
|
- delete model["remark"];
|
|
|
- res = await asyncRequest.status(model);
|
|
|
- }
|
|
|
- if (res && res.code === 0) {
|
|
|
- this.$notify.success({
|
|
|
- title: "提交成功!",
|
|
|
- message: "",
|
|
|
- });
|
|
|
- await this.initForm();
|
|
|
- } else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
- await this.logout();
|
|
|
- } else {
|
|
|
- this.$message.warning(res.message);
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- console.log("取消");
|
|
|
- });
|
|
|
- },
|
|
|
|
|
|
refresh(e) {
|
|
|
const { spuCode } = e;
|
|
@@ -544,6 +418,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.status = exam_status;
|
|
|
+ console.log(this.status);
|
|
|
this.getNewTime();
|
|
|
} else if (code >= 100 && code <= 104) {
|
|
|
await this.logout();
|