| | |
| | | <div style="padding-left:5px;padding-right:5px;"> |
| | | <div style="padding: 5px">物品技术资料及数量:</div> |
| | | <div class="table-container"> |
| | | <el-table ref="tableSoftwareList" class="el-software el-margin-top-bot" border :data="dataForm.technicalList" |
| | | <el-table ref="tableCirculatOrderList" class="el-software el-margin-top-bot" border :data="dataForm.technicalList" |
| | | stripe> |
| | | <el-table-column prop="no" align="center" width="80" label="序号"> |
| | | <el-table-column prop="no" align="center" width="60" label="序号"> |
| | | <template slot-scope="scope"> |
| | | <span v-html="indexFormat(scope.$index)"></span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="infoName" min-width="300" label="技术资料名称"> |
| | | <el-table-column prop="Name" min-width="180" label="技术资料名称"> |
| | | <template v-slot="{ row }"> |
| | | <el-input v-model="row.name" placeholder="技术资料名称"></el-input> |
| | | <el-input v-model="row.Name" placeholder="技术资料名称"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="identify" align="center" width="180" label="标识"> |
| | | <el-table-column prop="identify" align="center" width="150" label="标识"> |
| | | <template v-slot="{ row }"> |
| | | <el-input v-model="row.version" placeholder="标识"></el-input> |
| | | <el-input v-model="row.identify" placeholder="标识"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="version" align="center" width="180" label="版本"> |
| | | <el-table-column prop="version" align="center" width="120" label="版本"> |
| | | <template v-slot="{ row }"> |
| | | <el-input v-model="row.identify" placeholder="版本"></el-input> |
| | | <el-input v-model="row.version" placeholder="版本"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="secretClass" label="密级" width="180" align="center"> |
| | | <el-table-column prop="secretClass" label="密级" width="100" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <el-input v-model="row.secretClass" placeholder="密级"></el-input> |
| | | <!-- <el-input v-model="row.secretClass" placeholder="密级"></el-input>--> |
| | | <zt-dict v-model="row.secretClass" dict="secret_class"></zt-dict> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="medium" label="介质" width="180" align="center"> |
| | | <el-table-column prop="medium" label="介质" width="100" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <el-input v-model="row.medium" placeholder="介质"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="amount" label="数量" width="180" align="center"> |
| | | <el-table-column prop="amount" label="数量" width="80" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <el-input v-model="row.amount" placeholder="数量"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="remark" label="备注" width="180" align="center"> |
| | | <el-table-column prop="remark" label="备注" width="100" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <el-input v-model="row.remark" placeholder="备注"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" prop="files" label="上传附件" width="80" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <!-- <zt-table-button @click="files(row.id)">上传附件</zt-table-button>--> |
| | | <table-uploader busi-type="test_order" model-name="dataForm" :dataForm="dataForm" |
| | | v-model="row.files"/> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- <div class="icon-container" @click="addSoftwareRow()">--> |
| | | <!-- <!– 放置固定的图标 –>--> |
| | | <!-- <i class="el-icon-plus"></i>--> |
| | | <!-- </div>--> |
| | | <div class="icon-container" @click="addCirculatRow()"> |
| | | <!-- 放置固定的图标 --> |
| | | <i class="el-icon-plus"></i> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | indexFormat(index){ |
| | | return index += 1 |
| | | }, |
| | | init(id,row){ |
| | | this.dataForm.id = row.id |
| | | this.dataForm.projectId = row.projectId |
| | |
| | | this.getInfo() |
| | | console.log(this.dataForm.id,this.dataForm.projectId,'params params') |
| | | }, |
| | | addCirculatRow(){ |
| | | this.dataForm.technicalList.push({}) |
| | | this.$nextTick(()=>{ |
| | | const tableBody=this.$refs.tableCirculatOrderList.$el.querySelector('.el-table__body-wrapper') |
| | | tableBody.scrollTop = tableBody.scrollHeight; |
| | | }) |
| | | }, |
| | | // 获取信息 |
| | | async getInfo() { |
| | | let params = { |