|
@@ -5,6 +5,7 @@
|
|
|
@addProduct="addTool" @uploadData="uploadData" @closeDrawer="listData();$emit('onSuccess')"
|
|
@addProduct="addTool" @uploadData="uploadData" @closeDrawer="listData();$emit('onSuccess')"
|
|
|
class="inline-16 normal-margin" v-if="data.status === '新建'"
|
|
class="inline-16 normal-margin" v-if="data.status === '新建'"
|
|
|
></addTool>
|
|
></addTool>
|
|
|
|
|
+ <excel class="inline-16" :tablecols="columnTitle" :param="param" :total="total" :excelTitle="excelTitle"></excel>
|
|
|
<uploadAllData
|
|
<uploadAllData
|
|
|
v-if="data.status === '新建'"
|
|
v-if="data.status === '新建'"
|
|
|
class="inline-16 normal-margin"
|
|
class="inline-16 normal-margin"
|
|
@@ -36,6 +37,7 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="型号"
|
|
label="型号"
|
|
|
|
|
+ prop="model"
|
|
|
width="150">
|
|
width="150">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<p><span>{{scope.row.model}}</span></p>
|
|
<p><span>{{scope.row.model}}</span></p>
|
|
@@ -43,6 +45,7 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="规格"
|
|
label="规格"
|
|
|
|
|
+ prop="spec"
|
|
|
width="150">
|
|
width="150">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<p><span>{{scope.row.spec}}</span></p>
|
|
<p><span>{{scope.row.spec}}</span></p>
|
|
@@ -50,6 +53,7 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="数量"
|
|
label="数量"
|
|
|
|
|
+ prop="qty"
|
|
|
width="180">
|
|
width="180">
|
|
|
<template slot-scope="scope">
|
|
<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>
|
|
<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>
|
|
@@ -98,6 +102,7 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="回复交期"
|
|
label="回复交期"
|
|
|
|
|
+ prop="deliverydate"
|
|
|
width="200">
|
|
width="200">
|
|
|
<template slot="header" slot-scope="scope">
|
|
<template slot="header" slot-scope="scope">
|
|
|
<div>
|
|
<div>
|
|
@@ -152,6 +157,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
|
|
+ prop="subtotal"
|
|
|
label="小计">
|
|
label="小计">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<p style="color:red;font-weight:500">¥ {{tool.formatAmount(scope.row.price * scope.row.qty,2)}}</p>
|
|
<p style="color:red;font-weight:500">¥ {{tool.formatAmount(scope.row.price * scope.row.qty,2)}}</p>
|
|
@@ -159,6 +165,7 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="备注"
|
|
label="备注"
|
|
|
|
|
+ prop="remarks"
|
|
|
width="300">
|
|
width="300">
|
|
|
<template slot-scope="scope">
|
|
<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>
|
|
<el-input v-if="type === 'edit'" v-model="scope.row.remarks" placeholder="输入订单备注" size="mini" @change="rowChange(scope.row,scope.$index)"></el-input>
|
|
@@ -190,11 +197,14 @@
|
|
|
import addProduct from '@/template/toolBorrowingCanUseProduct/index.vue'
|
|
import addProduct from '@/template/toolBorrowingCanUseProduct/index.vue'
|
|
|
import addTool from '@/template/addTool/index'
|
|
import addTool from '@/template/addTool/index'
|
|
|
import uploadAllData from '@/components/uploadAllData/index'
|
|
import uploadAllData from '@/components/uploadAllData/index'
|
|
|
|
|
+import excel from '@/HDrpManagement/orderManage/details/export_excel'
|
|
|
export default {
|
|
export default {
|
|
|
props:['data','type'],
|
|
props:['data','type'],
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
|
dataRefresh:true,
|
|
dataRefresh:true,
|
|
|
|
|
+ columnTitle:[],
|
|
|
|
|
+ excelTitle:'借用单明细',
|
|
|
tableData:[],
|
|
tableData:[],
|
|
|
tablecolsAdd:[],
|
|
tablecolsAdd:[],
|
|
|
param:{
|
|
param:{
|
|
@@ -231,7 +241,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
components:{
|
|
components:{
|
|
|
- addProduct,addTool,uploadAllData
|
|
|
|
|
|
|
+ addProduct,addTool,uploadAllData,excel
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
async listData () {
|
|
async listData () {
|
|
@@ -433,6 +443,14 @@ export default {
|
|
|
},
|
|
},
|
|
|
mounted () {
|
|
mounted () {
|
|
|
this.listData()
|
|
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() {
|
|
created() {
|
|
|
this.tablecolsAdd = this.tool.tabelCol(this.$route.name).addToolTable.tablecols
|
|
this.tablecolsAdd = this.tool.tabelCol(this.$route.name).addToolTable.tablecols
|