Commit d45ce397 by 王栋源

wdy

parent 16de9d38
...@@ -129,6 +129,7 @@ module.exports = { ...@@ -129,6 +129,7 @@ module.exports = {
"PROVIDE_MATERIAL": "上传卖家资料", "PROVIDE_MATERIAL": "上传卖家资料",
"PAY_OVER": "尾款已支付", "PAY_OVER": "尾款已支付",
"BUYER_EXPRESS": "邮寄资料", "BUYER_EXPRESS": "邮寄资料",
"MATERIAL_PROVIDE":"资料已收到",
"BUYER_PROVIDE_MATERIAL": "确认收件", "BUYER_PROVIDE_MATERIAL": "确认收件",
"SUBMIT_TO_SBJ": "提交官方", "SUBMIT_TO_SBJ": "提交官方",
"SBJ_ACCEPT": "商标局受理", "SBJ_ACCEPT": "商标局受理",
......
...@@ -13,7 +13,7 @@ module.exports={ ...@@ -13,7 +13,7 @@ module.exports={
{ {
"title":"控制信息", "title":"控制信息",
ctls:[ ctls:[
{"type":"select","dicKey":"transfer_statusshow","label":"转让状态","prop":"transfer_status","labelField":"label","valueField":"value","style":"","isButton":true}, {"type":"select","dicKey":"transfer_status","label":"转让状态","prop":"transfer_status","labelField":"label","valueField":"value","style":"","isButton":true},
// {"type":"select","refModel":"pmproduct","isMulti":false,"label":"所属产品","prop":"pmproduct_id","labelField":"name","valueField":"id","style":""}, // {"type":"select","refModel":"pmproduct","isMulti":false,"label":"所属产品","prop":"pmproduct_id","labelField":"name","valueField":"id","style":""},
] ]
}, },
......
...@@ -19,8 +19,8 @@ class TmjsonfileService extends ServiceBase { ...@@ -19,8 +19,8 @@ class TmjsonfileService extends ServiceBase {
if(lastinfo){ if(lastinfo){
lasttime=lastinfo[0].updated_at.toISOString().split("T")[0]; lasttime=lastinfo[0].updated_at.toISOString().split("T")[0];
} }
// var sql = "select * from bi_trademarktransaction where updated_at>='"+lasttime+"'"; var sql = "select * from bi_trademarktransaction where updated_at>='"+lasttime+"'";
var sql = "select * from bi_trademarktransaction where id=175342"; // var sql = "select * from bi_trademarktransaction where id=175342";
var tminfos = await this.connectionigirl.query(sql); var tminfos = await this.connectionigirl.query(sql);
var sources = []; var sources = [];
if (tminfos[0]) { if (tminfos[0]) {
......
...@@ -511,7 +511,7 @@ class TradetransferService extends ServiceBase { ...@@ -511,7 +511,7 @@ class TradetransferService extends ServiceBase {
} }
async uppaymentstatus() { async uppaymentstatus() {
var selsql = "select * from trade_transfer where transfer_status='PROVIDE_MATERIAL'"; var selsql = "select * from trade_transfer where transfer_status='PROVIDE_MATERIAL' or transfer_status='BUYER_EXPRESS'";
var transferinfos = await this.dao.customQuery(selsql); var transferinfos = await this.dao.customQuery(selsql);
var obj = { var obj = {
action: "QueryTradeProduceList" action: "QueryTradeProduceList"
...@@ -536,6 +536,12 @@ class TradetransferService extends ServiceBase { ...@@ -536,6 +536,12 @@ class TradetransferService extends ServiceBase {
faillist.push(transferinfo.ali_bizid); faillist.push(transferinfo.ali_bizid);
} }
} }
if (aliorderindex > -1 && aliorder[aliorderindex].BuyerStatus == 22) {
var upd = await this.dao.model.update({ transfer_status: "MATERIAL_PROVIDE" }, { where: { ali_bizid: transferinfo.ali_bizid } });
if (!upd) {
faillist.push(transferinfo.ali_bizid);
}
}
} }
} }
return { return {
......
...@@ -29,6 +29,10 @@ ...@@ -29,6 +29,10 @@
var that=this; var that=this;
if (k = "alisubmit") { if (k = "alisubmit") {
debugger; debugger;
if(model.transfer_status=="PAY_OVER" || model.transfer_status=="MATERIAL_PROVIDE"){
that.$message.warning("状态不可修改");
return;
}
this.$root.postReq("/web/transfer/tradetransferCtl/submit", model).then(function (d) { this.$root.postReq("/web/transfer/tradetransferCtl/submit", model).then(function (d) {
if (d.status > -1) { if (d.status > -1) {
$("[name='grdid']").show(); $("[name='grdid']").show();
......
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