Commit 4e44f14a authored by yaya's avatar yaya

feat:专场设置截拍时间

parent 7ec01b48
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<div>建议尺寸2000*1024</div> <div>建议尺寸2000*1024</div>
</el-form-item> </el-form-item>
<el-form-item label="截拍间隔:" prop="itemEndInterval"> <el-form-item label="截拍间隔:" prop="itemEndInterval">
<el-input v-model="goods.itemEndInterval"> <el-input v-model="goods.itemEndInterval" style="width: 240px">
<template slot="append">min</template> <template slot="append">min</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
highlight-current-row> highlight-current-row>
<el-table-column align="center" label="LOT号" min-width="100px" prop="lot"> <el-table-column align="center" label="LOT号" min-width="100px" prop="lot">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.lot" :maxlength="15" @blur="handleAddLOT(scope.row)"/> <el-input v-model="scope.row.lot" :maxlength="15" @blur="handleAddLOT($event, scope.row)"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" min-width="100px" prop="id" label="拍卖ID"/> <el-table-column align="center" min-width="100px" prop="id" label="拍卖ID"/>
...@@ -261,25 +261,27 @@ export default { ...@@ -261,25 +261,27 @@ export default {
/** /**
* 设置LOT * 设置LOT
*/ */
handleAddLOT(item) { handleAddLOT(e, item) {
console.log('==LOT==', item.lot) console.log('==LOT==', item.lot)
if (!item.lot) { if (!item.lot) {
return return
} }
const param = { if (!e.relatedTarget || e.relatedTarget.className === 'el-input_inner ') {
specialPerformanceId: this.id, const param = {
itemId: item.id, specialPerformanceId: this.id,
lot: item.lot itemId: item.id,
} lot: item.lot
itemSort(param) }
.then(response => { itemSort(param)
}) .then(response => {
.catch(response => {
MessageBox.alert('业务错误:' + response.data.errmsg || '请求失败,请重试', '警告', {
confirmButtonText: '确定',
type: 'error'
}) })
}) .catch(response => {
MessageBox.alert('业务错误:' + response.data.errmsg || '请求失败,请重试', '警告', {
confirmButtonText: '确定',
type: 'error'
})
})
}
}, },
/** /**
* 设置专场时间 * 设置专场时间
......
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