linwenxin 7 miesięcy temu
rodzic
commit
ce39a86594

+ 45 - 43
src/views/partsManagement/accessoryWebsite/website-parts-shop-sales-manage/website-parts-shop-sales/components/website-parts-shop-sales-information.vue

@@ -396,49 +396,51 @@
       </div>
       <br />
       <el-row>
-        <!-- 新增或者编辑 -->
-        <template v-if="~[0, 1].indexOf(this.type)">
-          <el-button
-            v-if="~[0].indexOf(this.type) || ~['SAVE'].indexOf(form.status)"
-            size="small"
-            type="primary"
-            @click="determine"
-            >保存</el-button
-          >
-          <el-button v-if="~['SAVE', 'SUBMIT'].indexOf(form.status)" size="small" type="primary" @click="createOrder"
-            >生成订单</el-button
-          >
-          <el-button
-            v-if="~[0].indexOf(this.type) || ~['SAVE'].indexOf(form.status)"
-            size="small"
-            type="primary"
-            @click="add"
-            >添加</el-button
-          >
-          <el-button v-if="~[0].indexOf(this.type)" size="small" @click="reset">重置</el-button>
-        </template>
-        <template>
-          <el-button v-if="~['SUBMIT'].indexOf(form.status)" size="small" type="primary" @click="previousStep"
-            >上一步</el-button
-          >
-        </template>
-        <!-- 提货 -->
-        <template v-if="~[3].indexOf(this.type)">
-          <el-button v-if="~['PAYED'].indexOf(form.status)" size="small" type="primary" @click="confirmationDelivery"
-            >确认提货</el-button
-          >
-          <el-button
-            v-if="~['PAYED', 'EXCEPTION'].indexOf(form.status)"
-            size="small"
-            type="danger"
-            @click="cancellationDelivery"
-            >取消订单</el-button
-          >
-        </template>
-        <!-- 查看 -->
-        <template v-if="~['PAYED', 'END'].indexOf(this.type) && !~['EXCEPTION'].indexOf(form.status)">
-          <el-button size="small" @click="printHtml">打印出库清单</el-button>
-        </template>
+        <div style="text-align: right">
+          <!-- 新增或者编辑 -->
+          <template v-if="~[0, 1].indexOf(this.type)">
+            <el-button
+              v-if="~[0].indexOf(this.type) || ~['SAVE'].indexOf(form.status)"
+              size="small"
+              type="primary"
+              @click="determine"
+              >保存</el-button
+            >
+            <el-button v-if="~['SAVE', 'SUBMIT'].indexOf(form.status)" size="small" type="primary" @click="createOrder"
+              >生成订单</el-button
+            >
+            <el-button
+              v-if="~[0].indexOf(this.type) || ~['SAVE'].indexOf(form.status)"
+              size="small"
+              type="primary"
+              @click="add"
+              >添加</el-button
+            >
+            <el-button v-if="~[0].indexOf(this.type)" size="small" @click="reset">重置</el-button>
+          </template>
+          <template>
+            <el-button v-if="~['SUBMIT'].indexOf(form.status)" size="small" type="primary" @click="previousStep"
+              >上一步</el-button
+            >
+          </template>
+          <!-- 提货 -->
+          <template v-if="~[3].indexOf(this.type)">
+            <el-button v-if="~['PAYED'].indexOf(form.status)" size="small" type="primary" @click="confirmationDelivery"
+              >确认提货</el-button
+            >
+            <el-button
+              v-if="~['PAYED', 'EXCEPTION'].indexOf(form.status)"
+              size="small"
+              type="danger"
+              @click="cancellationDelivery"
+              >取消订单</el-button
+            >
+          </template>
+          <!-- 查看 -->
+          <template v-if="~['PAYED', 'END'].indexOf(this.type) && !~['EXCEPTION'].indexOf(form.status)">
+            <el-button size="small" @click="printHtml">打印出库清单</el-button>
+          </template>
+        </div>
       </el-row>
     </div>
     <pay-popup-window