Browse Source

Merge branch 'feature/silage_outbound' into feature/add_field

# Conflicts:
#	dist/index.html
#	src/views/custom/custom/index.vue
duanxiaoduan 1 year ago
parent
commit
34da8f4d5b

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


+ 1 - 0
src/views/custom/custom/index.vue

@@ -369,6 +369,7 @@
                     <span v-else>未冲销</span>
                   </template>
                 </el-table-column>
+                <!-- <el-table-column label="冲销" sortable prop="sumPrice" min-width="60px" align="center" /> -->
               </el-table>
               <pagination v-show="total>0" :total="totalDelivery" :page.sync="getdataListParmDelivery.offset" :limit.sync="getdataListParmDelivery.pagecount" @pagination="getCardDelivery" />
             </el-tab-pane>

+ 4 - 4
src/views/custom/outStock/index.vue

@@ -381,7 +381,7 @@
                 </el-select>
               </el-form-item>
             </el-col>
-            <el-col v-if="No2" :span="8">
+            <el-col v-if="No2 && createTemp.useType == 5" :span="8">
               <el-form-item label="领用部门:" prop="departmentId">
                 <el-select v-model="createTemp.departmentId" placeholder="领用部门" class="filter-item" style="width:100%" @change="changeDepart">
                   <el-option
@@ -393,11 +393,11 @@
                 </el-select>
               </el-form-item>
             </el-col>
-            <!-- <el-col v-if="No2 && createTemp.useType == 6" :span="8">
-              <el-form-item label="青贮单号:" prop="greenFodderNumber">
+            <el-col v-if="No2 && createTemp.useType == 6" :span="8">
+              <el-form-item label="单号:" prop="greenFodderNumber">
                 <el-input ref="greenFodderNumber" v-model="createTemp.greenFodderNumber" maxlength="20" />
               </el-form-item>
-            </el-col> -->
+            </el-col>
             <el-col v-if="isReceiveTime2" :span="8">
               <el-form-item label="出库日期:" prop="receiveTime">
                 <el-date-picker

+ 34 - 26
src/views/maintenance/subcontractingMainten/tabPage/tab2.vue

@@ -614,7 +614,7 @@
             <template slot-scope="scope">
               <el-form :model="scope.row">
                 <el-form-item prop="amount">
-                  <el-input ref="amount" v-model="scope.row.amount" :disabled="dialogStatus==='collectionSparePartsSee'" style="margin-top:15px" />
+                  <el-input ref="amount" v-model="scope.row.amount" :disabled="dialogStatus==='collectionSparePartsSee1'" style="margin-top:15px" />
                 </el-form-item>
               </el-form>
             </template>
@@ -628,7 +628,7 @@
             <template slot-scope="scope">
               <el-form :model="scope.row">
                 <el-form-item prop="note">
-                  <el-input ref="note" v-model="scope.row.note" :disabled="dialogStatus==='collectionSparePartsSee'" style="margin-top:15px" />
+                  <el-input ref="note" v-model="scope.row.note" :disabled="dialogStatus==='collectionSparePartsSee1'" style="margin-top:15px" />
                 </el-form-item>
               </el-form>
             </template>
@@ -921,6 +921,7 @@ export default {
         examine33: '审核4',
         examine3: '审核5',
         collectionSparePartsSee: '查看领用',
+        collectionSparePartsSee1:'查看领用',
         collectionSparePartsCreate: '添加领用',
       },
 
@@ -1113,7 +1114,7 @@ export default {
     handleCollarUseSee(row, isStock) {
       console.log(row)
       this.collectionSparePartsSeeTemp = Object.assign({}, row)
-      // this.dialogStatus = 'collectionSparePartsSee'
+      this.dialogStatus = 'collectionSparePartsSee1'
 
       this.collectionSparePartsSeeTemp.applyDate = row.createDate
       this.dialogFormVisible_CollectionSparePartsSee = true
@@ -1574,6 +1575,9 @@ export default {
                       this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
                     }
                   })
+                  setTimeout(() => {
+                    this.isokDisable = false
+                  }, 2000)
                   return true
                 }
               } else {
@@ -1664,7 +1668,7 @@ export default {
 
         this.collectionSparePartsSeeTemp.empId =  this.collectionSparePartsSeeTemp.applicant
         this.collectionSparePartsSeeTemp.applyDate = parseTime(new Date(), '{y}-{m}-{d}')
-        // this.dialogStatus = 'collectionSparePartsCreate'
+        this.dialogStatus = 'collectionSparePartsSee'
         this.dialogFormVisible_CollectionSparePartsSee = true
         this.isCreatePartDelete = true
         this.listCreateCollectionSpareParts = []
@@ -2269,29 +2273,33 @@ export default {
         cancelButtonText: '取消',
         type: 'warning'
       }).then(() => {
-        var send_data1 = {
-            "name": "checkOutsourcingAmount",
-            "parammaps": { "outsourcingCode":row.outsourcingCode }
-        }
-        var send_data2 = {
-        "common": { "returnmap": "0" },
-        "data": [
-          {
-            "name": "editBigacceptanceIsAcceptance", "type": "e",
-            "parammaps": { "id":row.id }
-           }
-          ]
-        }
-        GetDataByName(send_data1).then(response => {
-          if(parseFloat(response.data.list[0].amount) !== 0){
-            this.save_submit(send_data2)
-          }else{
-            this.$message({
-              type: 'error',
-              message: '数据未填写,请完善相关信息'
-            })
+        if(row.isPartapply == 1){
+          var send_data1 = {
+              "name": "checkOutsourcingAmount",
+              "parammaps": { "outsourcingCode":row.outsourcingCode }
           }
-        })
+          var send_data2 = {
+          "common": { "returnmap": "0" },
+          "data": [
+            {
+              "name": "editBigacceptanceIsAcceptance", "type": "e",
+              "parammaps": { "id":row.id }
+             }
+            ]
+          }
+          GetDataByName(send_data1).then(response => {
+            if(parseFloat(response.data.list[0].amount) !== 0){
+              this.save_submit(send_data2)
+            }else{
+              this.$message({
+                type: 'error',
+                message: '数据未填写,请完善相关信息'
+              })
+            }
+          })
+        }else{
+          this.$message({ type: 'warning', message: '备件未领用,暂时不能提交。', duration: 2000 })
+        }
       }).catch(() => {
         this.$message({
           type: 'info',

Some files were not shown because too many files changed in this diff