|
@@ -151,7 +151,7 @@ import { del } from 'vue';
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
var isnumber = (rule, value, callback) => {
|
|
var isnumber = (rule, value, callback) => {
|
|
- debugger
|
|
+
|
|
var reg = /^1[3456789]\d{9}$/;//小数点左边最高16位,小数点右边最多4位
|
|
var reg = /^1[3456789]\d{9}$/;//小数点左边最高16位,小数点右边最多4位
|
|
if (reg.test(value)) {
|
|
if (reg.test(value)) {
|
|
callback();
|
|
callback();
|
|
@@ -246,9 +246,9 @@ export default {
|
|
}
|
|
}
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
console.log(res)
|
|
console.log(res)
|
|
- debugger
|
|
+
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
- debugger
|
|
+
|
|
that.tableDatas = res.data.data;
|
|
that.tableDatas = res.data.data;
|
|
that.tableData = that.tableDatas
|
|
that.tableData = that.tableDatas
|
|
that.tableDatas.forEach(function (item, index) {
|
|
that.tableDatas.forEach(function (item, index) {
|
|
@@ -283,7 +283,7 @@ export default {
|
|
},
|
|
},
|
|
//#region 修改操作
|
|
//#region 修改操作
|
|
upDate(index, row) {
|
|
upDate(index, row) {
|
|
- debugger
|
|
+
|
|
this.upDataVisible = true;
|
|
this.upDataVisible = true;
|
|
this.updata.Id = row.id
|
|
this.updata.Id = row.id
|
|
this.updata.CompanyCode = row.companyCode
|
|
this.updata.CompanyCode = row.companyCode
|
|
@@ -299,7 +299,7 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
upDateBtn() {
|
|
upDateBtn() {
|
|
- debugger
|
|
+
|
|
var that = this
|
|
var that = this
|
|
that.$refs.updata.validate((valid) => {
|
|
that.$refs.updata.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
@@ -322,7 +322,7 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
- debugger;
|
|
+ ;
|
|
var url = "/api/System/EditCompany"
|
|
var url = "/api/System/EditCompany"
|
|
var that = this
|
|
var that = this
|
|
that.$axios({
|
|
that.$axios({
|
|
@@ -334,7 +334,7 @@ export default {
|
|
data: that.updata
|
|
data: that.updata
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
console.log(res)
|
|
console.log(res)
|
|
- debugger
|
|
+
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
that.$message({
|
|
that.$message({
|
|
message: '修改成功!',
|
|
message: '修改成功!',
|
|
@@ -361,7 +361,7 @@ export default {
|
|
},
|
|
},
|
|
//#endregion
|
|
//#endregion
|
|
del(index, row) {
|
|
del(index, row) {
|
|
- debugger
|
|
+
|
|
this.$confirm('此操作将取消订单, 是否继续?', '提示', {
|
|
this.$confirm('此操作将取消订单, 是否继续?', '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
@@ -380,7 +380,7 @@ export default {
|
|
}
|
|
}
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
console.log(res)
|
|
console.log(res)
|
|
- debugger
|
|
+
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
that.$message({
|
|
that.$message({
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -407,7 +407,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
addDateBtn() {
|
|
addDateBtn() {
|
|
- debugger
|
|
+
|
|
this.$refs.adddata.validate((valid) => {
|
|
this.$refs.adddata.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
var that = this
|
|
var that = this
|
|
@@ -452,13 +452,13 @@ export default {
|
|
data: that.adddata
|
|
data: that.adddata
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
console.log(res)
|
|
console.log(res)
|
|
- debugger
|
|
+
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
that.$message({
|
|
that.$message({
|
|
message: '添加成功!',
|
|
message: '添加成功!',
|
|
type: 'success'
|
|
type: 'success'
|
|
});
|
|
});
|
|
- debugger
|
|
+
|
|
that.addDataVisible = false;
|
|
that.addDataVisible = false;
|
|
that.adddata.CreateUserId = 0
|
|
that.adddata.CreateUserId = 0
|
|
that.adddata.CompanyCode = ""
|
|
that.adddata.CompanyCode = ""
|
|
@@ -502,9 +502,9 @@ export default {
|
|
}
|
|
}
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
console.log(res)
|
|
console.log(res)
|
|
- debugger
|
|
+
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
- debugger
|
|
+
|
|
const data = res.data.data;
|
|
const data = res.data.data;
|
|
data.forEach(function (item, index) {
|
|
data.forEach(function (item, index) {
|
|
that.optionsUsers.push({
|
|
that.optionsUsers.push({
|
|
@@ -518,7 +518,7 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- debugger
|
|
+
|
|
this.token = JSON.parse(localStorage.getItem('userinif')).token;
|
|
this.token = JSON.parse(localStorage.getItem('userinif')).token;
|
|
this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId
|
|
this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId
|
|
console.log(this.token)
|
|
console.log(this.token)
|