|
@@ -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
|