ZaiZai il y a 1 an
Parent
commit
735bb8808a
1 fichiers modifiés avec 15 ajouts et 3 suppressions
  1. 15 3
      src/views/debit-pay/material/contract.vue

+ 15 - 3
src/views/debit-pay/material/contract.vue

@@ -25,8 +25,9 @@
                         :loading="tableLoading" is-current-row is-new @row-click="tableViewRow"
                     >
                         <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>
                     </hc-table>
                     <template #action>
@@ -115,6 +116,11 @@
                             <el-input v-model="formModel.specification" />
                         </el-form-item>
                     </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-form-item label="单价:">
                             <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: 'wastageRatio', name: '材料损耗率(%)' },
     { key: 'quotaRatio', name: '调差限额百分比(%)' },
+    { key: 'ownerRatio', name: '业主收益/承担百分比(%)' },
     { key: 'deductionRatio', name: '材料综合抵扣率(%)' },
-    { key: 'action', name: '操作', width: 100 },
+    { key: 'action', name: '操作', width: 100, align: 'center' },
 ])
 
 //获取表格数据
@@ -439,6 +446,11 @@ const priceCancelClick = () => {
     tableData2.value = []
     tableLoading2.value = false
 }
+
+//同步
+const synchronization = async (row) => {
+
+}
 </script>
 
 <style lang="scss">