|
@@ -360,6 +360,7 @@
|
|
|
>
|
|
|
<el-form-item label="下线原因" prop="offline_reason">
|
|
|
<el-select
|
|
|
+ style="width:100%"
|
|
|
v-model="donline_form.offline_reason"
|
|
|
placeholder="请选择下线原因"
|
|
|
>
|
|
@@ -878,6 +879,11 @@ export default {
|
|
|
//点击下线
|
|
|
async showDonlineDlg(spuCode) {
|
|
|
this.dialogFormVisible = true;
|
|
|
+ this.donline_form = {
|
|
|
+ offline_reason: "",
|
|
|
+ offline_remark: "",
|
|
|
+ skuCode: "",
|
|
|
+ };
|
|
|
this.donline_form.spuCode = spuCode;
|
|
|
// this.donlineDlg(spuCode)
|
|
|
},
|
|
@@ -903,13 +909,7 @@ export default {
|
|
|
center: true,
|
|
|
})
|
|
|
.then(async () => {
|
|
|
- await this.$confirm(`确定要下线商品?`, {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- })
|
|
|
- .then(async () => {
|
|
|
- this.loading = true;
|
|
|
+ this.loading = true;
|
|
|
const model = this.donline_form;
|
|
|
const res = await asyncRequest.goodupoffline(model);
|
|
|
if (res && res.code === 0) {
|
|
@@ -925,15 +925,7 @@ export default {
|
|
|
this.loading = false;
|
|
|
this.$message.warning(res.message);
|
|
|
}
|
|
|
- this.donline_form = {
|
|
|
- offline_reason: "",
|
|
|
- offline_remark: "",
|
|
|
- skuCode: "",
|
|
|
- };
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- console.log("取消1");
|
|
|
- });
|
|
|
+
|
|
|
})
|
|
|
.catch(async () => {
|
|
|
console.log("取消");
|