|
@@ -25,8 +25,9 @@
|
|
:loading="tableLoading" is-current-row is-new @row-click="tableViewRow"
|
|
:loading="tableLoading" is-current-row is-new @row-click="tableViewRow"
|
|
>
|
|
>
|
|
<template #action="{ row }">
|
|
<template #action="{ row }">
|
|
- <el-link type="success" @click="rowEditClick(row)">编辑</el-link>
|
|
|
|
- <el-link type="danger" @click="delRowClick(row)">删除</el-link>
|
|
|
|
|
|
+ <el-link type="primary" :disabled="row.isSync === 0" @click="synchronization(row)">同步</el-link>
|
|
|
|
+ <el-link type="success" :disabled="row.isUpdateOrDelete === 0" @click="rowEditClick(row)">编辑</el-link>
|
|
|
|
+ <el-link type="danger" :disabled="row.isUpdateOrDelete === 0" @click="delRowClick(row)">删除</el-link>
|
|
</template>
|
|
</template>
|
|
</hc-table>
|
|
</hc-table>
|
|
<template #action>
|
|
<template #action>
|
|
@@ -115,6 +116,11 @@
|
|
<el-input v-model="formModel.specification" />
|
|
<el-input v-model="formModel.specification" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="单位:">
|
|
|
|
+ <el-input v-model="formModel.unit" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="单价:">
|
|
<el-form-item label="单价:">
|
|
<el-input-number v-model="formModel.price" :controls="false" :min="0" class="w-100" />
|
|
<el-input-number v-model="formModel.price" :controls="false" :min="0" class="w-100" />
|
|
@@ -205,8 +211,9 @@ const tableColumn = ref([
|
|
{ key: 'price', name: '单价' },
|
|
{ key: 'price', name: '单价' },
|
|
{ key: 'wastageRatio', name: '材料损耗率(%)' },
|
|
{ key: 'wastageRatio', name: '材料损耗率(%)' },
|
|
{ key: 'quotaRatio', name: '调差限额百分比(%)' },
|
|
{ key: 'quotaRatio', name: '调差限额百分比(%)' },
|
|
|
|
+ { key: 'ownerRatio', name: '业主收益/承担百分比(%)' },
|
|
{ key: 'deductionRatio', name: '材料综合抵扣率(%)' },
|
|
{ key: 'deductionRatio', name: '材料综合抵扣率(%)' },
|
|
- { key: 'action', name: '操作', width: 100 },
|
|
|
|
|
|
+ { key: 'action', name: '操作', width: 100, align: 'center' },
|
|
])
|
|
])
|
|
|
|
|
|
//获取表格数据
|
|
//获取表格数据
|
|
@@ -439,6 +446,11 @@ const priceCancelClick = () => {
|
|
tableData2.value = []
|
|
tableData2.value = []
|
|
tableLoading2.value = false
|
|
tableLoading2.value = false
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+//同步
|
|
|
|
+const synchronization = async (row) => {
|
|
|
|
+
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|