Browse Source

提交嘉通

caojunjie 2 năm trước cách đây
mục cha
commit
d4f5a4b483
1 tập tin đã thay đổi với 10 bổ sung4 xóa
  1. 10 4
      src/views/purchasingManagement/inStock/detailsPage.vue

+ 10 - 4
src/views/purchasingManagement/inStock/detailsPage.vue

@@ -3,7 +3,7 @@
     <div class="customer-head">
       <div class="customer-back">
         <el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left"
-                   @click="backToList">返回列表
+                   @click="backToList">返回列表{{form.status}}
         </el-button>
       </div>
       <div class="add-customer-btn">
@@ -18,7 +18,7 @@
         <el-button type="primary" size="small" v-if="form.status == 1"
                    class="el-button--small-yh " @click.stop="withdraw(1)">撤销
         </el-button>
-        <el-button type="primary" @click="editCustomer" :loading="subLoading" v-if="!(form.status > 0)"
+        <el-button type="primary" @click="editCustomer" :loading="subLoading" v-if="!(form.status > 2)"
                    size="small">保存数据
         </el-button>
         <el-dropdown style="padding: 0 6px;line-height: 0">
@@ -136,14 +136,14 @@
           </template>
         </avue-crud>
       </trade-card>
-      <fee-info ref="feeInfo" :orderFeesList="orderFeesList" :disabled="detailData.status == 1"
+      <fee-info ref="feeInfo" :orderFeesList="orderFeesList" :disabled="!(form.status < 3)"
                 feeUrl="/blade-purchase-sales/entranceOrder/removeOrderFees" :optionType="'CMY'" :itemType="'C'"
                 :inCropId="true" @beforeFinance="beforeFinance" :delType="2" :billingShow="false"/>
       <!-- <upload-file ref="uploadFile" title="合同附件" :disabled="detailData.status == 1" :orderFilesList="orderFilesList"
         delUrl="" /> -->
       <containerTitle title="上传附件"></containerTitle>
       <c-upload typeUpload="CD" deleteUrl="/api/trade-purchase/woodHarvestingCloud/removeByFileId"
-                :data="orderFilesList" display :enumerationValue="85.6" :disabled="detailData.status == 1"></c-upload>
+                :data="orderFilesList" display :enumerationValue="85.6" :disabled="!(form.status < 3)"></c-upload>
 
       <el-dialog append-to-body title="审核进度" class="el-dialogDeep" :visible.sync="checkScheduleDialog" width="40%"
                  :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
@@ -543,6 +543,12 @@ export default {
           cancelButtonText: "取消",
           type: "warning"
         }).then(() => {
+          if (this.itemsVOList.length == 0){
+            return this.$message({
+              type: "warning",
+              message: "无明细不允许提交!"
+            });
+          }
           this.subLoading = true;
           withdraw({
             id: this.form.id,