Compare commits

..

No commits in common. "4ba7a55b2e69364984b5a527cfc8f981a2cb4427" and "2d812f07adbe8d73ba19f7983447ccc7ee4d297e" have entirely different histories.

8 changed files with 19 additions and 54 deletions

View File

@ -2,7 +2,7 @@
* @Author: zwq * @Author: zwq
* @Date: 2022-03-07 15:31:13 * @Date: 2022-03-07 15:31:13
* @LastEditors: zwq * @LastEditors: zwq
* @LastEditTime: 2022-07-08 08:36:01 * @LastEditTime: 2022-07-07 10:50:49
* @Description: * @Description:
--> -->
<template> <template>
@ -11,7 +11,7 @@
浙江求精科技车间生产看板 浙江求精科技车间生产看板
</div> </div>
<div class="container-body"> <div class="container-body">
<board v-for="(item,index) in wbData" :key="index" :wbData="item" :imgUrl="item.kilnCode"></board> <board v-for="(item,index) in wbData" :key="index" :wbData="item" :imgUrl="item.kilnCode + item.kilnId"></board>
</div> </div>
</div> </div>
</template> </template>

View File

@ -70,7 +70,6 @@
methods: { methods: {
init (row, idx) { init (row, idx) {
this.visible = true this.visible = true
this.formLoading = false
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].resetFields() this.$refs['dataForm'].resetFields()
if (row) { if (row) {
@ -111,7 +110,7 @@
dataFormSubmit () { dataFormSubmit () {
this.$refs['dataForm'].validate((valid) => { this.$refs['dataForm'].validate((valid) => {
if (valid) { if (valid) {
if (this.editIndex || this.editIndex === 0) { if (this.editIndex) {
const taskList = JSON.parse(sessionStorage.getItem('autoTaskList')) const taskList = JSON.parse(sessionStorage.getItem('autoTaskList'))
taskList.splice(this.editIndex, 1, this.dataForm) taskList.splice(this.editIndex, 1, this.dataForm)
sessionStorage.setItem('autoTaskList', JSON.stringify(taskList)) sessionStorage.setItem('autoTaskList', JSON.stringify(taskList))

View File

@ -1,8 +1,8 @@
<!-- <!--
* @Author: gtz * @Author: gtz
* @Date: 2022-03-04 10:22:13 * @Date: 2022-03-04 10:22:13
* @LastEditors: zwq * @LastEditors: gtz
* @LastEditTime: 2022-07-08 09:41:08 * @LastEditTime: 2022-03-05 12:09:38
* @Description: file content * @Description: file content
* @FilePath: \mt-qj-wms-ui\src\views\common\order-auto-submit.vue * @FilePath: \mt-qj-wms-ui\src\views\common\order-auto-submit.vue
--> -->
@ -144,7 +144,6 @@
}, },
methods: { methods: {
init (list) { init (list) {
this.dataList.splice(0, this.dataList.length)
this.dataList = list this.dataList = list
this.visible = true this.visible = true
this.$nextTick(() => { this.$nextTick(() => {
@ -253,16 +252,10 @@
}).then(({data}) => { }).then(({data}) => {
console.log(data) console.log(data)
if (data && data.code === 0) { if (data && data.code === 0) {
this.$message({ this.$message.success('任务提交成功')
message: '操作成功', this.dataList = []
type: 'success', sessionStorage.setItem('autoTaskList', '')
duration: 1500, this.$emit('refreshDataList')
onClose: () => {
this.visible = false
sessionStorage.setItem('autoTaskList', '')
this.$emit('refreshDataList')
}
})
} else { } else {
this.$message.warning(data.msg) this.$message.warning(data.msg)
} }

View File

@ -72,7 +72,6 @@
this.visible = true this.visible = true
this.row = null this.row = null
this.editIndex = null this.editIndex = null
this.formLoading = false
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].resetFields() this.$refs['dataForm'].resetFields()
if (row) { if (row) {

View File

@ -28,11 +28,6 @@
</el-select> </el-select>
<!-- <el-button style="margin-left:10px" type="primary" @click="getPoint(1)">{{kilnId}}</el-button> --> <!-- <el-button style="margin-left:10px" type="primary" @click="getPoint(1)">{{kilnId}}</el-button> -->
</el-form-item> </el-form-item>
<el-form-item>
<el-select v-model="craftCode" placeholder="工艺">
<el-option v-for="item in processList" :key="item.id" :value="item.code" :label="item.craftCode" />
</el-select>
</el-form-item>
<el-form-item style="margin-left:1%"> <el-form-item style="margin-left:1%">
<el-button type="primary" size="small" @click="submitTask()">提交任务</el-button> <el-button type="primary" size="small" @click="submitTask()">提交任务</el-button>
</el-form-item> </el-form-item>
@ -122,15 +117,13 @@
return { return {
startPosition: '', startPosition: '',
kilnId: '', kilnId: '',
craftCode: '',
targetPosition: '', targetPosition: '',
dataList: [], dataList: [],
processType: null, processType: null,
dataListLoading: false, dataListLoading: false,
addOrUpdateVisible: false, addOrUpdateVisible: false,
processPointVisible: false, processPointVisible: false,
eqList: [], eqList: []
processList: []
} }
}, },
components: { components: {
@ -158,21 +151,6 @@
} }
this.getDataList() this.getDataList()
}) })
this.$http({
url: this.$http.adornUrl('/craftInfo/page'),
method: 'post',
data: this.$http.adornData({
current: 1,
size: 999
})
}).then(({ data }) => {
if (data && data.code === 0) {
this.processList = data.data.records
} else {
this.processList = []
}
})
}, },
// //
getDataList () { getDataList () {
@ -221,11 +199,6 @@
message: '请选择窑炉', message: '请选择窑炉',
type: 'warning' type: 'warning'
}) })
} else if (!this.craftCode) {
this.$message({
message: '请选择工艺',
type: 'warning'
})
} else if (this.processType !== 0 && this.processType !== 1) { } else if (this.processType !== 0 && this.processType !== 1) {
this.$message.warning('请选择加工类型') this.$message.warning('请选择加工类型')
} else { } else {
@ -238,7 +211,7 @@
url: this.$http.adornUrl(`/currTask/createProcessTask`), url: this.$http.adornUrl(`/currTask/createProcessTask`),
method: 'post', method: 'post',
data: this.$http.adornData({ data: this.$http.adornData({
craftCode: this.craftCode, craftCode: '',
detParams: this.dataList, detParams: this.dataList,
kilnId: this.kilnId, kilnId: this.kilnId,
processType: this.processType, processType: this.processType,
@ -247,6 +220,7 @@
// this.targetPosition // this.targetPosition
}) })
}).then(({data}) => { }).then(({data}) => {
console.log(data)
if (data && data.code === 0) { if (data && data.code === 0) {
this.$message.success('任务提交成功') this.$message.success('任务提交成功')
this.dataList = [] this.dataList = []

View File

@ -53,18 +53,19 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
scope.row.taskType === 0 scope.row.taskType === 0
? "入库到窑炉" ? "缓存到窑炉加工"
: scope.row.taskType === 1 : scope.row.taskType === 1
? "入库到缓存" ? "出炉到缓存"
: scope.row.taskType === 2 : scope.row.taskType === 2
? "窑炉出库到缓存区" ? "缓存出库"
: "缓存区出库" : "入库缓存"
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="startPosition" label="开始位置"> </el-table-column> <el-table-column prop="startPosition" label="开始位置"> </el-table-column>
<el-table-column prop="targetPosition" label="目标位置"> <el-table-column prop="targetPosition" label="目标位置">
</el-table-column> </el-table-column>
<el-table-column prop="vehicleName" label="车辆名称"> </el-table-column>
<el-table-column <el-table-column
fixed="right" fixed="right"
header-align="center" header-align="center"
@ -235,7 +236,7 @@ export default {
this.$http({ this.$http({
url: this.$http.adornUrl('/currTask/deleteBySheetNo'), url: this.$http.adornUrl('/currTask/deleteBySheetNo'),
method: 'post', method: 'post',
data: this.$http.adornData({sheetNo}) data: this.$http.adornData(sheetNo)
}).then(({ data }) => { }).then(({ data }) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.$message({ this.$message({

View File

@ -2,7 +2,7 @@
* @Author: zwq * @Author: zwq
* @Date: 2021-11-15 08:20:28 * @Date: 2021-11-15 08:20:28
* @LastEditors: zwq * @LastEditors: zwq
* @LastEditTime: 2022-07-08 09:06:37 * @LastEditTime: 2022-07-06 15:12:03
* @Description: * @Description:
*/ */
/** /**
@ -13,7 +13,6 @@
// api接口请求地址 // api接口请求地址
window.SITE_CONFIG['baseUrl'] = 'http://192.168.1.18:8080/api/' window.SITE_CONFIG['baseUrl'] = 'http://192.168.1.18:8080/api/'
window.SITE_CONFIG['wbUrl'] = '192.168.1.18:8080'
// cdn地址 = 域名 + 版本号 // cdn地址 = 域名 + 版本号
window.SITE_CONFIG['domain'] = './' // 域名 window.SITE_CONFIG['domain'] = './' // 域名

View File

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB