|
|
|
|
@ -26,7 +26,7 @@ |
|
|
|
|
</el-dialog> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import { boxBinding, getOrderInfo } from '@/api/logisticsManagement/materialPacking'; |
|
|
|
|
import { boxBinding, getOrderInfo,boxUnbind } from '@/api/logisticsManagement/materialPacking'; |
|
|
|
|
export default { |
|
|
|
|
props: { |
|
|
|
|
showDialog: { |
|
|
|
|
@ -92,18 +92,18 @@ export default { |
|
|
|
|
submit() { |
|
|
|
|
this.$refs.form.validate(async valid => { |
|
|
|
|
if (valid) { |
|
|
|
|
if (this.orderIdList.length === 0) { |
|
|
|
|
this.$message.warning('请至少添加一个流程卡号'); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
// if (this.orderIdList.length === 0) { |
|
|
|
|
// this.$message.warning('请至少添加一个流程卡号'); |
|
|
|
|
// return; |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
this.submitLoading = true; |
|
|
|
|
let params = { |
|
|
|
|
boxBarcode: this.form.boxBarcode, |
|
|
|
|
orderList: this.orderIdList, |
|
|
|
|
// orderList: this.orderIdList, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
boxBinding(params) |
|
|
|
|
boxUnbind(params) |
|
|
|
|
.then(res => { |
|
|
|
|
this.$message.success('操作成功'); |
|
|
|
|
this.submitLoading = false; |
|
|
|
|
|