Commit 28aab8c9 by 张权

选择适用类型清空使用年限

1 parent 20500911
......@@ -124,7 +124,14 @@ export default {
}
],
getWorryBatcnList: this.$apis.addWorryFree.getWorryBatcnList,
addDialogForm: {},
addDialogForm: {
batchType: '',
packageCode:'',
quantity: '',
actualPrice:'',
servicePeriod: '',
remark: ''
},
addDialog: false,
addPageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
dialogEditOptions: [
......@@ -234,6 +241,7 @@ export default {
}else{
this.dialogYearOptions = [...arr]
}
this.addDialogForm.servicePeriod = ''
},
//批量下载
download(e) {
......@@ -254,9 +262,15 @@ export default {
},
// 关闭弹窗界面
cancelDetailDialog() {
console.log('1')
this.addDialog = false
this.addDialogForm = {}
this.addDialogForm = {
batchType: '',
packageCode:'',
quantity: '',
actualPrice:'',
servicePeriod: '',
remark: ''
}
},
submitForm(formName) {
this.$refs[formName].validate(valid => {
......@@ -267,8 +281,7 @@ export default {
message: '操作成功',
type: 'success'
})
this.addDialog = false
this.addDialogForm = {}
this.cancelDetailDialog()
this.$refs.detailTable.refreshTable()
} else {
this.$message({
......
......@@ -114,17 +114,18 @@ export default {
actualPrice: '',
status: ''
},
detailFormData: [
detailFormData: [
{
type: 'input',
label: '序列号',
name: 'seqNo',
isClear: true
isClear: true,
},
{
label: '版本',
name: 'batchType',
type: 'select',
isClear: true,
optionList: [ {
confId: '',
confName: '全部'
......@@ -145,6 +146,7 @@ export default {
label: '适用类型',
name: 'packageCode',
type: 'select',
isClear: true,
optionList: [
{
confId: '',
......@@ -173,6 +175,7 @@ export default {
{
label: '状态',
name: 'status',
isClear: true,
type: 'select',
optionList: [
{
......@@ -201,6 +204,7 @@ export default {
label: '使用年限',
name: 'servicePeriod',
type: 'select',
isClear: true,
optionList: [
{
confId: '',
......@@ -463,6 +467,7 @@ export default {
}else{
this.dialogYearOptions = [...arr]
}
this.detailDialogForm.servicePeriod = ''
},
check() {
return new Promise((resolve, reject) => {
......@@ -522,7 +527,6 @@ export default {
detailFormat() {},
// 关闭弹窗界面
cancelDetailDialog() {
console.log('1')
this.detailDialog = false
this.detailDialogForm = {}
},
......@@ -532,10 +536,8 @@ export default {
if (valid) {
if (this.detailDialogForm.batchType == '尊享版') {
this.detailDialogForm.batchType = '1'
console.log('1111')
} else if (this.detailDialogForm.batchType == '畅享版') {
this.detailDialogForm.batchType = '2'
console.log('22222')
}
console.log(this.detailDialogForm.batchType)
this.$apis.worryDetailApi.modWorryDetailList(this.detailDialogForm).then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!