|
@@ -91,9 +91,16 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="工程订单号" prop="enginOrderNo" min-width="200" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="订单日期" prop="orderDate" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="订单日期" prop="orderDate" min-width="120" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ <span>{{scope.row.orderDate | dateToDayFilter}}</span>
|
|
|
+ <el-button type="text" icon="el-icon-edit" style="padding: 0; margin-left: 6px" @click="editDate(scope.row)" ></el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="center" label="工程编码" prop="refProjectNo" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="工程登录单号" prop="refEnginRecordNo" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="工程登录单号" prop="refEnginRecordNo" min-width="200" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="订单类型" prop="enginOrderType" min-width="160" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
{{scope.row.enginOrderType | typeFilter}}
|
|
@@ -101,7 +108,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="使用单位" prop="refUseUnit" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="工程名称" prop="refProjectName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="120" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="货品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
|
|
@@ -156,6 +163,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <EditDateDialog :isShow.sync="isShowEditDateDialog" :dateForm.sync="dateForm" />
|
|
|
|
|
|
<CommerceDetail :listItem="queryItem" v-if="isShowDetail" @backListFormDetail="backList" />
|
|
|
<CommerceForm :listItem="queryItem" v-if="isShowForm" @backListFormDetail="backList" />
|
|
@@ -166,11 +175,12 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getOrderList, applyCom, withdrawCom, deleteCom } from "@/api/supply/engin";
|
|
|
+import { getOrderList, applyCom, withdrawCom, deleteCom, editCom } from "@/api/supply/engin";
|
|
|
import CommerceDetail from "@/views/supply/engin/components/commerce_detail";
|
|
|
import CommerceForm from "@/views/supply/engin/components/commerce_form";
|
|
|
import CommerceExamine from "@/views/supply/engin/components/commerce_examine";
|
|
|
import CommerceReturn from "@/views/supply/engin/components/commerce_return";
|
|
|
+import EditDateDialog from "@/components/Common/edit-date-dialog";
|
|
|
|
|
|
let that
|
|
|
export default {
|
|
@@ -179,6 +189,7 @@ export default {
|
|
|
CommerceForm,
|
|
|
CommerceExamine,
|
|
|
CommerceReturn,
|
|
|
+ EditDateDialog,
|
|
|
},
|
|
|
filters: {
|
|
|
statusFilter(val) {
|
|
@@ -226,6 +237,12 @@ export default {
|
|
|
isShowForm: false,
|
|
|
isShowExamine: false,
|
|
|
isShowReturn: false,
|
|
|
+
|
|
|
+ editId: null,
|
|
|
+ isShowEditDateDialog: false,
|
|
|
+ dateForm: {
|
|
|
+ date: '',
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -394,6 +411,24 @@ export default {
|
|
|
this.multipleSelection = val;
|
|
|
},
|
|
|
|
|
|
+ // 打开 修改订单日期
|
|
|
+ editDate(item) {
|
|
|
+ this.editId = item.parentId;
|
|
|
+ this.dateForm.date = item.orderDate.slice(0, 10);
|
|
|
+ this.isShowEditDateDialog = true;
|
|
|
+ },
|
|
|
+
|
|
|
+ // 提交 修改订单日期
|
|
|
+ submitDateForm() {
|
|
|
+ editCom({
|
|
|
+ enginOrderId: this.editId,
|
|
|
+ orderDate: this.dateForm.date + ' 00:00:00',
|
|
|
+ }).then(res => {
|
|
|
+ this.isShowEditDateDialog = false;
|
|
|
+ this.getList();
|
|
|
+ this.$successMsg('修改成功');
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
}
|
|
|
}
|