Merge branch 'master' of http://192.168.110.209:9001/r/lims-before
| | |
| | | ENV = 'development' |
| | | |
| | | # base api |
| | | VUE_APP_BASE_API = 'http://192.168.110.87:1234/' |
| | | VUE_APP_BASE_API = 'http://192.168.110.107:1234/' |
| | |
| | | method: 'post', |
| | | data |
| | | }) |
| | | } |
| | | } |
| | | //æ£éªå详æ
|
| | | export function selectInspectsListById(params){ |
| | | return request({ |
| | | url: '/inspection/selectInspectsListById', |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
| | | //éæ©è´£ä»»é¡¹ç®æ£éªäºº |
| | | export function selectUser(params){ |
| | | return request({ |
| | | url: '/inspection/selectUser', |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
| | | // å§ææ£éªå表 |
| | | export function getCommisionList(params) { |
| | | return request({ |
| | | url: '/link-basic-table/page', |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
| | |
| | | }) |
| | | |
| | | } |
| | | |
| | | //è§æ ¼åå· |
| | | export function getModelSpecification(params){ |
| | | return request({ |
| | | url: '/link-basic/specification', |
| | |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
| | | |
| | | export function addRoleInfo(data) { |
| | | return request({ |
| | | url: '/role-manager/addRoleInfo', |
| | | method: 'post', |
| | | data |
| | | }) |
| | | } |
| | | |
| | | export function assertRepeat(params) { |
| | | return request({ |
| | | url: '/role-manager/assertRepeat', |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
| | | |
| | | //getAllRoleAndMenuInfo |
| | | export function getAllRoleAndMenuInfo(params) { |
| | | return request({ |
| | | url: '/role-manager/getAllRoleAndMenuInfo', |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
| | |
| | | 'avatar' |
| | | ]) |
| | | }, |
| | | |
| | | data() { |
| | | return { |
| | | user: { |
| | | id: null, |
| | | name: 'value' |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.getUser() |
| | | }, |
| | |
| | | hidden:true |
| | | }, |
| | | { |
| | | path: '/testReport', |
| | | component: () => import('@/views/template_testReport/index'), |
| | | hidden:true |
| | | }, |
| | | { |
| | | path: '/', |
| | | component: Layout, |
| | | redirect: '/home', |
| | |
| | | ] |
| | | |
| | | const createRouter = () => new Router({ |
| | | // mode: 'history', // require service support |
| | | mode: 'history', |
| | | scrollBehavior: () => ({ y: 0 }), |
| | | routes: constantRoutes |
| | | }) |
| | |
| | | |
| | | // if the custom code is not 20000, it is judged as an error. |
| | | if (res.code !== 200) { |
| | | console.log(res.message || 'Error') |
| | | // Message({ |
| | | // message: res.message || 'Error', |
| | | // type: 'error', |
| | |
| | | <el-table |
| | | :data="tableData" |
| | | style="width: 100%; margin-bottom: 20px" |
| | | row-key="name" |
| | | row-key="id" |
| | | border |
| | | height="calc(100vh - 250px)" |
| | | default-expand-all |
| | |
| | | <el-form ref="form" :model="searchData" label-width="80px"> |
| | | <el-col :span="6"> |
| | | <el-form-item label="æ¥ææ¥æ:" > |
| | | <el-input :disabled="true" v-model="searchData.from_time"></el-input> |
| | | <el-input :disabled="true" v-model="searchData.formTime"></el-input> |
| | | |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="产åç¼å·:"> |
| | | <el-input :disabled="true" v-model="searchData.mcode"></el-input> |
| | | <el-input :disabled="true" v-model="searchData.code"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-form> |
| | |
| | | <el-col :span="6"> |
| | | |
| | | <el-form-item label="ç»è®°æ¥æ:"> |
| | | <el-input :disabled="true" v-model="searchData.end_time"></el-input> |
| | | <el-input :disabled="true" v-model="searchData.endTime"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | |
| | | <div> |
| | | <el-card style="margin: 10px;"> |
| | | <el-table |
| | | :data="tableData" |
| | | :data="insProducts" |
| | | border |
| | | style="width: 100%"> |
| | | <el-table-column |
| | |
| | | width="50"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="date" |
| | | prop="name" |
| | | label="项ç®" |
| | | width="180"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | prop="unit" |
| | | label="åä½" |
| | | width="180"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="kk" |
| | | prop="internal" |
| | | label="æ åå¼"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="zz" |
| | | prop="required" |
| | | label="å
æ§å¼"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="oo" |
| | | wight="200" |
| | | label="ç»éªäºº"> |
| | | <template> |
| | | <el-select v-model="value" placeholder="黿æ"> |
| | | <el-option |
| | | v-for="item in cities" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | <span style="float: left">{{ item.label }}</span> |
| | | <span style="float: right; color: #8492a6; font-size: 13px">{{ item.value }}</span> |
| | | </el-option> |
| | | <el-table-column prop="userName" label="ç»éªäºº"> |
| | | <template slot-scope="scope"> |
| | | <el-select v-model="value" size="small" slot="append" style="width: 220px;"> |
| | | <el-option v-for="item in ZERENren" :key="item.id" :label="item.name" :value="item.name"></el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="pp" |
| | | prop="inspectionMaterialId" |
| | | label="å®éªè®¾å¤"> |
| | | <template> |
| | | <el-select v-model="value" placeholder="æåæº"> |
| | | <el-option |
| | | v-for="item in cities" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-select v-model="scope.row.checker" size="small" slot="append" style="width: 260px;"> |
| | | <el-option v-for="item in checkeroptions" :key="item.value" :label="item.label">{{ item.label }}</el-option> |
| | | </el-select> --> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { selectInspectsList, selectAll, addInspect} from '@/api/experiment/planAssignments' |
| | | import { selectInspectsListById,selectUser} from '@/api/experiment/planAssignments' |
| | | export default { |
| | | data(){ |
| | | return { |
| | | searchData:{ |
| | | from_time:'', |
| | | supplier:'', |
| | | mcode:'', |
| | | name:'', |
| | | specifications:'', |
| | | unit:'', |
| | | num:'', |
| | | userName:'', |
| | | end_time:'', |
| | | |
| | | }, |
| | | value:{}, |
| | | cities:[{ |
| | | value: 'Beijing', |
| | | label: 'é»å°æ' |
| | | }, { |
| | | value: 'Shanghai', |
| | | label: 'é»å°æ' |
| | | }, { |
| | | }], |
| | | tableData:[{ |
| | | date: '导线', |
| | | name: 'mm', |
| | | kk:'30.0', |
| | | zz:'30.0', |
| | | oo:'黿æ', |
| | | pp:'æåæº', |
| | | },{ |
| | | date: '导线', |
| | | name: 'mm', |
| | | kk:'30.0', |
| | | zz:'30.0', |
| | | oo:'黿æ', |
| | | pp:'æåæº', |
| | | },{ |
| | | date: '导线', |
| | | name: 'mm', |
| | | kk:'30.0', |
| | | zz:'30.0', |
| | | oo:'黿æ', |
| | | pp:'æåæº', |
| | | },{ |
| | | date: '导线', |
| | | name: 'mm', |
| | | kk:'30.0', |
| | | zz:'30.0', |
| | | oo:'黿æ', |
| | | pp:'æåæº', |
| | | },{ |
| | | date: '导线', |
| | | name: 'mm', |
| | | kk:'30.0', |
| | | zz:'30.0', |
| | | oo:'黿æ', |
| | | pp:'æåæº', |
| | | }], |
| | | currentPage:1, |
| | | pageSize:8, |
| | | id:'' |
| | | searchData:{ }, |
| | | insProducts:[], |
| | | uu:'', |
| | | value:'' |
| | | } |
| | | }, |
| | | created(){ |
| | | console.log(this.$route.query.icode); |
| | | this.id = this.$route.query.icode; |
| | | this.selectInspectsList() |
| | | console.log(this.$route.query.id); |
| | | this.uu = this.$route.query.id; |
| | | this.selectInspectsListById() |
| | | this.selectUser() |
| | | }, |
| | | methods: { |
| | | async goback(){ |
| | | |
| | | //è¿å |
| | | async goback(){ |
| | | this.$router.push({name:'inspectionApplication'}) |
| | | }, |
| | | async selectInspectsList() { |
| | | |
| | | // è·åå页å表 |
| | | const res = await selectInspectsList({ countSize: this.pageSize, pageSize: this.currentPage ,message:this.id}) |
| | | // this.inspectionTable = data |
| | | console.log(res) |
| | | |
| | | // res.data.forEach((item) => { |
| | | // var formTime = item["DATE_FORMAT(`form_time`,'%Y-%m-%d')"] |
| | | // var startTime = item["DATE_FORMAT(i"]["`start_time`,'%Y-%m-%d')"] |
| | | // var endTime = item["DATE_FORMAT(i"]["`end_time`,'%Y-%m-%d')"] |
| | | // var checkdate = startTime + '~' + endTime |
| | | // var createTime = item["DATE_FORMAT(i"]["`create_time`,'%Y-%m-%d')"] |
| | | // item['formTime'] = formTime // æ¥ææ¥æ |
| | | // item['checkdate'] = checkdate // æ£éªæ¥æ |
| | | // item['createTime'] = createTime // ç»è®°æ¥æ |
| | | // }) |
| | | this.searchData.mcode = res.data.row[0].mcode |
| | | this.searchData.supplier = res.data.row[0].supplier |
| | | this.searchData.from_time = res.data.row[0]["DATE_FORMAT(`form_time`,'%Y-%m-%d')"] |
| | | this.searchData.name = res.data.row[0].name |
| | | this.searchData.specifications = res.data.row[0].specifications |
| | | this.searchData.unit = res.data.row[0].unit |
| | | this.searchData.num = res.data.row[0].num |
| | | this.searchData.end_time = res.data.row[0]["DATE_FORMAT(i"]["`end_time`,'%Y-%m-%d')"] |
| | | this.searchData.userName = res.data.row[0].userName |
| | | |
| | | |
| | | |
| | | |
| | | const data = res.data.row |
| | | data.forEach((item) => { |
| | | var formTime = item["DATE_FORMAT(`form_time`,'%Y-%m-%d')"] |
| | | var startTime = item["DATE_FORMAT(i"]["`start_time`,'%Y-%m-%d')"] |
| | | var endTime = item["DATE_FORMAT(i"]["`end_time`,'%Y-%m-%d')"] |
| | | var checkdate = startTime + '~' + endTime |
| | | var createTime = item["DATE_FORMAT(i"]["`create_time`,'%Y-%m-%d')"] |
| | | item['formTime'] = formTime // æ¥ææ¥æ |
| | | item['checkdate'] = checkdate // æ£éªæ¥æ |
| | | item['createTime'] = createTime // ç»è®°æ¥æ |
| | | }) |
| | | this.inspectionTable = data |
| | | this.total = res.data.total |
| | | //æ£éªå责任人 |
| | | async selectUser(){ |
| | | const res = await selectUser() |
| | | this.ZERENren = res.data |
| | | // console.log(this.ZERENren); |
| | | }, |
| | | //æ£éªå表 |
| | | async selectInspectsListById() { |
| | | const res = await selectInspectsListById({id:this.uu}) |
| | | this.searchData = res.data |
| | | this.insProducts = res.data.insProducts |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | label="æ£éªç±»å" |
| | | min-width="80px"> |
| | | <template slot-scope="scope"> |
| | | <div v-if="scope.row.type === 0" ><span>åæææ£éª</span></div> |
| | | <div v-if="scope.row.type === 0" ><span >åæææ£éª</span></div> |
| | | <div v-if="scope.row.type === 1" ><span>å§ææ£éª</span></div> |
| | | <div v-if="scope.row.type === 2" ><span>æåæ£éª</span></div> |
| | | </template> |
| | |
| | | title="æ°å¢æ£éªå" |
| | | :visible.sync="checkTypeVisible" |
| | | width="50%" |
| | | top="10vh" |
| | | > |
| | | <div class="check-box"> |
| | | <el-radio-group v-model="type" @change="handleRadioChange"> |
| | | <el-radio :label="0" border >åæææ£éª</el-radio> |
| | | <el-radio :label="1" border>å§ææ£éª</el-radio> |
| | | <el-radio :label="2" border>æåæ£éª</el-radio> |
| | | <el-radio :style="`background-color: ${type==0?'rgb(170, 236, 214)':'#fff'};border-radius: 10px;`" :label="0" border>åæææ£éª</el-radio> |
| | | <el-radio :style="`background-color: ${type==1?'rgb(170, 236, 214)':'#fff'};border-radius: 10px;`" :label="1" border>å§ææ£éª</el-radio> |
| | | <el-radio :style="`background-color: ${type==2?'rgb(170, 236, 214)':'#fff'};border-radius: 10px;`" :label="2" border>æåæ£éª</el-radio> |
| | | </el-radio-group> |
| | | </div> |
| | | <div v-if="type === 0 || type === ''"> |
| | | <el-form :model="infoForm" ref="infoForm" class="checkTypeForm" label-position="top" label-width="200px" size="mini"> |
| | | <div v-if="type === 0"> |
| | | <el-form :model="infoForm" ref="infoForm" class="checkTypeForm" label-position="top" label-width="200px" size="medium"> |
| | | <el-row :gutter="100"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="æ¥ææ¥æï¼"> |
| | |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="checkTypeVisible = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="addInspection">ç¡® å®</el-button> |
| | | <!-- <el-button type="primary" @click="addInspection">ç¡® å®</el-button> --> |
| | | <el-button type="primary" @click="QUEding">ç¡® å®</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- ç¡®å®è·³è½¬åºæ¬åºå¼¹çª --> |
| | | <el-dialog |
| | | title="æ ååº" |
| | | :visible.sync="Standardframe" |
| | | width="48%" |
| | | |
| | | > |
| | | <!-- <el-form :model="form"> |
| | | <el-form-item label="è¯·éæ©å®¡æ ¸ç»æ:" :label-width="formLabelWidth"> |
| | | </el-form-item> |
| | | </el-form> --> |
| | | |
| | | <!-- <div slot="footer" class="dialog-footer"> --> |
| | | <el-table |
| | | :data="tableData" |
| | | style="width: 100%; margin-bottom: 20px" |
| | | row-key="name" |
| | | border |
| | | height="calc(100vh - 250px)" |
| | | default-expand-all |
| | | ref="multipleTable" |
| | | :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" |
| | | > |
| | | <el-table-column type="selection" label="åºå·"> </el-table-column> |
| | | <el-table-column |
| | | type="index" |
| | | width="50px" |
| | | label="åºå·" |
| | | ></el-table-column> |
| | | <el-table-column label="项ç®åç§°" sortable> |
| | | <template scope="scope"> |
| | | <el-tag |
| | | ><div |
| | | class="firstDiv" |
| | | :style="`color: ${ |
| | | scope.row.code == '[1]' ? '#16a7ff' : '#58c173' |
| | | }`" |
| | | > |
| | | {{ scope.row.code == "[1]" ? "01" : "02" }} |
| | | </div> |
| | | <span style="color: black">{{ scope.row.name }}</span></el-tag |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="unit" |
| | | label="åä½" |
| | | sortable |
| | | ></el-table-column> |
| | | <el-table-column label="æ åå¼" sortable> |
| | | <template scope="scope"> |
| | | <el-input |
| | | v-if="scope.row.edit === true || scope.row.code === '[2]'" |
| | | @blur="requiredOnfocus(scope)" |
| | | v-model="scope.row.required" |
| | | placeholder="请è¾å
¥æ åå¼" |
| | | ></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="internal" label="å
æ§å¼" sortable> |
| | | <template scope="scope"> |
| | | <el-input |
| | | v-if="scope.row.edit === true || scope.row.code === '[2]'" |
| | | @blur="requiredOnfocus(scope)" |
| | | v-model="scope.row.internal" |
| | | placeholder="请è¾å
¥å
æ§å¼" |
| | | ></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- </div> --> |
| | | </el-dialog> |
| | | |
| | | <!-- åæææ£éªæ¨¡ææ¡ --> |
| | | <el-dialog |
| | | title="åæææ£éª" |
| | |
| | | /> |
| | | <el-table-column |
| | | prop="formTime" |
| | | label="æ¥ææ¥æ" |
| | | label="å§æbian'ha" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | |
| | | </template> |
| | | <template v-else> |
| | | <router-view /> |
| | | |
| | | </template> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { selectInspectsList, selectAll, addInspect} from '@/api/experiment/planAssignments' |
| | | import { selectInspectsList, selectAll, addInspect,getCommisionList} from '@/api/experiment/planAssignments' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | amount: '', |
| | | checkdate: [] |
| | | }, |
| | | infoForm:'', |
| | | infoForm:{}, |
| | | commisionSelection:{ |
| | | entrust_coding: '', |
| | | entrusted: '', |
| | |
| | | pageSize: 8, // æ¯é¡µçæ°æ®æ¡æ° |
| | | radioValue: 'å
¨é¨', |
| | | checkTypeVisible: false, |
| | | type: '', // é»è®¤ä¸éä¸çç¶æ |
| | | type: 0, // é»è®¤ä¸éä¸çç¶æ |
| | | rawmaterialVisible: false, |
| | | commisionVisible: false, |
| | | tmp: '' |
| | | tmp: '', |
| | | Standardframe: false, |
| | | tableData: [] |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | |
| | | // console.log(res); |
| | | this.inspectionTable = row; |
| | | console.log(row.icode); |
| | | this.icode = row.icode |
| | | this.$router.push({name:'Viewdetails',query: {icode:row.icode}}); |
| | | console.log(row.id); |
| | | this.id = row.id |
| | | this.$router.push({name:'Viewdetails',query: {id:row.id}}); |
| | | this.selectInspectsList() |
| | | }, |
| | | //å§ææ£éª |
| | | async getCommisionList() { |
| | | const res = await getCommisionList({pageNo:1,pageSize:10 }) |
| | | this.commisionTable = res.data |
| | | console.log(this.commisionTable); |
| | | }, |
| | | async selectInspectsList() { |
| | | // è·åå页å表 |
| | | const res = await selectInspectsList({ countSize: this.pageSize, pageSize: this.currentPage,message:this.icode}) |
| | | const res = await selectInspectsList({ countSize: this.pageSize, pageSize: this.currentPage,message:this.id}) |
| | | // this.inspectionTable = data |
| | | // console.log(res.data.row) |
| | | const data = res.data.row |
| | |
| | | async handleRadioChange(){ |
| | | if(this.type === 0){ |
| | | // åæææ¥æ£ |
| | | // this.rawmaterialVisible = true |
| | | // const res = await selectAll({type: this.type}) |
| | | // var data = res.data |
| | | // data.forEach((item)=>{ |
| | | // var checkdate = [] |
| | | // checkdate.push(item['createTime']) |
| | | // checkdate.push(item['updateTime']) |
| | | // item['checkdate'] = checkdate // æ£éªæ¥æ |
| | | // }) |
| | | this.$router.push({ name: 'ReportForInspection' }); |
| | | this.rawmaterialVisible = true |
| | | const res = await selectAll({type: this.type}) |
| | | var data = res.data |
| | | data.forEach((item)=>{ |
| | | var checkdate = [] |
| | | checkdate.push(item['createTime']) |
| | | checkdate.push(item['updateTime']) |
| | | item['checkdate'] = checkdate // æ£éªæ¥æ |
| | | }) |
| | | // this.infoForm = res.data |
| | | // this.$router.push({ name: 'ReportForInspection' }); |
| | | }else if(this.type === 1){ |
| | | // this.commisionVisible = true |
| | | // const res = await selectAll({type: this.type}) |
| | | this.commisionVisible = true |
| | | const res = await getCommisionList({pageNo:1,pageSize:10}) |
| | | // var data = res.data |
| | | // data.forEach((item)=>{ |
| | | // var checkdate = [] |
| | |
| | | // item['checkdate_'] = item['startTime'] + '~' + item['endTime'] |
| | | // item['checkdate'] = checkdate // æ£éªæ¥æ |
| | | // }) |
| | | // this.commisionTable = res.data |
| | | this.$router.push({ name: 'CommissionInspection' }); |
| | | this.commisionTable = res.data |
| | | // this.$router.push({ name: 'CommissionInspection' }); |
| | | } |
| | | }, |
| | | // æ°å¢æ£éª |
| | |
| | | type: this.type, |
| | | unit: this.finishedTable.unit }) |
| | | } |
| | | this.type = '' |
| | | this.type = 0 |
| | | this.checkTypeVisible = false |
| | | this.$message({ |
| | | message: 'æ·»å æåï¼', |
| | |
| | | console.log(`å½å页: ${val}`) |
| | | this.currentPage = val |
| | | this.selectInspectsList() |
| | | }, |
| | | //ç¡®å®è·³è½¬ |
| | | QUEding(){ |
| | | this.Standardframe = true |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | height: auto; |
| | | font-size: 22px !important; |
| | | padding: 20px 40px !important; |
| | | padding: 40px 50px !important; |
| | | ::v-deep .el-radio__label{ |
| | | font-size: 22px !important; |
| | | padding-left: 0px !important; |
| | |
| | | </span> |
| | | </template></el-table-column |
| | | > |
| | | <el-table-column |
| | | <el-table-columne |
| | | prop="materialName" |
| | | label="æ ·ååç§°" |
| | | min-width="10%" |
| | |
| | | <el-table-column prop="status" label="审æ¹ç¶æ" min-width="8%" v-model="Auditconclusion"> |
| | | <template slot-scope="scope"> |
| | | <span> |
| | | <el-tag type="warning">{{ |
| | | <el-tag :color="scope.row.status == 0 ? '' : 'rgb(187, 237, 221)'" type="warning">{{ |
| | | scope.row.status == 0 ? "å¾
éè¿" : "éè¿" |
| | | }}</el-tag> |
| | | </span> |
| | |
| | | title="åå§è®°å½å®¡æ ¸" |
| | | :visible.sync="checkskipvisible" |
| | | width="30%" |
| | | |
| | | |
| | | > |
| | | <el-form :model="form"> |
| | | <el-form-item label="è¯·éæ©å®¡æ ¸ç»æ:" :label-width="formLabelWidth"> |
| | |
| | | reportTable: [], |
| | | page: 1, |
| | | total: 0, |
| | | pageSize: 10, |
| | | pageSize: 8, |
| | | checkskipvisible: false, |
| | | form:{}, |
| | | // handleClose:{}, |
| | |
| | | Auditconclusion:{}, |
| | | tableRow: {}, |
| | | |
| | | |
| | | |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | //éè¿ |
| | | async checkskip(row) { |
| | | console.log(this.tableRow); |
| | | this.reportTable[this.tableRow.$index].status=2 |
| | | this.reportTable[this.tableRow.$index].status=1 |
| | | this.transmitData(this.tableRow.row.id) |
| | | this.checkskipvisible= false |
| | | this.$message({ |
| | | message: 'éè¿æå', |
| | | type: 'success' |
| | | }); |
| | | |
| | | }, |
| | | //ä¸éè¿ |
| | |
| | | this.reportTable[this.tableRow.$index].status=0 |
| | | this.transmitData(this.tableRow.row.id) |
| | | this.checkskipvisible= false |
| | | this.$message({ |
| | | message: 'å¾
éè¿', |
| | | type: 'warning' |
| | | }); |
| | | |
| | | }, |
| | | //å®¡æ ¸ |
| | | async transmitData(id) { |
| | | let param={"id":id,"result":1} |
| | | let data = await checkApi(param) |
| | | async transmitData(id) { |
| | | let param={"id":id,"result":2} |
| | | let data = await checkApi(param) |
| | | }, |
| | | // æ¥è¯¢å表 |
| | | async getData() { |
| | |
| | | <template> |
| | | <div class="add_commision"> |
| | | <div class="content-main"> |
| | | <div class="firstBox"> |
| | | <div class="title">å§æä¿¡æ¯</div> |
| | | <div class="tableBox"> |
| | | <div class="tableBox-header"> |
| | | <el-button class="split" @click="dialogueFormVisible = true" type="primary" size="small" style="background-color: rgb(1, 102, 226);">æ·»å æ ·å</el-button> |
| | | <!-- <el-input |
| | | <div class="add_commision"> |
| | | <div class="content-main"> |
| | | <div class="firstBox"> |
| | | <div class="title">å§æä¿¡æ¯</div> |
| | | <div class="tableBox"> |
| | | <div class="tableBox-header"> |
| | | <el-button class="split" @click="dialogueFormVisible = true" type="primary" size="small" |
| | | style="background-color: rgb(1, 102, 226);">æ·»å æ ·å</el-button> |
| | | <!-- <el-input |
| | | v-model="searchData" |
| | | class="input-form split" |
| | | placeholder="æ«æäºç»´ç å½å
¥æ ·å..." |
| | |
| | | style="width: 200px;" |
| | | > |
| | | </el-input>--> |
| | | <el-button type="primary" size="small" style="background-color: rgb(1, 102, 226);">éç½®</el-button> |
| | | </div> |
| | | <el-table |
| | | ref="detectionInfo" |
| | | :max-height="800" |
| | | :cell-style="{textAlign: 'center'}" |
| | | :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}" |
| | | :data="detectionInfo" |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column |
| | | type="index" |
| | | label="åºå·" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="sampleNumber" |
| | | label="æ ·åç¼å·" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="sampleName" |
| | | label="æ ·ååç§°" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="specificationsModels" |
| | | label="è§æ ¼åå·" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | | prop="unit" |
| | | label="åä½" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="samplesNumber" |
| | | label="æ°é" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="addway" |
| | | label="æ·»å æ¹å¼" |
| | | min-width="8%"> |
| | | <template slot-scope="scope"> |
| | | <div v-if="scope.row.addway === 0"> |
| | | <el-tag :type= 'success' disable-transitions>æ«æ</el-tag> |
| | | </div> |
| | | <div v-if="scope.row.addway === 1"> |
| | | <el-tag :type= 'primary' disable-transitions>å½å
¥</el-tag> |
| | | </div> |
| | | <div v-else></div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="experiment" |
| | | label="è¯éª" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | prop="remarks" |
| | | label="夿³¨" |
| | | min-width="8%" |
| | | /> |
| | | <el-table-column |
| | | label="æä½" |
| | | min-width="8%" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small">ä¿®æ¹</el-button> |
| | | <el-button type="text" size="small" @click="deleteRow(scope.row)">å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- åé¡µå¨ --> |
| | | <div> |
| | | <el-pagination |
| | | class="pagination" |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="currentPage" |
| | | :page-sizes="[100, 200, 300, 400]" |
| | | :page-size="100" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="400"> |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | <div class="secondBox"> |
| | | <el-row class="header"> |
| | | <el-col :span="12">åºæ¬ä¿¡æ¯</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <!-- ç¹å»è¿åï¼å½å页é¢å¼ä¸ºfalse --> |
| | | <!-- <el-button type="primary" size="mini" style="background-color: rgb(1, 102, 226); ">æå°å§æå</el-button> --> |
| | | </el-col> |
| | | </el-row> |
| | | <el-form :model="infoForm" ref="infoForm" class="infoForm" label-position="right" label-width="100px" size="mini" > |
| | | <div class="formwrapper"> |
| | | <el-row :gutter="200"> |
| | | <el-col :span="5"> |
| | | <el-form-item label="å§æç¼å·ï¼"> |
| | | <el-input style="width: 160px" type="text" :value="infoForm.commisioncode" readonly disabled="true" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="å§æåä½ï¼"> |
| | | <el-input style="width: 160px" v-model="infoForm.department" placeholder="请è¾å
¥å§æåä½" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="è系人ï¼"> |
| | | <el-input style="width: 160px" v-model="infoForm.contacter" placeholder="请è¾å
¥å§æåä½" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="èç³»çµè¯ï¼"> |
| | | <el-input style="width: 160px" v-model="infoForm.tel" placeholder="请è¾å
¥èç³»çµè¯" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="200"> |
| | | <el-col :span="5"> |
| | | <el-form-item label="èç³»å°åï¼" > |
| | | <el-input style="width: 160px;" v-model="infoForm.address" placeholder="请è¾å
¥èç³»å°å" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="宿æéï¼"> |
| | | <el-date-picker |
| | | v-model="infoForm.deadline" |
| | | type="date" |
| | | placeholder="éæ©æ¥æ" |
| | | style="width: 160px;"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="éæ ·æ¶é´ï¼"> |
| | | <el-date-picker |
| | | v-model="infoForm.time" |
| | | type="date" |
| | | placeholder="éæ©æ¥æ" |
| | | style="width: 160px;"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="éæ ·æ¹å¼ï¼"> |
| | | <el-select style="width: 160px;" v-model="infoForm.way" size="small" placeholder="éæ ·"> |
| | | <el-option v-for="options in sampleDeliveryMode" :key="options.key" :value="options.value">{{ options.value }}</el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="200"> |
| | | <el-col :span="5"> |
| | | <el-form-item label="éæ ·äººï¼" > |
| | | <el-input style="width: 160px;" v-model="infoForm.sender" placeholder="请è¾å
¥éæ ·äºº" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="éæ ·äººçµè¯ï¼" > |
| | | <el-input style="width: 160px;" v-model="infoForm.sendertel" placeholder="请è¾å
¥éæ ·äººçµè¯" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="æ¥åæ°ï¼"> |
| | | <el-input style="width: 160px;" v-model="infoForm.num" placeholder="请è¾å
¥æ¥åæ°" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="姿夿³¨ï¼"> |
| | | <el-input style="width: 160px;" v-model="infoForm.other" placeholder="夿³¨" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div class="submitBtn"> |
| | | <el-button type="primary" size="small" @click="submitInspection" style="background-color: rgb(1, 102, 226);">æäº¤</el-button> |
| | | <!-- ç¹å»è¿åï¼å½å页é¢å¼ä¸ºfalse --> |
| | | <el-button type="primary" size="mini" style="background-color: rgb(1, 102, 226); ">æå°å§æå</el-button> |
| | | </div> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | <div class="checkType"> |
| | | <el-dialog |
| | | title="æ·»å ææ " |
| | | :visible.sync="dialogueFormVisible" |
| | | width="40%" |
| | | > |
| | | <el-form :model="addPointerForm" ref="addPointerForm" class="addPointerForm" label-position="right" label-width="100px" size="mini"> |
| | | <el-row :gutter="50"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="æ ·åç¼å·ï¼"> |
| | | <el-select style="width: 160px;" v-model="addPointerForm.sampleNumber" size="small" placeholder="è¯·éæ©æ ·åç¼å·"> |
| | | <el-option v-for="options in samplecodeoptions" :value="options.value" :key="options.key" >{{ options.value }}</el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="æ ·ååç§°ï¼"> |
| | | <el-select style="width: 160px;" v-model="addPointerForm.sampleName" size="small" placeholder="è¯·éæ©æ ·ååç§°"> |
| | | <el-option v-for="options in sampleoptions" :value="options.value" :key="options.key">{{ options.value }}</el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="50"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="è§æ ¼åå·ï¼"> |
| | | <el-select style="width: 160px;" v-model="addPointerForm.specificationsModels" size="small" placeholder="è¯·éæ©æ ·ååç§°"> |
| | | <el-option v-for="options in model_spe_options" :value="options.value" :key="options.key">{{ options.value }}</el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="æ ·ååä½ï¼"> |
| | | <el-input style="width: 160px" type="text" v-model="addPointerForm.unit" placeholder="请è¾å
¥åä½" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="50"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="æ ·åæ°éï¼"> |
| | | <el-input style="width: 160px" type="text" v-model="addPointerForm.samplesNumber" placeholder="请è¾å
¥æ°é" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="夿³¨ï¼"> |
| | | <el-input style="width: 160px" type="text" v-model="addPointerForm.remarks" placeholder="请è¾å
¥å¤æ³¨" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="50"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="æ·»å å®éªï¼"> |
| | | <el-checkbox-group v-model="addPointerForm.experiment" style="display: flex; flex-direction: column;"> |
| | | <el-checkbox v-for="expers in experList" :label="expers.label" :key="expers.key">{{ expers.label }}</el-checkbox> |
| | | </el-checkbox-group> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="addInspection">æ·»å </el-button> |
| | | <el-button @click="dialogueFormVisible = false">å æ¶</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-button type="primary" size="small" style="background-color: rgb(1, 102, 226);">éç½®</el-button> |
| | | </div> |
| | | <el-table ref="detectionInfo" :max-height="800" :cell-style="{textAlign: 'center'}" |
| | | :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}" |
| | | :data="detectionInfo" style="width: 100%;margin-bottom: 20px;"> |
| | | <el-table-column type="index" label="åºå·" min-width="10%" /> |
| | | <el-table-column prop="sampleNumber" label="æ ·åç¼å·" min-width="8%" /> |
| | | |
| | | <el-table-column prop="sampleName" label="æ ·ååç§°" min-width="10%" /> |
| | | |
| | | <el-table-column prop="specificationsModels" label="è§æ ¼åå·" min-width="10%" /> |
| | | <el-table-column prop="unit" label="åä½" min-width="8%" /> |
| | | <el-table-column prop="samplesNumber" label="æ°é" min-width="8%" /> |
| | | <el-table-column prop="addway" label="æ·»å æ¹å¼" min-width="8%"> |
| | | <template slot-scope="scope"> |
| | | <div v-if="scope.row.addway === 0"> |
| | | <el-tag type="success" disable-transitions>æ«æ</el-tag> |
| | | </div> |
| | | <div v-if="scope.row.addway === 1"> |
| | | <el-tag type="primary" disable-transitions>å½å
¥</el-tag> |
| | | </div> |
| | | <div v-else></div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="remarks" label="夿³¨" min-width="8%" /> |
| | | <el-table-column label="æä½" min-width="8%"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small">ä¿®æ¹</el-button> |
| | | <el-button type="text" size="small" @click="deleteRow(scope.row)">å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <div class="secondBox"> |
| | | <el-row class="header"> |
| | | <el-col :span="12" style="font-size: 16px;margin-bottom: 5px;">åºæ¬ä¿¡æ¯</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | </el-col> |
| | | </el-row> |
| | | <el-form :model="infoForm" ref="infoForm" class="infoForm" label-position="right" label-width="100px" |
| | | size="mini"> |
| | | <div class="formwrapper"> |
| | | <el-row :gutter="200"> |
| | | <el-col :span="5"> |
| | | <el-form-item label="å§æç¼å·ï¼"> |
| | | <el-input style="width: 200px" type="text" :value="infoForm.commisioncode" readonly disabled |
| | | autocomplete="off" size="small" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="å§æåä½ï¼"> |
| | | <el-input style="width: 200px" v-model="infoForm.department" placeholder="请è¾å
¥å§æåä½" size="small" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="è系人ï¼"> |
| | | <el-input style="width: 200px" v-model="infoForm.contacter" placeholder="请è¾å
¥å§æåä½" size="small" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="èç³»çµè¯ï¼"> |
| | | <el-input style="width: 200px" v-model="infoForm.tel" placeholder="请è¾å
¥èç³»çµè¯" size="small" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="200"> |
| | | <el-col :span="5"> |
| | | <el-form-item label="èç³»å°åï¼"> |
| | | <el-input style="width: 200px;" v-model="infoForm.address" placeholder="请è¾å
¥èç³»å°å" autocomplete="off" |
| | | size="small" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="宿æéï¼"> |
| | | <el-date-picker v-model="infoForm.deadline" type="date" placeholder="éæ©æ¥æ" style="width: 200px;" |
| | | size="small"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="éæ ·æ¶é´ï¼"> |
| | | <el-date-picker v-model="infoForm.time" type="date" placeholder="éæ©æ¥æ" style="width: 200px;"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="éæ ·æ¹å¼ï¼"> |
| | | <el-select style="width: 200px;" v-model="infoForm.way" size="small" placeholder="éæ ·"> |
| | | <el-option v-for="options in sampleDeliveryMode" :key="options.key" |
| | | :value="options.value">{{ options.value }}</el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="200"> |
| | | <el-col :span="5"> |
| | | <el-form-item label="éæ ·äººï¼"> |
| | | <el-input style="width: 200px;" v-model="infoForm.sender" placeholder="请è¾å
¥éæ ·äºº" autocomplete="off" |
| | | size="small" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="éæ ·äººçµè¯ï¼"> |
| | | <el-input style="width: 200px;" v-model="infoForm.sendertel" placeholder="请è¾å
¥éæ ·äººçµè¯" |
| | | autocomplete="off" size="small" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="æ¥åæ°ï¼"> |
| | | <el-input style="width: 200px;" v-model="infoForm.num" placeholder="请è¾å
¥æ¥åæ°" autocomplete="off" |
| | | size="small" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="姿夿³¨ï¼"> |
| | | <el-input style="width: 200px;" v-model="infoForm.other" placeholder="夿³¨" autocomplete="off" |
| | | size="small" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div class="submitBtn"> |
| | | <el-button type="primary" size="small" @click="submitInspection" |
| | | style="background-color: rgb(1, 102, 226);">æäº¤</el-button> |
| | | <!-- ç¹å»è¿åï¼å½å页é¢å¼ä¸ºfalse --> |
| | | <el-button type="primary" size="mini" style="background-color: rgb(1, 102, 226); ">æå°å§æå</el-button> |
| | | </div> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | <div class="checkType"> |
| | | <el-dialog title="æ·»å æ ·å" :visible.sync="dialogueFormVisible" width="40%" top="30vh"> |
| | | <el-form :model="addPointerForm" ref="addPointerForm" class="addPointerForm" label-position="right" |
| | | label-width="100px" size="mini"> |
| | | <el-row :gutter="50"> |
| | | <el-col :span="11"> |
| | | <el-form-item label="æ ·åç¼å·ï¼"> |
| | | <el-input v-model="addPointerForm.sampleNumber" size="small" disabled> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="11"> |
| | | <el-form-item label="æ ·ååç§°ï¼"> |
| | | <el-select v-model="addPointerForm.sampleName" size="small" placeholder="è¯·éæ©æ ·ååç§°" |
| | | @change="upMaterialName"> |
| | | <el-option v-for="options in sampleoptions" :value="options.key" :label="options.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="50"> |
| | | <el-col :span="11"> |
| | | <el-form-item label="è¯å®æ åï¼"> |
| | | <el-select v-model="addPointerForm.addway" size="small" placeholder="è¯·éæ©è¯å®æ å"> |
| | | <el-option v-for="options in model_spe_options" :value="options.value" |
| | | :key="options.key">{{ options.value }}</el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="11"> |
| | | <el-form-item label="è§æ ¼åå·ï¼"> |
| | | <el-select v-model="addPointerForm.specificationsModels" size="small" placeholder="请å
éæ©æ ·ååç§°"> |
| | | <el-option v-for="options in model_spe_options" :value="options.value" |
| | | :key="options.key">{{ options.value }}</el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | </el-row> |
| | | <el-row :gutter="50"> |
| | | |
| | | <el-col :span="11"> |
| | | <el-form-item label="æ ·ååä½ï¼"> |
| | | <el-input type="text" v-model="addPointerForm.unit" placeholder="请è¾å
¥åä½" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | <el-col :span="11"> |
| | | <el-form-item label="æ ·åæ°éï¼"> |
| | | <el-input type="text" v-model="addPointerForm.samplesNumber" placeholder="请è¾å
¥æ°é" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | </el-row> |
| | | <el-row :gutter="50"> |
| | | <el-col :span="9"> |
| | | <el-form-item label="æ·»å 项ç®ï¼"> |
| | | <el-checkbox-group v-model="addPointerForm.experiment" style="display: flex; flex-direction: column;"> |
| | | <el-checkbox v-for="expers in experList" :label="expers.label" |
| | | :key="expers.key">{{ expers.label }}</el-checkbox> |
| | | </el-checkbox-group> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="41"> |
| | | <el-form-item label="夿³¨ï¼"> |
| | | <el-input type="textarea" :autosize="{ minRows: 4, maxRows: 20}" style="width: 200px;" v-model="addPointerForm.remarks" placeholder="请è¾å
¥å¤æ³¨" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="addInspection">æ·»å </el-button> |
| | | <el-button @click="dialogueFormVisible = false">å æ¶</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import {getSampleName, getModelSpecification, getlink, addInspection} from '@/api/inspection/commisioninspection' |
| | | export default { |
| | | data() { |
| | | return { |
| | | currentPage: 0, |
| | | searchData: '', |
| | | infoForm: { |
| | | commisioncode: '', |
| | | department: '', |
| | | contacter: '', |
| | | tel: '', |
| | | address: '', |
| | | deadline: '', |
| | | time: '', |
| | | way: '', |
| | | sender: '', |
| | | sendertel: '', |
| | | num: '', |
| | | other: '' |
| | | }, |
| | | detectionInfo: [], |
| | | addPointerForm:{ |
| | | sampleNumber: '', |
| | | sampleName: '', |
| | | specificationsModels: '', |
| | | unit: '', |
| | | samplesNumber: '', |
| | | remarks: '', |
| | | experiment: [], |
| | | addway: '' |
| | | }, |
| | | experList:[{ |
| | | key: '1', |
| | | label: 'å¤è§æ£æ¥' |
| | | },{ |
| | | key: '2', |
| | | label: 'å¨ä½çµåè¯éª' |
| | | },{ |
| | | key: '3', |
| | | label: 'çµé»ç®¡æ³æ¼çµæµè¯éª' |
| | | },{ |
| | | key: '4', |
| | | label: 'ç»ç¼é¨å交æµèåè¯éª' |
| | | }], |
| | | sampleoptions:[{ |
| | | key:'1', |
| | | value: 'é项1' |
| | | },{ |
| | | key:'2', |
| | | value: 'é项2' |
| | | }], |
| | | samplecodeoptions:[{ |
| | | key:'1', |
| | | value: '' |
| | | }], |
| | | model_spe_options:[{ |
| | | key:'1', |
| | | value: 'é项1' |
| | | },{ |
| | | key: '2', |
| | | value: 'é项2' |
| | | }], |
| | | sampleDeliveryMode:[{ |
| | | key: '1', |
| | | value: 'éæ ·' |
| | | },{ |
| | | key: '2', |
| | | value: 'ä¸é¨' |
| | | }], |
| | | dialogueFormVisible: false, |
| | | showDetail: false |
| | | } |
| | | }, |
| | | created(){ |
| | | this.getlink() |
| | | }, |
| | | mounted(){ |
| | | this.getSampleName() |
| | | this.getModelSpecification() |
| | | }, |
| | | methods: { |
| | | // è·å龿¥link |
| | | getlink(){ |
| | | getlink().then((result)=>{ |
| | | this.$store.commit('settings/SAVE_LINK',result.data) |
| | | console.log(this.$store.state.settings.link) |
| | | }) |
| | | }, |
| | | async getSampleName(){ |
| | | const res = await getSampleName() |
| | | // console.log('res',res.data) |
| | | this.sampleoptions = res.data.map((item)=>{ |
| | | return{ |
| | | key:item.id.toString(), |
| | | value:item.name |
| | | } |
| | | }) |
| | | this.samplecodeoptions = res.data.map((item)=>{ |
| | | return{ |
| | | key:item.id.toString(), |
| | | value:item.code |
| | | } |
| | | }) |
| | | }, |
| | | async getModelSpecification(){ |
| | | const res = await getModelSpecification({materialId: '1'}) |
| | | // console.log(res) |
| | | this.model_spe_options = res.data.map((item)=>{ |
| | | return{ |
| | | key:item.specificationsId, |
| | | value:item.specificationsName |
| | | } |
| | | }) |
| | | }, |
| | | addInspection(){ |
| | | let exper = this.addPointerForm.experiment[0] |
| | | this.addPointerForm.addway = 1 |
| | | for(let i=1;i<this.addPointerForm.experiment.length;i++){ |
| | | exper += ',' + this.addPointerForm.experiment[i] |
| | | } |
| | | // console.log(exper) |
| | | this.addPointerForm.experiment = exper |
| | | let tmp = this.addPointerForm |
| | | this.detectionInfo.push(tmp) |
| | | this.dialogueFormVisible = false |
| | | this.addPointerForm ={ |
| | | sampleNumber: '', |
| | | sampleName: '', |
| | | specificationsModels: '', |
| | | unit: '', |
| | | samplesNumber: '', |
| | | remarks: '', |
| | | experiment: [], |
| | | addway: '' |
| | | } |
| | | }, |
| | | async submitInspection(){ |
| | | let sampledeliveryway |
| | | if(this.infoForm.way === 'éæ ·'){ |
| | | sampledeliveryway = 1 |
| | | }else{ |
| | | sampledeliveryway = 2 |
| | | } |
| | | const res = await addInspection({completionDeadline: this.infoForm.deadline, |
| | | contactAddress: this.infoForm.address, |
| | | contactNumber: this.infoForm.tel, |
| | | contacts: this.infoForm.contacter, |
| | | entrustRemarks: this.infoForm.other, |
| | | entrusted: this.infoForm.department, |
| | | inspectionTime: this.infoForm.time, |
| | | linkDetectionList: this.detectionInfo, |
| | | reportNumber: parseInt(this.infoForm.num), |
| | | sampleDeliveryMode: sampledeliveryway, |
| | | sampleDeliveryPhone: this.infoForm.sendertel, |
| | | sampleSender: this.infoForm.sender}) |
| | | // const res = await addInspection({ |
| | | // completionDeadline: "2023-08-03", |
| | | // contactAddress: "æ±èåé", |
| | | // contactNumber: "12321423432", |
| | | // contacts: "å°é»", |
| | | // entrustRemarks: "姿夿³¨YPBH123456789YPBH123456789YPBH123456789", |
| | | // entrusted: "é¿éå·´å·´", |
| | | // inspectionTime: "2023-08-03", |
| | | // linkDetectionList: [ |
| | | // { |
| | | // "experiment": "忢¦", |
| | | // "remarks": "éè¿äº", |
| | | // "sampleName": "å卿º", |
| | | // "sampleNumber": "YPBH123456789", |
| | | // "samplesNumber": 20, |
| | | // "specificationsModels": "GGXH-AAAAA", |
| | | // "unit": "ç¾åº¦" |
| | | // } |
| | | // ], |
| | | // reportNumber: 23, |
| | | // sampleDeliveryMode: 1, |
| | | // sampleDeliveryPhone: "123456789676", |
| | | // sampleSender: "å°ç½" |
| | | // }) |
| | | // console.log(res) |
| | | this.infoForm.commisioncode = res.data |
| | | if(res.data){ |
| | | this.$message({ |
| | | message: 'æåä½ !', |
| | | type: 'success' |
| | | }) |
| | | // è·³è½¬é¡µé¢ |
| | | this.$router.push('/inspectionManagement/commissionInspection') |
| | | this.showDetail = true |
| | | }else{ |
| | | this.$message.error(res.message) |
| | | } |
| | | }, |
| | | handleSizeChange(pageSize) { |
| | | this.pageParams.pageSize = pageSize |
| | | }, |
| | | handleCurrentChange(pageNo) { |
| | | this.pageParams.pageNo = pageNo |
| | | }, |
| | | deleteRow(row){ |
| | | console.log(row) |
| | | row = null |
| | | } |
| | | } |
| | | } |
| | | import { |
| | | getSampleName, |
| | | getModelSpecification, |
| | | getlink, |
| | | addInspection, |
| | | isIfViewUUID |
| | | } from '@/api/inspection/commisioninspection' |
| | | export default { |
| | | data() { |
| | | return { |
| | | currentPage: 0, |
| | | searchData: '', |
| | | infoForm: { |
| | | commisioncode: '', |
| | | department: '', |
| | | contacter: '', |
| | | tel: '', |
| | | address: '', |
| | | deadline: '', |
| | | time: '', |
| | | way: '', |
| | | sender: '', |
| | | sendertel: '', |
| | | num: '', |
| | | other: '' |
| | | }, |
| | | detectionInfo: [], |
| | | addPointerForm: { |
| | | sampleNumber: '', |
| | | sampleName: '', |
| | | specificationsModels: '', |
| | | unit: '', |
| | | samplesNumber: '', |
| | | remarks: '', |
| | | experiment: [], |
| | | addway: '' |
| | | }, |
| | | experList: [{ |
| | | key: '1', |
| | | label: 'å¤è§æ£æ¥' |
| | | }, { |
| | | key: '2', |
| | | label: 'å¨ä½çµåè¯éª' |
| | | }, { |
| | | key: '3', |
| | | label: 'çµé»ç®¡æ³æ¼çµæµè¯éª' |
| | | }, { |
| | | key: '4', |
| | | label: 'ç»ç¼é¨å交æµèåè¯éª' |
| | | }], |
| | | sampleoptions: [{ |
| | | key: '1', |
| | | value: 'é项1' |
| | | }, { |
| | | key: '2', |
| | | value: 'é项2' |
| | | }], |
| | | samplecodeoptions: [{ |
| | | key: '1', |
| | | value: '' |
| | | }], |
| | | model_spe_options: [], |
| | | sampleDeliveryMode: [{ |
| | | key: '1', |
| | | value: 'éæ ·' |
| | | }, { |
| | | key: '2', |
| | | value: 'ä¸é¨' |
| | | }], |
| | | dialogueFormVisible: false, |
| | | showDetail: false, |
| | | viewId: null |
| | | } |
| | | }, |
| | | created() { |
| | | this.viewId = this.$route.params.viewId |
| | | this.$store.commit('settings/SAVE_LINK', this.viewId) |
| | | this.getlink(this.$route.params.viewId) |
| | | }, |
| | | mounted() { |
| | | this.getSampleName() |
| | | }, |
| | | methods: { |
| | | getlink(viewId) { |
| | | if (viewId == null) { |
| | | this.$message.error('å½å龿¥ä¸å¨æææå
,ç³»ç»èªå¨å
³é') |
| | | this.$router.push('/404') |
| | | return |
| | | } |
| | | isIfViewUUID({ |
| | | viewId |
| | | }).then(res => { |
| | | if (!res.data) { |
| | | this.$message.error('å½å龿¥ä¸å¨æææå
,ç³»ç»èªå¨å
³é') |
| | | this.$router.push('/404') |
| | | } |
| | | }) |
| | | }, |
| | | async getSampleName() { |
| | | const res = await getSampleName() |
| | | this.sampleoptions = res.data.map((item) => { |
| | | return { |
| | | key: item.id.toString(), |
| | | value: item.name, |
| | | code: item.code |
| | | } |
| | | }) |
| | | }, |
| | | async getModelSpecification(val) { |
| | | const res = await getModelSpecification({ |
| | | materialId: val |
| | | }) |
| | | this.model_spe_options = res.data.map((item) => { |
| | | return { |
| | | key: item.specificationsId, |
| | | value: item.specificationsName |
| | | } |
| | | }) |
| | | }, |
| | | addInspection() { |
| | | let exper = this.addPointerForm.experiment[0] |
| | | this.addPointerForm.addway = 1 |
| | | for (let i = 1; i < this.addPointerForm.experiment.length; i++) { |
| | | exper += ',' + this.addPointerForm.experiment[i] |
| | | } |
| | | |
| | | // console.log(exper) |
| | | this.addPointerForm.experiment = exper |
| | | let tmp = this.addPointerForm |
| | | this.detectionInfo.push(tmp) |
| | | this.dialogueFormVisible = false |
| | | this.addPointerForm = { |
| | | sampleNumber: '', |
| | | sampleName: '', |
| | | specificationsModels: '', |
| | | unit: '', |
| | | samplesNumber: '', |
| | | remarks: '', |
| | | experiment: [], |
| | | addway: '' |
| | | } |
| | | }, |
| | | async submitInspection() { |
| | | let sampledeliveryway |
| | | if (this.infoForm.way === 'éæ ·') { |
| | | sampledeliveryway = 1 |
| | | } else { |
| | | sampledeliveryway = 2 |
| | | } |
| | | const res = await addInspection({ |
| | | completionDeadline: this.infoForm.deadline, |
| | | contactAddress: this.infoForm.address, |
| | | contactNumber: this.infoForm.tel, |
| | | contacts: this.infoForm.contacter, |
| | | entrustRemarks: this.infoForm.other, |
| | | entrusted: this.infoForm.department, |
| | | inspectionTime: this.infoForm.time, |
| | | linkDetectionList: this.detectionInfo, |
| | | reportNumber: parseInt(this.infoForm.num), |
| | | sampleDeliveryMode: sampledeliveryway, |
| | | sampleDeliveryPhone: this.infoForm.sendertel, |
| | | sampleSender: this.infoForm.sender |
| | | }) |
| | | this.infoForm.commisioncode = res.data |
| | | if (res.data) { |
| | | this.$message({ |
| | | message: 'æåä½ !', |
| | | type: 'success' |
| | | }) |
| | | // è·³è½¬é¡µé¢ |
| | | this.$router.push('/inspectionManagement/commissionInspection') |
| | | this.showDetail = true |
| | | } else { |
| | | this.$message.error(res.message) |
| | | } |
| | | }, |
| | | handleSizeChange(pageSize) { |
| | | this.pageParams.pageSize = pageSize |
| | | }, |
| | | handleCurrentChange(pageNo) { |
| | | this.pageParams.pageNo = pageNo |
| | | }, |
| | | deleteRow(row) { |
| | | |
| | | }, |
| | | upMaterialName(val) { |
| | | this.sampleoptions.forEach(a => { |
| | | if (a.key == val) { |
| | | this.addPointerForm.sampleNumber = a.code |
| | | } |
| | | }) |
| | | this.getModelSpecification(val) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .add_commision{ |
| | | padding: 20px; |
| | | } |
| | | |
| | | .content-main{ |
| | | padding: 20px 40px; |
| | | background-color: #f0f2f5; |
| | | width: 100%; |
| | | height: 100vh; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-between; |
| | | // align-items: center; |
| | | |
| | | .firstBox{ |
| | | .title { |
| | | padding: 15px 10px; |
| | | font-size: 18px; |
| | | background-color: #0166e2; |
| | | color: #fff; |
| | | border-radius: 4px; |
| | | } |
| | | .tableBox{ |
| | | background-color: #fff; |
| | | padding: 0px 20px; |
| | | margin: 0px -15px; |
| | | flex: 1; |
| | | background: #fff; |
| | | /* padding: 20px 20px 10px 20px; */ |
| | | display: flex; |
| | | flex-direction: column; |
| | | .tableBox-header{ |
| | | padding: 20px 0px; |
| | | .split{ |
| | | margin-right: 15px; |
| | | } |
| | | } |
| | | .el-table { |
| | | flex: 1; |
| | | } |
| | | >div:nth-child(3){ |
| | | display: flex; |
| | | justify-content: end; |
| | | margin: 10px 0; |
| | | } |
| | | } |
| | | } |
| | | .secondBox{ |
| | | margin: 0px -15px; |
| | | .header{ |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 10px 20px; |
| | | margin-top: 10px; |
| | | } |
| | | .submitBtn{ |
| | | display: flex; |
| | | justify-content: end; |
| | | margin-right: 40px; |
| | | margin-top: 20px; |
| | | } |
| | | } |
| | | .infoForm{ |
| | | background-color: #fff; |
| | | padding: 20px 50px; |
| | | .formwrapper{ |
| | | margin: 20px 0px; |
| | | padding-left: 30px; |
| | | .el-row{ |
| | | margin: 10px 0px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | .firstBox { |
| | | .title { |
| | | padding: 15px 10px; |
| | | font-size: 18px; |
| | | background-color: #0166e2; |
| | | color: #fff; |
| | | border-radius: 4px; |
| | | margin-bottom: 20px; |
| | | } |
| | | |
| | | .tableBox { |
| | | background-color: #fff; |
| | | padding: 0px 20px; |
| | | flex: 1; |
| | | background: #fff; |
| | | /* padding: 20px 20px 10px 20px; */ |
| | | display: flex; |
| | | flex-direction: column; |
| | | |
| | | .tableBox-header { |
| | | padding: 20px 0px; |
| | | |
| | | .split { |
| | | margin-right: 15px; |
| | | } |
| | | } |
| | | |
| | | .el-table { |
| | | flex: 1; |
| | | } |
| | | |
| | | >div:nth-child(3) { |
| | | display: flex; |
| | | justify-content: end; |
| | | margin: 10px 0; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .secondBox { |
| | | |
| | | .header { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 10px 20px; |
| | | margin-top: 10px; |
| | | } |
| | | |
| | | .submitBtn { |
| | | display: flex; |
| | | justify-content: end; |
| | | margin-right: 40px; |
| | | margin-top: 20px; |
| | | } |
| | | } |
| | | |
| | | .infoForm { |
| | | background-color: #fff; |
| | | padding: 20px 50px; |
| | | |
| | | .formwrapper { |
| | | margin: 20px 0px; |
| | | padding-left: 30px; |
| | | |
| | | .el-row { |
| | | margin: 10px 0px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 5px 24px 0px 24px; |
| | | } |
| | | |
| | | .top-bar{ |
| | | margin: -25px -15px; |
| | | background: #fff; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 5px 24px 0px 24px; |
| | | .sermargin{ |
| | | margin-right: 60px; |
| | | } |
| | | .rightForm{ |
| | | display: flex; |
| | | justify-content: space-between; |
| | | /* background-color: #bfa; */ |
| | | height: 40px; |
| | | line-height: 40px; |
| | | >div{ |
| | | padding: 0px 10px; |
| | | padding-bottom: 10px; |
| | | border:1px solid rgb(8, 156, 230); |
| | | margin-right: 10px; |
| | | /* height: 40px; |
| | | .sermargin { |
| | | margin-right: 60px; |
| | | } |
| | | |
| | | .rightForm { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | /* background-color: #bfa; */ |
| | | height: 40px; |
| | | line-height: 40px; |
| | | |
| | | >div { |
| | | padding: 0px 10px; |
| | | padding-bottom: 10px; |
| | | border: 1px solid rgb(8, 156, 230); |
| | | margin-right: 10px; |
| | | /* height: 40px; |
| | | line-height: 40px; */ |
| | | } |
| | | .rightBtn{ |
| | | background-color: rgb(1, 102, 226); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .library-table{ |
| | | background-color: #fff; |
| | | flex: 1; |
| | | margin: 0px -15px; |
| | | margin-top: 40px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | .table-header{ |
| | | padding: 20px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .el-form-item{ |
| | | margin-bottom: 30px !important; |
| | | } |
| | | } |
| | | .table-box{ |
| | | padding: 0px 20px; |
| | | margin-top: 0px; |
| | | flex: 1; |
| | | background: #fff; |
| | | /* padding: 20px 20px 10px 20px; */ |
| | | display: flex; |
| | | flex-direction: column; |
| | | .el-table { |
| | | flex: 1; |
| | | } |
| | | >div:nth-child(2){ |
| | | display: flex; |
| | | justify-content: end; |
| | | margin: 10px 0; |
| | | } |
| | | } |
| | | } |
| | | .rightBtn { |
| | | background-color: rgb(1, 102, 226); |
| | | } |
| | | } |
| | | } |
| | | |
| | | .library-table { |
| | | background-color: #fff; |
| | | flex: 1; |
| | | margin: 0px -15px; |
| | | margin-top: 40px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | |
| | | .table-header { |
| | | padding: 20px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | |
| | | .el-form-item { |
| | | margin-bottom: 30px !important; |
| | | } |
| | | } |
| | | |
| | | .table-box { |
| | | padding: 0px 20px; |
| | | margin-top: 0px; |
| | | flex: 1; |
| | | background: #fff; |
| | | /* padding: 20px 20px 10px 20px; */ |
| | | display: flex; |
| | | flex-direction: column; |
| | | |
| | | .el-table { |
| | | flex: 1; |
| | | } |
| | | |
| | | >div:nth-child(2) { |
| | | display: flex; |
| | | justify-content: end; |
| | | margin: 10px 0; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .rightBtn { |
| | | background-color: rgb(1, 102, 226); |
| | |
| | | <el-input v-model="searchData.roleName" class="input-form" placeholder="请è¾å
¥è§è²åç§°" style="width:250px"> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æéï¼" class="sermargin"> |
| | | <el-input v-model="searchData.permission" class="input-form" placeholder="请è¾å
¥æé" style="width:250px"> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item class="rightBtn"> |
| | | <el-button type="primary">æ¥è¯¢</el-button> |
| | | <el-button type="primary" plain>éç½®</el-button> |
| | |
| | | <el-table :max-height="800" :cell-style="{ textAlign: 'center' }" |
| | | :header-cell-style="{ border: '0px', background: '#f5f7fa', color: '#606266', boxShadow: 'inset 0 1px 0 #ebeef5', textAlign: 'center' }" |
| | | :data="roleTable" style="width: 100%"> |
| | | <el-table-column type="selection" min-width="8%" /> |
| | | <el-table-column prop="rolename" label="è§è²åç§°" min-width="20%" /> |
| | | <el-table-column prop="permission" label="æé" min-width="20%" /> |
| | | <el-table-column prop="create_time" label="å建æ¶é´" min-width="20%" /> |
| | | <el-table-column prop="update_time" label="æ´æ°æ¶é´" min-width="20%" /> |
| | | <el-table-column type="index" min-width="8%" /> |
| | | <el-table-column prop="roleName" label="è§è²åç§°" min-width="20%" /> |
| | | <el-table-column prop="createTime" label="å建æ¶é´" min-width="20%" /> |
| | | <el-table-column prop="updateTime" label="æ´æ°æ¶é´" min-width="20%" /> |
| | | <el-table-column label="æä½" min-width="12%"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small">ç¼è¾</el-button> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-dialog title="æ°å¢è§è²" :visible.sync="dialogTableVisible" width="60%"> |
| | | <el-dialog title="æ°å¢è§è²" :visible.sync="dialogTableVisible" width="50%"> |
| | | <el-form :model="roleAdd" ref="roleAdd" label-position="right" label-width="100px"> |
| | | <el-form-item label="è§è²å:"> |
| | | <el-input style="width: 300px" v-model="roleAdd.roleName" placeholder="请è¾å
¥è§è²å"> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="åè½éæ©:"> |
| | | <el-cascader size="medium " v-model="roleAdd.menuData" :options="menuInfo"> |
| | | <template slot-scope="{ node, data }"> |
| | | <span>{{ data.label }}</span> |
| | | <span v-if="!node.isLeaf"> ({{ }}) </span> |
| | | </template> |
| | | </el-cascader> |
| | | </el-form-item> |
| | | <el-col :span="24" style="display: flex;justify-content: space-between;"> |
| | | <el-form-item :rules="nameaRules" label="è§è²å:"> |
| | | <el-input @blur="assertName" style="width: 300px" v-model="roleAdd.roleName" placeholder="请è¾å
¥è§è²å"> |
| | | </el-input> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="èåéæ©:"> |
| | | <el-cascader style="width: 300px" collapse-tags size="medium " filterable :props="props" |
| | | v-model="roleAdd.menuData" :options="menuInfo"> |
| | | <template slot-scope="{ data }"> |
| | | <span>{{ data.label }}</span> |
| | | </template> |
| | | </el-cascader> |
| | | </el-form-item> --> |
| | | </el-col> |
| | | </el-form> |
| | | <el-col :span="24"> |
| | | <el-table height="300" :data="menuInfo" style="width: 100%;margin-bottom: 20px;" row-key="id" |
| | | :default-expand-all="false" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"> |
| | | <el-table-column highlight-current-row prop="parentId" label="èåç±»å" sortable width="180"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.parentId == 0 && scope.row.children != undefined" style="color: #409eff;">主èå</span> |
| | | <span v-if="scope.row.parentId == 0 && scope.row.children === undefined" style="color: #409eff;"> |
| | | 主èå |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="èåå" sortable width="180"> |
| | | <template slot-scope="scope"> |
| | | <el-col v-if="scope.row.parentId == 0"> |
| | | <span style="color: #409eff;">{{ scope.row.name }}</span> |
| | | </el-col> |
| | | <el-col v-else> |
| | | <span style="color: #40b815;">{{ scope.row.name }}</span> |
| | | </el-col> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="id" label="æä½æé"> |
| | | <template slot-scope="scope"> |
| | | <el-col v-if="scope.row.parentId == 0 && scope.row.children != undefined"> |
| | | <!-- <el-checkbox v-model="scope.row.select">æ¥è¯¢</el-checkbox> --> |
| | | </el-col> |
| | | <el-col v-else> |
| | | <el-checkbox size="medium" v-model="scope.row.selected" @change="chekSelect(scope)">æ¥è¯¢</el-checkbox> |
| | | <el-checkbox size="medium" v-model="scope.row.added" @change="chekAdd(scope)">æ·»å </el-checkbox> |
| | | <el-checkbox size="medium" v-model="scope.row.updated" @change="chekUpdate(scope)">ä¿®æ¹</el-checkbox> |
| | | <el-checkbox size="medium" v-model="scope.row.deleted" @change="chekDelet(scope)">å é¤</el-checkbox> |
| | | </el-col> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-col> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogTableVisible = false">å æ¶</el-button> |
| | | <el-button @click="clearAll">å æ¶</el-button> |
| | | <el-button type="primary" @click="addRole">ç¡® å®</el-button> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getMenusTree } from '@/api/laboratory/role' |
| | | import { getMenusTree, addRoleInfo, assertRepeat, getAllRoleAndMenuInfo } from '@/api/laboratory/role' |
| | | import { default as menuPower } from './menuPower.vue' |
| | | export default { |
| | | components: { |
| | | menuPower: () => import('./menuPower.vue') |
| | | }, |
| | | data() { |
| | | return { |
| | | props: { multiple: true }, |
| | |
| | | roleName: null, |
| | | menuData: null |
| | | }, |
| | | nameaRules: [{ required: true, message: '请è¾å
¥è§è²å' }], |
| | | menuTableTree: null, |
| | | searchData: { |
| | | roleName: '', |
| | | permission: '' |
| | | }, |
| | | assertRepeatName: true, |
| | | menuInfo: [], |
| | | roleTable: [{ |
| | | rolename: 'é¨é¿', |
| | | permission: 'ROOT', |
| | | create_time: '2023-07-04 12:12:12', |
| | | update_time: '2023-07-04 12:12:12' |
| | | }, { |
| | | rolename: 'ç»é¿', |
| | | permission: '--', |
| | | create_time: '2023-07-04 12:12:12', |
| | | update_time: '2023-07-04 12:12:12' |
| | | }], |
| | | roleTable: [], |
| | | updateData: { |
| | | oldPassWord: '', |
| | | newPassWord: '', |
| | |
| | | created() { |
| | | |
| | | }, |
| | | mounted() { |
| | | this.start() |
| | | }, |
| | | methods: { |
| | | chekSelect(scope) { |
| | | |
| | | }, |
| | | async start() { |
| | | let res = await getAllRoleAndMenuInfo() |
| | | this.roleTable = res.data |
| | | console.log(res); |
| | | }, |
| | | async assertName() { |
| | | if (this.roleAdd.roleName == null || this.roleAdd.roleName == '') { |
| | | this.$message({ |
| | | message: '请è¾å
¥è§è²å', |
| | | type: 'warning' |
| | | }); |
| | | return |
| | | } |
| | | let res = await assertRepeat({ roleName: this.roleAdd.roleName }) |
| | | if (!res.data) { |
| | | this.assertRepeatName = false |
| | | this.$message({ |
| | | message: 'è§è²åéå¤ï¼è¯·éæ°è¾å
¥ï¼', |
| | | type: 'warning' |
| | | }); |
| | | } else { |
| | | this.assertRepeatName = true |
| | | } |
| | | }, |
| | | chekAdd(scope) { |
| | | scope.row.selected = true |
| | | }, |
| | | chekUpdate(scope) { |
| | | scope.row.selected = true |
| | | }, |
| | | chekDelet(scope) { |
| | | scope.row.selected = true |
| | | }, |
| | | async addClickRole() { |
| | | let res = await getMenusTree(); |
| | | this.menuInfo = res.data |
| | | this.menuInfo.forEach(item => { |
| | | item.select = false |
| | | item.add = false |
| | | item.update = false |
| | | item.delete = false |
| | | this.$set(item, 'selected', false); |
| | | this.$set(item, 'added', false); |
| | | this.$set(item, 'updated', false); |
| | | this.$set(item, 'deleted', false); |
| | | if (item.children.length == 0) { |
| | | delete item['children'] |
| | | } else { |
| | | item.children.forEach(c => { |
| | | c.select = false |
| | | c.add = false |
| | | c.update = false |
| | | c.delete = false |
| | | this.$set(c, 'selected', false); |
| | | this.$set(c, 'added', false); |
| | | this.$set(c, 'updated', false); |
| | | this.$set(c, 'deleted', false); |
| | | if (c.children.length == 0) { |
| | | delete c['children'] |
| | | } |
| | |
| | | } |
| | | }) |
| | | this.dialogTableVisible = true |
| | | // console.log(this.dialogTableVisible) |
| | | }, |
| | | addRole() { |
| | | console.log(this.roleAdd); |
| | | async addRole() { |
| | | if (this.roleAdd.roleName == null || this.roleAdd.roleName == '') { |
| | | this.$message({ |
| | | message: '请è¾å
¥è§è²å', |
| | | type: 'warning' |
| | | }); |
| | | return |
| | | } |
| | | if (!this.assertRepeatName) { |
| | | this.$message({ |
| | | message: 'è§è²åéå¤ï¼è¯·éæ°è¾å
¥', |
| | | type: 'warning' |
| | | }); |
| | | return |
| | | } |
| | | this.menuInfo.forEach(item => { |
| | | if (item.children != undefined) { |
| | | item.children.forEach(c => { |
| | | if (c.added) { |
| | | item.selected = true |
| | | } |
| | | if (c.selected) { |
| | | item.selected = true |
| | | } |
| | | if (c.updated) { |
| | | item.selected = true |
| | | } |
| | | if (c.deleted) { |
| | | item.selected = true |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | console.log(this.menuInfo); |
| | | this.roleAdd.menuData = JSON.parse(JSON.stringify(this.menuInfo)); |
| | | this.roleAdd.menuData.forEach(item => { |
| | | if (item.children != undefined) { |
| | | let child = item.children.filter(c => { |
| | | return c.added == true || c.selected == true || c.deleted == true || c.updated === true |
| | | }) |
| | | item.children = child |
| | | } |
| | | }) |
| | | this.roleAdd.menuData = this.roleAdd.menuData.filter(item => { |
| | | return item.selected == true |
| | | }) |
| | | let res = await addRoleInfo(this.roleAdd); |
| | | if (res.data) { |
| | | this.$message({ |
| | | message: 'æ·»å è§è²æå', |
| | | type: 'success' |
| | | }); |
| | | this.dialogTableVisible = false |
| | | } else { |
| | | this.$message.error('æ·»å 失败ï¼è¯·éæ°æä½'); |
| | | } |
| | | }, |
| | | assertDml(a, b) { |
| | | a = b ? true : false |
| | | console.log(a); |
| | | return a |
| | | }, |
| | | // search(){}, |
| | | // reset(){}, |
| | |
| | | handleCurrentChange(val) { |
| | | console.log(`å½åæ¯ç¬¬${val}页`) |
| | | this.currentPage = val |
| | | }, |
| | | clearAll() { |
| | | this.roleAdd.roleName = null |
| | | this.roleAdd.menuData = null |
| | | this.menuInfo = [] |
| | | this.assertRepeatName = true |
| | | this.dialogTableVisible = false |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | |
| | | } |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | methods: { |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped></style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="content-wrapper"> |
| | | <div class="content-main"> |
| | | <div class="cover"> |
| | | <div class="cover-top"> |
| | | <div> |
| | | <div style="height: 30px; line-height: 30px;">æ¥åç¼å·:</div> |
| | | <div style="height: 30px; line-height: 30px;">Reference No:</div> |
| | | </div> |
| | | </div> |
| | | <div class="title"> |
| | | <h1 style="text-align-last:justify ;">æ£éªæ¥å</h1> |
| | | <h1>Test Report</h1> |
| | | </div> |
| | | <div class="cover-body"> |
| | | <div class="name"> |
| | | <div style="width:140px; text-align-last: justify;"> |
| | | <div>è¯æ ·åç§°</div> |
| | | <span style="font-size: 14px;">Name of Product</span> |
| | | </div> |
| | | <div class="line"> æµè¯åç§°</div> |
| | | </div> |
| | | <div class="name"> |
| | | <div style="width:140px; text-align-last: justify;"> |
| | | <div style="text-align-last: justify;">åå·</div> |
| | | <span style="font-size: 14px;">Type and Size</span> |
| | | </div> |
| | | <div class="line"> æµè¯åç§°</div> |
| | | </div> |
| | | <div class="name"> |
| | | <div style="width:140px; text-align-last: justify;"> |
| | | <div>å§æåä½</div> |
| | | <span style="font-size: 14px;display: block;margin: 10px 50px 0px;">Client</span> |
| | | </div> |
| | | <div class="line"> æµè¯åç§°</div> |
| | | </div> |
| | | <div class="name"> |
| | | <div style="width:140px; text-align-last: justify;"> |
| | | <div>æ£éªç±»å«</div> |
| | | <span style="font-size: 14px;">Kind of Test</span></div> |
| | | <div class="line"> æµè¯åç§°</div> |
| | | </div> |
| | | </div> |
| | | <div class="cover-footer"> |
| | | <span>æ±èä¸å¤©ç§æè¡ä»½æéå
¬å¸æ£æµä¸å¿</span><br> |
| | | <span style="font-size: 14px;">TEST CENTER OF JIANGSU ZHONGTIAN TECHNOLOGY CO.,LTD</span> |
| | | </div> |
| | | </div> |
| | | <div class="pageOne"> |
| | | <div class="statement"> |
| | | <div><h2>声æ</h2></div> |
| | | <div style="text-align-last: center;"><h2 style="font-size: 14px;">Statement</h2></div> |
| | | </div> |
| | | <div class="statement-body"> |
| | | <div> |
| | | <span>1. æ¬æ£éªæ¥åï¼å
æ¬å¤å°ä»¶ï¼æªå æ£æµä¸ç¨ç« ä¸å¾æ æã</span><br> |
| | | <span>This test report (including any duplicates) shall become effective only with pecial chapter for testing on.</span> |
| | | </div> |
| | | <div> |
| | | <span>2. æ¬æ£éªæ¥åæ ç¼åãå®¡æ ¸ãæ¹å人ç¾ç« æ æã</span><br> |
| | | <span>This test report shall become effective only with the signatures of compiler checker and approver.</span> |
| | | </div> |
| | | <div> |
| | | <span>3. æ¬æ£éªæ¥åæ¶æ¹æ æã</span><br> |
| | | <span>This test report will be invalid if altered.</span> |
| | | </div> |
| | | <div> |
| | | <span>4. æ¬æ£éªæ¥åä¸å¾é¨åå¤å°ã</span><br> |
| | | <span>This test report mustnât copy partly.</span> |
| | | </div> |
| | | <div> |
| | | <span>5. éæ ·å§ææ£éªï¼ä»
å¯¹æ¥æ ·è´è´£ã</span><br> |
| | | <span>For the sample submitted by clients, the test result is valid only for these samples.</span> |
| | | </div> |
| | | <div> |
| | | <span>6. æ ·ååå§æåä½ä¸ºå§ææ¹èªå½åã</span><br> |
| | | <span>Samples and consignor name for the principal.</span> |
| | | </div> |
| | | <div> |
| | | <span>7. æ¬æ£éªæ¥åä¸è±ææè¿°æå²çªæ¶ï¼ä»¥ä¸æè§£é为åã</span><br> |
| | | <span>If the Chinese and English version of the test report have any conflict, the Chinese version should be the standard for arbitrament.</span> |
| | | </div> |
| | | <div> |
| | | <span>8. å§ææ¹å¯¹æ¬æ£éªæ¥åè¥æå¼è®®ï¼åºäºæ ·åä¿åæå
忬ä¸å¿æåºï¼èç³»çµè¯ï¼0513-84885657</span><br> |
| | | <span>Clients who have any different ideas about this test report, may contract with Test Central within the sample reservation time. Tel: 0513-84885657</span> |
| | | </div> |
| | | <div> |
| | | <span>9. æ¬ä¸å¿æ ·åèªæ¥ååéæ¥èµ·ï¼ä¸è¬ä¿åä¸ä¸ªæï¼ä»¥å¤å¤éªã</span><br> |
| | | <span>The sample shall be reserved for one month beginning from the data when this test report is submitted for examine or review.</span> |
| | | </div> |
| | | </div> |
| | | <div class="statement-footer"> |
| | | <div class="depart"> |
| | | <span>æ±èä¸å¤©ç§æè¡ä»½æéå
¬å¸æ£æµä¸å¿</span><br> |
| | | <span>Test Center of Jiangsu Zhongtian Technology Co., LTD</span> |
| | | </div> |
| | | <div class="address"> |
| | | <span>å° åï¼æ±èçåéå¸ç»æµææ¯å¼ååºæ°å¼åè·¯19å·</span><br> |
| | | <span>Address: No.19 Xinkai South Road, Nantong Economic and Technological Development Zone, Jiangsu Province</span> |
| | | </div> |
| | | <div class="zipcode">鮿¿ç¼ç Zip Codeï¼226010</div> |
| | | <div class="tel">çµ è¯Telï¼0513-89059043</div> |
| | | <div class="email">é® ç®±E-mail:ï¼ztttc@chinaztt.com </div> |
| | | </div> |
| | | </div> |
| | | <div class="pageTwo"> |
| | | <div class="header" style="line-height: 10px;"> |
| | | <div style="width: 350px;margin: 0 auto; text-align-last: justify;"> |
| | | <h2 style="font-size: 18px;">æ±èä¸å¤©ç§æè¡ä»½æéå
¬å¸æ£æµä¸å¿</h2> |
| | | </div> |
| | | <div style="width: 500px; margin: 0 auto;text-align-last: justify;"> |
| | | <h2 style="font-size: 14px;">TEST CENTER OF JIANGSU ZHONGTIAN TECHNOLOGY CO.,LTD</h2> |
| | | </div> |
| | | <div style="width: 120px;margin: 0 auto;text-align-last: justify;"> |
| | | <h2 style="font-size: 18px;">æ£æµæ¥å</h2> |
| | | </div> |
| | | <div style="width: 100px; margin: 0 auto;text-align-last: justify;"> |
| | | <h2 style="font-size: 14px;">Test Report</h2> |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | | <div class="table-header"> |
| | | <div> |
| | | <span>æ¥åç¼å·ï¼</span><br> |
| | | <span>Reference Noï¼</span> |
| | | </div> |
| | | <div> |
| | | <span>第1页å
±2页</span><br> |
| | | <span>Page 1 of 2</span> |
| | | </div> |
| | | </div> |
| | | <div class="table-body"> |
| | | <table width="100%" border="1" cellspacing="0" style="text-align: center;"> |
| | | <tr> |
| | | <td><span>è¯æ ·åç§°</span><br> |
| | | <span>Name of product</span></td> |
| | | <td colspan="2"></td> |
| | | <td> |
| | | <span>è§æ ¼åå·</span><br> |
| | | <span>Type and size</span> |
| | | </td> |
| | | <td colspan="2"></td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <span>æ ·åæ°é</span><br> |
| | | <span>Test item</span> |
| | | </td> |
| | | <td colspan="2"></td> |
| | | <td> |
| | | <span>æ£éªé¡¹ç®</span><br> |
| | | <span>Test item</span> |
| | | </td> |
| | | <td colspan="2"></td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <span>æ¥æ ·æ¹å¼</span><br> |
| | | <span>Delivering method</span> |
| | | </td> |
| | | <td colspan="2"></td> |
| | | <td> |
| | | <span>æ£éªç±»å</span><br> |
| | | <span>Type of test</span> |
| | | </td> |
| | | <td colspan="2"></td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <span>æ ·åç¶æ</span><br> |
| | | <span>Sample discription</span> |
| | | </td> |
| | | <td colspan="2"></td> |
| | | <td> |
| | | <span>ç产åä½</span><br> |
| | | <span>Producer</span> |
| | | </td> |
| | | <td colspan="2"></td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <span>æ¶æ ·æ¶é´</span><br> |
| | | <span>Received date</span> |
| | | </td> |
| | | <td colspan="2"></td> |
| | | <td> |
| | | <span>æ£éªæ¥æ</span><br> |
| | | <span>Test date</span> |
| | | </td> |
| | | <td colspan="2"></td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <span>å§æäºº</span><br> |
| | | <span>Consignor</span> |
| | | </td> |
| | | <td colspan="2"></td> |
| | | <td> |
| | | <span>çµè¯</span><br> |
| | | <span>Tel</span> |
| | | </td> |
| | | <td colspan="2"></td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <span>å§æåä½</span><br> |
| | | <span>Client</span> |
| | | </td> |
| | | <td colspan="5"></td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <span>å§æåä½å°å</span><br> |
| | | <span>Address</span> |
| | | </td> |
| | | <td colspan="5"></td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <span>æ£éªç¯å¢</span><br> |
| | | <span>Test environment</span> |
| | | </td> |
| | | <td colspan="5"></td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <span>æ£éªä¾æ®</span><br> |
| | | <span>Test standard</span> |
| | | </td> |
| | | <td colspan="5"></td> |
| | | </tr> |
| | | <tr> |
| | | <td style="height: 180px;"> |
| | | <span>ç»è®º</span><br> |
| | | <span>Conclusion </span> |
| | | </td> |
| | | <td colspan="5"> |
| | | <div style="height: 120px;"></div> |
| | | <div style="height: 60px;margin-left: 250px;"> |
| | | <span>ï¼æ£æµæ¥åä¸ç¨ç« ï¼</span><br> |
| | | <span>( SPECIFIC STAMP FOR TEST RTORT) </span><br> |
| | | <span>ç¾åæ¥æï¼ å¹´ æ æ¥</span><br> |
| | | <span>Date of issue: August 23, 2023</span> |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <span>夿³¨</span><br> |
| | | <span>Remark </span> |
| | | </td> |
| | | <td colspan="5"></td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <span>ç¼å¶</span><br> |
| | | <span>Preparer</span> |
| | | </td> |
| | | <td colspan="2"></td> |
| | | <td> |
| | | <span>æ£éª</span><br> |
| | | <span>Tester</span> |
| | | </td> |
| | | <td colspan="2"></td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <span>å®¡æ ¸</span><br> |
| | | <span>Checker </span> |
| | | </td> |
| | | <td colspan="2"></td> |
| | | <td> |
| | | <span>æ¹å</span><br> |
| | | <span>Approver</span> |
| | | </td> |
| | | <td colspan="2"></td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="pageThree"> |
| | | <div class="header" style="line-height: 10px;"> |
| | | <div style="width: 350px;margin: 0 auto; text-align-last: justify;"> |
| | | <h2 style="font-size: 18px;">æ±èä¸å¤©ç§æè¡ä»½æéå
¬å¸æ£æµä¸å¿</h2> |
| | | </div> |
| | | <div style="width: 500px; margin: 0 auto;text-align-last: justify;"> |
| | | <h2 style="font-size: 14px;">TEST CENTER OF JIANGSU ZHONGTIAN TECHNOLOGY CO.,LTD</h2> |
| | | </div> |
| | | <div style="width: 120px;margin: 0 auto;text-align-last: justify;"> |
| | | <h2 style="font-size: 18px;">æ£æµæ¥å</h2> |
| | | </div> |
| | | <div style="width: 100px; margin: 0 auto;text-align-last: justify;"> |
| | | <h2 style="font-size: 14px;">Test Report</h2> |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | | <div class="table-header"> |
| | | <div> |
| | | <span>æ¥åç¼å·ï¼</span><br> |
| | | <span>Reference Noï¼</span> |
| | | </div> |
| | | <div> |
| | | <span>第2页å
±2页</span><br> |
| | | <span>Page 2 of 2</span> |
| | | </div> |
| | | </div> |
| | | <div class="table-body"> |
| | | <table width="100%" border="1" cellspacing="0" style="text-align: center;"> |
| | | <tr> |
| | | <td colspan="4"> |
| | | <span>æ ·åç¼å·</span><br> |
| | | <span>Sample No</span></td> |
| | | <td colspan="3"></td> |
| | | <td colspan="4"> |
| | | <span>è§æ ¼åå·</span><br> |
| | | <span>Type</span> |
| | | </td> |
| | | <td colspan="3"></td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <span>åºå·</span><br> |
| | | <span>No</span> |
| | | </td> |
| | | <td colspan="3"> |
| | | <span>æ£éªé¡¹ç®</span><br> |
| | | <span>Test item</span> |
| | | </td> |
| | | <td> |
| | | <span>åä½</span><br> |
| | | <span>Unit</span> |
| | | </td> |
| | | <td colspan="3"> |
| | | <span>æ åè¦æ±</span><br> |
| | | <span>Requirement</span> |
| | | </td> |
| | | <td colspan="3"> |
| | | <span>æ£éªç»æ</span><br> |
| | | <span>Test result</span> |
| | | </td> |
| | | <td> |
| | | <span>ç»è®º</span><br> |
| | | <span>Conclusion</span> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <span></span><br> |
| | | <span></span> |
| | | </td> |
| | | <td colspan="3"> |
| | | <span>æ ·åæ è¯</span><br> |
| | | <span>Sample labeling</span> |
| | | </td> |
| | | <td> |
| | | <span></span><br> |
| | | <span>I</span> |
| | | </td> |
| | | <td colspan="3"> |
| | | <span></span><br> |
| | | <span></span> |
| | | </td> |
| | | <td colspan="3"> |
| | | <span></span><br> |
| | | <span></span> |
| | | </td> |
| | | <td> |
| | | <span></span><br> |
| | | <span></span> |
| | | </td> |
| | | </tr> |
| | | <tr v-for="item in resultTable" :key="index"> |
| | | <td> |
| | | <span>{{ item.id }}</span><br> |
| | | </td> |
| | | <td colspan="3"> |
| | | <span>{{ item.testitem }}</span><br> |
| | | <span>{{ item.testitem_engName }}</span> |
| | | </td> |
| | | <td> |
| | | <span>{{ item.unit }}</span> |
| | | </td> |
| | | <td colspan="3"> |
| | | <span>{{ item.requirement }}</span><br> |
| | | <span>{{ item.requirement_eng }}</span> |
| | | </td> |
| | | <td colspan="3"> |
| | | <span>{{ item.testresult }}</span><br> |
| | | <span>{{ item.testresult_engName }}</span> |
| | | </td> |
| | | <td> |
| | | <span>{{ item.conclusion }}</span> |
| | | </td> |
| | | </tr> |
| | | |
| | | </table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="pageFour"> |
| | | <div class="page-header" style="display: flex;justify-content: space-between;font-size: 12px;"> |
| | | <div> |
| | | <span>æ¥åç¼å·ï¼</span><br> |
| | | <span>Reference Noï¼</span> |
| | | </div> |
| | | <div> |
| | | <span>é页</span><br> |
| | | <span>Appenfix</span> |
| | | </div> |
| | | </div> |
| | | <hr> |
| | | <div class="table"> |
| | | <div class="table-header"> |
| | | <div style="width: 200px; margin: 0 auto;text-align-last: justify;"><h2>æ£éªè®¾å¤ä¸è§è¡¨</h2></div> |
| | | <div style="text-align-last: center;"><h2 style="font-size: 14px;">Equipment List</h2></div> |
| | | </div> |
| | | <div class="table-body"> |
| | | <table width="100%" border="1" cellspacing="0" style="text-align: center;"> |
| | | <thead> |
| | | <tr> |
| | | <td> |
| | | <span>åºå·</span><br> |
| | | <span>No</span> |
| | | </td> |
| | | <td colspan="2"> |
| | | <span>设å¤åç§°</span><br> |
| | | <span>Equipment name</span> |
| | | </td> |
| | | <td> |
| | | <span>设å¤åå·</span><br> |
| | | <span>type</span> |
| | | </td> |
| | | <td colspan="2"> |
| | | <span>ç¼å·</span><br> |
| | | <span>Factory number</span> |
| | | </td> |
| | | <td colspan="2"> |
| | | <span>æ ¡åæææ</span><br> |
| | | <span>Date of validity</span> |
| | | </td> |
| | | </tr> |
| | | </thead> |
| | | <tr v-for="item in table" :key="index"> |
| | | <td> |
| | | <span>{{ item.id }}</span> |
| | | </td> |
| | | <td colspan="2"> |
| | | <span>{{ item.equipment_name }}</span> |
| | | </td> |
| | | <td> |
| | | <span>{{ item.type }}</span><br> |
| | | </td> |
| | | <td colspan="2"> |
| | | <span>{{ item.factory_number }}</span> |
| | | </td> |
| | | <td colspan="2"> |
| | | <span>{{ item.validity }}</span> |
| | | </td> |
| | | </tr> |
| | | |
| | | </table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | props:{ |
| | | |
| | | }, |
| | | data(){ |
| | | return { |
| | | resultTable:[ |
| | | { |
| | | id: '1', |
| | | testitem: 'å姿伏', |
| | | testitem_engName: 'Primitive strength', |
| | | unit: 'MPa', |
| | | requirement: 'æå°10.0', |
| | | requirement_eng: 'Minimun 10.0', |
| | | testresult: '', |
| | | testitem_engName: '' |
| | | } |
| | | ], |
| | | table:[{ |
| | | id: 1, |
| | | equipment_name: 'æææº', |
| | | type: 1, |
| | | factory_number: 'Akjgfewof', |
| | | validity:'2023.8.25~2023.8.27' |
| | | }] |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .content-wrapper{ |
| | | background-color: #f0f2f5; |
| | | width: 100%; |
| | | height: 100vh; |
| | | overflow-y: auto; |
| | | .content-main{ |
| | | margin: -50px auto; |
| | | width: 50%; |
| | | // background-color: #fff; |
| | | // background-color: #bfa; |
| | | .cover{ |
| | | margin: 80px 0px; |
| | | padding:0px 50px; |
| | | height: 1200px; |
| | | background-color: #fff; |
| | | box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2); |
| | | .cover-top{ |
| | | display: flex; |
| | | justify-content: end; |
| | | font-size: 20px; |
| | | margin-right: 50px; |
| | | padding-top: 50px; |
| | | // font-weight: bold; |
| | | } |
| | | .title{ |
| | | margin-top: 100px; |
| | | padding: 0px 220px; |
| | | text-align: center; |
| | | font-size: 25px; |
| | | } |
| | | .cover-body{ |
| | | font-size: 25px; |
| | | margin: 100px 80px; |
| | | .name{ |
| | | // background-color: #bfa; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | margin-bottom: 20px; |
| | | .line{ |
| | | width: 500px; |
| | | border-bottom: solid 1px black; |
| | | text-align: center; |
| | | // height: 60px; |
| | | line-height: 60px; |
| | | } |
| | | } |
| | | } |
| | | .cover-footer{ |
| | | text-align: center; |
| | | margin-top: 200px; |
| | | span{ |
| | | font-size: 23px; |
| | | height: 40px; |
| | | line-height: 40px; |
| | | } |
| | | } |
| | | } |
| | | .pageOne{ |
| | | margin-top: -50px; |
| | | background-color: #fff; |
| | | box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2); |
| | | padding:50px 100px; |
| | | height: 1200px; |
| | | .statement{ |
| | | margin: 0 auto; |
| | | width: 100px; |
| | | text-align-last: justify; |
| | | } |
| | | .statement-body{ |
| | | line-height: 32px; |
| | | text-align: justify; |
| | | margin: 30px 0px; |
| | | font-size: 12px; |
| | | } |
| | | .statement-footer{ |
| | | line-height: 30px; |
| | | font-size: 12px; |
| | | } |
| | | } |
| | | .pageTwo{ |
| | | margin-top: 30px; |
| | | background-color: #fff; |
| | | box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2); |
| | | padding:50px 60px; |
| | | height: 1200px; |
| | | .table{ |
| | | margin-top: 20px; |
| | | .table-header{ |
| | | display: flex; |
| | | justify-content: space-between; |
| | | font-size: 14px; |
| | | line-height: 20px; |
| | | } |
| | | .table-body{ |
| | | font-size: 12px; |
| | | table td{ |
| | | width: 150px; |
| | | height: 52px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | .pageThree{ |
| | | margin-top: 30px; |
| | | background-color: #fff; |
| | | box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2); |
| | | padding:50px 60px; |
| | | height: 1200px; |
| | | .table{ |
| | | margin-top: 20px; |
| | | .table-header{ |
| | | display: flex; |
| | | justify-content: space-between; |
| | | font-size: 14px; |
| | | line-height: 20px; |
| | | } |
| | | .table-body{ |
| | | font-size: 12px; |
| | | table td{ |
| | | width: 8%; |
| | | height: 52px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | .pageFour{ |
| | | margin-top: 30px; |
| | | background-color: #fff; |
| | | box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2); |
| | | padding:50px 60px; |
| | | height: 1200px; |
| | | .table{ |
| | | margin-top: 50px; |
| | | .table-header{ |
| | | line-height: 20px; |
| | | } |
| | | .table-body{ |
| | | margin-top: 20px; |
| | | font-size: 12px; |
| | | table td{ |
| | | width: 80px; |
| | | height: 52px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | </style> |