Commit 753541ea by 王悦

fix

parent 43ca0b00
......@@ -190,7 +190,7 @@ class TrademarkCtl extends CtlBase {
/**
* @api {post} /web/trademark/trademarkctl/update 修改
* @apiDescription (下架/审核/状态修改)
* @apiDescription
* @apiGroup 标源管理
* @apiParamExample {json} 请求参数
* {"id": "1"}
......@@ -208,6 +208,29 @@ class TrademarkCtl extends CtlBase {
let data = JSON.parse(rtn.stdout);
return system.getResult(data.data)
}
/**
* @api {post} /web/trademark/trademarkctl/updatestatus 修改状态
* @apiDescription (下架/审核/状态修改)
* @apiGroup 标源管理
* @apiParamExample {json} 请求参数
* {"data": [ {"id":1,"code":1,"platform_quoted_price":1200}],status:"uppershelf/lowershelf"}
* @apiSuccessExample {json} 成功示例:
* {"success": ""}
* @apiErrorExample {json} 失败示例:
* {"error": ""}
*/
async updatestatus(p, q, req) {
let body = {
"actionType": "tmStatusUpdate",
"actionBody": {
tm:p.data,
status:p.status
}
};
let rtn = await this.execClient.execPost(body, tmurl);
let data = JSON.parse(rtn.stdout);
return data
}
/**
* @api {post} /web/trademark/trademarkCtl/delete 删除
......
.brand_indentlist[data-v-f55cb5e0]{width:100%}.brand_indentlist .brand_header[data-v-f55cb5e0]{margin-bottom:10px}.brand_indentlist .brand_header button[data-v-f55cb5e0]{margin-right:10px}.brand_indentlist[data-v-f55cb5e0] .ivu-btn>span{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}
\ No newline at end of file
.brand_indentlist[data-v-feb5e8a0]{width:100%}.brand_indentlist .brand_header[data-v-feb5e8a0]{margin-bottom:10px}.brand_indentlist .brand_header button[data-v-feb5e8a0]{margin-right:10px}.brand_indentlist[data-v-feb5e8a0] .ivu-btn>span{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}
\ No newline at end of file
.brand_indentlist[data-v-d0a4cb18]{width:100%}.brand_indentlist .brand_header[data-v-d0a4cb18]{margin-bottom:10px}.brand_indentlist .brand_header button[data-v-d0a4cb18]{margin-right:10px}.brand_indentlist[data-v-d0a4cb18] .ivu-btn>span{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/ccc.png><title></title><link href=/css/chunk-14b9857b.0dc416de.css rel=prefetch><link href=/css/chunk-18078264.457252cc.css rel=prefetch><link href=/css/chunk-2c359864.0dc416de.css rel=prefetch><link href=/css/chunk-3385141a.0dc416de.css rel=prefetch><link href=/css/chunk-51d8db1f.84955839.css rel=prefetch><link href=/css/chunk-786333e2.1e75f0e2.css rel=prefetch><link href=/css/chunk-79c019e0.c1174227.css rel=prefetch><link href=/css/chunk-d49c726a.0912b099.css rel=prefetch><link href=/js/chunk-14b9857b.045d68b1.js rel=prefetch><link href=/js/chunk-18078264.312de7d3.js rel=prefetch><link href=/js/chunk-2c359864.1901a494.js rel=prefetch><link href=/js/chunk-3385141a.361ae46e.js rel=prefetch><link href=/js/chunk-4fe8dd4f.c7f5a9a6.js rel=prefetch><link href=/js/chunk-51d8db1f.a77526ea.js rel=prefetch><link href=/js/chunk-786333e2.d81b11a4.js rel=prefetch><link href=/js/chunk-79c019e0.8a63610c.js rel=prefetch><link href=/js/chunk-d49c726a.7e8004e5.js rel=prefetch><link href=/css/app.d144942e.css rel=preload as=style><link href=/css/chunk-vendors.1d90d08d.css rel=preload as=style><link href=/js/app.1a83e0db.js rel=preload as=script><link href=/js/chunk-vendors.0cce4d14.js rel=preload as=script><link href=/css/chunk-vendors.1d90d08d.css rel=stylesheet><link href=/css/app.d144942e.css rel=stylesheet></head><body><noscript><strong>We're sorry but iview-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.0cce4d14.js></script><script src=/js/app.1a83e0db.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/ccc.png><title></title><link href=/css/chunk-14b9857b.0dc416de.css rel=prefetch><link href=/css/chunk-18078264.457252cc.css rel=prefetch><link href=/css/chunk-2c359864.0dc416de.css rel=prefetch><link href=/css/chunk-3385141a.0dc416de.css rel=prefetch><link href=/css/chunk-48cdcf06.4f534ef6.css rel=prefetch><link href=/css/chunk-51d8db1f.84955839.css rel=prefetch><link href=/css/chunk-786333e2.1e75f0e2.css rel=prefetch><link href=/css/chunk-79c019e0.c1174227.css rel=prefetch><link href=/css/chunk-f1119100.f86fd2b1.css rel=prefetch><link href=/js/chunk-14b9857b.045d68b1.js rel=prefetch><link href=/js/chunk-18078264.4a5d9025.js rel=prefetch><link href=/js/chunk-2c359864.1901a494.js rel=prefetch><link href=/js/chunk-3385141a.361ae46e.js rel=prefetch><link href=/js/chunk-48cdcf06.618a9866.js rel=prefetch><link href=/js/chunk-4fe8dd4f.0b4915be.js rel=prefetch><link href=/js/chunk-51d8db1f.d896f330.js rel=prefetch><link href=/js/chunk-786333e2.d81b11a4.js rel=prefetch><link href=/js/chunk-79c019e0.1f39054a.js rel=prefetch><link href=/js/chunk-f1119100.216cd9ab.js rel=prefetch><link href=/css/app.d144942e.css rel=preload as=style><link href=/css/chunk-vendors.1d90d08d.css rel=preload as=style><link href=/js/app.b392512c.js rel=preload as=script><link href=/js/chunk-vendors.0cce4d14.js rel=preload as=script><link href=/css/chunk-vendors.1d90d08d.css rel=stylesheet><link href=/css/app.d144942e.css rel=stylesheet></head><body><noscript><strong>We're sorry but iview-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.0cce4d14.js></script><script src=/js/app.b392512c.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-48cdcf06"],{"0139":function(e,t,a){e.exports=a.p+"img/placeholder.756a7125.svg"},"1ecb":function(e,t,a){},"48b4":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"brand_indentlist"},[a("div",{staticClass:"brand_header"},[a("Button",{attrs:{type:"primary"},on:{click:e.excelHandler}},[e._v("Excel批量上传")]),a("Button",{attrs:{type:"primary"},on:{click:e.searchHandler}},[e._v("检索上传")])],1),a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,modelName:"trademark",metaName:"originmanage_info",packageName:"trademark",tblheight:e.adjustHeight-120,isMulti:"",isLazy:"true",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})],1)},r=[],i=a("06d3"),o=a("8770"),s=a("c1df"),c=a.n(s),d=a("7e1e"),l=a("0139"),f=a.n(l),u={components:{BizTable:i["a"],DateTime:o["a"]},data:function(){return{placeholder:f.a}},mounted:function(){this.$route.query.ids?this.$refs.bt.fetchData({ids:this.$route.query.ids}):this.$refs.bt.fetchData()},methods:{excelHandler:function(){this.$router.push("/originmanage/originmanage_excelupload")},searchHandler:function(){this.$router.push("/originmanage/originmanage_brandsearch")},onexec:function(e,t){var a=this;if("detail"===e)this.$router.push({name:"originmanage_detail",query:{id:t.id}});else if("down"===e||"lowershelf"===e||"uppershelf"===e){"down"!==e&&0===this.$refs.bt.currentSels.length&&this.$Message.warning("请选择商标");var n="down"===e?[t]:this.$refs.bt.currentSels;e="down"===e?"lowershelf":e,Object(d["j"])(n,e).then((function(t){1==t.data.status&&(a.$Message.success("".concat("lowershelf"===e?"下架":"上架","成功")),a.$refs.bt.fetchData())})).catch((function(t){a.$Message.error("".concat("lowershelf"===e?"下架":"上架","出错"))}))}},formatCol:function(e,t,a){var n=e[t];if("created_at"===t)n=c()(n).format("YYYY-MM-DD");else{if("pic_url"===t)return'<img style="width: 100%;height: 100%" src="'.concat(e[t]||f.a,'"/>');"deadline"===t?n=c()(e["tm_start_day"]||0).format("YYYY-MM-DD")+"至"+c()(e["tm_end_day"]||0).format("YYYY-MM-DD"):"publishinfo"===t&&(n=e[contacts]+"\n"+e[mobile])}return n}}},h=u,m=(a("c0c1"),a("2877")),b=Object(m["a"])(h,n,r,!1,null,"feb5e8a0",null);t["default"]=b.exports},c0c1:function(e,t,a){"use strict";var n=a("1ecb"),r=a.n(n);r.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d49c726a"],{"0139":function(e,t,a){e.exports=a.p+"img/placeholder.756a7125.svg"},"48b4":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"brand_indentlist"},[a("div",{staticClass:"brand_header"},[a("Button",{attrs:{type:"primary"},on:{click:e.excelHandler}},[e._v("Excel批量上传")]),a("Button",{attrs:{type:"primary"},on:{click:e.searchHandler}},[e._v("检索上传")])],1),a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,modelName:"trademark",metaName:"originmanage_info",packageName:"trademark",tblheight:e.adjustHeight-120,isMulti:"",isLazy:"true",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})],1)},n=[],i=a("06d3"),o=a("8770"),s=a("c1df"),c=a.n(s),d=a("7e1e"),u=a("0139"),l=a.n(u),f={components:{BizTable:i["a"],DateTime:o["a"]},data:function(){return{placeholder:l.a}},mounted:function(){this.$route.query.ids?this.$refs.bt.fetchData({ids:this.$route.query.ids}):this.$refs.bt.fetchData()},methods:{excelHandler:function(){this.$router.push("/originmanage/originmanage_excelupload")},searchHandler:function(){this.$router.push("/originmanage/originmanage_brandsearch")},onexec:function(e,t){var a=this;"detail"===e?this.$router.push({name:"originmanage_detail",query:{id:t.id}}):"down"===e&&Object(d["f"])("/web/trademark/trademarkCtl/update",{id:t.id,publish_status:"lowershelf"}).then((function(e){a.$Message.success("发布成功"),a.$refs.bt.fetchData()})).catch((function(e){a.$Message.error("发布出错")}))},formatCol:function(e,t,a){var r=e[t];if("created_at"===t)r=c()(r).format("YYYY-MM-DD");else{if("pic_url"===t)return'<img style="width: 100%;height: 100%" src="'.concat(e[t]||l.a,'"/>');"deadline"===t&&(r=c()(e["tm_start_day"]||0).format("YYYY-MM-DD")+"至"+c()(e["tm_end_day"]||0).format("YYYY-MM-DD"))}return r}}},h=f,m=(a("cf06"),a("2877")),b=Object(m["a"])(h,r,n,!1,null,"f55cb5e0",null);t["default"]=b.exports},cf06:function(e,t,a){"use strict";var r=a("e499"),n=a.n(r);n.a},e499:function(e,t,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f1119100"],{"0139":function(e,t,a){e.exports=a.p+"img/placeholder.756a7125.svg"},"23a5":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"brand_indentlist"},[a("div",{staticClass:"brand_header"},[a("Button",{attrs:{type:"primary"},on:{click:e.excelHandler}},[e._v("Excel批量上传")]),a("Button",{attrs:{type:"primary"},on:{click:e.searchHandler}},[e._v("检索上传")])],1),a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,modelName:"trademark",metaName:"operation_info",packageName:"trademark",tblheight:e.adjustHeight-120,isMulti:"",isLazy:"true",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})],1)},n=[],o=a("06d3"),i=a("8770"),s=a("c1df"),c=a.n(s),d=a("7e1e"),l=a("0139"),f=a.n(l),u={components:{BizTable:o["a"],DateTime:i["a"]},data:function(){return{placeholder:f.a}},mounted:function(){this.$route.query.ids?this.$refs.bt.fetchData({ids:this.$route.query.ids}):this.$refs.bt.fetchData()},methods:{excelHandler:function(){this.$router.push("/operation/operation_excelupload")},searchHandler:function(){this.$router.push("/operation/operation_brandsearch")},onexec:function(e,t){var a=this;if("detail"===e)this.$router.push({name:"originmanage_detail",query:{id:t.id}});else if("down"===e||"lowershelf"===e||"uppershelf"===e){"down"!==e&&0===this.$refs.bt.currentSels.length&&this.$Message.warning("请选择商标");var r="down"===e?[t]:this.$refs.bt.currentSels;e="down"===e?"lowershelf":e,Object(d["j"])(r,e).then((function(t){1==t.data.status&&(a.$Message.success("".concat("lowershelf"===e?"下架":"上架","成功")),a.$refs.bt.fetchData())})).catch((function(t){a.$Message.error("".concat("lowershelf"===e?"下架":"上架","出错"))}))}},formatCol:function(e,t,a){var r=e[t];if("created_at"===t)r=c()(r).format("YYYY-MM-DD");else{if("pic_url"===t)return'<img style="width: 100%;height: 100%" src="'.concat(e[t]||f.a,'"/>');"deadline"===t?r=c()(e["tm_start_day"]||0).format("YYYY-MM-DD")+"至"+c()(e["tm_end_day"]||0).format("YYYY-MM-DD"):"publishinfo"===t&&(r=e[contacts]+"\n"+e[mobile])}return r}}},h=u,b=(a("9371"),a("2877")),m=Object(b["a"])(h,r,n,!1,null,"d0a4cb18",null);t["default"]=m.exports},"6eab":function(e,t,a){},9371:function(e,t,a){"use strict";var r=a("6eab"),n=a.n(r);n.a}}]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment