|
@@ -168,11 +168,8 @@
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <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" @click="close()" icon="el-icon-circle-close">关闭</el-button>
|
|
|
+ <el-button size="small" type="primary" v-if="method != 'view'" @click="getProgram()" icon="el-icon-circle-check" v-noMoreClick>确定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -276,6 +273,18 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
rows = this.$refs.projectTable.getCheckboxRecords()
|
|
|
+ } else 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('请填写开票详情')
|