|
@@ -236,7 +236,7 @@
|
|
|
>
|
|
|
<i
|
|
|
class="el-icon-upload tb-icon"
|
|
|
- @click="get_againonline(scope.row.skuCode)"
|
|
|
+ @click="get_againonline(scope.row.platform_youzan_id)"
|
|
|
></i>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip
|
|
@@ -247,7 +247,7 @@
|
|
|
>
|
|
|
<i
|
|
|
class="el-icon-download tb-icon"
|
|
|
- @click="showDonlineDlg(scope.row.skuCode)"
|
|
|
+ @click="get_donline(scope.row.platform_youzan_id)"
|
|
|
></i>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
@@ -701,7 +701,7 @@ export default {
|
|
|
* @param {String} id id
|
|
|
* @param {String} status 0-禁用 1-启用
|
|
|
*/
|
|
|
- async get_againonline(skuCode) {
|
|
|
+ async get_againonline(platform_youzan_id) {
|
|
|
await this.$confirm(`确定要重新发起上线流程?`, {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
@@ -710,7 +710,7 @@ export default {
|
|
|
.then(async () => {
|
|
|
this.loading = true;
|
|
|
const model = {
|
|
|
- skuCode: skuCode,
|
|
|
+ platform_youzan_id: platform_youzan_id,
|
|
|
};
|
|
|
const res = await asyncRequest.againonline(model);
|
|
|
if (res && res.code === 0) {
|
|
@@ -731,35 +731,13 @@ export default {
|
|
|
console.log("取消");
|
|
|
});
|
|
|
},
|
|
|
- //点击下线
|
|
|
- async showDonlineDlg(skuCode) {
|
|
|
- this.dialogFormVisible = true;
|
|
|
- this.donline_form = {
|
|
|
- offline_reason: "",
|
|
|
- offline_remark: "",
|
|
|
- skuCode: "",
|
|
|
- };
|
|
|
- this.donline_form.skuCode = skuCode;
|
|
|
- // this.donlineDlg(skuCode)
|
|
|
- },
|
|
|
- //商品下线原因 确定
|
|
|
- async donlineDlg() {
|
|
|
- await this.$refs.donline_Form.validate(async (valid) => {
|
|
|
- if (valid) {
|
|
|
- this.dialogFormVisible = false;
|
|
|
- this.get_donline(this.donline_form.skuCode);
|
|
|
- } else {
|
|
|
- console.log("error submit!!");
|
|
|
- return false;
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
+
|
|
|
/**
|
|
|
* 商品下线
|
|
|
* @param {String} id id
|
|
|
* @param {String} status 0-禁用 1-启用
|
|
|
*/
|
|
|
- async get_donline(skuCode) {
|
|
|
+ async get_donline(platform_youzan_id) {
|
|
|
await this.$confirm(`确定要下线商品?`, {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
@@ -768,13 +746,10 @@ export default {
|
|
|
.then(async () => {
|
|
|
this.loading = true;
|
|
|
let obj = {
|
|
|
- skuCode: skuCode,
|
|
|
- exam_status: "8",
|
|
|
+ platform_youzan_id: platform_youzan_id,
|
|
|
};
|
|
|
- let model = { ...this.donline_form, ...obj };
|
|
|
- console.log("aaaaa", model);
|
|
|
|
|
|
- const res = await asyncRequest.status(model);
|
|
|
+ const res = await asyncRequest.yz_goodoff(obj);
|
|
|
if (res && res.code === 0) {
|
|
|
this.loading = false;
|
|
|
this.$notify.success({
|