Commit dbbb44f2 authored by hubaoshan's avatar hubaoshan

wcp

parent 9c9bf48e
......@@ -441,7 +441,7 @@
</div>
</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-item label="ordersn:" prop="orderSn">
{{ dispense.orderSn }}
......@@ -505,6 +505,7 @@ import {
import commonField from '@/utils/commonField'
import { getToken } from '@/utils/auth'
import { getDownloadTemplate } from '@/api/outcomeWmsJbapplyTemp'
import { Loading } from 'element-ui'
export default {
name: 'WcpOrder',
data() {
......@@ -925,7 +926,6 @@ export default {
this.dispensePd.valuePd = this.dispensePd.listPd[0].value
console.log('this.dispensePd.listPd[0].value', this.dispensePd.listPd)
}
})
const queryParams = {
userId: this.dispensePd.listPd[0].value,
businessId: this.PdId,
......@@ -942,6 +942,7 @@ export default {
if (this.open === false) {
this.queryPd.page = 1
}
})
},
handleDispense(row) {
this.dispense.Value = ''
......@@ -975,22 +976,22 @@ export default {
// }
// const listValues = new Set(this.list)
// const newList = this.dispense.Value.filter(value => !listValues.has(value))
const values = [...new Set(this.dispense.Value)]
console.log('values', values)
const data = {
businessId: this.businessId,
// Value: this.dispense.Value.filter(value => !listValues.has(value))
Value: this.dispense.Value
// Value: this.dispense.Value
Value: values
}
this.$confirm('确认要开始盘点吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.loadingPd = true
wcpOrderPd(data).then(response => {
if (response.code === 200) {
this.PdList = response.data
this.$message({ message: '开始盘点...', type: 'success' })
this.loadingPd = false
this.dispenseOpen = false
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