Explorar o código

财务管理发票bug修补 项目管理业务类型 排序号和业务类型添加

lijt hai 1 ano
pai
achega
b0a9885061
Modificáronse 1 ficheiros con 26 adicións e 26 borrados
  1. 26 26
      src/views/modules/cw/invoice/ProgramPageForm.vue

+ 26 - 26
src/views/modules/cw/invoice/ProgramPageForm.vue

@@ -173,8 +173,8 @@
       <el-button size="small" @click="close()" icon="el-icon-circle-close">关闭</el-button>
       <el-button size="small" type="primary" v-if="method != 'view'" v-else-if="checkType===1" @click="getProgram()"
                  icon="el-icon-circle-check" v-noMoreClick>确定</el-button>
-        <el-button size="small" type="primary" v-if="method != 'view'" v-else-if="checkType===2" @click="getProgram2()"
-                   icon="el-icon-circle-check" v-noMoreClick>确定</el-button>
+<!--        <el-button size="small" type="primary" v-if="method != 'view'" v-else-if="checkType===2" @click="getProgram2()"
+                   icon="el-icon-circle-check" v-noMoreClick>确定</el-button>-->
     </span>
     </el-dialog>
   </div>
@@ -288,30 +288,30 @@ export default {
       this.close()
       this.$emit('getProgram', rows)
     },
-    getProgram2 () {
-      let rows
-      if (this.checkType === '2') {
-        if (this.commonJS.isEmpty(this.$refs.projectTable1.getCheckboxRecords())) {
-          this.$message.error('请至少选择一条数据')
-          return
-        }
-        if (this.num === false) {
-          if (this.$refs.projectTable1.getCheckboxRecords().length > 1) {
-            this.$message.error('最多选择一条数据')
-            return
-          }
-        }
-        rows = this.$refs.projectTable1.getCheckboxRecords()
-      } else {
-        if (this.commonJS.isEmpty(this.detail)) {
-          this.$message.error('请填写开票详情')
-          return
-        }
-        rows = [{projectName: this.detail}]
-      }
-      this.close()
-      this.$emit('getProgram', rows)
-    },
+    // getProgram2 () {
+    //   let rows
+    //   if (this.checkType === '2') {
+    //     if (this.commonJS.isEmpty(this.$refs.projectTable1.getCheckboxRecords())) {
+    //       this.$message.error('请至少选择一条数据')
+    //       return
+    //     }
+    //     if (this.num === false) {
+    //       if (this.$refs.projectTable1.getCheckboxRecords().length > 1) {
+    //         this.$message.error('最多选择一条数据')
+    //         return
+    //       }
+    //     }
+    //     rows = this.$refs.projectTable1.getCheckboxRecords()
+    //   } else {
+    //     if (this.commonJS.isEmpty(this.detail)) {
+    //       this.$message.error('请填写开票详情')
+    //       return
+    //     }
+    //     rows = [{projectName: this.detail}]
+    //   }
+    //   this.close()
+    //   this.$emit('getProgram', rows)
+    // },
     // 表单提交
     /* getProgram1 () {
       let rows