|
@@ -47,7 +47,7 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label="批准日期" prop="ApprovalDate">
|
|
<el-form-item label="批准日期" prop="ApprovalDate">
|
|
|
- <el-date-picker style="width: 100%" v-model="PatentForm.ApprovalDate" type="date" placeholder="请选择批准日期">
|
|
|
|
|
|
|
+ <el-date-picker style="width: 100%" v-model="PatentForm.ApprovalDate" type="date" placeholder="请选择批准日期" :picker-options="patentPickerOptions">
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -94,6 +94,11 @@
|
|
|
SupplierTypeCode: '0',
|
|
SupplierTypeCode: '0',
|
|
|
status: '0',
|
|
status: '0',
|
|
|
patentList: [],
|
|
patentList: [],
|
|
|
|
|
+ patentPickerOptions: {
|
|
|
|
|
+ disabledDate (time) {
|
|
|
|
|
+ return time.getTime() > Date.now() - 8.64e6
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
Title: '',
|
|
Title: '',
|
|
|
PatentForm: {
|
|
PatentForm: {
|
|
|
Id: '',
|
|
Id: '',
|
|
@@ -220,35 +225,33 @@
|
|
|
},
|
|
},
|
|
|
deletedata (val) {
|
|
deletedata (val) {
|
|
|
let _this = this
|
|
let _this = this
|
|
|
- _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
|
|
|
|
+ _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
- })
|
|
|
|
|
- .then(() => {
|
|
|
|
|
- _this.$axios.delete('patent/patentdelete/' + val.Id, {})
|
|
|
|
|
- .then(function (response) {
|
|
|
|
|
- // response
|
|
|
|
|
- if (response.data.code === 0) {
|
|
|
|
|
- _this.$message({
|
|
|
|
|
- type: 'success',
|
|
|
|
|
- message: response.data.message
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ _this.$axios.delete('patent/patentdelete/' + val.Id, {})
|
|
|
|
|
+ .then(function (response) {
|
|
|
|
|
+ // response
|
|
|
|
|
+ if (response.data.code === 0) {
|
|
|
|
|
+ _this.$message({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: response.data.message
|
|
|
|
|
+ })
|
|
|
_this.initData()
|
|
_this.initData()
|
|
|
} else {
|
|
} else {
|
|
|
- _this.$message({
|
|
|
|
|
- type: 'warning',
|
|
|
|
|
- message: response.data.message
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ _this.$message({
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ message: response.data.message
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
- .catch(function (error) {
|
|
|
|
|
- console.log(error)
|
|
|
|
|
|
|
+ }).catch(function (error) {
|
|
|
|
|
+ console.log(error)
|
|
|
})
|
|
})
|
|
|
- })
|
|
|
|
|
- .catch(() => {})
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ }).catch(() => {})
|
|
|
|
|
+ },
|
|
|
showDialog () {
|
|
showDialog () {
|
|
|
|
|
+ console.log('1223')
|
|
|
this.Title = '专利及专有技术'
|
|
this.Title = '专利及专有技术'
|
|
|
this.PatentForm.Id = 0
|
|
this.PatentForm.Id = 0
|
|
|
this.PatentForm.SupplierCertId = this.SupplierCertId
|
|
this.PatentForm.SupplierCertId = this.SupplierCertId
|