|
@@ -2,7 +2,7 @@
|
|
|
<div>
|
|
|
<Toptitle
|
|
|
ref="toptitle"
|
|
|
- :title="this.$route.query.editType == 0 ? '编辑订单' : '查看订单'"
|
|
|
+ :title="this.$route.query.editType == 0 ? '编辑订单' : '查看订单详情'"
|
|
|
>
|
|
|
<Button
|
|
|
@click="handleGoDeOrder"
|
|
@@ -148,17 +148,37 @@ export default {
|
|
|
option: [],
|
|
|
},
|
|
|
{
|
|
|
- title: "测量状态",
|
|
|
+ title: "产品",
|
|
|
name: "Select",
|
|
|
- serverName: "measurement_state",
|
|
|
+ multiple: true,
|
|
|
+ filterable: true,
|
|
|
+ serverName: "number_detail",
|
|
|
+ placeholder: "请选择",
|
|
|
+ value: "",
|
|
|
+ option: [],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "图号",
|
|
|
+ name: "Select",
|
|
|
+ multiple: true,
|
|
|
+ filterable: true,
|
|
|
+ serverName: "number_detail",
|
|
|
placeholder: "请选择",
|
|
|
value: "",
|
|
|
- option: [
|
|
|
- { label: "全部", value: 99 },
|
|
|
- { label: "测量中", value: 2 },
|
|
|
- { label: "测量完成", value: 3 },
|
|
|
- ],
|
|
|
+ option: [],
|
|
|
},
|
|
|
+ // {
|
|
|
+ // title: "测量状态",
|
|
|
+ // name: "Select",
|
|
|
+ // serverName: "measurement_state",
|
|
|
+ // placeholder: "请选择",
|
|
|
+ // value: "",
|
|
|
+ // option: [
|
|
|
+ // { label: "全部", value: 99 },
|
|
|
+ // { label: "测量中", value: 2 },
|
|
|
+ // { label: "测量完成", value: 3 },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
],
|
|
|
type: 1,
|
|
|
logList: [{ title: "系统单号", value: "10998765" }],
|
|
@@ -183,46 +203,46 @@ export default {
|
|
|
key: "product_title",
|
|
|
minWidth: 200,
|
|
|
},
|
|
|
- {
|
|
|
- title: "状态",
|
|
|
- align: "center",
|
|
|
- minWidth: 100,
|
|
|
- render: (h, params) =>
|
|
|
- h("span", {}, params.row.is_measure == 1 ? "已确认" : "未确认"),
|
|
|
- },
|
|
|
- {
|
|
|
- title: "测量状态",
|
|
|
- align: "center",
|
|
|
- key: "measurement_state",
|
|
|
- minWidth: 100,
|
|
|
- render: (h, params) =>
|
|
|
- h(
|
|
|
- "span",
|
|
|
- {},
|
|
|
- params.row.is_measure == 1
|
|
|
- ? "测量完成"
|
|
|
- : params.row.measurement_state >= 3
|
|
|
- ? "测量完成"
|
|
|
- : params.row.measurement_state == 1
|
|
|
- ? "已下测量"
|
|
|
- : params.row.measurement_state == 2
|
|
|
- ? "测量中"
|
|
|
- : "未下测量"
|
|
|
- ),
|
|
|
- },
|
|
|
{ title: "产品型号", align: "center", key: "model", minWidth: 150 },
|
|
|
{ title: "单位", align: "center", key: "unit", minWidth: 130 },
|
|
|
{ title: "图号", align: "center", minWidth: 130, key: "url_number" },
|
|
|
{ title: "图纸", align: "center", slot: "up-load", minWidth: 130 },
|
|
|
{ title: "位置", align: "center", minWidth: 200, key: "position" },
|
|
|
- {
|
|
|
- title: "预估产品工期",
|
|
|
- align: "center",
|
|
|
- minWidth: 200,
|
|
|
- key: "predict_working",
|
|
|
- render: (h, params) =>
|
|
|
- h("span", `${(params.row.predict_working / 8).toFixed(1)}天`),
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title: "状态",
|
|
|
+ // align: "center",
|
|
|
+ // minWidth: 100,
|
|
|
+ // render: (h, params) =>
|
|
|
+ // h("span", {}, params.row.is_measure == 1 ? "已确认" : "未确认"),
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title: "测量状态",
|
|
|
+ // align: "center",
|
|
|
+ // key: "measurement_state",
|
|
|
+ // minWidth: 100,
|
|
|
+ // render: (h, params) =>
|
|
|
+ // h(
|
|
|
+ // "span",
|
|
|
+ // {},
|
|
|
+ // params.row.is_measure == 1
|
|
|
+ // ? "测量完成"
|
|
|
+ // : params.row.measurement_state >= 3
|
|
|
+ // ? "测量完成"
|
|
|
+ // : params.row.measurement_state == 1
|
|
|
+ // ? "已下测量"
|
|
|
+ // : params.row.measurement_state == 2
|
|
|
+ // ? "测量中"
|
|
|
+ // : "未下测量"
|
|
|
+ // ),
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title: "预估产品工期",
|
|
|
+ // align: "center",
|
|
|
+ // minWidth: 200,
|
|
|
+ // key: "predict_working",
|
|
|
+ // render: (h, params) =>
|
|
|
+ // h("span", `${(params.row.predict_working / 8).toFixed(1)}天`),
|
|
|
+ // },
|
|
|
{
|
|
|
title: "测量数据",
|
|
|
align: "center",
|
|
@@ -364,14 +384,14 @@ export default {
|
|
|
this.logList = res.data.detail;
|
|
|
this.tableTop = res.data.top;
|
|
|
this.total = res.data.total;
|
|
|
- res.data.top.map((v) => {
|
|
|
- v.width = 200;
|
|
|
- v.slot = v.key;
|
|
|
- const n = this.tableColums.filter((x) => x.key == v.key);
|
|
|
- if (n.length < 1) {
|
|
|
- this.tableColums.splice(5, 0, v);
|
|
|
- }
|
|
|
- });
|
|
|
+ // res.data.top.map((v) => {
|
|
|
+ // v.width = 200;
|
|
|
+ // v.slot = v.key;
|
|
|
+ // const n = this.tableColums.filter((x) => x.key == v.key);
|
|
|
+ // if (n.length < 1) {
|
|
|
+ // this.tableColums.splice(5, 0, v);
|
|
|
+ // }
|
|
|
+ // });
|
|
|
});
|
|
|
},
|
|
|
successUpload(event) {
|