|
|
@@ -544,6 +544,25 @@
|
|
|
trigger: 'blur'
|
|
|
}]
|
|
|
},
|
|
|
+ options: [{
|
|
|
+ label: '特检',
|
|
|
+ options: [
|
|
|
+ {Id: 179, FullName: '电气接地装置检测'},
|
|
|
+ {Id: 286, FullName: '防雷装置检测'},
|
|
|
+ {Id: 187, FullName: '防雷装置(等电位)检测'},
|
|
|
+ {Id: 181, FullName: '漏电保护器检测'}
|
|
|
+ ]
|
|
|
+ }, {
|
|
|
+ label: '宇信',
|
|
|
+ options: [
|
|
|
+ {Id: 156, FullName: '阻火器检测'},
|
|
|
+ {Id: 183, FullName: '呼吸阀检测'},
|
|
|
+ {Id: 154, FullName: '液压安全阀检测'},
|
|
|
+ {Id: 189, FullName: '空气泡沫产生器检测'},
|
|
|
+ {Id: 141, FullName: '游梁式抽油机检测'},
|
|
|
+ {Id: 173, FullName: '无游梁式抽油机检测'}
|
|
|
+ ]
|
|
|
+ }],
|
|
|
status_flag: false,
|
|
|
deliverShow: false,
|
|
|
deliverList: [],
|
|
|
@@ -721,7 +740,7 @@
|
|
|
this.getEntypeList()
|
|
|
this.getsamplesnumlist()
|
|
|
this.getCustomer()
|
|
|
- this.getProjectType()
|
|
|
+ // this.getProjectType()
|
|
|
this.getSampleTypeOrigList()
|
|
|
// this.getpartuserlist()
|
|
|
this.getDictList()
|
|
|
@@ -1412,6 +1431,7 @@
|
|
|
});
|
|
|
},
|
|
|
getCode() {
|
|
|
+ console.log(this.ServiceId)
|
|
|
if (this.ServiceId == 'addentrust') {
|
|
|
if (this.tjz) {
|
|
|
for (var i = 0; i < this.projectTypeList.length; i++) {
|
|
|
@@ -1452,6 +1472,44 @@
|
|
|
_this.deliverForm.DeliverNo = response.data.items + ''
|
|
|
})
|
|
|
},
|
|
|
+ //检测报告
|
|
|
+ getProjectType() {
|
|
|
+ // let _this = this
|
|
|
+ // _this.$axios.get('/testtype/testypetreebyorg', {})
|
|
|
+ // .then(res => {
|
|
|
+ // _this.testTypeList = res.data.items
|
|
|
+ // if (!_this.testTypeList) {
|
|
|
+ // return false
|
|
|
+ // }
|
|
|
+ // for (var i = 0; i < _this.testTypeList.length; i++) {
|
|
|
+ // if (_this.testTypeList[i].ParentId === 0) {
|
|
|
+ // _this.projectTypeList.push(_this.testTypeList[i])
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // console.log(_this.projectTypeList, '_this.projectTypeList')
|
|
|
+ // })
|
|
|
+ // .catch(err => {
|
|
|
+ // // handle error
|
|
|
+ // console.error(err)
|
|
|
+ // })
|
|
|
+ if (this.tjz) {
|
|
|
+ this.projectTypeList = [
|
|
|
+ {Id: 179, FullName: '电气接地装置检测', TemplateCode: 'DAYT.ElecGround.Report'},
|
|
|
+ {Id: 286, FullName: '防雷装置检测', TemplateCode: 'DAYT.LightProtect.Report'},
|
|
|
+ {Id: 187, FullName: '防雷装置(等电位)检测', TemplateCode: 'DAYT.Equipotent.Report'},
|
|
|
+ {Id: 181, FullName: '漏电保护器检测', TemplateCode: 'DAYT.LeakProtect.Report'}
|
|
|
+ ]
|
|
|
+ } else {
|
|
|
+ this.projectTypeList = [
|
|
|
+ {Id: 156, FullName: '阻火器检测', TemplateCode: ''},
|
|
|
+ {Id: 183, FullName: '呼吸阀检测', TemplateCode: ''},
|
|
|
+ {Id: 154, FullName: '液压安全阀检测', TemplateCode: ''},
|
|
|
+ {Id: 189, FullName: '空气泡沫产生器检测', TemplateCode: ''},
|
|
|
+ {Id: 141, FullName: '游梁式抽油机检测', TemplateCode: ''},
|
|
|
+ {Id: 173, FullName: '无游梁式抽油机检测', TemplateCode: ''}
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
// 判断组织结构确定流程
|
|
|
getOrganizeListById () {
|
|
|
let _this = this
|
|
|
@@ -1466,6 +1524,7 @@
|
|
|
// _this.mainForm.EntrustTypeId = 329 //委托检测
|
|
|
}
|
|
|
}
|
|
|
+ _this.getProjectType()
|
|
|
}).catch(
|
|
|
function (error) {
|
|
|
console.log(error);
|
|
|
@@ -1562,26 +1621,7 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- //检测报告
|
|
|
- getProjectType() {
|
|
|
- let _this = this
|
|
|
- _this.$axios.get('/testtype/testypetreebyorg', {})
|
|
|
- .then(res => {
|
|
|
- _this.testTypeList = res.data.items
|
|
|
- if (!_this.testTypeList) {
|
|
|
- return false
|
|
|
- }
|
|
|
- for (var i = 0; i < _this.testTypeList.length; i++) {
|
|
|
- if (_this.testTypeList[i].ParentId === 0) {
|
|
|
- _this.projectTypeList.push(_this.testTypeList[i])
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- // handle error
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
+
|
|
|
|
|
|
SampleTypeChangeHandler() {
|
|
|
this.mainForm.DetectSampleId = ''
|