Commit 472c2398 authored by yaya's avatar yaya

feat: 添加货品签收功能

parent 3c0304de
...@@ -42,3 +42,11 @@ export function findDetail(params) { ...@@ -42,3 +42,11 @@ export function findDetail(params) {
data: params data: params
}) })
} }
export function confirmReceive(params) {
return request({
url: '/consignSaleManage/confirmReceive',
method: 'post',
data: params
})
}
...@@ -14,6 +14,13 @@ ...@@ -14,6 +14,13 @@
size="mini" size="mini"
@click="imageValueDialogShow = true">图文估价 @click="imageValueDialogShow = true">图文估价
</el-button> </el-button>
<el-button
v-if="systemState === 6"
type="primary"
size="mini"
@click="handleConfirmReceive">货品签收
</el-button>
<el-button <el-button
v-if="systemState === 8" v-if="systemState === 8"
type="primary" type="primary"
...@@ -155,7 +162,7 @@ ...@@ -155,7 +162,7 @@
</template> </template>
<script> <script>
import { findDetail, imgValuate, finishValue, cancelValue } from '@/api/business/consign' import { findDetail, confirmReceive, finishValue, cancelValue } from '@/api/business/consign'
import { MessageBox } from 'element-ui' import { MessageBox } from 'element-ui'
import CheckLargeImageDialog from '../goods/components/CheckLargeImageDialog' import CheckLargeImageDialog from '../goods/components/CheckLargeImageDialog'
import CheckVideoDialog from '../goods/components/CheckVideoDialog' import CheckVideoDialog from '../goods/components/CheckVideoDialog'
...@@ -286,19 +293,14 @@ export default { ...@@ -286,19 +293,14 @@ export default {
}) })
}, },
/** /**
* 图文评估 * 货品签收
*/ */
handleImageValue() { handleConfirmReceive(item) {
if (this.saleId) { const params = { saleId: this.saleId }
const params = { ...this.imageValueForm, saleId: this.saleId } confirmReceive(params)
this.$refs.imageValue.validate((valid) => {
if (valid) {
imgValuate(params)
.then(response => { .then(response => {
this.imageValueDialogShow = false
this.imageValueForm = {}
this.$notify.success({ this.$notify.success({
message: '图文估价成功' message: '货品签收成功'
}) })
this.handleGetDetail() this.handleGetDetail()
}) })
...@@ -308,9 +310,6 @@ export default { ...@@ -308,9 +310,6 @@ export default {
type: 'error' type: 'error'
}) })
}) })
}
})
}
}, },
// 取消完成寄售 // 取消完成寄售
handleCancelFinishDialog() { handleCancelFinishDialog() {
......
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
<script> <script>
import Line2Hidden from '@/components/line2Hidden' import Line2Hidden from '@/components/line2Hidden'
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
import { findConsignList, imgValuate, identifyImage, finishValue, cancelValue } from '@/api/business/consign' import { findConsignList, confirmReceive, identifyImage, finishValue, cancelValue } from '@/api/business/consign'
import { MessageBox } from 'element-ui' import { MessageBox } from 'element-ui'
import IdentifyValueDialog from './components/IdentifyValueDialog' import IdentifyValueDialog from './components/IdentifyValueDialog'
import ImageValueDialog from './components/ImageValueDialog' import ImageValueDialog from './components/ImageValueDialog'
...@@ -292,6 +292,9 @@ export default { ...@@ -292,6 +292,9 @@ export default {
}, },
handleClick(tab, event) { handleClick(tab, event) {
this.listQuery.page = 1 this.listQuery.page = 1
if (this.listQuery.systemState !== '6') {
this.listQuery.waybill = ''
}
this.getList() this.getList()
}, },
getList() { getList() {
...@@ -332,13 +335,10 @@ export default { ...@@ -332,13 +335,10 @@ export default {
*/ */
handleConfirmReceive(item) { handleConfirmReceive(item) {
const params = { saleId: item.saleId } const params = { saleId: item.saleId }
imgValuate(params) confirmReceive(params)
.then(response => { .then(response => {
this.itemContent = {}
this.imageValueDialogShow = false
this.imageValueForm = {}
this.$notify.success({ this.$notify.success({
message: '图文估价成功' message: '货品签收成功'
}) })
this.getList() this.getList()
}) })
......
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