|
|
@@ -40,7 +40,20 @@
|
|
|
</importFile>
|
|
|
</div>
|
|
|
<div class="produtMag-panel">
|
|
|
- <table-new-layout :layout="tablecols" checkbox="true" :data="list" :opwidth="200" height="calc(100vh - 400px)" :width="true" :custom="true" fixedName="offerPrice amount" @selectionChange="selectionChange">
|
|
|
+ <tableNewLayout :layout="tablecols" checkbox="true" :data="list" :opwidth="200" height="calc(100vh - 400px)" :width="true" :custom="true" fixedName="offerPrice amount" @selectionChange="selectionChange" :headerOptions="['pricetype']">
|
|
|
+ <template v-slot:header="scope">
|
|
|
+ <div v-if="scope.column.columnname == 'pricetype'">
|
|
|
+ <el-select v-model="value" placeholder="请选择类型" v-if="tool.checkAuth($route.name,'productDetails') && data.status === '新建' && disabled" @change="typeSelect">
|
|
|
+ <el-option
|
|
|
+ v-for="item in options"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <span v-else>类型</span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
<template v-slot:customcol="scope">
|
|
|
<div v-if="scope.column.columnname == 'qty'">
|
|
|
<el-input-number :disabled="data.status !== '新建' || !tool.checkAuth($route.name,'productDetails') || !disabled" v-model="scope.column.data.qty" size="mini" :min="scope.column.data.orderminqty" :step="scope.column.data.orderaddqty" label="描述文字" @change="onChangeNum(scope.column.data.qty,scope.column.data,scope.$index)"></el-input-number>
|
|
|
@@ -75,7 +88,7 @@
|
|
|
</div>
|
|
|
<p v-else>{{scope.column.data[scope.column.columnname]}}</p>
|
|
|
</template>
|
|
|
- </table-new-layout>
|
|
|
+ </tableNewLayout>
|
|
|
<div style="height: 35px;margin-top: 20px">
|
|
|
<div style="float: left">总金额(元):{{ tool.formatAmount(data.sumamount,2) }}</div>
|
|
|
<div style="float: right">
|
|
|
@@ -106,10 +119,11 @@ import addProduct from '@/template/addProduct'
|
|
|
import addProductProject from '@/template/addProduct'
|
|
|
import uploadAllData from '@/components/uploadAllData/index'
|
|
|
import importFile from '@/template/importFile/index'
|
|
|
+import tableNewLayout from '@/components/dynamic-newTable/index1'
|
|
|
export default {
|
|
|
props:["data","disabled","isLeader"],
|
|
|
name: "productInventory",
|
|
|
- components:{uploadAllData,addProductProject,addProduct,uploadFile, previewImage,product_table,productTableProject,productTable,importFile},
|
|
|
+ components:{uploadAllData,addProductProject,addProduct,uploadFile, previewImage,product_table,productTableProject,productTable,importFile,tableNewLayout},
|
|
|
data(){
|
|
|
return {
|
|
|
errorurl:null,
|
|
|
@@ -175,7 +189,15 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
itemids:[],
|
|
|
- items:[]
|
|
|
+ items:[],
|
|
|
+ options: [{
|
|
|
+ value: '指定系数',
|
|
|
+ label: '指定系数'
|
|
|
+ }, {
|
|
|
+ value: '指定单价',
|
|
|
+ label: '指定单价'
|
|
|
+ }],
|
|
|
+ value: ''
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
@@ -475,6 +497,22 @@ export default {
|
|
|
}
|
|
|
this.onSuccess()
|
|
|
|
|
|
+ },
|
|
|
+ /*选择类型*/
|
|
|
+ async typeSelect(){
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "id": 20240110155304,
|
|
|
+ "content": {
|
|
|
+ "sa_quotedpriceid": this.$route.query.id,
|
|
|
+ "sa_quotedprice_itemsids": [],
|
|
|
+ "isAll":1,
|
|
|
+ "type":this.value
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.tool.showMessage(res,()=>{
|
|
|
+ this.productData()
|
|
|
+ })
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|