| | |
| | | <div class="" style="width: 100%;"> |
| | | <div class="el-flex" style="height: 40px"> |
| | | <div style="width: 60%"> |
| | | <zt-select v-model="dataForm.softwareTestOrder.contractSign" url="/sys/userEx/getUsersList" |
| | | <zt-select v-model="dataForm.softwareTestOrder.contractSign" :datas="usersList" |
| | | placeholder="承托方人员"/> |
| | | <!-- <span>{{ dataForm.contractSign }}</span>--> |
| | | </div> |
| | |
| | | }, |
| | | deliverableList: [], |
| | | measuredList: [], |
| | | } |
| | | }, |
| | | usersList:[] |
| | | } |
| | | }, |
| | | methods: { |
| | | // getDictLabel(event,name){ |
| | | // if(name.indexOf("其他")!=-1){ |
| | | // console.log(name,'字典名字q34567') |
| | | // this.eventIndex = event |
| | | // this.inputName='q14eeff' |
| | | // } |
| | | // }, |
| | | getChangeInputData(data, ogn) { |
| | | // console.log(ogn) |
| | | this.$set(this.dataForm.softwareTestOrder, ogn, data); |
| | |
| | | this.dataForm.testAgencyInfo = {} |
| | | } |
| | | } |
| | | await this.getusersList() |
| | | // console.log(this.dataForm, "this.dataForm") |
| | | console.log(this.dataForm, "getInfo this.dataForm") |
| | | }, |
| | |
| | | tableBody.scrollTop = tableBody.scrollHeight |
| | | }) |
| | | }, |
| | | async getusersList() { |
| | | let res = await this.$http.get(`/sys/userEx/getUsersList`) |
| | | if (res.success) { |
| | | this.usersList = res.data; |
| | | } |
| | | }, |
| | | async deleteDeliverableRow(index,id) { |
| | | if (id != null) { |
| | | if (await this.$tip.confirm(this.$t('prompt.info', {'handle': this.$t('delete')}))) { |
| | | if (id != null) { |
| | | let res = await this.$http.delete('/project/SoftwareTestOrderDeliverable/', {data: [id]}) |
| | | } |
| | | this.dataForm.deliverableList.splice(index, 1) |
| | | } |
| | | this.dataForm.deliverableList.splice(index, 1) |
| | | }, |
| | | addMeasuredRow() { |
| | | this.dataForm.measuredList.push({}) |
| | |
| | | }) |
| | | }, |
| | | async deleteMeasuredRow(index, id) { |
| | | if (id != null) { |
| | | if (await this.$tip.confirm(this.$t('prompt.info', {'handle': this.$t('delete')}))) { |
| | | if (id != null) { |
| | | let res = await this.$http.delete('/project/SoftwareTestOrderMeasured/', {data: [id]}) |
| | | } |
| | | this.dataForm.measuredList.splice(index, 1) |
| | | } |
| | | this.dataForm.measuredList.splice(index, 1) |
| | | }, |
| | | async print() { |
| | | var params = qs.stringify({ |