|
@@ -15,6 +15,7 @@
|
|
|
idName="sa_orderitemsid"
|
|
|
type="del"
|
|
|
></uploadAllData>
|
|
|
+ <excel style="margin:0 0 10px 10px" :tablecols="columnTitle" :param="param" :total="total" :excelTitle="excelTitle"></excel>
|
|
|
<el-table
|
|
|
ref="multipleTable"
|
|
|
:data="tableData"
|
|
@@ -36,21 +37,24 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
label="型号"
|
|
|
- width="150">
|
|
|
+ width="150"
|
|
|
+ prop="model">
|
|
|
<template slot-scope="scope">
|
|
|
<p><span>{{scope.row.model}}</span></p>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
label="规格"
|
|
|
- width="150">
|
|
|
+ width="150"
|
|
|
+ prop="spec">
|
|
|
<template slot-scope="scope">
|
|
|
<p><span>{{scope.row.spec}}</span></p>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
label="数量"
|
|
|
- width="180">
|
|
|
+ width="180"
|
|
|
+ prop="qty">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number :controls="true" controls-position='right' :step-strictly="true" v-if="type === 'edit' && !data.sa_contractid" 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>
|
|
|
<span v-else>{{scope.row.qty}}</span>
|
|
@@ -98,7 +102,8 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
label="回复交期"
|
|
|
- width="200">
|
|
|
+ width="200"
|
|
|
+ prop="deliverydate">
|
|
|
<template slot="header" slot-scope="scope">
|
|
|
<div>
|
|
|
<el-date-picker
|
|
@@ -152,14 +157,16 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- label="小计">
|
|
|
+ label="小计"
|
|
|
+ prop="deliverydate">
|
|
|
<template slot-scope="scope">
|
|
|
<p style="color:red;font-weight:500">¥ {{tool.formatAmount(scope.row.price * scope.row.qty,2)}}</p>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
label="备注"
|
|
|
- width="300">
|
|
|
+ width="300"
|
|
|
+ prop="remarks">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input v-if="type === 'edit'" v-model="scope.row.remarks" placeholder="输入订单备注" size="mini" @change="rowChange(scope.row,scope.$index)"></el-input>
|
|
|
<p v-else>{{scope.row.remarks}}</p>
|
|
@@ -190,6 +197,7 @@
|
|
|
import addProduct from '@/template/toolBorrowingCanUseProduct/index.vue'
|
|
|
import addTool from '@/template/addTool/index'
|
|
|
import uploadAllData from '@/components/uploadAllData/index'
|
|
|
+import excel from '@/HDrpManagement/orderManage/details/export_excel'
|
|
|
export default {
|
|
|
props:['data','type'],
|
|
|
data () {
|
|
@@ -197,6 +205,8 @@ export default {
|
|
|
dataRefresh:true,
|
|
|
tableData:[],
|
|
|
tablecolsAdd:[],
|
|
|
+ columnTitle:[],
|
|
|
+ excelTitle:'借用单明细',
|
|
|
param:{
|
|
|
"id": 20230116104102,
|
|
|
"content": {
|
|
@@ -231,7 +241,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
components:{
|
|
|
- addProduct,addTool,uploadAllData
|
|
|
+ addProduct,addTool,uploadAllData,excel
|
|
|
},
|
|
|
methods:{
|
|
|
async listData () {
|
|
@@ -434,6 +444,13 @@ export default {
|
|
|
},
|
|
|
mounted () {
|
|
|
this.listData()
|
|
|
+ this.columnTitle = []
|
|
|
+ this.$refs.multipleTable.$children.forEach(obj => {
|
|
|
+
|
|
|
+ let columnChild = {'columnname':obj.prop,'filter':0,'rowindex':'','sequence':'','title':obj.label,'width':obj.width}
|
|
|
+ // 存到columnTitle数组中
|
|
|
+ this.columnTitle.push(columnChild)
|
|
|
+ })
|
|
|
},
|
|
|
created() {
|
|
|
this.tablecolsAdd = this.tool.tabelCol(this.$route.name).addToolTable.tablecols
|