main
zhangqun 2 years ago
parent 8f2b80cbc4
commit fc5674c6b5
  1. 5
      package-lock.json
  2. 30
      src/const/limsConfig/equipmentManage.js
  3. 2
      src/styles/element-ui.scss
  4. 49
      src/views/limsConfig/equipmentManage.vue
  5. 4
      src/views/repair/proposer.vue

5
package-lock.json generated

@ -7175,6 +7175,11 @@
"esprima": "^4.0.0" "esprima": "^4.0.0"
} }
}, },
"jsbarcode": {
"version": "3.11.6",
"resolved": "https://registry.npmmirror.com/jsbarcode/-/jsbarcode-3.11.6.tgz",
"integrity": "sha512-G5TKGyKY1zJo0ZQKFM1IIMfy0nF2rs92BLlCz+cU4/TazIc4ZH+X1GYeDRt7TKjrYqmPfTjwTBkU/QnQlsYiuA=="
},
"jsbn": { "jsbn": {
"version": "0.1.1", "version": "0.1.1",
"resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",

@ -141,20 +141,20 @@ export const tableOption = {
align: "left", align: "left",
overHidden: true, overHidden: true,
}, },
{ // {
type: "select", // type: "select",
span: 8, // span: 8,
label: "是否需要检定", // label: "是否需要检定",
prop: "isVerification", // prop: "isVerification",
slot: true, // slot: true,
align: "left", // align: "left",
overHidden: true, // overHidden: true,
dicData: [ // dicData: [
{ label: "是", value: "1" }, // { label: "是", value: "1" },
{ label: "否", value: "0" }, // { label: "否", value: "0" },
], // ],
rules: [{ required: true, message: "请选择是否需要检定" }], // rules: [{ required: true, message: "请选择是否需要检定" }],
}, // },
{ {
span: 8, span: 8,
label: "是否已确认", label: "是否已确认",
@ -177,7 +177,7 @@ export const tableOption = {
{ {
type: "select", type: "select",
span: 8, span: 8,
label: "状态", label: "设备状态",
prop: "instrumentStatus", prop: "instrumentStatus",
slot: true, slot: true,
align: "left", align: "left",

@ -63,7 +63,7 @@
} }
.el-card__body { .el-card__body {
//padding: 16px !important; padding: 20px 20px 40px !important;
} }
.el-divider--horizontal { .el-divider--horizontal {

@ -8,7 +8,7 @@
@searchHandle="searchHandle" @searchHandle="searchHandle"
@addHandle="$refs.crud.rowAdd()" @addHandle="$refs.crud.rowAdd()"
> >
<el-select <!-- <el-select
class="inputHeight" class="inputHeight"
v-model="searchForm.isVerification" v-model="searchForm.isVerification"
placeholder="请选择是否需要检定" placeholder="请选择是否需要检定"
@ -22,9 +22,39 @@
:value="item.value" :value="item.value"
> >
</el-option> </el-option>
</el-select> -->
<!-- <el-select
class="inputHeight"
v-model="searchForm.status"
placeholder="请选择设备状态"
size="small"
clearable
>
<el-option
v-for="item in statusList"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
>
</el-option>
</el-select> -->
<el-select
class="inputHeight"
v-model="searchForm.runStatus"
placeholder="请选择运行状态"
size="small"
clearable
>
<el-option
v-for="item in runList"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
>
</el-option>
</el-select> </el-select>
<el-button <!-- <el-button
class="cus-confirm" class="cus-confirm"
slot="otherBtn" slot="otherBtn"
size="small" size="small"
@ -32,7 +62,7 @@
style="float: right; margin-right: 20px" style="float: right; margin-right: 20px"
@click="batchPrint" @click="batchPrint"
>批量打印</el-button >批量打印</el-button
> > -->
<el-button <el-button
class="cus-confirm" class="cus-confirm"
slot="otherBtn" slot="otherBtn"
@ -244,7 +274,7 @@ export default {
}, },
// //
searchForm: { name: "", isVerification: "" }, searchForm: { name: "", isVerification: "", status: "", instrumentStatus: "", runStatus: "" },
// //
searchText: { addText: "新增", flag: 3 }, searchText: { addText: "新增", flag: 3 },
option: tableOption, option: tableOption,
@ -320,6 +350,11 @@ export default {
if(tmp){ if(tmp){
this.$message.warning('请选择未处理的设备') this.$message.warning('请选择未处理的设备')
}else{ }else{
this.$confirm("是否确认选中设备?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
let params = this.selectionList[0] let params = this.selectionList[0]
params.status = 1 params.status = 1
update(params).then(res =>{ update(params).then(res =>{
@ -327,7 +362,13 @@ export default {
this.$message.success('设备确认成功') this.$message.success('设备确认成功')
this.onLoad(this.page[0], this.searchForm) this.onLoad(this.page[0], this.searchForm)
} }
}).catch(err => {
this.$message({
type: 'error',
message: "设备确认失败!"
});
}) })
});
} }
} }
}, },

@ -60,11 +60,11 @@
</el-row> </el-row>
</el-form> </el-form>
</template> </template>
<template slot="menuRight"> <!-- <template slot="menuRight">
<el-button class="search" style="width: 120px" @click="printRepair" <el-button class="search" style="width: 120px" @click="printRepair"
>打印报修单</el-button >打印报修单</el-button
> >
</template> </template> -->
<template slot-scope="{ row }" slot="status"> <template slot-scope="{ row }" slot="status">
<span v-if="row.status === 0" style="color: #ee922f">待审核</span> <span v-if="row.status === 0" style="color: #ee922f">待审核</span>
<span v-if="row.status === 1" style="color: #e56926">待派单</span> <span v-if="row.status === 1" style="color: #e56926">待派单</span>

Loading…
Cancel
Save