|
|
@@ -36,7 +36,8 @@
|
|
|
<el-table-column
|
|
|
prop="itemno"
|
|
|
label="产品编号"
|
|
|
- width="180">
|
|
|
+ width="180"
|
|
|
+ fixed="left">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="erpitemno"
|
|
|
@@ -51,16 +52,6 @@
|
|
|
<p><span>{{scope.row.model}}</span> / <span>{{scope.row.spec}}</span></p>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="qty"
|
|
|
- label="数量"
|
|
|
- width="180">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-input-number :controls="true" controls-position='right' :step-strictly="true" v-if="data.status === '新建' && data.type !=='特殊订单'" size="mini" v-model="scope.row.qty" :min="scope.row.orderminqty" :step="scope.row.orderaddqty" label="输入数量" @change="rowChange(scope.row,scope.$index)"></el-input-number>
|
|
|
- <el-input-number :controls="true" controls-position='right' :step-strictly="true" v-if="data.status === '新建' && data.type ==='特殊订单'" size="mini" v-model="scope.row.qty" label="输入数量" @change="rowChange(scope.row,scope.$index)"></el-input-number>
|
|
|
- <!-- <span v-else>{{scope.row.qty}}</span> -->
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="needdate"
|
|
|
label="需求日期"
|
|
|
@@ -149,6 +140,16 @@
|
|
|
<el-tag size="mini" type="info" effect="plain">{{scope.row.unit}}</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="qty"
|
|
|
+ label="数量"
|
|
|
+ width="180">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input-number :controls="true" controls-position='right' :step-strictly="true" v-if="data.status === '新建' && data.type !=='特殊订单'" size="mini" v-model="scope.row.qty" :min="scope.row.orderminqty" :step="scope.row.orderaddqty" label="输入数量" @change="rowChange(scope.row,scope.$index)"></el-input-number>
|
|
|
+ <el-input-number :controls="true" controls-position='right' :step-strictly="true" v-if="data.status === '新建' && data.type ==='特殊订单'" size="mini" v-model="scope.row.qty" label="输入数量" @change="rowChange(scope.row,scope.$index)"></el-input-number>
|
|
|
+ <!-- <span v-else>{{scope.row.qty}}</span> -->
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="marketprice"
|
|
|
label="牌价"
|
|
|
@@ -162,7 +163,8 @@
|
|
|
label="折前价格"
|
|
|
width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <p>¥ {{tool.formatAmount(scope.row.defaultprice,2)}}</p>
|
|
|
+ <el-input v-if="data.status === '新建' && data.type === '特殊订单'" v-model="scope.row.defaultprice" placeholder="输入订单备注" size="mini" @change="rowChange(scope.row,scope.$index)"></el-input>
|
|
|
+ <p v-else>¥ {{tool.formatAmount(scope.row.defaultprice,2)}}</p>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
@@ -170,7 +172,7 @@
|
|
|
label="折前金额"
|
|
|
width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <p style="color:red;font-weight:500">¥ {{tool.formatAmount(scope.row.defaultprice * scope.row.qty,2)}}</p>
|
|
|
+ <p>¥ {{tool.formatAmount(scope.row.defaultamount,2)}}</p>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
@@ -178,8 +180,7 @@
|
|
|
label="折后价格"
|
|
|
width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input v-if="data.status === '新建' && data.type === '特殊订单'" v-model="scope.row.price" placeholder="输入订单备注" size="mini" @change="rowChange(scope.row,scope.$index)"></el-input>
|
|
|
- <p v-else>¥ {{tool.formatAmount(scope.row.price,2)}}</p>
|
|
|
+ <p>¥ {{tool.formatAmount(scope.row.price,2)}}</p>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- <el-table-column
|
|
|
@@ -206,6 +207,16 @@
|
|
|
label="库存状态"
|
|
|
width="100">
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="invoiceamount"
|
|
|
+ label="已开票金额"
|
|
|
+ width="100">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="writeoffamount"
|
|
|
+ label="已核销金额"
|
|
|
+ width="100">
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
label="备注"
|
|
|
width="300"
|
|
|
@@ -272,7 +283,7 @@ export default {
|
|
|
"content": {
|
|
|
"sa_orderid": 0, //订单ID
|
|
|
"pageNumber": 1,
|
|
|
- "pageSize": 9999,
|
|
|
+ "pageSize": 20,
|
|
|
"where": {
|
|
|
"condition": ""
|
|
|
}
|
|
|
@@ -304,7 +315,7 @@ export default {
|
|
|
},
|
|
|
handleCurrentChange(val) {
|
|
|
// console.log(`当前页: ${val}`);
|
|
|
- this.params.content.pageNumber = val
|
|
|
+ this.param.content.pageNumber = val
|
|
|
this.listData()
|
|
|
},
|
|
|
async deleteOrderProduct (row) {
|
|
|
@@ -348,7 +359,8 @@ export default {
|
|
|
"qty": val.qty, //数量
|
|
|
"needdate": val.needdate,//可以不传,修改交期
|
|
|
"price":val.price,
|
|
|
- "remarks":val.remarks
|
|
|
+ "remarks":val.remarks,
|
|
|
+ "defaultprice":val.defaultprice
|
|
|
}]
|
|
|
},()=>{
|
|
|
this.$set(this.tableData,index,val)
|
|
|
@@ -376,6 +388,7 @@ export default {
|
|
|
"content": val
|
|
|
})
|
|
|
this.$emit('onSuccess')
|
|
|
+ this.listData()
|
|
|
res.code === 1?fn():""
|
|
|
},
|
|
|
async dateChangeNeed(val){
|