Commit dbbb44f2 authored by hubaoshan's avatar hubaoshan

wcp

parent 9c9bf48e
...@@ -441,7 +441,7 @@ ...@@ -441,7 +441,7 @@
</div> </div>
</el-dialog> </el-dialog>
<!-- 分配--> <!-- 分配-->
<el-dialog class="dispenseDialog" v-loading="loadingPd" :title="title" :visible.sync="dispenseOpen" width="500px" append-to-body :close-on-click-modal="false"> <el-dialog v-loading="loadingPd" class="dispenseDialog" :title="title" :visible.sync="dispenseOpen" width="500px" append-to-body :close-on-click-modal="false">
<el-form ref="formDetails" :model="dispense" size="small" label-width="90px"> <el-form ref="formDetails" :model="dispense" size="small" label-width="90px">
<el-form-item label="ordersn:" prop="orderSn"> <el-form-item label="ordersn:" prop="orderSn">
{{ dispense.orderSn }} {{ dispense.orderSn }}
...@@ -505,6 +505,7 @@ import { ...@@ -505,6 +505,7 @@ import {
import commonField from '@/utils/commonField' import commonField from '@/utils/commonField'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import { getDownloadTemplate } from '@/api/outcomeWmsJbapplyTemp' import { getDownloadTemplate } from '@/api/outcomeWmsJbapplyTemp'
import { Loading } from 'element-ui'
export default { export default {
name: 'WcpOrder', name: 'WcpOrder',
data() { data() {
...@@ -925,23 +926,23 @@ export default { ...@@ -925,23 +926,23 @@ export default {
this.dispensePd.valuePd = this.dispensePd.listPd[0].value this.dispensePd.valuePd = this.dispensePd.listPd[0].value
console.log('this.dispensePd.listPd[0].value', this.dispensePd.listPd) console.log('this.dispensePd.listPd[0].value', this.dispensePd.listPd)
} }
const queryParams = {
userId: this.dispensePd.listPd[0].value,
businessId: this.PdId,
page: this.queryPd.page,
rows: this.queryPd.rows
}
console.log('queryParams', queryParams)
listWcpOrderPd(queryParams).then(response => {
this.queryPd.PdList = response.data.records
this.Pdtotal = response.data.total
this.title = '盘点'
this.open = true
})
if (this.open === false) {
this.queryPd.page = 1
}
}) })
const queryParams = {
userId: this.dispensePd.listPd[0].value,
businessId: this.PdId,
page: this.queryPd.page,
rows: this.queryPd.rows
}
console.log('queryParams', queryParams)
listWcpOrderPd(queryParams).then(response => {
this.queryPd.PdList = response.data.records
this.Pdtotal = response.data.total
this.title = '盘点'
this.open = true
})
if (this.open === false) {
this.queryPd.page = 1
}
}, },
handleDispense(row) { handleDispense(row) {
this.dispense.Value = '' this.dispense.Value = ''
...@@ -975,22 +976,22 @@ export default { ...@@ -975,22 +976,22 @@ export default {
// } // }
// const listValues = new Set(this.list) // const listValues = new Set(this.list)
// const newList = this.dispense.Value.filter(value => !listValues.has(value)) // const newList = this.dispense.Value.filter(value => !listValues.has(value))
const values = [...new Set(this.dispense.Value)]
console.log('values', values)
const data = { const data = {
businessId: this.businessId, businessId: this.businessId,
// Value: this.dispense.Value.filter(value => !listValues.has(value)) // Value: this.dispense.Value
Value: this.dispense.Value Value: values
} }
this.$confirm('确认要开始盘点吗?', '提示', { this.$confirm('确认要开始盘点吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.loadingPd = true
wcpOrderPd(data).then(response => { wcpOrderPd(data).then(response => {
if (response.code === 200) { if (response.code === 200) {
this.PdList = response.data this.PdList = response.data
this.$message({ message: '开始盘点...', type: 'success' }) this.$message({ message: '开始盘点...', type: 'success' })
this.loadingPd = false
this.dispenseOpen = false this.dispenseOpen = false
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