|
@@ -43,6 +43,11 @@
|
|
|
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
+ <el-button class="el-button--small-yh" style="margin-left: 6px;" v-if="form.id"
|
|
|
+ type="success" size="small"
|
|
|
+ :disabled="form.shortcutWarehousingStatus == '1'"
|
|
|
+ @click="oneClickStorage" >一键采购入库
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="margin-top: 50px">
|
|
@@ -276,7 +281,22 @@
|
|
|
import { getDetails as getCustom } from "@/api/tirePartsMall/basicData/customerInformation"
|
|
|
import { dateFormat } from "@/util/date";
|
|
|
import { getToken } from "@/util/auth";
|
|
|
-import { getDetails, submit, generateShipTask, tradingBox, delOrderItem, checkOrder, confirmRefund, goodsListXs, inboundTask, checkOrderCG, revokeCheckOrderCG, revokeInboundTask,goodsListAll} from "@/api/tirePartsMall/salesManagement/saleOrder";
|
|
|
+import {
|
|
|
+ getDetails,
|
|
|
+ submit,
|
|
|
+ generateShipTask,
|
|
|
+ tradingBox,
|
|
|
+ delOrderItem,
|
|
|
+ checkOrder,
|
|
|
+ confirmRefund,
|
|
|
+ goodsListXs,
|
|
|
+ inboundTask,
|
|
|
+ checkOrderCG,
|
|
|
+ revokeCheckOrderCG,
|
|
|
+ revokeInboundTask,
|
|
|
+ goodsListAll,
|
|
|
+ shortcutWarehousing
|
|
|
+} from "@/api/tirePartsMall/salesManagement/saleOrder";
|
|
|
import { dotList, goodsDetail } from "@/api/tirePartsMall/purchasingManagement/warehouseEntryOrder";
|
|
|
import reportDialog from "@/components/report-dialog/main";
|
|
|
import checkSchedule from "@/components/checkL/checkSchedule";
|
|
@@ -486,11 +506,11 @@ export default {
|
|
|
value: 'id'
|
|
|
},
|
|
|
dicUrl: '/api/blade-sales-part/storageDesc/listAll',
|
|
|
- // rules: [{
|
|
|
- // required: true,
|
|
|
- // message: " ",
|
|
|
- // trigger: "blur"
|
|
|
- // }]
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }]
|
|
|
},
|
|
|
// {
|
|
|
// label: '来源单号',
|
|
@@ -1133,6 +1153,29 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 一键入库
|
|
|
+ oneClickStorage(){
|
|
|
+ this.$confirm("是否要一件入库?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(()=>{
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '加载中',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(255,255,255,0.7)'
|
|
|
+ });
|
|
|
+ shortcutWarehousing(this.form).then(res=>{
|
|
|
+ this.$message.success("保存成功");
|
|
|
+ this.refresh(res.data.data.id)
|
|
|
+ loading.close();
|
|
|
+ }).catch(()=>{
|
|
|
+ loading.close();
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
// 获取明细信息
|
|
|
getDetailsfun(){
|
|
|
getDetails({
|
|
@@ -1654,7 +1697,6 @@ export default {
|
|
|
}else {
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
if (this.form.orderItemsList[i].goodsNum <= 0) {
|
|
|
this.$message.warning(`采购明细序号${Number(i)+1}的数量不能为零`);
|
|
|
picihao = true
|