Browse Source

提交采购申请

caojunjie 4 years ago
parent
commit
035ac28e51
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/views/purchaseRequest/index.vue

+ 5 - 2
src/views/purchaseRequest/index.vue

@@ -934,12 +934,13 @@ export default {
           this.$refs.avatar.form = {}
           this.getRow(data)
           this.contentOption.forEach(item => {
-            if (item.label == 'personNaem' || item.label == 'corpsName' || item.label == 'createBy') {
+            if (item.label == 'personNaem' || item.label == 'corpsName' || item.label == 'createBy' || item.label == 'fBillno') {
               item.disabled = true
             } else {
               item.disabled = false
             }
           })
+          this.contentButton.forEach(item => item.disabled = false)
           this.contentStyle.forEach(item => item.disabled = false)
           this.$refs.avatar.form.createBy = Cookies.get('userName')
           break
@@ -966,7 +967,7 @@ export default {
               item.disabled = false
               this.contentStyle.forEach(item => item.disabled = false)
               this.contentOption.forEach(item => {
-                if (item.label == 'personNaem' || item.label == 'corpsName' || item.label == 'createBy') {
+                if (item.label == 'personNaem' || item.label == 'corpsName' || item.label == 'createBy' || item.label == 'fBillno') {
                   item.disabled = true
                 } else {
                   item.disabled = false
@@ -1020,6 +1021,8 @@ export default {
         case '请核':
           if (this.$refs.avatar.form.fBillstatus < 4){
             this.$refs.avatar.submitForm('check')
+          }else {
+            this.$message.error('请先保存');
           }
           break
         case '生成入库单':