Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
bb5d0d295e
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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 => {
|
||||
|
|
|
|||
|
|
@ -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(() => {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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`,//川/
|
||||
|
||||
//******** 注意事项 ********* */
|
||||
|
|
|
|||
Loading…
Reference in New Issue