style(work): 格式化代码样式
This commit is contained in:
parent
9b05c19b76
commit
9719cdf579
@ -27,9 +27,9 @@
|
||||
<uni-card
|
||||
v-for="(contract, index) in filteredContracts"
|
||||
:key="contract.saleid"
|
||||
:class="index % 2 === 0 ? 'card-even' : 'card-odd'"
|
||||
:title="contract.usernames"
|
||||
@click="gotoDetail(contract)"
|
||||
:class="index % 2 === 0 ? 'card-even' : 'card-odd'"
|
||||
>
|
||||
<uni-row class="demo-uni-row">
|
||||
<uni-col :span="12">
|
||||
@ -62,7 +62,7 @@
|
||||
|
||||
<script setup>
|
||||
|
||||
import { ref, reactive, onMounted, computed,getCurrentInstance } from "vue"
|
||||
import {computed, getCurrentInstance, onMounted, ref} from "vue"
|
||||
import {contractData} from "./data.js" // 根据实际路径调整
|
||||
const {proxy} = getCurrentInstance()
|
||||
// 表单数据
|
||||
|
||||
@ -20,9 +20,9 @@
|
||||
<uni-card
|
||||
v-for="(contract, index) in filteredContracts"
|
||||
:key="contract.saleid"
|
||||
:class="index % 2 === 0 ? 'card-even' : 'card-odd'"
|
||||
:title="contract.usernames"
|
||||
@click="gotoDetail(contract)"
|
||||
:class="index % 2 === 0 ? 'card-even' : 'card-odd'"
|
||||
>
|
||||
<uni-row class="demo-uni-row">
|
||||
<uni-col :span="12">
|
||||
@ -55,7 +55,7 @@
|
||||
|
||||
<script setup>
|
||||
|
||||
import { ref, reactive, onMounted, computed,getCurrentInstance } from "vue"
|
||||
import {computed, getCurrentInstance, onMounted, ref} from "vue"
|
||||
import {contractData} from "./data.js" // 根据实际路径调整
|
||||
const {proxy} = getCurrentInstance()
|
||||
// 表单数据
|
||||
|
||||
@ -35,9 +35,9 @@
|
||||
<uni-card
|
||||
v-for="(contract, index) in filteredContracts"
|
||||
:key="contract.saleid"
|
||||
:class="index % 2 === 0 ? 'card-even' : 'card-odd'"
|
||||
:title="contract.usernames"
|
||||
@click="gotoDetail(contract)"
|
||||
:class="index % 2 === 0 ? 'card-even' : 'card-odd'"
|
||||
>
|
||||
<uni-row class="demo-uni-row">
|
||||
<uni-col :span="12">
|
||||
@ -70,7 +70,7 @@
|
||||
|
||||
<script setup>
|
||||
|
||||
import { ref, reactive, onMounted, computed,getCurrentInstance } from "vue"
|
||||
import {computed, getCurrentInstance, onMounted, ref} from "vue"
|
||||
import {contractData} from "./data.js" // 根据实际路径调整
|
||||
const {proxy} = getCurrentInstance()
|
||||
// 表单数据
|
||||
|
||||
@ -6,26 +6,26 @@
|
||||
<uni-forms-item label="生产单位">
|
||||
<uni-data-select
|
||||
v-model="queryParams.CompanyId"
|
||||
:clear="true"
|
||||
:localdata="companyOptions"
|
||||
text-field="deptName"
|
||||
value-field="deptId"
|
||||
@change="getTableData"
|
||||
:clear="true"
|
||||
|
||||
/>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="状态">
|
||||
<uni-data-select
|
||||
v-model="queryParams.state"
|
||||
:clear="true"
|
||||
:localdata="stateList"
|
||||
@change="getTableData"
|
||||
:clear="true"
|
||||
></uni-data-select>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="合同编号">
|
||||
<input
|
||||
class="uni-input custom-input"
|
||||
v-model="queryParams.contractcode"
|
||||
class="uni-input custom-input"
|
||||
placeholder="请输入合同编号"
|
||||
@confirm="getTableData"/>
|
||||
</uni-forms-item>
|
||||
@ -46,9 +46,9 @@
|
||||
<uni-card
|
||||
v-for="(contract, index) in filteredContracts"
|
||||
:key="contract.saleid"
|
||||
:class="index % 2 === 0 ? 'card-even' : 'card-odd'"
|
||||
:title="contract.usernames"
|
||||
@click="gotoDetail(contract)"
|
||||
:class="index % 2 === 0 ? 'card-even' : 'card-odd'"
|
||||
>
|
||||
<uni-row class="demo-uni-row">
|
||||
<uni-col :span="12">
|
||||
@ -81,19 +81,15 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { listsalemain } from "../../../api/orderManager/index.js"
|
||||
import { listproductList } from "../../../api/orderManager/index.js"
|
||||
import { ref, reactive, onMounted, computed,getCurrentInstance } from "vue"
|
||||
import { contractData } from "../OrderManager/data.js" // 根据实际路径调整
|
||||
import {listproductList, listsalemain} from "../../../api/orderManager/index.js"
|
||||
import {computed, getCurrentInstance, onMounted, ref} from "vue"
|
||||
import {getDicts} from "../../../api/system/dict/data.js"
|
||||
// import DictTag from '@/components/dict-tag/dict-tag.vue';
|
||||
import {useOrderManagerStore} from "../../../store/modules/orderManager.js"
|
||||
// import { log } from "console"
|
||||
const {proxy} = getCurrentInstance()
|
||||
// 表单数据
|
||||
const baseFormData = ref({
|
||||
|
||||
})
|
||||
const baseFormData = ref({})
|
||||
//订单类型
|
||||
const orderTypeList = ref([])
|
||||
const paymentValue = ref(0)
|
||||
@ -158,6 +154,7 @@ function formatDate(dateString) {
|
||||
if (!dateString) return '未知日期'
|
||||
return dateString.split(' ')[0]
|
||||
}
|
||||
|
||||
//获取字典数据
|
||||
const getDictData = () => {
|
||||
getDicts("order_state").then(res => {
|
||||
@ -199,15 +196,18 @@ const getDeptLists = () =>{
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
// 筛选合同
|
||||
function filterContracts(e) {
|
||||
console.log("筛选条件变化:", e)
|
||||
// 计算属性会自动更新,无需额外操作
|
||||
}
|
||||
|
||||
//编号输入框事件
|
||||
const handleInput = (e) => {
|
||||
console.log('handleInput', e.detail.value)
|
||||
}
|
||||
|
||||
// 跳转到详情页
|
||||
function gotoDetail(contract) {
|
||||
console.log("查看合同详情:", contract)
|
||||
@ -228,6 +228,7 @@ function gotoDetail(contract) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const gotoNewAdd = () => {
|
||||
uni.navigateTo({
|
||||
url: "/pages/work/OrderManager/components/NewAdd"
|
||||
@ -242,6 +243,7 @@ const gotoNewAdd = () =>{
|
||||
padding: 5px;
|
||||
height: 35px;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 10px;
|
||||
background-color: #f5f7fa;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user