|
|
|
@ -221,7 +221,7 @@ export default {
|
|
|
|
|
return h("div", [
|
|
|
|
|
h("i-switch", {
|
|
|
|
|
props: {
|
|
|
|
|
value: params.row.status,
|
|
|
|
|
value: params.row.accountFlag,
|
|
|
|
|
"true-value": 1, //开启值
|
|
|
|
|
"false-value": 2, //关闭值
|
|
|
|
|
size: "large"
|
|
|
|
@ -233,11 +233,11 @@ export default {
|
|
|
|
|
// _this.modifyStatus(params.row.accountId, value);
|
|
|
|
|
let request = {
|
|
|
|
|
status: value,
|
|
|
|
|
id: _this.formValidate.id
|
|
|
|
|
id: params.row.accountId
|
|
|
|
|
};
|
|
|
|
|
debugger;
|
|
|
|
|
//修改接口
|
|
|
|
|
_this.editSattf(request);
|
|
|
|
|
_this.editSattfStatus(request);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
scopedSlots: {
|
|
|
|
@ -441,6 +441,17 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
editSattfStatus: function(request) {
|
|
|
|
|
let that = this;
|
|
|
|
|
staff.editSattf(request, function(data) {
|
|
|
|
|
data = data.data;
|
|
|
|
|
if (data.code == "0000") {
|
|
|
|
|
that.$Message.success("修改成功!");
|
|
|
|
|
that.isShowAdd = false;
|
|
|
|
|
that.listOfLogistics();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
searchCustomerDataBtnClick: function() {
|
|
|
|
|
this.listOfLogistics();
|
|
|
|
|