linwenxin 1 год назад
Родитель
Сommit
66fa71bf58

+ 4 - 4
src/views/salesPurchasing/mixins/common_form.js

@@ -66,7 +66,7 @@ export default {
                             this.formData.venderId = val
                           }}
                           placeholder="请选择"
-                          disabled={!!~['SAVE', 'WAIT', 'OK', 'FAIL'].indexOf(this.formData.status)}
+                          disabled={!!~['WAIT', 'OK', 'FAIL'].indexOf(this.formData.status)}
                           onChange={val => {
                             if (val) {
                               this.formData['venderName'] = this.gysList.find(item => item.venderId == val).venderName
@@ -105,7 +105,7 @@ export default {
                               this.formData.goodsPurchaseId = val
                             }}
                             placeholder="请选择"
-                            disabled={!!~['SAVE', 'WAIT', 'OK', 'FAIL'].indexOf(this.formData.status)}
+                            disabled={!!~['WAIT', 'OK', 'FAIL'].indexOf(this.formData.status)}
                             filterable={true}
                             clearable={true}
                             onChange={val => {
@@ -204,7 +204,7 @@ export default {
                       maxlength="200"
                       show-word-limit
                       autosize={{ minRows: 2, maxRows: 4 }}
-                      disabled={!!~['SAVE', 'WAIT', 'OK', 'FAIL'].indexOf(this.formData.status)}
+                      disabled={!!~['WAIT', 'OK', 'FAIL'].indexOf(this.formData.status)}
                     ></el-input>
                   </el-descriptions-item>
                 </el-descriptions>
@@ -222,7 +222,7 @@ export default {
                       fileList={this.formData.fileUrl}
                       uid="imgSrc666_materials_drawing_images"
                       limit={1}
-                      isEdit={!~['SAVE', 'WAIT', 'OK', 'FAIL'].indexOf(this.formData.status)}
+                      isEdit={!~['WAIT', 'OK', 'FAIL'].indexOf(this.formData.status)}
                       fileType={['image']}
                     />
                   </el-descriptions-item>

+ 2 - 2
src/views/salesPurchasing/mixins/out_storage_goods.js

@@ -202,7 +202,7 @@ export default {
           }
         },
         ...(() => {
-          if (this.formDialogType < 2 && !~['SAVE', 'WAIT', 'OK', 'FAIL'].indexOf(this.formData.status)) {
+          if (this.formDialogType < 2 && !~['WAIT', 'OK', 'FAIL'].indexOf(this.formData.status)) {
             return [
               {
                 columnAttributes: {
@@ -226,7 +226,7 @@ export default {
                 }
               }
             ]
-          } else if (this.formDialogType < 2 && !!~['SAVE'].indexOf(this.formData.status) && this.joinCode) {
+          } else if (this.formDialogType < 2 && !!~[].indexOf(this.formData.status) && this.joinCode) {
             return [
               {
                 columnAttributes: {

+ 2 - 2
src/views/salesPurchasing/mixins/storage_goods.js

@@ -437,7 +437,7 @@ export default {
         },
         ...(() => {
 
-          if (this.formDialogType < 2 && !~['SAVE', 'WAIT', 'OK', 'FAIL'].indexOf(this.formData.status)) {
+          if (this.formDialogType < 2 && !~['WAIT', 'OK', 'FAIL'].indexOf(this.formData.status)) {
             return [
               {
                 columnAttributes: {
@@ -490,7 +490,7 @@ export default {
                 }
               }
             ]
-          } else if (this.formDialogType < 2 && !!~['SAVE'].indexOf(this.formData.status) && this.joinCode) {
+          } else if (this.formDialogType < 2 && !!~[].indexOf(this.formData.status) && this.joinCode) {
             return [
               {
                 columnAttributes: {