Parcourir la source

共享图片隐藏

caojunjie il y a 1 an
Parent
commit
e309d99319

+ 4 - 4
src/views/tirePartsMall/basicData/shareListing/index.vue

@@ -25,9 +25,9 @@
             <template slot-scope="{type,size,row,index}" slot="menu">
               <el-button :size="size" :type="type" :disabled="row.upAndDownShelves" @click="$refs.crud.rowEdit(row, index)">编辑
               </el-button>
-                <el-button :size="size" :type="type" :disabled="row.upAndDownShelves"
-                           @click="annexOpen(row, index)">商城图片
-                </el-button>
+                <!--<el-button :size="size" :type="type" :disabled="row.upAndDownShelves"-->
+                <!--           @click="annexOpen(row, index)">商城图片-->
+                <!--</el-button>-->
               <el-tooltip :content="`${row.upAndDownShelves == 0?'上架':'下架'}`" placement="top">
                 <el-switch
                     style="margin-left: 10px"
@@ -178,7 +178,7 @@ export default {
         height: "auto",
         searchMenuPosition: "right",
         align: "center",
-        menuWidth: 200,
+        menuWidth: 120,
         updateBtnText:'保存',
         searchSpan: 8,
         searchIcon: true,

+ 3 - 4
src/views/tirePartsMall/salesManagement/saleOrder/detailsPage.vue

@@ -1652,30 +1652,29 @@ export default {
                         this.$set(this.optionContactsBack, 'disabled', true)
                         this.$refs["form"].validate((valid, done) => {
                             done();
-                            console.log(valid);
                             if (valid) {
                                 submit({
                                     bsType: "XS",
                                     ...this.form
                                 }).then(res => {
-                                    console.log(1);
                                     this.refresh(res.data.data.id)
                                     this.isDisabledTask = false
                                     generateShipTask(this.form).then(res => {
                                         console.log(res.data);
+                                        this.$message.success("生成出库任务成功");
                                         // 将按钮文本更改为"撤销任务"
                                         this.buttonText = '撤销任务';
                                         // 将按钮颜色更改为对应的颜色
                                         this.buttonColor = 'warning'; // 比如改为warning
                                         this.refreshs(res.data.data.id, true)
                                         this.isContacts = true
-                                        this.$message.success("生成出库任务成功");
                                         this.isApplySettlement = false
                                         this.isAdd = true
                                         this.isDisabled = true
                                         this.isAddBtn = true
                                         this.editButton = true // 把编辑按钮显示出来
-                                    }).finally(() => {
+                                        loading.close();
+                                    }).catch(() => {
                                         loading.close();
                                     });
                                 }).catch(() => {