|
|
@@ -41,7 +41,7 @@
|
|
|
<button type="default" class="phone-green-btn ht-head-btn"
|
|
|
@click.stop="handlePreview(item)">预览</button>
|
|
|
<button type="default" class="phone-white-btn ht-head-btn"
|
|
|
- @click.stop="handleEditor(item)" v-if="item.status<2">编辑</button>
|
|
|
+ @click.stop="handleEditor(item)">编辑</button>
|
|
|
<button type="default" v-if="item.status==1" class="phone-white-btn ht-head-btn"
|
|
|
@click.stop="handleShengxiao(item)">生效</button>
|
|
|
</view>
|
|
|
@@ -240,9 +240,18 @@
|
|
|
}
|
|
|
|
|
|
function handleEditor(item) {
|
|
|
- uni.navigateTo({
|
|
|
- url: `/pages/admin/Hetong/addSanfangHetong?flag=editor&id=${item.id}`
|
|
|
- })
|
|
|
+ // 合同是否限制编辑:0否,1是
|
|
|
+ if(item.updFlag===0){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages/admin/Hetong/addSanfangHetong?flag=editor&id=${item.id}`
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ uni.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: item.updMsg
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
function handlePreview(item) {
|