Commit fa34f1fe authored by “lixuyan”'s avatar “lixuyan”

调整胶漆页面细节

parent 21006e58
......@@ -117,27 +117,6 @@ export default {
cardId: null,
// 左侧行编号
newCardNo: null,
tools: [{
name: '分装',
icon: '/icons/c-add.png',
handler: {
click: (e) => {
this.$refs.dialog.open()
}
}
}, {
name: '打印',
icon: '/icons/c-print.png',
handler: {
click: (e) => {
if (this.sectionData.length !== 1) {
this.$message.error('请选择一条数据')
} else {
this.print()
}
}
}
}],
colums2: [
{
title: '操作',
......@@ -241,6 +220,43 @@ export default {
}
}
},
computed: {
tools() {
if (this.basicData.appState === 'deployed') {
return [{
name: '分装',
icon: '/icons/c-add.png',
handler: {
click: (e) => {
this.$refs.dialog.open()
}
}
}, {
name: '打印',
icon: '/icons/c-print.png',
handler: {
click: (e) => {
if (this.sectionData.length !== 1) {
this.$message.error('请选择一条数据')
} else {
this.print()
}
}
}
}]
} else {
return [{
name: '分装',
icon: '/icons/c-add.png',
handler: {
click: (e) => {
this.$refs.dialog.open()
}
}
}]
}
}
},
watch: {
form: {
immediate: true,
......
......@@ -102,6 +102,7 @@ export default {
)
.then((res) => {
this.$utils.showMessage('操作成功!', 'success')
this.$bus.$emit('opertorSuccess')
})
.catch((err) => console.log(err))
.finally(() => {
......
......@@ -96,12 +96,22 @@
<i class="el-icon-edit-outline" />
</template>
<template slot-scope="scope">
<el-input
<el-date-picker
v-if="scope.row.needTimeSelect"
v-model="scope.row.needTime"
clearable
type="date"
placeholder="选择日期"
value-format="yyyy-MM-dd HH:mm:ss"
@focus="tableInputFocus"
@blur="deeTableBlur(scope.row, false)"
@change="deeTableBlur(scope.row, false)"
/>
<!-- <el-input
v-if="scope.row.needTimeSelect"
v-model="scope.row.needTime"
@focus="tableInputFocus"
@blur="deeTableBlur(scope.row, false)"
/> -->
<span v-else>{{ scope.row[scope.column.property] }}</span>
<i
v-if="scope.row.needTimeLoading"
......@@ -139,6 +149,7 @@
</template>
<script>
let timer = null
import { post } from '@/utils/http'
export default {
components: {},
......@@ -270,8 +281,11 @@ export default {
return label
},
rowClick(row) {
clearTimeout(timer)
timer = setTimeout(() => {
this.rowData = row
this.$parent.$parent.$parent.$refs.footer.getTableData(this.rowData.id)
}, 300)
},
/**
* 胶漆使用申请
......@@ -333,8 +347,6 @@ export default {
var that = this
const param = {
id: row.id,
dxClassname: 'com.tf.mes.vo.storage.StorageRequestItemVo',
subTypeName: 'StorageRequestItemMatch',
operator: 'MODIFY',
needTime: row.needTime
}
......@@ -344,7 +356,7 @@ export default {
row.needTimeLoading = false
return
}
post('/StorageRequestItem/recursion', param)
post('/ExtSupportingItem/recursion', param)
.then((res) => {
if (res.message.includes('成功')) {
that.$message({
......@@ -370,6 +382,7 @@ export default {
this.timer = null
},
deeTableEdit(row, column, cell, event) {
clearTimeout(timer)
var that = this
if (column.property === 'needTime') {
row.needTimeSelect = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment