Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
liang.chao 2024-03-19 17:05:19 +08:00
commit bb5d0d295e
7 changed files with 80 additions and 64 deletions

View File

@ -300,13 +300,13 @@ export default {
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const dictId = row.dictId || this.ids
getType(dictId).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改字典类型";
});
// this.reset();
// const dictId = row.dictId || this.ids
// getType(dictId).then(response => {
// this.form = response.data;
// this.open = true;
// this.title = "";
// });
},
/** 提交按钮 */
submitForm: function() {

View File

@ -131,7 +131,7 @@
<el-form-item label="验收图片" prop="checkUrl">
<el-upload
:http-request="(obj) => imgUpLoad(obj,'fileUrl')"
action="#"
action="#" :limit="5"
:file-list="fileList"
:show-file-list="true"
list-type="picture-card"
@ -160,7 +160,7 @@
<el-form-item label="验收图片" prop="checkUrl">
<el-upload
:http-request="(obj) => imgUpLoad(obj,'fileUrl')"
action="#"
action="#" :limit="5"
:file-list="fileList1"
:show-file-list="true"
list-type="picture-card"
@ -443,7 +443,8 @@ export default {
//
handleNotice(){
this.noticeOpen = true;
this.nform.notice = '各位同事您好,请于'+this.getNowTime()+'进行机具验收。验收单号:'+this.taskInfo.code;
this.resetForm("nform");
this.$set(this.nform,'notice','各位同事您好,请于'+this.getNowTime()+'进行机具验收。验收单号:'+this.taskInfo.code)
},
//
getNoticeUserList() {
@ -494,36 +495,39 @@ export default {
},
//
configNotice(){
this.configUserList.forEach((item,index)=>{
item.noticeUser = item.userId;
item.phone = item.telphone;
})
let param = {
message:this.nform.notice,
taskId:this.taskInfo.taskId,
bmNoticeInfoList:this.configUserList,
}
if(this.configUserList.length>0){
bmNoticeInfo(param).then(response=>{
console.log(response)
if(response.code==200){
this.$message({
message: '操作成功',
type: 'success'
})
this.noticeOpen = false
this.getTaskInfo()
this.$refs["nform"].validate(valid => {
if (valid) {
this.configUserList.forEach((item,index)=>{
item.noticeUser = item.userId;
item.phone = item.telphone;
})
let param = {
message:this.nform.notice,
taskId:this.taskInfo.taskId,
bmNoticeInfoList:this.configUserList,
}
if(this.configUserList.length>0){
bmNoticeInfo(param).then(response=>{
console.log(response)
if(response.code==200){
this.$message({
message: '操作成功',
type: 'success'
})
this.noticeOpen = false
this.getTaskInfo()
}
})
}else{
this.$message({
message: '请选择通知人员!',
type: 'error'
})
}
}else{
this.$message({
message: '请选择通知人员!',
type: 'error'
})
}
}
})
},
//
handleSelectionChange(selection) {
@ -533,22 +537,37 @@ export default {
},
/** 验收按钮操作 */
handleCheck(row) {
let rowData = row
rowData.checkNum = rowData.purchaseNum;
rowData.checkResult = rowData.checkResult || "通过";
// this.fileList = []
// this.checkUrlList = []
// this.checkUrlNameList = []
this.form = rowData;
// console.log(row)
this.$set(this.form,'code',row.code)
this.$set(this.form,'companyId',row.companyId)
this.$set(this.form,'createBy',row.createBy)
this.$set(this.form,'createTime',row.createTime)
this.$set(this.form,'id',row.id)
this.$set(this.form,'machineTypeName',row.machineTypeName)
this.$set(this.form,'manageType',row.manageType)
this.$set(this.form,'specificationType',row.specificationType)
this.$set(this.form,'typeName',row.typeName)
this.$set(this.form,'machineTypeName',row.machineTypeName)
this.$set(this.form,'taskId',row.taskId)
this.$set(this.form,'typeId',row.typeId)
this.$set(this.form,'checkResult',row.checkResult|| "通过")
// this.$set(this.form,'machineTypeName',row.machineTypeName)
this.$set(this.form,'purchaseNum',row.purchaseNum)
this.$set(this.form,'checkNum',row.purchaseNum)
this.$set(this.form,'checkUrl','')
this.$set(this.form,'checkUrlName','')
this.fileList = []
this.checkUrlList = []
this.checkUrlNameList = []
this.open = true;
this.title = "验收";
},
/** 批量验收按钮操作 */
handleListCheck() {
// console.log(this.ids)
// this.fileList1 = [];
// this.checkUrlList1 = []
// this.checkUrlNameList1 = []
this.fileList1 = [];
this.checkUrlList1 = []
this.checkUrlNameList1 = []
this.aform = {
checkResult:'通过',
checkUrl:'',
@ -593,7 +612,7 @@ export default {
item.checkUrl = this.aform.checkUrl
item.checkUrlName = this.aform.checkUrlName
})
console.log(this.ids)
// console.log(this.ids)
let equipments = this.ids
console.log(equipments)
this.$refs["aform"].validate(valid => {

View File

@ -496,20 +496,19 @@ export default {
if(this.equipmentList.length>0){
this.$refs["maForm"].validate(valid => {
if (valid) {
console.log(this.maForm,'maForm')
console.log(this.equipmentList,'equipmentList')
// console.log(this.maForm,'maForm')
// console.log(this.equipmentList,'equipmentList')
let isEmpty = true
this.equipmentList.forEach(item=>{
if(item.purchaseNum=='' || !item.purchaseNum){
isEmpty = false
}
})
console.log(this.taskId)
// console.log(this.taskId)
this.maForm.taskId = this.taskId
this.maForm.checkDetailsList = this.equipmentList;
console.log(this.maForm)
// console.log(this.maForm)
if(isEmpty){
if(this.equipmentList.length>0){
this.$modal.confirm('是否确认保存当前页面').then(function() { }).then(() => {

View File

@ -431,7 +431,7 @@ export default {
</script>
<style lang="scss" scoped>
::v-deep.el-table .fixed-width .el-button--mini {
width: 60px !important;
width: 70px !important;
margin-bottom: 10px;
}
</style>

View File

@ -42,7 +42,7 @@
<el-table-column label="入库人员" align="center" prop="updateBy" :show-overflow-tooltip="true" width="100"/>
<el-table-column label="入库时间" align="center" prop="updateTime" :show-overflow-tooltip="true"/>
<el-table-column label="发布时间" align="center" prop="createTime" :show-overflow-tooltip="true"/>
<el-table-column label="不通过原因" align="center" prop="remark" :show-overflow-tooltip="true" />
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
<el-table-column label="状态" align="center" prop="taskStatus">
<template slot-scope="scope">
<span v-if="scope.row.taskStatus=='26'">已验收合格</span>
@ -170,13 +170,6 @@
v-if="scope.row.status=='0'"
@click="refused(scope.row)"
>不通过</el-button>
<!-- <el-button-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- icon="el-icon-delete"-->
<!-- @click="handleDelete(scope.row)"-->
<!-- v-hasPermi="['system:dict:remove']"-->
<!-- >删除</el-button>-->
</template>
</el-table-column>
</el-table>

View File

@ -78,6 +78,11 @@
prop="noticeTitle"
:show-overflow-tooltip="true"
/>
<el-table-column label="公告内容" align="center" prop="noticeContent" :show-overflow-tooltip="true" >
<template slot-scope="scope">
<dict-tag :options="dict.type.sys_notice_type" :value="scope.row.noticeContent"/>
</template>
</el-table-column>
<el-table-column label="公告类型" align="center" prop="noticeType" width="100">
<template slot-scope="scope">
<dict-tag :options="dict.type.sys_notice_type" :value="scope.row.noticeType"/>
@ -94,7 +99,7 @@
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
<template slot-scope="scope">
<el-button
size="mini"

View File

@ -43,7 +43,7 @@ module.exports = {
// target: `https://z.csgmall.com.cn`,
target: `http://10.40.92.12:8080`,//超
// target: `http://10.40.92.2:8080`,//韩
// target: `http://10.40.92.4:8080`,//韩
// target: `http://10.40.92.209:8080`,//川/
//******** 注意事项 ********* */