|
@ -105,8 +105,7 @@ |
|
|
:max="10000" |
|
|
:max="10000" |
|
|
:step="10" |
|
|
:step="10" |
|
|
size="mini" |
|
|
size="mini" |
|
|
> |
|
|
/> |
|
|
</el-input-number> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<rrOperation /> |
|
|
<rrOperation /> |
|
|
</el-form> |
|
|
</el-form> |
|
@ -137,14 +136,16 @@ |
|
|
</el-button> |
|
|
</el-button> |
|
|
</crudOperation> |
|
|
</crudOperation> |
|
|
<!--表格渲染--> |
|
|
<!--表格渲染--> |
|
|
<el-table ref="table" |
|
|
<el-table |
|
|
|
|
|
ref="table" |
|
|
v-loading="crud.loading" |
|
|
v-loading="crud.loading" |
|
|
:data="crud.data" |
|
|
:data="crud.data" |
|
|
size="mini" |
|
|
size="mini" |
|
|
:cell-style="cellStyle" |
|
|
:cell-style="cellStyle" |
|
|
style="width: 100%;" |
|
|
style="width: 100%;" |
|
|
|
|
|
height="550" |
|
|
@selection-change="handleSelectionChange" |
|
|
@selection-change="handleSelectionChange" |
|
|
height="550"> |
|
|
> |
|
|
<el-table-column type="selection" width="55" /> |
|
|
<el-table-column type="selection" width="55" /> |
|
|
<el-table-column prop="pointCode" label="点位名称" :min-width="flexWidth('pointCode',crud.data,'点位名称')" /> |
|
|
<el-table-column prop="pointCode" label="点位名称" :min-width="flexWidth('pointCode',crud.data,'点位名称')" /> |
|
|
<el-table-column prop="regionName" label="区域名称" :min-width="flexWidth('regionName',crud.data,'区域名称')" /> |
|
|
<el-table-column prop="regionName" label="区域名称" :min-width="flexWidth('regionName',crud.data,'区域名称')" /> |
|
@ -176,7 +177,7 @@ import pagination from '@crud/Pagination' |
|
|
import crudSchBasePoint from '@/views/wms/sch/point/schBasePoint' |
|
|
import crudSchBasePoint from '@/views/wms/sch/point/schBasePoint' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'outdetail', |
|
|
name: 'Outdetail', |
|
|
dicts: ['work_order_two_status'], |
|
|
dicts: ['work_order_two_status'], |
|
|
components: { pagination, crudOperation, rrOperation, udOperation }, |
|
|
components: { pagination, crudOperation, rrOperation, udOperation }, |
|
|
mixins: [presenter(), header(), crud()], |
|
|
mixins: [presenter(), header(), crud()], |
|
@ -232,7 +233,7 @@ export default { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 获取选中行的托盘号 subTray |
|
|
// 获取选中行的托盘号 subTray |
|
|
const palletSNs = this.rows.map(row => row.subTray); |
|
|
const palletSNs = this.rows.map(row => row.subTray) |
|
|
// 弹出输入回温时间和回温模式的对话框 |
|
|
// 弹出输入回温时间和回温模式的对话框 |
|
|
this.$prompt('请输入回温模式(0-普通模式,1-快速模式)', '提示', { |
|
|
this.$prompt('请输入回温模式(0-普通模式,1-快速模式)', '提示', { |
|
|
inputPattern: /^[0-1]$/, |
|
|
inputPattern: /^[0-1]$/, |
|
@ -247,12 +248,12 @@ export default { |
|
|
status: '1' |
|
|
status: '1' |
|
|
}).then(response => { |
|
|
}).then(response => { |
|
|
// 提交成功处理 |
|
|
// 提交成功处理 |
|
|
this.$message.success('出库提交成功!'); |
|
|
this.$message.success('出库提交成功!') |
|
|
this.crud.toQuery() |
|
|
this.crud.toQuery() |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
// 提交失败处理 |
|
|
// 提交失败处理 |
|
|
this.$message.error('出库提交失败,请重试'); |
|
|
this.$message.error('出库提交失败,请重试') |
|
|
}); |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
cancle() { |
|
|
cancle() { |
|
@ -262,7 +263,7 @@ export default { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
// 获取选中行的托盘号 subTray |
|
|
// 获取选中行的托盘号 subTray |
|
|
const palletSNs = this.rows.map(row => row.subTray); |
|
|
const palletSNs = this.rows.map(row => row.subTray) |
|
|
// 提交数据给后台接口 |
|
|
// 提交数据给后台接口 |
|
|
this.$axios.post('/api/workorder/batchChange', { |
|
|
this.$axios.post('/api/workorder/batchChange', { |
|
|
pointCodes: palletSNs, |
|
|
pointCodes: palletSNs, |
|
@ -270,16 +271,16 @@ export default { |
|
|
status: '0' |
|
|
status: '0' |
|
|
}).then(response => { |
|
|
}).then(response => { |
|
|
// 提交成功处理 |
|
|
// 提交成功处理 |
|
|
this.$message.success('出库取消成功!'); |
|
|
this.$message.success('出库取消成功!') |
|
|
this.crud.toQuery() |
|
|
this.crud.toQuery() |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
// 提交失败处理 |
|
|
// 提交失败处理 |
|
|
this.$message.error('出库取消失败,请重试'); |
|
|
this.$message.error('出库取消失败,请重试') |
|
|
}); |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
handleSelectionChange(val, row) { |
|
|
handleSelectionChange(val, row) { |
|
|
this.rows = this.$refs.table.selection |
|
|
this.rows = this.$refs.table.selection |
|
|
var strs = ''; |
|
|
var strs = '' |
|
|
this.handleCurrentChange(null) |
|
|
this.handleCurrentChange(null) |
|
|
if (this.rows.length > 0) { |
|
|
if (this.rows.length > 0) { |
|
|
this.rows.forEach(now => { |
|
|
this.rows.forEach(now => { |
|
@ -314,7 +315,7 @@ export default { |
|
|
return this.dict.label.work_order_two_status[row.status] |
|
|
return this.dict.label.work_order_two_status[row.status] |
|
|
}, |
|
|
}, |
|
|
getPointList() { // 获取点位列表 |
|
|
getPointList() { // 获取点位列表 |
|
|
crudSchBasePoint.getPointsByRegionCodes("YL,YLHC,KJHC").then(res => { |
|
|
crudSchBasePoint.getPointsByRegionCodes('YL,YLHC,KJHC').then(res => { |
|
|
this.pointList = res |
|
|
this.pointList = res |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|