|
@@ -49,9 +49,9 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <!-- <el-dialog title="定稿素材" :visible.sync="dialogStatusc" width="50%" :destroy-on-close="true"
|
|
|
+ <el-dialog title="定稿素材" :visible.sync="dialogStatusc" width="50%" :destroy-on-close="true"
|
|
|
:modal-append-to-body="false" :close-on-click-modal="false">
|
|
|
- <el-form>
|
|
|
+ <!-- <el-form>
|
|
|
<el-form-item class="info-line online">
|
|
|
<span>素材类型</span>
|
|
|
<el-select :popper-append-to-body="false" v-model="advtype" placeholder="素材类型">
|
|
@@ -60,12 +60,12 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- </el-form>
|
|
|
+ </el-form> -->
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogCli(1)" type="primary">确 定</el-button>
|
|
|
<el-button @click="dialogCli(2)">取 消</el-button>
|
|
|
</div>
|
|
|
- </el-dialog> -->
|
|
|
+ </el-dialog>
|
|
|
|
|
|
</div>
|
|
|
</fullscreen>
|
|
@@ -116,6 +116,7 @@
|
|
|
singleTable: {},
|
|
|
shParam:{},
|
|
|
// isBtnShow: false,
|
|
|
+ isGDClick: false
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -141,6 +142,7 @@
|
|
|
let data = res.data.data;
|
|
|
this.total = res.data.totalRecord;
|
|
|
this.loading = false;
|
|
|
+ this.isGDClick = false;
|
|
|
if(this.advstatus==0){
|
|
|
data.forEach(item => {
|
|
|
item.isBtnShow = false;
|
|
@@ -148,6 +150,7 @@
|
|
|
});
|
|
|
}
|
|
|
this.tableData = data;
|
|
|
+ // console.log(data);
|
|
|
});
|
|
|
},
|
|
|
async getSts(v){
|
|
@@ -162,7 +165,14 @@
|
|
|
woNo: v.id
|
|
|
},
|
|
|
}).then((res) => {
|
|
|
+
|
|
|
this.shParam = res.data;
|
|
|
+ // this.dialogCli(1);
|
|
|
+ // callback&&callback()
|
|
|
+ if(this.isGDClick){
|
|
|
+ this.dialogCli(1);
|
|
|
+ return
|
|
|
+ }
|
|
|
if(res.data.taskName == '需求部门'){
|
|
|
v.sts = '3'
|
|
|
return
|
|
@@ -172,7 +182,8 @@
|
|
|
v.isBtnShow = true;
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
// 分页
|
|
@@ -199,17 +210,25 @@
|
|
|
this.componentInfo = params;
|
|
|
this.componentStatus = true;
|
|
|
},
|
|
|
+ // 归档
|
|
|
advSure(v) {
|
|
|
let _this = this;
|
|
|
// this.dialogStatusc = true;
|
|
|
+ this.isGDClick = true;
|
|
|
this.dgid = v.id;
|
|
|
+
|
|
|
this.getSts(v);
|
|
|
- let advTypeName = '';
|
|
|
- for (let i = 0; i < this.typeList.length; i++) {
|
|
|
- if (this.typeList[i].dataCode == this.advtype) {
|
|
|
- advTypeName = this.typeList[i].dataName;
|
|
|
- }
|
|
|
- }
|
|
|
+ },
|
|
|
+ dialogCli(v) {
|
|
|
+ let _this = this;
|
|
|
+
|
|
|
+ if (v == 1) {
|
|
|
+ // let advTypeName = '';
|
|
|
+ // for (let i = 0; i < this.typeList.length; i++) {
|
|
|
+ // if (this.typeList[i].dataCode == this.advtype) {
|
|
|
+ // advTypeName = this.typeList[i].dataName;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
// let param = {
|
|
|
// woNo: this.dgid,
|
|
|
// advTypeName: advTypeName,
|
|
@@ -217,14 +236,14 @@
|
|
|
// }
|
|
|
let gdParam = {
|
|
|
woNo: this.dgid,
|
|
|
- advTypeName: advTypeName,
|
|
|
+ // advTypeName: advTypeName,
|
|
|
// advType: this.advtype
|
|
|
}
|
|
|
|
|
|
this.shParam.params.terminalRes = JSON.stringify(Object.assign(JSON.parse(this.shParam.params.terminalRes) , gdParam))
|
|
|
|
|
|
let param = this.shParam
|
|
|
-
|
|
|
+ console.log(param);
|
|
|
this.$http({
|
|
|
// url: "/market/cadv/mkConfirmAdv",
|
|
|
url: "/bpm/api/submitTask",
|
|
@@ -247,59 +266,9 @@
|
|
|
_this.getList(_this.params, _this.pageSize);
|
|
|
}
|
|
|
});
|
|
|
- this.advtype = '';
|
|
|
-
|
|
|
- },
|
|
|
- dialogCli(v) {
|
|
|
- let _this = this;
|
|
|
-
|
|
|
- // if (v == 1) {
|
|
|
- // let advTypeName = '';
|
|
|
- // for (let i = 0; i < this.typeList.length; i++) {
|
|
|
- // if (this.typeList[i].dataCode == this.advtype) {
|
|
|
- // advTypeName = this.typeList[i].dataName;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // // let param = {
|
|
|
- // // woNo: this.dgid,
|
|
|
- // // advTypeName: advTypeName,
|
|
|
- // // advType: this.advtype
|
|
|
- // // }
|
|
|
- // let gdParam = {
|
|
|
- // woNo: this.dgid,
|
|
|
- // advTypeName: advTypeName,
|
|
|
- // advType: this.advtype
|
|
|
- // }
|
|
|
-
|
|
|
- // this.shParam.params.terminalRes = JSON.stringify(Object.assign(JSON.parse(this.shParam.params.terminalRes) , gdParam))
|
|
|
-
|
|
|
- // let param = this.shParam
|
|
|
-
|
|
|
- // this.$http({
|
|
|
- // // url: "/market/cadv/mkConfirmAdv",
|
|
|
- // url: "/bpm/api/submitTask",
|
|
|
- // method: "post",
|
|
|
- // headers: {
|
|
|
- // "Content-Type": "application/json",
|
|
|
- // },
|
|
|
- // data: param,
|
|
|
- // }).then((res) => {
|
|
|
- // if (res.data.result === 1) {
|
|
|
- // _this.$message({
|
|
|
- // message: res.data.desc,
|
|
|
- // type: 'error'
|
|
|
- // });
|
|
|
- // } else {
|
|
|
- // _this.$message({
|
|
|
- // message: '成功',
|
|
|
- // type: 'success'
|
|
|
- // });
|
|
|
- // _this.getList(_this.params, _this.pageSize);
|
|
|
- // }
|
|
|
- // });
|
|
|
- // }
|
|
|
- this.dialogStatusc = false;
|
|
|
- this.advtype = '';
|
|
|
+ }
|
|
|
+ // this.dialogStatusc = false;
|
|
|
+ // this.advtype = '';
|
|
|
return
|
|
|
},
|
|
|
closeEdio() {
|