Commit 163add41 by zhangxw

联调修改

1 parent a8c8f439
...@@ -167,7 +167,7 @@ export default { ...@@ -167,7 +167,7 @@ export default {
label: '入库状态', label: '入库状态',
prop: 'putStatus', prop: 'putStatus',
formatter: (cellValue) => { formatter: (cellValue) => {
return this.baseData.putStatusOptions.find(item => item.confId == cellValue.putStatus)?.confLabel || '-' return this.baseData.putStatusOptions.find(item => item.confId === `${cellValue.putStatus}`)?.confLabel || '-'
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</template> </template>
<script> <script>
import { batchDelicery } from "@/api/purchaseShopping.js" import { batchDelicery } from "@/api/stockManage.js"
import { baseConfig } from "@/main" import { baseConfig } from "@/main"
import { limitPrice } from "@/common/format" import { limitPrice } from "@/common/format"
import { Util } from "@/common/util" import { Util } from "@/common/util"
...@@ -241,16 +241,17 @@ export default { ...@@ -241,16 +241,17 @@ export default {
orderCode: this.paramsObj.allocateCode, orderCode: this.paramsObj.allocateCode,
deliveryDetailList: [] deliveryDetailList: []
} }
console.log(this.tableList)
for (let idx = 0; idx < this.tableList.length; idx++) { for (let idx = 0; idx < this.tableList.length; idx++) {
const item = this.tableList[idx] const item = this.tableList[idx]
if (this.nowPurNumList[idx] && this.nowPurNumList[idx] != 0) { if (this.nowPurNumList[idx] && this.nowPurNumList[idx] != 0) {
params.deliveryDetailList.push({ params.deliveryDetailList.push({
id: item.goodsId, id: item.detailId,
purchaseNumber: this.nowPurNumList[idx], purchaseNumber: this.nowPurNumList[idx],
}) })
} }
} }
batchDelicery({ dataString: JSON.stringify(params) }) batchDelicery(params)
.then((res) => { .then((res) => {
this.handleShipmentClose(true) this.handleShipmentClose(true)
this.notice.okTips() this.notice.okTips()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!