|
|
@@ -19,18 +19,18 @@
|
|
|
v-if="tool.checkAuth($route.name,'toolListManage') && data.status == '新建' && isLeader" class="inline-16"
|
|
|
></addTool>
|
|
|
</div>
|
|
|
- <tableLayout checkbox="true" :layout="tablecols" :data="list" :opwidth="200" height="calc(100vh - 550px)" :custom="true" fixedName="operation countPrice" @selectionChange="selectionChange">
|
|
|
+ <tableLayout checkbox="true" :layout="tablecols" :data="list" :opwidth="200" height="calc(100vh - 380px)" :custom="true" fixedName="operation countPrice" @selectionChange="selectionChange">
|
|
|
<template v-slot:customcol="scope">
|
|
|
<div v-if="scope.column.columnname == 'qty'">
|
|
|
<el-input-number size="mini" v-model="scope.column.data.qty" @change="qtyChange($event,scope.column.data,scope.column.data.index)" :min="scope.column.data.orderminqty" :step="scope.column.data.orderaddqty" label="描述文字" :disabled="!tool.checkAuth($route.name,'toolListManage') || data.status != '新建' || !isLeader"></el-input-number>
|
|
|
</div>
|
|
|
<div v-else-if="scope.column.columnname == 'attinfos'">
|
|
|
- <previewImage
|
|
|
- v-if="scope.column.data.attinfos[0]"
|
|
|
- style="margin-top:0px"
|
|
|
- class="image"
|
|
|
- :image="scope.column.data.attinfos[0]"
|
|
|
- :list="scope.column.data.attinfos"
|
|
|
+ <previewImage
|
|
|
+ v-if="scope.column.data.attinfos[0]"
|
|
|
+ style="margin-top:0px"
|
|
|
+ class="image"
|
|
|
+ :image="scope.column.data.attinfos[0]"
|
|
|
+ :list="scope.column.data.attinfos"
|
|
|
:deletebtn="false"
|
|
|
></previewImage>
|
|
|
</div>
|
|
|
@@ -85,8 +85,9 @@ import addProduct from './addTool'
|
|
|
import previewImage from '@/components/previewImage/index'
|
|
|
import addTool from '@/template/addTool/index'
|
|
|
import uploadAllData from '@/components/uploadAllData/index'
|
|
|
+import tableLayout from '@/components/dynamic-table/index2'
|
|
|
export default {
|
|
|
- components: {addProduct,previewImage,addTool,uploadAllData},
|
|
|
+ components: {addProduct,previewImage,addTool,uploadAllData,tableLayout},
|
|
|
name: '',
|
|
|
props:["data","isLeader"],
|
|
|
data() {
|
|
|
@@ -155,14 +156,14 @@ export default {
|
|
|
data.qty = Math.round(num *100)/100
|
|
|
this.$set(this.list,index,data)
|
|
|
this.save(data)
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
handleChange(num) {
|
|
|
console.log(num);
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
/*discountrateChange (num,data) {
|
|
|
- this.form.discountrate = num
|
|
|
+ this.form.discountrate = num
|
|
|
this.form.price = this.form.discountrate * data.marketprice
|
|
|
},*/
|
|
|
priceChange (num,data,index) {
|