Merge remote-tracking branch 'origin/material-ui' into material-ui
This commit is contained in:
commit
e885973e01
|
|
@ -72,6 +72,11 @@ export function exportNewBuy(purchaseId) {
|
||||||
url: '/material/purchase/bind/downloadQrCode?purchaseId='+purchaseId,
|
url: '/material/purchase/bind/downloadQrCode?purchaseId='+purchaseId,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
responseType: 'blob',
|
responseType: 'blob',
|
||||||
|
headers: {
|
||||||
|
encryptRequest: false,
|
||||||
|
checkIntegrity: false,
|
||||||
|
encryptResponse: false,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,7 @@
|
||||||
|
|
||||||
<!-- 二维码下载对话框 -->
|
<!-- 二维码下载对话框 -->
|
||||||
<el-dialog title="二维码" :visible.sync="uploadOpen" width="450px" append-to-body :close-on-click-modal="false">
|
<el-dialog title="二维码" :visible.sync="uploadOpen" width="450px" append-to-body :close-on-click-modal="false">
|
||||||
<div style="text-align: center" ref="codeBox">
|
<div style="text-align: center" ref="codeBox" v-if="uploadOpen">
|
||||||
<div class="uploadImg">
|
<div class="uploadImg">
|
||||||
<div id="qrcode" class="qrcode" ref="codeItem"></div>
|
<div id="qrcode" class="qrcode" ref="codeItem"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -263,7 +263,7 @@
|
||||||
v-model="scope.row.preNum"
|
v-model="scope.row.preNum"
|
||||||
type="text"
|
type="text"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:disabled="scope.row.alNum && scope.row.alNum != 0"
|
:disabled="scope.row.alNum && scope.row.alNum != 0 ? true : false"
|
||||||
@input="handlePreNum(scope.row, $event, 'input')"
|
@input="handlePreNum(scope.row, $event, 'input')"
|
||||||
@blur="handlePreNum(scope.row, $event, 'blur')"
|
@blur="handlePreNum(scope.row, $event, 'blur')"
|
||||||
/>
|
/>
|
||||||
|
|
@ -899,7 +899,7 @@ export default {
|
||||||
this.$message.error(`第 ${i + 1} 行的 ${'预领数量必须大于0'} `);
|
this.$message.error(`第 ${i + 1} 行的 ${'预领数量必须大于0'} `);
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if(this.equipmentList[i].preNum>this.equipmentList[i].storageNum){
|
if(this.equipmentList[i].preNum - this.equipmentList[i].alNum > this.equipmentList[i].storageNum){
|
||||||
this.$message.error(`第 ${i + 1} 行的 ${'预领数量不可大于库存量'} `);
|
this.$message.error(`第 ${i + 1} 行的 ${'预领数量不可大于库存量'} `);
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
@ -923,6 +923,9 @@ export default {
|
||||||
this.maForm.leaseUnitId = this.maForm.unitId;
|
this.maForm.leaseUnitId = this.maForm.unitId;
|
||||||
this.maForm.leaseProjectId = this.maForm.projectId;
|
this.maForm.leaseProjectId = this.maForm.projectId;
|
||||||
console.log("编辑",this.maForm.bmFileInfos);
|
console.log("编辑",this.maForm.bmFileInfos);
|
||||||
|
if (this.maForm.leaseSignUrl) {
|
||||||
|
delete this.maForm.leaseSignUrl
|
||||||
|
}
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
updateApplyInfo({
|
updateApplyInfo({
|
||||||
leaseApplyDetailsList: this.equipmentList,
|
leaseApplyDetailsList: this.equipmentList,
|
||||||
|
|
|
||||||
|
|
@ -364,7 +364,7 @@
|
||||||
|
|
||||||
<!-- 二维码下载对话框 -->
|
<!-- 二维码下载对话框 -->
|
||||||
<el-dialog title="二维码查看" :visible.sync="uploadOpen" width="450px" append-to-body :close-on-click-modal="false">
|
<el-dialog title="二维码查看" :visible.sync="uploadOpen" width="450px" append-to-body :close-on-click-modal="false">
|
||||||
<div style="text-align: center" ref="codeQr">
|
<div style="text-align: center" ref="codeQr" v-if="uploadOpen">
|
||||||
<div class="uploadImg">
|
<div class="uploadImg">
|
||||||
<div id="qrcode" class="qrcode" ref="codeItem"></div>
|
<div id="qrcode" class="qrcode" ref="codeItem"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -819,10 +819,12 @@ export default {
|
||||||
|
|
||||||
// 二维码查看
|
// 二维码查看
|
||||||
handleViewQrCode(row) {
|
handleViewQrCode(row) {
|
||||||
|
console.log('🚀 ~ handleViewQrCode ~ row:', row)
|
||||||
this.rowObj = row
|
this.rowObj = row
|
||||||
this.uploadOpen = true
|
this.uploadOpen = true
|
||||||
this.qrCode = row.qrCode
|
this.qrCode = row.qrCode
|
||||||
let str = row.qrCode
|
let str = 'http://ahjj.jypxks.com:9988/imw/backstage/machine/qrCodePage?qrcode=' + row.qrCode
|
||||||
|
console.log('🚀 ~ handleViewQrCode ~ str:', str)
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.codeItem.innerHTML = ''
|
this.$refs.codeItem.innerHTML = ''
|
||||||
var qrcode = new QRCode(this.$refs.codeItem, {
|
var qrcode = new QRCode(this.$refs.codeItem, {
|
||||||
|
|
@ -855,7 +857,7 @@ export default {
|
||||||
|
|
||||||
// 使用 qrcodejs2 生成二维码
|
// 使用 qrcodejs2 生成二维码
|
||||||
new QRCode(qrcodeContainer, {
|
new QRCode(qrcodeContainer, {
|
||||||
text: row.qrCode,
|
text: 'http://ahjj.jypxks.com:9988/imw/backstage/machine/qrCodePage?qrcode=' + row.qrCode,
|
||||||
width: 256,
|
width: 256,
|
||||||
height: 256,
|
height: 256,
|
||||||
colorDark: '#000000',
|
colorDark: '#000000',
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,16 @@
|
||||||
prop="scrapReason"
|
prop="scrapReason"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="损坏原因"
|
||||||
|
align="center"
|
||||||
|
prop="scrapType"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
>
|
||||||
|
<template slot-scope="{ row }">
|
||||||
|
{{ row.scrapType == 0 ? '自然损坏' : '人为损坏' }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="附件"
|
label="附件"
|
||||||
align="center"
|
align="center"
|
||||||
|
|
@ -357,12 +367,15 @@ export default {
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
batchPassApi({'scrapApplyDetailsList':this.passTemp}).then((response) => {
|
// 二次确认
|
||||||
if (response.code == 200) {
|
this.$modal.confirm("是否确认通过所选择的数据项?").then(() => {
|
||||||
this.$modal.msgSuccess("通过成功");
|
batchPassApi({'scrapApplyDetailsList':this.passTemp}).then((response) => {
|
||||||
}
|
if (response.code == 200) {
|
||||||
this.getTaskInfo();
|
this.$modal.msgSuccess("通过成功");
|
||||||
});
|
}
|
||||||
|
this.getTaskInfo();
|
||||||
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//多个驳回
|
//多个驳回
|
||||||
|
|
@ -374,12 +387,14 @@ export default {
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
batchRejectApi({'scrapApplyDetailsList':this.failTemp}).then((response) => {
|
this.$modal.confirm("是否确认驳回所选择的数据项?").then(() => {
|
||||||
if (response.code == 200) {
|
batchRejectApi({'scrapApplyDetailsList':this.failTemp}).then((response) => {
|
||||||
this.$modal.msgSuccess("驳回成功");
|
if (response.code == 200) {
|
||||||
}
|
this.$modal.msgSuccess("驳回成功");
|
||||||
this.getTaskInfo();
|
}
|
||||||
});
|
this.getTaskInfo();
|
||||||
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -210,7 +210,7 @@ export default {
|
||||||
const params = {
|
const params = {
|
||||||
keyWord: this.queryParams.keyWord,
|
keyWord: this.queryParams.keyWord,
|
||||||
typeName: this.queryParams.typeName,
|
typeName: this.queryParams.typeName,
|
||||||
typeModelName: this.queryParams.typeModelName,
|
proName: this.queryParams.proName,
|
||||||
pageSize: this.queryParams.pageSize,
|
pageSize: this.queryParams.pageSize,
|
||||||
pageNum: this.queryParams.pageNum,
|
pageNum: this.queryParams.pageNum,
|
||||||
startTime: this.queryParams.time ? this.queryParams.time[0] : '',
|
startTime: this.queryParams.time ? this.queryParams.time[0] : '',
|
||||||
|
|
@ -281,6 +281,9 @@ export default {
|
||||||
this.openUseRecord = true
|
this.openUseRecord = true
|
||||||
this.dialogUseQuery.typeId = row.typeId
|
this.dialogUseQuery.typeId = row.typeId
|
||||||
this.dialogUseQuery.keyWord = ''
|
this.dialogUseQuery.keyWord = ''
|
||||||
|
this.dialogUseQuery.pageNum = 1
|
||||||
|
this.dialogUseQuery.pageSize = 10
|
||||||
|
this.useRecordList = []
|
||||||
this.getUserRecords()
|
this.getUserRecords()
|
||||||
},
|
},
|
||||||
/** 查询在用设备列表 */
|
/** 查询在用设备列表 */
|
||||||
|
|
|
||||||
|
|
@ -790,6 +790,9 @@ export default {
|
||||||
this.openRecord = true
|
this.openRecord = true
|
||||||
this.dialogQuery.keyWord = ""
|
this.dialogQuery.keyWord = ""
|
||||||
this.dialogQuery.typeId = row.typeId;
|
this.dialogQuery.typeId = row.typeId;
|
||||||
|
this.dialogQuery.pageNum = 1
|
||||||
|
this.dialogQuery.pageSize = 10
|
||||||
|
this.dialogList = []
|
||||||
this.getStoreCodeList()
|
this.getStoreCodeList()
|
||||||
},
|
},
|
||||||
/** 查询在库编码列表 */
|
/** 查询在库编码列表 */
|
||||||
|
|
@ -828,6 +831,9 @@ export default {
|
||||||
this.openUseRecord = true
|
this.openUseRecord = true
|
||||||
this.dialogUseQuery.typeId= row.typeId
|
this.dialogUseQuery.typeId= row.typeId
|
||||||
this.dialogUseQuery.keyWord = "";
|
this.dialogUseQuery.keyWord = "";
|
||||||
|
this.dialogUseQuery.pageNum = 1
|
||||||
|
this.dialogUseQuery.pageSize = 10
|
||||||
|
this.useRecordList = []
|
||||||
this.getUserRecords()
|
this.getUserRecords()
|
||||||
},
|
},
|
||||||
/** 查询在用设备列表 */
|
/** 查询在用设备列表 */
|
||||||
|
|
@ -867,6 +873,9 @@ export default {
|
||||||
this.dialogRepairQuery.typeId= row.typeId
|
this.dialogRepairQuery.typeId= row.typeId
|
||||||
this.dialogRepairQuery.pageNum = 1;
|
this.dialogRepairQuery.pageNum = 1;
|
||||||
this.dialogRepairQuery.keyWord = "";
|
this.dialogRepairQuery.keyWord = "";
|
||||||
|
this.dialogRepairQuery.pageNum = 1
|
||||||
|
this.dialogRepairQuery.pageSize = 10
|
||||||
|
this.repairRecordList = []
|
||||||
this.getRepairRecords()
|
this.getRepairRecords()
|
||||||
},
|
},
|
||||||
/** 查询在修设备列表 */
|
/** 查询在修设备列表 */
|
||||||
|
|
@ -905,7 +914,9 @@ export default {
|
||||||
this.openPurchaseRecord = true
|
this.openPurchaseRecord = true
|
||||||
this.dialogPurchaseQuery.typeId= row.typeId
|
this.dialogPurchaseQuery.typeId= row.typeId
|
||||||
this.dialogPurchaseQuery.pageNum = 1;
|
this.dialogPurchaseQuery.pageNum = 1;
|
||||||
|
this.dialogPurchaseQuery.pageSize = 10
|
||||||
this.dialogPurchaseQuery.keyWord = "";
|
this.dialogPurchaseQuery.keyWord = "";
|
||||||
|
this.purchaseRecordList = []
|
||||||
this.getPurchaseRecords()
|
this.getPurchaseRecords()
|
||||||
},
|
},
|
||||||
/** 查询新购入库设备列表 */
|
/** 查询新购入库设备列表 */
|
||||||
|
|
@ -944,7 +955,9 @@ export default {
|
||||||
this.openTestedRecord = true
|
this.openTestedRecord = true
|
||||||
this.dialogTestedQuery.typeId= row.typeId
|
this.dialogTestedQuery.typeId= row.typeId
|
||||||
this.dialogTestedQuery.pageNum = 1;
|
this.dialogTestedQuery.pageNum = 1;
|
||||||
|
this.dialogTestedQuery.pageSize = 10
|
||||||
this.dialogTestedQuery.keyWord = "";
|
this.dialogTestedQuery.keyWord = "";
|
||||||
|
this.testedRecordList = []
|
||||||
this.getTestedRecords()
|
this.getTestedRecords()
|
||||||
},
|
},
|
||||||
/** 查询修试入库设备列表 */
|
/** 查询修试入库设备列表 */
|
||||||
|
|
@ -984,7 +997,9 @@ export default {
|
||||||
this.openToScrapRecord = true
|
this.openToScrapRecord = true
|
||||||
this.dialogToScrapQuery.typeId= row.typeId
|
this.dialogToScrapQuery.typeId= row.typeId
|
||||||
this.dialogToScrapQuery.pageNum = 1;
|
this.dialogToScrapQuery.pageNum = 1;
|
||||||
|
this.dialogToScrapQuery.pageSize = 10
|
||||||
this.dialogToScrapQuery.keyWord = "";
|
this.dialogToScrapQuery.keyWord = "";
|
||||||
|
this.toScrapRecordList = []
|
||||||
this.getToScrapRecords()
|
this.getToScrapRecords()
|
||||||
},
|
},
|
||||||
/** 查询待报废设备列表 */
|
/** 查询待报废设备列表 */
|
||||||
|
|
@ -1023,7 +1038,9 @@ export default {
|
||||||
this.openAuditedRecord = true
|
this.openAuditedRecord = true
|
||||||
this.dialogAuditedQuery.typeId= row.typeId
|
this.dialogAuditedQuery.typeId= row.typeId
|
||||||
this.dialogAuditedQuery.pageNum = 1;
|
this.dialogAuditedQuery.pageNum = 1;
|
||||||
|
this.dialogAuditedQuery.pageSize = 10
|
||||||
this.dialogAuditedQuery.keyWord = "";
|
this.dialogAuditedQuery.keyWord = "";
|
||||||
|
this.auditedRecordList = []
|
||||||
this.getAuditedRecords()
|
this.getAuditedRecords()
|
||||||
},
|
},
|
||||||
/** 查询已审核报废设备列表 */
|
/** 查询已审核报废设备列表 */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue