|
|
@@ -359,208 +359,413 @@ export default {
|
|
|
},
|
|
|
changeDataStructure() {
|
|
|
let that = this;
|
|
|
- this.mainAreaData = that.siteid == 'HY' ?[
|
|
|
- {
|
|
|
- label: "订单类型",
|
|
|
- value: this.mainData.type,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "订单状态",
|
|
|
- value: this.$t(this.mainData.status),
|
|
|
- style: function () {
|
|
|
- let style = that.tool.getStatusColor(that.mainData.status);
|
|
|
- return style;
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: "单据日期",
|
|
|
- value: this.mainData.billdate,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "合计数量",
|
|
|
- value: this.mainData.qty,
|
|
|
- style: function () {
|
|
|
- let style = { color: "#ff0000" };
|
|
|
- return style;
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- // {{tool.formatAmount(scope.row.marketprice,2)}}
|
|
|
- label: "合计金额",
|
|
|
- value: this.tool.formatAmount(this.mainData.defaultamount, 2),
|
|
|
- style: function () {
|
|
|
- let style = { color: "#ff0000" };
|
|
|
- return style;
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: "折后金额",
|
|
|
- value: this.tool.formatAmount(this.mainData.amount, 2),
|
|
|
- style: function () {
|
|
|
- let style = { color: "#ff0000" };
|
|
|
- return style;
|
|
|
- },
|
|
|
- },
|
|
|
- /*{
|
|
|
- label:'企业名称',
|
|
|
- value:this.mainData.enterprisename
|
|
|
- },*/
|
|
|
- {
|
|
|
- label: "销售分类",
|
|
|
- value: this.mainData.saletype,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "对外备注",
|
|
|
- value: this.mainData.remarks,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "对内备注",
|
|
|
- value: this.mainData.remarks_in,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "核销状态",
|
|
|
- value: this.mainData.writeoffstatus,
|
|
|
- style:function () {
|
|
|
- let style = that.tool.getStatusColor(that.mainData.writeoffstatus)
|
|
|
- return style
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- label: "开票状态",
|
|
|
- value: this.mainData.invoicestatus,
|
|
|
- style:function () {
|
|
|
- let style = that.tool.getStatusColor(that.mainData.invoicestatus)
|
|
|
- return style
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- label:'备货状态',
|
|
|
- value:this.$t(this.mainData.goodsstatus),
|
|
|
- style:function () {
|
|
|
- let style = {}
|
|
|
- switch (that.mainData.goodsstatus) {
|
|
|
- case '已完成':
|
|
|
- style = {color:"#67C23A"}
|
|
|
- break;
|
|
|
- case '未完成':
|
|
|
- style = {color:"#F56C6C"}
|
|
|
- break;
|
|
|
- case '部分完成':
|
|
|
- style = {color:"#e6a23c"}
|
|
|
- break;
|
|
|
- default:
|
|
|
- break;
|
|
|
- }
|
|
|
- return style
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- label: "运费方式",
|
|
|
- value: this.$t(this.mainData.freightstatus),
|
|
|
- },
|
|
|
- {
|
|
|
- label: "项目名称",
|
|
|
- value: this.mainData.projectname,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "项目备注",
|
|
|
- value: this.mainData.projectnote,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "退回原因",
|
|
|
- value: this.mainData.backreason,
|
|
|
- },
|
|
|
- ]:[
|
|
|
- {
|
|
|
- label: "订单类型",
|
|
|
- value: this.mainData.type,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "订单状态",
|
|
|
- value: this.$t(this.mainData.status),
|
|
|
- style: function () {
|
|
|
- let style = that.tool.getStatusColor(that.mainData.status);
|
|
|
- return style;
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: "单据日期",
|
|
|
- value: this.mainData.billdate,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "合计数量",
|
|
|
- value: this.mainData.qty,
|
|
|
- style: function () {
|
|
|
- let style = { color: "#ff0000" };
|
|
|
- return style;
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- // {{tool.formatAmount(scope.row.marketprice,2)}}
|
|
|
- label: "合计金额",
|
|
|
- value: this.tool.formatAmount(this.mainData.defaultamount, 2),
|
|
|
- style: function () {
|
|
|
- let style = { color: "#ff0000" };
|
|
|
- return style;
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: "折后金额",
|
|
|
- value: this.tool.formatAmount(this.mainData.amount, 2),
|
|
|
- style: function () {
|
|
|
- let style = { color: "#ff0000" };
|
|
|
- return style;
|
|
|
- },
|
|
|
- },
|
|
|
- /*{
|
|
|
- label:'企业名称',
|
|
|
- value:this.mainData.enterprisename
|
|
|
- },*/
|
|
|
- {
|
|
|
- label: "销售分类",
|
|
|
- value: this.mainData.saletype,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "对外备注",
|
|
|
- value: this.mainData.remarks,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "对内备注",
|
|
|
- value: this.mainData.remarks_in,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "核销状态",
|
|
|
- value: this.mainData.writeoffstatus,
|
|
|
- style:function () {
|
|
|
- let style = that.tool.getStatusColor(that.mainData.writeoffstatus)
|
|
|
- return style
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- label: "开票状态",
|
|
|
- value: this.mainData.invoicestatus,
|
|
|
- style:function () {
|
|
|
- let style = that.tool.getStatusColor(that.mainData.invoicestatus)
|
|
|
- return style
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- label: "运费方式",
|
|
|
- value: this.$t(this.mainData.freightstatus),
|
|
|
- },
|
|
|
- {
|
|
|
- label: "项目名称",
|
|
|
- value: this.mainData.projectname,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "项目备注",
|
|
|
- value: this.mainData.projectnote,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "退回原因",
|
|
|
- value: this.mainData.backreason,
|
|
|
- },
|
|
|
- ];
|
|
|
+ if (that.siteid == 'HY'){
|
|
|
+ if (this.tool.checkAuth(this.$route.name,'internalNote')){
|
|
|
+ this.mainAreaData = [
|
|
|
+ {
|
|
|
+ label: "订单类型",
|
|
|
+ value: this.mainData.type,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "订单状态",
|
|
|
+ value: this.$t(this.mainData.status),
|
|
|
+ style: function () {
|
|
|
+ let style = that.tool.getStatusColor(that.mainData.status);
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "单据日期",
|
|
|
+ value: this.mainData.billdate,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "合计数量",
|
|
|
+ value: this.mainData.qty,
|
|
|
+ style: function () {
|
|
|
+ let style = { color: "#ff0000" };
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ // {{tool.formatAmount(scope.row.marketprice,2)}}
|
|
|
+ label: "合计金额",
|
|
|
+ value: this.tool.formatAmount(this.mainData.defaultamount, 2),
|
|
|
+ style: function () {
|
|
|
+ let style = { color: "#ff0000" };
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "折后金额",
|
|
|
+ value: this.tool.formatAmount(this.mainData.amount, 2),
|
|
|
+ style: function () {
|
|
|
+ let style = { color: "#ff0000" };
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ /*{
|
|
|
+ label:'企业名称',
|
|
|
+ value:this.mainData.enterprisename
|
|
|
+ },*/
|
|
|
+ {
|
|
|
+ label: "销售分类",
|
|
|
+ value: this.mainData.saletype,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "对外备注",
|
|
|
+ value: this.mainData.remarks,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "对内备注",
|
|
|
+ value: this.mainData.remarks_in,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "核销状态",
|
|
|
+ value: this.mainData.writeoffstatus,
|
|
|
+ style:function () {
|
|
|
+ let style = that.tool.getStatusColor(that.mainData.writeoffstatus)
|
|
|
+ return style
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "开票状态",
|
|
|
+ value: this.mainData.invoicestatus,
|
|
|
+ style:function () {
|
|
|
+ let style = that.tool.getStatusColor(that.mainData.invoicestatus)
|
|
|
+ return style
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label:'备货状态',
|
|
|
+ value:this.$t(this.mainData.goodsstatus),
|
|
|
+ style:function () {
|
|
|
+ let style = {}
|
|
|
+ switch (that.mainData.goodsstatus) {
|
|
|
+ case '已完成':
|
|
|
+ style = {color:"#67C23A"}
|
|
|
+ break;
|
|
|
+ case '未完成':
|
|
|
+ style = {color:"#F56C6C"}
|
|
|
+ break;
|
|
|
+ case '部分完成':
|
|
|
+ style = {color:"#e6a23c"}
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ return style
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "运费方式",
|
|
|
+ value: this.$t(this.mainData.freightstatus),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "项目名称",
|
|
|
+ value: this.mainData.projectname,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "项目备注",
|
|
|
+ value: this.mainData.projectnote,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "退回原因",
|
|
|
+ value: this.mainData.backreason,
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ }else {
|
|
|
+ this.mainAreaData = [
|
|
|
+ {
|
|
|
+ label: "订单类型",
|
|
|
+ value: this.mainData.type,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "订单状态",
|
|
|
+ value: this.$t(this.mainData.status),
|
|
|
+ style: function () {
|
|
|
+ let style = that.tool.getStatusColor(that.mainData.status);
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "单据日期",
|
|
|
+ value: this.mainData.billdate,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "合计数量",
|
|
|
+ value: this.mainData.qty,
|
|
|
+ style: function () {
|
|
|
+ let style = { color: "#ff0000" };
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ // {{tool.formatAmount(scope.row.marketprice,2)}}
|
|
|
+ label: "合计金额",
|
|
|
+ value: this.tool.formatAmount(this.mainData.defaultamount, 2),
|
|
|
+ style: function () {
|
|
|
+ let style = { color: "#ff0000" };
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "折后金额",
|
|
|
+ value: this.tool.formatAmount(this.mainData.amount, 2),
|
|
|
+ style: function () {
|
|
|
+ let style = { color: "#ff0000" };
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ /*{
|
|
|
+ label:'企业名称',
|
|
|
+ value:this.mainData.enterprisename
|
|
|
+ },*/
|
|
|
+ {
|
|
|
+ label: "销售分类",
|
|
|
+ value: this.mainData.saletype,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "对外备注",
|
|
|
+ value: this.mainData.remarks,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "核销状态",
|
|
|
+ value: this.mainData.writeoffstatus,
|
|
|
+ style:function () {
|
|
|
+ let style = that.tool.getStatusColor(that.mainData.writeoffstatus)
|
|
|
+ return style
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "开票状态",
|
|
|
+ value: this.mainData.invoicestatus,
|
|
|
+ style:function () {
|
|
|
+ let style = that.tool.getStatusColor(that.mainData.invoicestatus)
|
|
|
+ return style
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label:'备货状态',
|
|
|
+ value:this.$t(this.mainData.goodsstatus),
|
|
|
+ style:function () {
|
|
|
+ let style = {}
|
|
|
+ switch (that.mainData.goodsstatus) {
|
|
|
+ case '已完成':
|
|
|
+ style = {color:"#67C23A"}
|
|
|
+ break;
|
|
|
+ case '未完成':
|
|
|
+ style = {color:"#F56C6C"}
|
|
|
+ break;
|
|
|
+ case '部分完成':
|
|
|
+ style = {color:"#e6a23c"}
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ return style
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "运费方式",
|
|
|
+ value: this.$t(this.mainData.freightstatus),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "项目名称",
|
|
|
+ value: this.mainData.projectname,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "项目备注",
|
|
|
+ value: this.mainData.projectnote,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "退回原因",
|
|
|
+ value: this.mainData.backreason,
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ if (this.tool.checkAuth(this.$route.name,'internalNote')){
|
|
|
+ this.mainAreaData = [
|
|
|
+ {
|
|
|
+ label: "订单类型",
|
|
|
+ value: this.mainData.type,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "订单状态",
|
|
|
+ value: this.$t(this.mainData.status),
|
|
|
+ style: function () {
|
|
|
+ let style = that.tool.getStatusColor(that.mainData.status);
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "单据日期",
|
|
|
+ value: this.mainData.billdate,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "合计数量",
|
|
|
+ value: this.mainData.qty,
|
|
|
+ style: function () {
|
|
|
+ let style = { color: "#ff0000" };
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ // {{tool.formatAmount(scope.row.marketprice,2)}}
|
|
|
+ label: "合计金额",
|
|
|
+ value: this.tool.formatAmount(this.mainData.defaultamount, 2),
|
|
|
+ style: function () {
|
|
|
+ let style = { color: "#ff0000" };
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "折后金额",
|
|
|
+ value: this.tool.formatAmount(this.mainData.amount, 2),
|
|
|
+ style: function () {
|
|
|
+ let style = { color: "#ff0000" };
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ /*{
|
|
|
+ label:'企业名称',
|
|
|
+ value:this.mainData.enterprisename
|
|
|
+ },*/
|
|
|
+ {
|
|
|
+ label: "销售分类",
|
|
|
+ value: this.mainData.saletype,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "对外备注",
|
|
|
+ value: this.mainData.remarks,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "对内备注",
|
|
|
+ value: this.mainData.remarks_in,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "核销状态",
|
|
|
+ value: this.mainData.writeoffstatus,
|
|
|
+ style:function () {
|
|
|
+ let style = that.tool.getStatusColor(that.mainData.writeoffstatus)
|
|
|
+ return style
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "开票状态",
|
|
|
+ value: this.mainData.invoicestatus,
|
|
|
+ style:function () {
|
|
|
+ let style = that.tool.getStatusColor(that.mainData.invoicestatus)
|
|
|
+ return style
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "运费方式",
|
|
|
+ value: this.$t(this.mainData.freightstatus),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "项目名称",
|
|
|
+ value: this.mainData.projectname,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "项目备注",
|
|
|
+ value: this.mainData.projectnote,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "退回原因",
|
|
|
+ value: this.mainData.backreason,
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ }else {
|
|
|
+ this.mainAreaData = [
|
|
|
+ {
|
|
|
+ label: "订单类型",
|
|
|
+ value: this.mainData.type,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "订单状态",
|
|
|
+ value: this.$t(this.mainData.status),
|
|
|
+ style: function () {
|
|
|
+ let style = that.tool.getStatusColor(that.mainData.status);
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "单据日期",
|
|
|
+ value: this.mainData.billdate,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "合计数量",
|
|
|
+ value: this.mainData.qty,
|
|
|
+ style: function () {
|
|
|
+ let style = { color: "#ff0000" };
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ // {{tool.formatAmount(scope.row.marketprice,2)}}
|
|
|
+ label: "合计金额",
|
|
|
+ value: this.tool.formatAmount(this.mainData.defaultamount, 2),
|
|
|
+ style: function () {
|
|
|
+ let style = { color: "#ff0000" };
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "折后金额",
|
|
|
+ value: this.tool.formatAmount(this.mainData.amount, 2),
|
|
|
+ style: function () {
|
|
|
+ let style = { color: "#ff0000" };
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ /*{
|
|
|
+ label:'企业名称',
|
|
|
+ value:this.mainData.enterprisename
|
|
|
+ },*/
|
|
|
+ {
|
|
|
+ label: "销售分类",
|
|
|
+ value: this.mainData.saletype,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "对外备注",
|
|
|
+ value: this.mainData.remarks,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "核销状态",
|
|
|
+ value: this.mainData.writeoffstatus,
|
|
|
+ style:function () {
|
|
|
+ let style = that.tool.getStatusColor(that.mainData.writeoffstatus)
|
|
|
+ return style
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "开票状态",
|
|
|
+ value: this.mainData.invoicestatus,
|
|
|
+ style:function () {
|
|
|
+ let style = that.tool.getStatusColor(that.mainData.invoicestatus)
|
|
|
+ return style
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "运费方式",
|
|
|
+ value: this.$t(this.mainData.freightstatus),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "项目名称",
|
|
|
+ value: this.mainData.projectname,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "项目备注",
|
|
|
+ value: this.mainData.projectnote,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "退回原因",
|
|
|
+ value: this.mainData.backreason,
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
// 监听切换数据,上一页,下一页
|
|
|
pageChange(id, rowindex, tabIndex) {
|