Commit 1097d936 by lichengming

修改了收样位置查询批量删除

parent 242967a6
......@@ -21,7 +21,7 @@ export default {
http.delete('soil/v1/receive_location/?ids=' + data).then(res => res),
removeSampleFromLocation: data =>
http
.post('soil/v1/sample/remove_sample_from_location/?ids=' + data)
.post('soil/v1/sample/remove_sample_from_location/', data)
.then(res => res),
locationEdit: data =>
http.put('soil/v1/receive_location/' + data.id, data.obj).then(res => res),
......
......@@ -11,11 +11,8 @@
<Col span="24">
<Form v-show="searchOpen" id="search-sample-company" :label-width="80" inline onsubmit="return false">
<label class="label-sign"></label>
<Form-item label="试样编号:" class="search-item">
<Input v-model="formObj.sampleCode" placeholder="请输入试样编号" clearable @on-enter="_formSearch" />
</Form-item>
<Form-item label="现场编号:" class="search-item">
<Input v-model="formObj.siteNo" placeholder="请输入现场编号" clearable @on-enter="_formSearch" />
<Form-item label="委托编号:" class="search-item">
<Input v-model="formObj.entrustCode" placeholder="请输入委托编号" clearable @on-enter="_formSearch" />
</Form-item>
<Form-item class="search-btn">
<Button type="primary" @click="_page">
......
......@@ -68,11 +68,6 @@ export default {
currentComponent: '',
btn: [
{
type: 'success',
id: 'ZBC',
name: '打印标签'
},
{
type: 'error',
id: '',
name: '批量删除'
......@@ -237,7 +232,9 @@ export default {
}
},
_deleteOk: async function(ids) {
const result = await soilSample.removeSampleFromLocation(ids.join(','))
const result = await soilSample.removeSampleFromLocation({
ids: ids.join(',')
})
if (result) {
this.$Message.success('成功移除')
this._page()
......
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