更新
This commit is contained in:
@@ -28,6 +28,11 @@
|
||||
</el-select>
|
||||
<!-- <el-button style="margin-left:10px" type="primary" @click="getPoint(1)">{{kilnId}}</el-button> -->
|
||||
</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-button type="primary" size="small" @click="submitTask()">提交任务</el-button>
|
||||
</el-form-item>
|
||||
@@ -117,13 +122,15 @@
|
||||
return {
|
||||
startPosition: '',
|
||||
kilnId: '',
|
||||
craftCode: '',
|
||||
targetPosition: '',
|
||||
dataList: [],
|
||||
processType: null,
|
||||
dataListLoading: false,
|
||||
addOrUpdateVisible: false,
|
||||
processPointVisible: false,
|
||||
eqList: []
|
||||
eqList: [],
|
||||
processList: []
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -151,6 +158,21 @@
|
||||
}
|
||||
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 () {
|
||||
@@ -199,6 +221,11 @@
|
||||
message: '请选择窑炉',
|
||||
type: 'warning'
|
||||
})
|
||||
} else if (!this.craftCode) {
|
||||
this.$message({
|
||||
message: '请选择工艺',
|
||||
type: 'warning'
|
||||
})
|
||||
} else if (this.processType !== 0 && this.processType !== 1) {
|
||||
this.$message.warning('请选择加工类型')
|
||||
} else {
|
||||
@@ -211,7 +238,7 @@
|
||||
url: this.$http.adornUrl(`/currTask/createProcessTask`),
|
||||
method: 'post',
|
||||
data: this.$http.adornData({
|
||||
craftCode: '',
|
||||
craftCode: this.craftCode,
|
||||
detParams: this.dataList,
|
||||
kilnId: this.kilnId,
|
||||
processType: this.processType,
|
||||
@@ -220,7 +247,6 @@
|
||||
// this.targetPosition
|
||||
})
|
||||
}).then(({data}) => {
|
||||
console.log(data)
|
||||
if (data && data.code === 0) {
|
||||
this.$message.success('任务提交成功')
|
||||
this.dataList = []
|
||||
|
||||
Reference in New Issue
Block a user