新增商品账号类型字段

This commit is contained in:
姜棚 2021-12-02 16:28:54 +08:00
parent 7a717c6b5e
commit ab53b1abfc
9 changed files with 11 additions and 2 deletions

View File

@ -671,7 +671,7 @@ export const putSystemTemplate= (id,data) => {
} }
//新增系统模板 //新增系统模板
export const addSystemTemplate = (data) => { export const addSystemTemplate = (data) => {
return req('post', baseurl + "/plan/theme/system/",data) return req('post', baseurl + "/plan/theme/system",data)
} }
//删除系统模板 //删除系统模板
export const delSystemTemplate= (id) => { export const delSystemTemplate= (id) => {

View File

@ -354,6 +354,7 @@ export default class acclist extends React.Component{
obj.product_id = item.product_id; obj.product_id = item.product_id;
obj.product_type = item.product_type; obj.product_type = item.product_type;
obj.product_name = item.product_name; obj.product_name = item.product_name;
obj.account_type = item.account_type;
obj.contract_price = item.contract_price; obj.contract_price = item.contract_price;
obj.cost_price = item.cost_price; obj.cost_price = item.cost_price;
obj.official_price= item.official_price; obj.official_price= item.official_price;

View File

@ -80,6 +80,7 @@ export default class adduserinfo extends React.Component{
let temp ={ //数据模型不可少 let temp ={ //数据模型不可少
id:req.product_id, id:req.product_id,
type:req.product_type, type:req.product_type,
account_type:req.account_type,
contract_price:req.contract_price, contract_price:req.contract_price,
official_price:req.official_price, official_price:req.official_price,
cost_price:req.cost_price, cost_price:req.cost_price,
@ -140,6 +141,7 @@ export default class adduserinfo extends React.Component{
"product_name": this.state.model.name, "product_name": this.state.model.name,
"cost_price":this.state.model.cost_price, "cost_price":this.state.model.cost_price,
"contract_price": this.state.model.contract_price, "contract_price": this.state.model.contract_price,
"account_type":this.state.model.account_type,
"official_price":this.state.model.official_price, "official_price":this.state.model.official_price,
"quantity": this.state.model.stock, "quantity": this.state.model.stock,
"usage": 0, "usage": 0,
@ -176,6 +178,7 @@ export default class adduserinfo extends React.Component{
cost_price:cur_product.cost_price, cost_price:cur_product.cost_price,
stock:this.state.model.stock, stock:this.state.model.stock,
name:this.state.model.name, name:this.state.model.name,
account_type:cur_product.account_type,
show_url:this.state.show_url , show_url:this.state.show_url ,
describe_url:this.state.describe_url , describe_url:this.state.describe_url ,
} }

View File

@ -195,6 +195,7 @@ export default class exchangedit extends React.Component{
_object.describe_url= o.describe_url; _object.describe_url= o.describe_url;
_object.official_price= o.official_price; _object.official_price= o.official_price;
_object.product_id= o.product_id _object.product_id= o.product_id
_object.account_type =o.account_type;
_object.product_name= o.product_name _object.product_name= o.product_name
_object.product_type= o.product_type _object.product_type= o.product_type
_object.quantity= o.quantity _object.quantity= o.quantity

View File

@ -122,6 +122,7 @@ export default class adduserinfo extends React.Component{
product_name:this.state.model.product_name, product_name:this.state.model.product_name,
show_url:this.state.show_url ? this.state.show_url : "", show_url:this.state.show_url ? this.state.show_url : "",
describe_url:this.state.describe_url ? this.state.describe_url : "", describe_url:this.state.describe_url ? this.state.describe_url : "",
account_type:cur_product.account_type
} }
this.setState({model:model2}) this.setState({model:model2})

View File

@ -264,7 +264,7 @@ export default class acclist extends React.Component{
obj.quantity = item.quantity; obj.quantity = item.quantity;
obj.show_url = item.show_url; obj.show_url = item.show_url;
obj.describe_url = item.describe_url; obj.describe_url = item.describe_url;
obj.account_type = item.account_type;
return obj return obj
}) })
temp.product = arr; temp.product = arr;

View File

@ -381,6 +381,7 @@ export default class acclist extends React.Component{
obj.product_id = item.product_id; obj.product_id = item.product_id;
obj.product_type = item.product_type; obj.product_type = item.product_type;
obj.product_name = item.product_name; obj.product_name = item.product_name;
obj.account_type = item.account_type;
obj.contract_price = item.contract_price; obj.contract_price = item.contract_price;
obj.cost_price = item.cost_price; obj.cost_price = item.cost_price;
obj.official_price= item.official_price; obj.official_price= item.official_price;

View File

@ -115,6 +115,7 @@ export default class adduserinfo extends React.Component{
let model2 = { let model2 = {
product_id:cur_product.id, product_id:cur_product.id,
product_type:cur_product.type, product_type:cur_product.type,
account_type:cur_product.account_type,
contract_price:this.state.model.contract_price, contract_price:this.state.model.contract_price,
official_price:cur_product.official_price, official_price:cur_product.official_price,
cost_price:cur_product.cost_price, cost_price:cur_product.cost_price,

View File

@ -120,6 +120,7 @@ export default class adduserinfo extends React.Component{
cost_price:cur_product.cost_price, cost_price:cur_product.cost_price,
quantity:this.state.model.quantity, quantity:this.state.model.quantity,
product_name:this.state.model.product_name, product_name:this.state.model.product_name,
account_type:cur_product.account_type,
show_url:this.state.show_url ? this.state.show_url : "", show_url:this.state.show_url ? this.state.show_url : "",
describe_url:this.state.describe_url ? this.state.describe_url : "", describe_url:this.state.describe_url ? this.state.describe_url : "",
} }