update almost finished

This commit is contained in:
lb
2023-04-03 14:54:36 +08:00
parent 2afdb1d23d
commit 4e01129793
3 changed files with 172 additions and 185 deletions

View File

@@ -102,8 +102,8 @@ export default function () {
options: [],
optionLabel: 'code',
optionValue: 'carId',
needCache: true,
fetchData: () => this.$http.post("/pms/carHandle/pageView", { page: 1, limit: 999 }),
disableWatcherOnEdit: true,
rules: { required: true, message: "必填项不能为空", trigger: "blur" },
elparams: { placeholder: "请输入窑车号", filterable: true },
injectTo: [
@@ -152,11 +152,9 @@ export default function () {
optionLabel: 'orderCode',
// toggleFetchData: 'carId', // 当 carId 改变的时候,也会 fetchData
hasPrev: 'carId', // 当 carId 改变的时候,也会 fetchData
// 需要保存当前状态
needCache: true,
fetchDataParam: { search: 'carId', get: 'id' }, // 伴随着 toggleFetchData 出现
fetchDataParam: { search: 'carId', get: 'id' }, // 伴随着 hasPrev 出现
fetchData: (hisId) => this.$http.get(`/pms/carHandle/${hisId}`),
fetchDataWait: true,
disableWatcherOnEdit: true,
rules: { required: true, message: "必选项不能为空", trigger: "blur" },
elparams: { placeholder: "请选择订单" },
injectTo: [
@@ -188,7 +186,7 @@ export default function () {
{
input: true,
label: "抽检数量",
prop: "orderQty",
prop: "qty",
rules: [
{ required: true, message: "必填项不能为空", trigger: "blur" },
{ type: 'number', message: '请输入正确的数字类型', trigger: 'blur', transform: val => Number(val) }