|
@@ -69,6 +69,12 @@
|
|
|
<el-tag size="mini" type="info" effect="plain">{{scope.row.unitname}}/{{scope.row.axunitname}}</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="marketprice"
|
|
|
+ label="牌价"
|
|
|
+ width="100"
|
|
|
+ fixed="right">
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
label="数量"
|
|
|
width="180"
|
|
@@ -77,16 +83,14 @@
|
|
|
<el-input-number :disabled="!checkDateOut" :controls="true" :step-strictly="true" size="mini" v-model="scope.row.outqty" @change="qtyChange" label="输入数量"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="marketprice"
|
|
|
- label="牌价"
|
|
|
- width="100">
|
|
|
- </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="outamount"
|
|
|
label="金额"
|
|
|
width="100"
|
|
|
fixed="right">
|
|
|
+<!-- <template slot-scope="scope">
|
|
|
+ <el-input :disabled="!checkDateOut" :controls="true" :step-strictly="true" size="mini" v-model="scope.row.outqty" @change="amountChange" label="输入金额"></el-input>
|
|
|
+ </template>-->
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
label="操作"
|
|
@@ -205,6 +209,46 @@ export default {
|
|
|
|
|
|
|
|
|
},
|
|
|
+ /*amountChange (){
|
|
|
+ this.list = this.list.filter(e=>{
|
|
|
+ e.outamount = e.outqty * e.marketprice
|
|
|
+ return e
|
|
|
+ })
|
|
|
+ if(this.time !== null){
|
|
|
+ clearTimeout(this.time);
|
|
|
+ }
|
|
|
+ this.time = setTimeout(async () => {
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "id": 20220906155003,
|
|
|
+ "version":1,
|
|
|
+ "content": {
|
|
|
+ "sa_salesforecastmodelid":this.mainData.sa_salesforecastmodelid,
|
|
|
+ "sa_salesforecastbillid":this.$route.query.id,
|
|
|
+ "sa_projectid": this.param.content.where.sa_projectid,
|
|
|
+ "itemclassinfos": this.list.map(e=>{
|
|
|
+ return {
|
|
|
+ "sa_salesforecastid":e.sa_salesforecastid,
|
|
|
+ "itemclassnum": e.itemclassnum,
|
|
|
+ "orderqty": e.orderqty,
|
|
|
+ "orderamount": e.orderamount,
|
|
|
+ "invoiceqty": e.invoiceqty,
|
|
|
+ "invoiceamount": e.invoiceamount,
|
|
|
+ "outqty": e.outqty,
|
|
|
+ "outamount": e.outamount,
|
|
|
+ "itemid":e.itemid
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ console.log(this.param.content.where.sa_projectid)
|
|
|
+ this.listData(this.param.content.where.sa_projectid)
|
|
|
+ this.$emit('onSuccess',this.param.content.where.sa_projectid)
|
|
|
+ /!*this.tool.showMessage(res,()=>{
|
|
|
+ this.listData()
|
|
|
+ this.$emit('onSuccess')
|
|
|
+ })*!/
|
|
|
+ },1000)
|
|
|
+ },*/
|
|
|
async deleteProduct (row) {
|
|
|
const res = await this.$api.requested({
|
|
|
"id": 20220906155103,
|