|
@@ -21,6 +21,8 @@
|
|
|
import {getSingleData} from "@/api/omsOrder";
|
|
|
@Component({ components: { SettingConfig } })
|
|
|
export default class Outbound extends Vue {
|
|
|
+ planDeliveryDate : any = null; //计划交货时间
|
|
|
+
|
|
|
// 左边
|
|
|
tabType : any = 'all';
|
|
|
isAdd : any = false;
|
|
@@ -923,7 +925,7 @@
|
|
|
parentData[0].operator = (this as any).$store.getters.userInfo.userName;
|
|
|
this.tableData = parentData[0].suborderList;
|
|
|
billConfig.tool.tools = { save: true, smt: true };
|
|
|
- // console.log('this.tableData ==> ', this.tableData);
|
|
|
+ console.log('this.tableData ==> ', this.tableData);
|
|
|
this.isAdd = true;
|
|
|
(this.$refs.bill as any).showTab = 'bill';
|
|
|
loading.close();
|
|
@@ -970,10 +972,6 @@
|
|
|
if (selectData.length > 0) {
|
|
|
if (selectData.length > 1) return this.$message.warning('只能同步一条数据');
|
|
|
if (selectData[0].financeOrderId) return this.$message.warning('此数据已同步到财务系统');
|
|
|
- // if (selectData[0].submitState != 1) return this.$message.warning('只能同步已提交数据');
|
|
|
- let planData = selectData[0].planDeliveryData.replaceAll(/[-:\s]/g, '');
|
|
|
- let nowDate = this.getNowDate().replaceAll(/[-:\s]/g, '');
|
|
|
- if (planData < nowDate) return this.$message.warning('计划交货时间小于当前时间,不能同步到财务系统');
|
|
|
this.$confirm('确定同步订单吗', '注意', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
@@ -981,7 +979,7 @@
|
|
|
center: true
|
|
|
}).then(() => {
|
|
|
let loading = this.$loading({ target: '.main-container' });
|
|
|
- api.addOutStock({ ids: selectData[0].id }).then((res : any) => {
|
|
|
+ api.addOutStock({ ids: selectData[0].id}).then((res : any) => {
|
|
|
loading.close();
|
|
|
if (res.code === 200) {
|
|
|
this.$message.success('同步订单成功');
|
|
@@ -1395,6 +1393,7 @@
|
|
|
}
|
|
|
// 获取引单分页数据
|
|
|
getCitationList(query : any) {
|
|
|
+ query.status = 0
|
|
|
let loading = this.$loading({ target: '.main-container' });
|
|
|
api.pageList(query, 'supplyPurchaseOrder').then((res : any) => {
|
|
|
loading.close();
|