| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- import request from '@/utils/request';
- // 查询待行区列表
- export function listDecoctRoute(query) {
- const {pageNum, pageSize, ...data} = query;
- return request({
- url: `/yfc-admin/web/waiting/pageList`,
- method: 'post',
- data,
- params: {pageNum, pageSize},
- });
- }
- export function editDecoctRoute(model) {
- if (typeof model.createTime === 'string') model.createTime = model.createTime.replace(' ', 'T');
- if (typeof model.updateTime === 'string') model.updateTime = model.updateTime.replace(' ', 'T');
- return request({
- url: model.id ? `/yfc-admin/web/waiting/update` : `/yfc-admin/web/waiting/add`,
- method: 'post',
- data: model,
- });
- }
- export function deleteDecoctRoute(model) {
- return request({
- url: `/yfc-admin/web/waiting/delete/${model.id}`,
- method: 'get',
- });
- }
- export function getDecoctRouteOptions() {
- return request({
- url: `/yfc-admin/web/waiting/list`,
- method: 'post',
- data: {},
- })
- }
- // 查询煎药区列表
- export function listDecoctStation(query) {
- const {pageNum, pageSize, ...data} = query;
- return request({
- url: `/yfc-admin/web/decoction/pageList`,
- method: 'post',
- data,
- params: {pageNum, pageSize},
- });
- }
- export function editDecoctStation(model) {
- if (typeof model.createTime === 'string') model.createTime = model.createTime.replace(' ', 'T');
- if (typeof model.updateTime === 'string') model.updateTime = model.updateTime.replace(' ', 'T');
- return request({
- url: model.id ? `/yfc-admin/web/decoction/update` : `/yfc-admin/web/decoction/add`,
- method: 'post',
- data: model,
- });
- }
- export function deleteDecoctStation(model) {
- return request({
- url: `/yfc-admin/web/decoction/delete/${model.id}`,
- method: 'get',
- });
- }
- export function getDecoctStationOptions() {
- return request({
- url: `/yfc-admin/web/decoction/list`,
- method: 'post',
- data: {},
- })
- }
- export function getDecoctOperatorList() {
- return request({
- url: `/system/user/decoctUserList`,
- method: 'get'
- })
- }
- // 查询绑桶记录列表
- export function listDecoctBucket(query) {
- const {pageNum, pageSize, ...data} = query;
- return request({
- url: `/yfc-admin/web/decoction/bindBarrelList`,
- method: 'post',
- data,
- params: {pageNum, pageSize},
- });
- }
- export function exportDecoctBucket(query) {
- const {pageNum, pageSize, ...data} = query;
- return request({
- url: `/yfc-admin/web/decoction/bindBarrelExcel`,
- method: 'post',
- data,
- responseType: 'blob',
- download: true,
- })
- }
|