|
@@ -46,8 +46,12 @@
|
|
<a-button type="text" @click="adminCancel(record)"
|
|
<a-button type="text" @click="adminCancel(record)"
|
|
v-if="record.moderationStatus == 2 && userType !== 1">退订</a-button>
|
|
v-if="record.moderationStatus == 2 && userType !== 1">退订</a-button>
|
|
</div>
|
|
</div>
|
|
- <a-button @click="openPriceing(record)" type="text" v-if="record.moderationStatus==2 && userType == 1">上传金额</a-button>
|
|
|
|
|
|
+ <a-button @click="openPriceing(record)" type="text"
|
|
|
|
+ v-if="record.moderationStatus == 2 && userType == 1">上传金额</a-button>
|
|
<a-button @click="openDetail(record)" type="text">查看</a-button>
|
|
<a-button @click="openDetail(record)" type="text">查看</a-button>
|
|
|
|
+ <!-- <a-button @click="openDetail(record)" type="text" v-if="userType !== 1">套餐</a-button>
|
|
|
|
+ <a-button @click="openDetail(record)" type="text" v-if="userType !== 1">资费</a-button> -->
|
|
|
|
+ <a-button @click="openEndDate(record)" type="text" v-if="userType==1">变更有效期</a-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</a-table>
|
|
</a-table>
|
|
@@ -68,15 +72,24 @@
|
|
</a-form>
|
|
</a-form>
|
|
</a-modal>
|
|
</a-modal>
|
|
|
|
|
|
- <a-modal v-model:visible="showPrning" title="上传金额"
|
|
|
|
- @cancel="closeModal(showPrning, formPreing)" @ok="handelPriceing" okText="保存" cancelText="关闭">
|
|
|
|
|
|
+ <a-modal v-model:visible="showPrning" title="上传金额" @cancel="closeModal(showPrning, formPreing)" @ok="handelPriceing"
|
|
|
|
+ okText="保存" cancelText="关闭">
|
|
<a-form :model="formPreing" auto-label-width>
|
|
<a-form :model="formPreing" auto-label-width>
|
|
- <a-form-item label="采购金额">
|
|
|
|
|
|
+ <a-form-item label="采购金额">
|
|
<a-input v-model="formPreing.amount" placeholder="请输入采购金额" />
|
|
<a-input v-model="formPreing.amount" placeholder="请输入采购金额" />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-form>
|
|
</a-form>
|
|
</a-modal>
|
|
</a-modal>
|
|
|
|
|
|
|
|
+ <a-modal v-model:visible="showEndDate" title="变更有效期" @cancel="closeModal(showEndDate, formEndDate)"
|
|
|
|
+ @ok="handelEndDate" okText="确认" cancelText="取消">
|
|
|
|
+ <a-form :model="formEndDate" auto-label-width>
|
|
|
|
+ <a-form-item label="有效期">
|
|
|
|
+ <a-date-picker v-model="formEndDate.endDate" style="width: 100%;" />
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-form>
|
|
|
|
+ </a-modal>
|
|
|
|
+
|
|
<Card v-model:modelValue="showAudit" @submit="intData()" />
|
|
<Card v-model:modelValue="showAudit" @submit="intData()" />
|
|
<Status v-model:modelValue="showStatus" @submit="intData()" :FormDataList="FormDataList" />
|
|
<Status v-model:modelValue="showStatus" @submit="intData()" :FormDataList="FormDataList" />
|
|
<Detaile v-model:modelValue="showDetail" @submit="intData()" :FormDataList="FormDataList" />
|
|
<Detaile v-model:modelValue="showDetail" @submit="intData()" :FormDataList="FormDataList" />
|
|
@@ -87,8 +100,9 @@
|
|
<script setup>
|
|
<script setup>
|
|
import { ref, onMounted, toRefs } from 'vue';
|
|
import { ref, onMounted, toRefs } from 'vue';
|
|
import { Message } from '@arco-design/web-vue';
|
|
import { Message } from '@arco-design/web-vue';
|
|
-import { purchaseOrderList, platformUpdate, adminUpdate } from '@/api/path/purchase';
|
|
|
|
-import { UploadOrderCardContract, TariffOrderCard,SettingPricing } from '@/api/path/order'
|
|
|
|
|
|
+import { purchaseOrderList } from '@/api/path/purchase';
|
|
|
|
+import {tariiffManageDate} from '@/api/path/tariffManagement.api'
|
|
|
|
+import { UploadOrderCardContract, TariffOrderCard, SettingPricing } from '@/api/path/order'
|
|
import { Getdictionary } from '@/mixins/index.js'
|
|
import { Getdictionary } from '@/mixins/index.js'
|
|
import Upload from "@/components/upload/index.vue";
|
|
import Upload from "@/components/upload/index.vue";
|
|
import Card from './Card.vue'
|
|
import Card from './Card.vue'
|
|
@@ -119,10 +133,15 @@ const state = ref({
|
|
showReturn: false,
|
|
showReturn: false,
|
|
ReturnData: [],
|
|
ReturnData: [],
|
|
id: null,
|
|
id: null,
|
|
- showPrning:false,
|
|
|
|
- formPreing:{
|
|
|
|
- id:'',
|
|
|
|
- amount:''
|
|
|
|
|
|
+ showPrning: false,
|
|
|
|
+ formPreing: {
|
|
|
|
+ id: '',
|
|
|
|
+ amount: ''
|
|
|
|
+ },
|
|
|
|
+ showEndDate: false,
|
|
|
|
+ formEndDate: {
|
|
|
|
+ id: '',
|
|
|
|
+ endDate: ''
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
@@ -140,7 +159,9 @@ const {
|
|
ReturnData,
|
|
ReturnData,
|
|
id,
|
|
id,
|
|
showPrning,
|
|
showPrning,
|
|
- formPreing
|
|
|
|
|
|
+ formPreing,
|
|
|
|
+ showEndDate,
|
|
|
|
+ formEndDate
|
|
} = toRefs(state.value);
|
|
} = toRefs(state.value);
|
|
|
|
|
|
const columns = [
|
|
const columns = [
|
|
@@ -157,6 +178,7 @@ const columns = [
|
|
{ title: '采购金额', dataIndex: 'amount', align: 'center', ellipsis: true },
|
|
{ title: '采购金额', dataIndex: 'amount', align: 'center', ellipsis: true },
|
|
{ title: '合同照片', slotName: 'image', align: 'center', ellipsis: true },
|
|
{ title: '合同照片', slotName: 'image', align: 'center', ellipsis: true },
|
|
{ title: '下单时间', dataIndex: 'createdAt', align: 'center', ellipsis: true },
|
|
{ title: '下单时间', dataIndex: 'createdAt', align: 'center', ellipsis: true },
|
|
|
|
+ { title: '有效期', dataIndex: 'endDate', align: 'center', ellipsis: true },
|
|
{ title: '操作', slotName: 'operate', align: 'center', ellipsis: true }
|
|
{ title: '操作', slotName: 'operate', align: 'center', ellipsis: true }
|
|
];
|
|
];
|
|
|
|
|
|
@@ -240,23 +262,38 @@ const closeModal = (items, obj) => {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
-const openPriceing = (data)=>{
|
|
|
|
|
|
+const openPriceing = (data) => {
|
|
showPrning.value = true;
|
|
showPrning.value = true;
|
|
formPreing.value.id = data.id
|
|
formPreing.value.id = data.id
|
|
}
|
|
}
|
|
|
|
|
|
-const handelPriceing = async()=>{
|
|
|
|
- if(formPreing.value.amount=='' || formPreing.value.amount==0){
|
|
|
|
|
|
+const handelPriceing = async () => {
|
|
|
|
+ if (formPreing.value.amount == '' || formPreing.value.amount == 0) {
|
|
return Message.error('输入有误')
|
|
return Message.error('输入有误')
|
|
}
|
|
}
|
|
formPreing.value.amount = Number(formPreing.value.amount)
|
|
formPreing.value.amount = Number(formPreing.value.amount)
|
|
let res = await SettingPricing(formPreing.value)
|
|
let res = await SettingPricing(formPreing.value)
|
|
- if(res.code===200){
|
|
|
|
|
|
+ if (res.code === 200) {
|
|
Message.success(res.message)
|
|
Message.success(res.message)
|
|
closeModal(showPrning.value, formPreing.value)
|
|
closeModal(showPrning.value, formPreing.value)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+const openEndDate = (data) => {
|
|
|
|
+ formEndDate.value.id = data.id
|
|
|
|
+ formEndDate.value.endDate = data.endDate
|
|
|
|
+ showEndDate.value = true;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const handelEndDate = async()=>{
|
|
|
|
+ let res = await tariiffManageDate(formEndDate.value)
|
|
|
|
+ if(res.code === 200) {
|
|
|
|
+ Message.success(res.message)
|
|
|
|
+ closeModal(showEndDate.value, formEndDate.value)
|
|
|
|
+ intData();
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
intData();
|
|
intData();
|
|
})
|
|
})
|