-
+
-
+
+
+
+ 打印
+ 接收
编辑
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 编辑
-
{});
+ },
//添加
table_add(type) {
this.dialog.save = true;
@@ -260,10 +276,41 @@ export default {
selectionChange(selection) {
this.selection = selection;
},
+
//搜索
handleQuery() {
this.$refs.table.queryData(this.query);
},
+ searchTypeQuery() {
+ let that = this;
+ if (that.searchType == "send") {
+ that.query.send_mgroup = that.mgroupId;
+ that.query.recive_mgroup = "";
+ } else if (that.searchType == "recive") {
+ that.query.recive_mgroup = that.mgroupId;
+ that.query.send_mgroup = "";
+ } else {
+ that.query.send_mgroup = "";
+ that.query.recive_mgroup = "";
+ }
+ console.log(that.query);
+ this.$refs.table.queryData(that.query);
+ },
+ table_receive(row) {
+ //接收
+ let that = this;
+ that.$API.wpm.handover.submit.req(row.id).then((res) => {
+ that.$refs.table.queryData(that.query);
+ });
+ },
+ table_print(row) {
+ //打印
+ let that = this;
+ that.$API.wpm.handover.item.req(row.id).then((res) => {
+ that.handoverItem = res;
+ that.handoverPrint();
+ });
+ },
//本地更新数据
//新增岗位后更新数据
handleSaveSuccess(data, mode) {