代码优化
This commit is contained in:
parent
fa4e3b3621
commit
d92527b614
|
|
@ -277,12 +277,12 @@
|
||||||
<!-- </el-col>-->
|
<!-- </el-col>-->
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-table v-loading="loading" :data="detailTableList" border>
|
<el-table v-loading="loading" :data="detailTableList" border>
|
||||||
<!-- <el-table-column
|
<el-table-column
|
||||||
type="selection"
|
type="selection"
|
||||||
width="55"
|
width="55"
|
||||||
align="center"
|
align="center"
|
||||||
:selectable="selectable"
|
:selectable="selectable"
|
||||||
/> -->
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="序号"
|
label="序号"
|
||||||
align="center"
|
align="center"
|
||||||
|
|
@ -729,42 +729,47 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
passAll() {
|
passAll() {
|
||||||
const params = {
|
// const params = {
|
||||||
pageNum: 1,
|
// pageNum: 1,
|
||||||
pageSize: 9999,
|
// pageSize: 9999,
|
||||||
taskId: this.query.taskId,
|
// taskId: this.query.taskId,
|
||||||
dictName: this.query.dictName,
|
// dictName: this.query.dictName,
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
if (this.ids.length < 1) {
|
||||||
|
this.$message.error('请勾选需要入库的数据!')
|
||||||
|
return
|
||||||
|
}
|
||||||
this.passLoading = true
|
this.passLoading = true
|
||||||
getPutinDetailsList(params).then((res) => {
|
this.ids.forEach((item) => {
|
||||||
let deviceList = res.rows
|
item.taskId = this.query.taskId
|
||||||
deviceList.forEach((item) => {
|
item.typeId = item.typeId
|
||||||
item.taskId = this.query.taskId
|
item.maId = item.maId
|
||||||
item.typeId = item.typeId
|
item.inputNum = item.checkNum
|
||||||
item.maId = item.maId
|
item.maCode = item.maCode
|
||||||
item.inputNum = item.checkNum
|
|
||||||
item.maCode = item.maCode
|
|
||||||
})
|
|
||||||
let param = {
|
|
||||||
taskId: this.query.taskId,
|
|
||||||
checkResult: '1',
|
|
||||||
inputRecordList: deviceList,
|
|
||||||
}
|
|
||||||
changePutinStatus(param)
|
|
||||||
.then((response) => {
|
|
||||||
if (response.code == 200) {
|
|
||||||
this.$modal.msgSuccess('审批成功')
|
|
||||||
this.getDialogTable()
|
|
||||||
this.getList()
|
|
||||||
} else {
|
|
||||||
this.$modal.msgSuccess('审批失败')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
this.passLoading = false
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
let param = {
|
||||||
|
taskId: this.query.taskId,
|
||||||
|
checkResult: '1',
|
||||||
|
inputRecordList: deviceList,
|
||||||
|
}
|
||||||
|
changePutinStatus(param)
|
||||||
|
.then((response) => {
|
||||||
|
if (response.code == 200) {
|
||||||
|
this.$modal.msgSuccess('审批成功')
|
||||||
|
this.getDialogTable()
|
||||||
|
this.getList()
|
||||||
|
} else {
|
||||||
|
this.$modal.msgSuccess('审批失败')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
this.passLoading = false
|
||||||
|
})
|
||||||
|
// getPutinDetailsList(params).then((res) => {
|
||||||
|
// let deviceList = res.rows
|
||||||
|
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
//拒绝
|
//拒绝
|
||||||
refused(row) {
|
refused(row) {
|
||||||
|
|
|
||||||
|
|
@ -42,9 +42,9 @@ module.exports = {
|
||||||
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网
|
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网
|
||||||
// target: `https://z.csgmall.com.cn`,
|
// target: `https://z.csgmall.com.cn`,
|
||||||
|
|
||||||
target: `http://192.168.2.141:39080`, //超
|
// target: `http://192.168.2.141:39080`, //超
|
||||||
// target: `http://10.40.92.81:8080`, //韩/
|
// target: `http://10.40.92.81:8080`, //韩/
|
||||||
// target: `http://10.40.92.74:8080`,//旭/
|
target: `http://192.168.2.77:39080`,//旭/
|
||||||
// target: `http://10.40.92.138:28080`, //帅
|
// target: `http://10.40.92.138:28080`, //帅
|
||||||
// target: `http://192.168.2.218:39080`, //福
|
// target: `http://192.168.2.218:39080`, //福
|
||||||
// target: `http://192.168.2.120:39080`, //跃
|
// target: `http://192.168.2.120:39080`, //跃
|
||||||
|
|
|
||||||
Reference in New Issue