|
@@ -77,8 +77,8 @@ Page({
|
|
|
"orderamount": 0,
|
|
"orderamount": 0,
|
|
|
"invoiceqty": 0,
|
|
"invoiceqty": 0,
|
|
|
"invoiceamount": 0,
|
|
"invoiceamount": 0,
|
|
|
- "outqty": 0,
|
|
|
|
|
- "outamount": 0
|
|
|
|
|
|
|
+ "outqty": 1,
|
|
|
|
|
+ "outamount": v.marketprice
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
pages[pages.length - 2].selectComponent("#Project").handleSelectProduct(addList, list)
|
|
pages[pages.length - 2].selectComponent("#Project").handleSelectProduct(addList, list)
|
|
@@ -162,8 +162,10 @@ Page({
|
|
|
startSearch({
|
|
startSearch({
|
|
|
detail
|
|
detail
|
|
|
}) {
|
|
}) {
|
|
|
- if (detail == this.data.params.content.where.condition) return;
|
|
|
|
|
|
|
+ let condition = this.data.content ? this.data.content.where.condition : this.data.params.content.where.condition;
|
|
|
|
|
+ if (detail == condition) return;
|
|
|
this.setData({
|
|
this.setData({
|
|
|
|
|
+ 'content.where.condition': detail,
|
|
|
'params.content.where.condition': detail
|
|
'params.content.where.condition': detail
|
|
|
});
|
|
});
|
|
|
this.getList(true);
|
|
this.getList(true);
|
|
@@ -171,6 +173,7 @@ Page({
|
|
|
/* 取消搜索 */
|
|
/* 取消搜索 */
|
|
|
onClear() {
|
|
onClear() {
|
|
|
this.setData({
|
|
this.setData({
|
|
|
|
|
+ 'content.where.condition': "",
|
|
|
'params.content.where.condition': ""
|
|
'params.content.where.condition': ""
|
|
|
});
|
|
});
|
|
|
this.getList(true);
|
|
this.getList(true);
|